^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) #include <asm/bitsperlong.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) * This file contains the system call numbers, based on the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) * layout of the x86-64 architecture, which embeds the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) * pointer to the syscall in the table.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) * As a basic principle, no duplication of functionality
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) * should be added, e.g. we don't use lseek when llseek
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) * is present. New architectures should use this file
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) * and implement the less feature-full calls in user space.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) #ifndef __SYSCALL
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) #define __SYSCALL(x, y)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) #if __BITS_PER_LONG == 32 || defined(__SYSCALL_COMPAT)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) #define __SC_3264(_nr, _32, _64) __SYSCALL(_nr, _32)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) #define __SC_3264(_nr, _32, _64) __SYSCALL(_nr, _64)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) #ifdef __SYSCALL_COMPAT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) #define __SC_COMP(_nr, _sys, _comp) __SYSCALL(_nr, _comp)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) #define __SC_COMP_3264(_nr, _32, _64, _comp) __SYSCALL(_nr, _comp)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) #define __SC_COMP(_nr, _sys, _comp) __SYSCALL(_nr, _sys)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) #define __SC_COMP_3264(_nr, _32, _64, _comp) __SC_3264(_nr, _32, _64)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) #define __NR_io_setup 0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) __SC_COMP(__NR_io_setup, sys_io_setup, compat_sys_io_setup)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) #define __NR_io_destroy 1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) __SYSCALL(__NR_io_destroy, sys_io_destroy)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) #define __NR_io_submit 2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) __SC_COMP(__NR_io_submit, sys_io_submit, compat_sys_io_submit)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) #define __NR_io_cancel 3
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) __SYSCALL(__NR_io_cancel, sys_io_cancel)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) #if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) #define __NR_io_getevents 4
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) __SC_3264(__NR_io_getevents, sys_io_getevents_time32, sys_io_getevents)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) /* fs/xattr.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) #define __NR_setxattr 5
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) __SYSCALL(__NR_setxattr, sys_setxattr)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) #define __NR_lsetxattr 6
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) __SYSCALL(__NR_lsetxattr, sys_lsetxattr)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) #define __NR_fsetxattr 7
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) __SYSCALL(__NR_fsetxattr, sys_fsetxattr)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) #define __NR_getxattr 8
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) __SYSCALL(__NR_getxattr, sys_getxattr)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) #define __NR_lgetxattr 9
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) __SYSCALL(__NR_lgetxattr, sys_lgetxattr)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) #define __NR_fgetxattr 10
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) __SYSCALL(__NR_fgetxattr, sys_fgetxattr)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) #define __NR_listxattr 11
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) __SYSCALL(__NR_listxattr, sys_listxattr)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) #define __NR_llistxattr 12
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) __SYSCALL(__NR_llistxattr, sys_llistxattr)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) #define __NR_flistxattr 13
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) __SYSCALL(__NR_flistxattr, sys_flistxattr)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65) #define __NR_removexattr 14
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66) __SYSCALL(__NR_removexattr, sys_removexattr)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67) #define __NR_lremovexattr 15
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68) __SYSCALL(__NR_lremovexattr, sys_lremovexattr)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69) #define __NR_fremovexattr 16
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70) __SYSCALL(__NR_fremovexattr, sys_fremovexattr)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72) /* fs/dcache.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 73) #define __NR_getcwd 17
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 74) __SYSCALL(__NR_getcwd, sys_getcwd)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 75)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 76) /* fs/cookies.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 77) #define __NR_lookup_dcookie 18
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 78) __SC_COMP(__NR_lookup_dcookie, sys_lookup_dcookie, compat_sys_lookup_dcookie)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 79)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 80) /* fs/eventfd.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 81) #define __NR_eventfd2 19
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 82) __SYSCALL(__NR_eventfd2, sys_eventfd2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 83)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 84) /* fs/eventpoll.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 85) #define __NR_epoll_create1 20
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 86) __SYSCALL(__NR_epoll_create1, sys_epoll_create1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 87) #define __NR_epoll_ctl 21
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 88) __SYSCALL(__NR_epoll_ctl, sys_epoll_ctl)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 89) #define __NR_epoll_pwait 22
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 90) __SC_COMP(__NR_epoll_pwait, sys_epoll_pwait, compat_sys_epoll_pwait)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 91)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 92) /* fs/fcntl.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 93) #define __NR_dup 23
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 94) __SYSCALL(__NR_dup, sys_dup)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 95) #define __NR_dup3 24
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 96) __SYSCALL(__NR_dup3, sys_dup3)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 97) #define __NR3264_fcntl 25
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 98) __SC_COMP_3264(__NR3264_fcntl, sys_fcntl64, sys_fcntl, compat_sys_fcntl64)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 99)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) /* fs/inotify_user.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101) #define __NR_inotify_init1 26
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102) __SYSCALL(__NR_inotify_init1, sys_inotify_init1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) #define __NR_inotify_add_watch 27
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104) __SYSCALL(__NR_inotify_add_watch, sys_inotify_add_watch)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105) #define __NR_inotify_rm_watch 28
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106) __SYSCALL(__NR_inotify_rm_watch, sys_inotify_rm_watch)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108) /* fs/ioctl.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109) #define __NR_ioctl 29
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110) __SC_COMP(__NR_ioctl, sys_ioctl, compat_sys_ioctl)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112) /* fs/ioprio.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113) #define __NR_ioprio_set 30
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114) __SYSCALL(__NR_ioprio_set, sys_ioprio_set)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115) #define __NR_ioprio_get 31
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116) __SYSCALL(__NR_ioprio_get, sys_ioprio_get)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118) /* fs/locks.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119) #define __NR_flock 32
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120) __SYSCALL(__NR_flock, sys_flock)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122) /* fs/namei.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123) #define __NR_mknodat 33
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124) __SYSCALL(__NR_mknodat, sys_mknodat)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125) #define __NR_mkdirat 34
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126) __SYSCALL(__NR_mkdirat, sys_mkdirat)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127) #define __NR_unlinkat 35
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128) __SYSCALL(__NR_unlinkat, sys_unlinkat)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129) #define __NR_symlinkat 36
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130) __SYSCALL(__NR_symlinkat, sys_symlinkat)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131) #define __NR_linkat 37
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132) __SYSCALL(__NR_linkat, sys_linkat)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133) #ifdef __ARCH_WANT_RENAMEAT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 134) /* renameat is superseded with flags by renameat2 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 135) #define __NR_renameat 38
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 136) __SYSCALL(__NR_renameat, sys_renameat)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 137) #endif /* __ARCH_WANT_RENAMEAT */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 138)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 139) /* fs/namespace.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 140) #define __NR_umount2 39
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 141) __SYSCALL(__NR_umount2, sys_umount)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 142) #define __NR_mount 40
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 143) __SYSCALL(__NR_mount, sys_mount)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 144) #define __NR_pivot_root 41
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 145) __SYSCALL(__NR_pivot_root, sys_pivot_root)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 146)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 147) /* fs/nfsctl.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 148) #define __NR_nfsservctl 42
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 149) __SYSCALL(__NR_nfsservctl, sys_ni_syscall)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 150)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 151) /* fs/open.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 152) #define __NR3264_statfs 43
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 153) __SC_COMP_3264(__NR3264_statfs, sys_statfs64, sys_statfs, \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 154) compat_sys_statfs64)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 155) #define __NR3264_fstatfs 44
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 156) __SC_COMP_3264(__NR3264_fstatfs, sys_fstatfs64, sys_fstatfs, \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 157) compat_sys_fstatfs64)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 158) #define __NR3264_truncate 45
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 159) __SC_COMP_3264(__NR3264_truncate, sys_truncate64, sys_truncate, \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 160) compat_sys_truncate64)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 161) #define __NR3264_ftruncate 46
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 162) __SC_COMP_3264(__NR3264_ftruncate, sys_ftruncate64, sys_ftruncate, \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 163) compat_sys_ftruncate64)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 164)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 165) #define __NR_fallocate 47
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 166) __SC_COMP(__NR_fallocate, sys_fallocate, compat_sys_fallocate)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 167) #define __NR_faccessat 48
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 168) __SYSCALL(__NR_faccessat, sys_faccessat)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 169) #define __NR_chdir 49
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 170) __SYSCALL(__NR_chdir, sys_chdir)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 171) #define __NR_fchdir 50
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 172) __SYSCALL(__NR_fchdir, sys_fchdir)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 173) #define __NR_chroot 51
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 174) __SYSCALL(__NR_chroot, sys_chroot)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 175) #define __NR_fchmod 52
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 176) __SYSCALL(__NR_fchmod, sys_fchmod)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 177) #define __NR_fchmodat 53
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 178) __SYSCALL(__NR_fchmodat, sys_fchmodat)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 179) #define __NR_fchownat 54
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 180) __SYSCALL(__NR_fchownat, sys_fchownat)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 181) #define __NR_fchown 55
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 182) __SYSCALL(__NR_fchown, sys_fchown)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 183) #define __NR_openat 56
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 184) __SYSCALL(__NR_openat, sys_openat)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 185) #define __NR_close 57
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 186) __SYSCALL(__NR_close, sys_close)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 187) #define __NR_vhangup 58
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 188) __SYSCALL(__NR_vhangup, sys_vhangup)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 189)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 190) /* fs/pipe.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 191) #define __NR_pipe2 59
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 192) __SYSCALL(__NR_pipe2, sys_pipe2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 193)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 194) /* fs/quota.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 195) #define __NR_quotactl 60
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 196) __SYSCALL(__NR_quotactl, sys_quotactl)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 197)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 198) /* fs/readdir.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 199) #define __NR_getdents64 61
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 200) __SYSCALL(__NR_getdents64, sys_getdents64)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 201)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 202) /* fs/read_write.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 203) #define __NR3264_lseek 62
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 204) __SC_3264(__NR3264_lseek, sys_llseek, sys_lseek)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 205) #define __NR_read 63
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 206) __SYSCALL(__NR_read, sys_read)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 207) #define __NR_write 64
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 208) __SYSCALL(__NR_write, sys_write)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 209) #define __NR_readv 65
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 210) __SC_COMP(__NR_readv, sys_readv, sys_readv)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 211) #define __NR_writev 66
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 212) __SC_COMP(__NR_writev, sys_writev, sys_writev)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 213) #define __NR_pread64 67
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 214) __SC_COMP(__NR_pread64, sys_pread64, compat_sys_pread64)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 215) #define __NR_pwrite64 68
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 216) __SC_COMP(__NR_pwrite64, sys_pwrite64, compat_sys_pwrite64)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 217) #define __NR_preadv 69
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 218) __SC_COMP(__NR_preadv, sys_preadv, compat_sys_preadv)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 219) #define __NR_pwritev 70
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 220) __SC_COMP(__NR_pwritev, sys_pwritev, compat_sys_pwritev)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 221)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 222) /* fs/sendfile.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 223) #define __NR3264_sendfile 71
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 224) __SYSCALL(__NR3264_sendfile, sys_sendfile64)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 225)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 226) /* fs/select.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 227) #if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 228) #define __NR_pselect6 72
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 229) __SC_COMP_3264(__NR_pselect6, sys_pselect6_time32, sys_pselect6, compat_sys_pselect6_time32)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 230) #define __NR_ppoll 73
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 231) __SC_COMP_3264(__NR_ppoll, sys_ppoll_time32, sys_ppoll, compat_sys_ppoll_time32)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 232) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 233)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 234) /* fs/signalfd.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 235) #define __NR_signalfd4 74
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 236) __SC_COMP(__NR_signalfd4, sys_signalfd4, compat_sys_signalfd4)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 237)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 238) /* fs/splice.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 239) #define __NR_vmsplice 75
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 240) __SYSCALL(__NR_vmsplice, sys_vmsplice)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 241) #define __NR_splice 76
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 242) __SYSCALL(__NR_splice, sys_splice)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 243) #define __NR_tee 77
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 244) __SYSCALL(__NR_tee, sys_tee)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 245)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 246) /* fs/stat.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 247) #define __NR_readlinkat 78
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 248) __SYSCALL(__NR_readlinkat, sys_readlinkat)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 249) #if defined(__ARCH_WANT_NEW_STAT) || defined(__ARCH_WANT_STAT64)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 250) #define __NR3264_fstatat 79
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 251) __SC_3264(__NR3264_fstatat, sys_fstatat64, sys_newfstatat)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 252) #define __NR3264_fstat 80
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 253) __SC_3264(__NR3264_fstat, sys_fstat64, sys_newfstat)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 254) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 255)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 256) /* fs/sync.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 257) #define __NR_sync 81
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 258) __SYSCALL(__NR_sync, sys_sync)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 259) #define __NR_fsync 82
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 260) __SYSCALL(__NR_fsync, sys_fsync)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 261) #define __NR_fdatasync 83
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 262) __SYSCALL(__NR_fdatasync, sys_fdatasync)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 263) #ifdef __ARCH_WANT_SYNC_FILE_RANGE2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 264) #define __NR_sync_file_range2 84
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 265) __SC_COMP(__NR_sync_file_range2, sys_sync_file_range2, \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 266) compat_sys_sync_file_range2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 267) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 268) #define __NR_sync_file_range 84
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 269) __SC_COMP(__NR_sync_file_range, sys_sync_file_range, \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 270) compat_sys_sync_file_range)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 271) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 272)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 273) /* fs/timerfd.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 274) #define __NR_timerfd_create 85
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 275) __SYSCALL(__NR_timerfd_create, sys_timerfd_create)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 276) #if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 277) #define __NR_timerfd_settime 86
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 278) __SC_3264(__NR_timerfd_settime, sys_timerfd_settime32, \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 279) sys_timerfd_settime)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 280) #define __NR_timerfd_gettime 87
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 281) __SC_3264(__NR_timerfd_gettime, sys_timerfd_gettime32, \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 282) sys_timerfd_gettime)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 283) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 284)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 285) /* fs/utimes.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 286) #if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 287) #define __NR_utimensat 88
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 288) __SC_3264(__NR_utimensat, sys_utimensat_time32, sys_utimensat)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 289) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 290)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 291) /* kernel/acct.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 292) #define __NR_acct 89
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 293) __SYSCALL(__NR_acct, sys_acct)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 294)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 295) /* kernel/capability.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 296) #define __NR_capget 90
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 297) __SYSCALL(__NR_capget, sys_capget)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 298) #define __NR_capset 91
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 299) __SYSCALL(__NR_capset, sys_capset)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 300)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 301) /* kernel/exec_domain.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 302) #define __NR_personality 92
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 303) __SYSCALL(__NR_personality, sys_personality)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 304)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 305) /* kernel/exit.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 306) #define __NR_exit 93
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 307) __SYSCALL(__NR_exit, sys_exit)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 308) #define __NR_exit_group 94
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 309) __SYSCALL(__NR_exit_group, sys_exit_group)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 310) #define __NR_waitid 95
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 311) __SC_COMP(__NR_waitid, sys_waitid, compat_sys_waitid)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 312)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 313) /* kernel/fork.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 314) #define __NR_set_tid_address 96
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 315) __SYSCALL(__NR_set_tid_address, sys_set_tid_address)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 316) #define __NR_unshare 97
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 317) __SYSCALL(__NR_unshare, sys_unshare)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 318)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 319) /* kernel/futex.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 320) #if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 321) #define __NR_futex 98
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 322) __SC_3264(__NR_futex, sys_futex_time32, sys_futex)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 323) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 324) #define __NR_set_robust_list 99
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 325) __SC_COMP(__NR_set_robust_list, sys_set_robust_list, \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 326) compat_sys_set_robust_list)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 327) #define __NR_get_robust_list 100
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 328) __SC_COMP(__NR_get_robust_list, sys_get_robust_list, \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 329) compat_sys_get_robust_list)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 330)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 331) /* kernel/hrtimer.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 332) #if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 333) #define __NR_nanosleep 101
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 334) __SC_3264(__NR_nanosleep, sys_nanosleep_time32, sys_nanosleep)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 335) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 336)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 337) /* kernel/itimer.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 338) #define __NR_getitimer 102
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 339) __SC_COMP(__NR_getitimer, sys_getitimer, compat_sys_getitimer)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 340) #define __NR_setitimer 103
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 341) __SC_COMP(__NR_setitimer, sys_setitimer, compat_sys_setitimer)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 342)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 343) /* kernel/kexec.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 344) #define __NR_kexec_load 104
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 345) __SC_COMP(__NR_kexec_load, sys_kexec_load, compat_sys_kexec_load)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 346)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 347) /* kernel/module.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 348) #define __NR_init_module 105
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 349) __SYSCALL(__NR_init_module, sys_init_module)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 350) #define __NR_delete_module 106
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 351) __SYSCALL(__NR_delete_module, sys_delete_module)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 352)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 353) /* kernel/posix-timers.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 354) #define __NR_timer_create 107
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 355) __SC_COMP(__NR_timer_create, sys_timer_create, compat_sys_timer_create)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 356) #if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 357) #define __NR_timer_gettime 108
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 358) __SC_3264(__NR_timer_gettime, sys_timer_gettime32, sys_timer_gettime)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 359) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 360) #define __NR_timer_getoverrun 109
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 361) __SYSCALL(__NR_timer_getoverrun, sys_timer_getoverrun)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 362) #if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 363) #define __NR_timer_settime 110
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 364) __SC_3264(__NR_timer_settime, sys_timer_settime32, sys_timer_settime)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 365) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 366) #define __NR_timer_delete 111
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 367) __SYSCALL(__NR_timer_delete, sys_timer_delete)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 368) #if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 369) #define __NR_clock_settime 112
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 370) __SC_3264(__NR_clock_settime, sys_clock_settime32, sys_clock_settime)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 371) #define __NR_clock_gettime 113
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 372) __SC_3264(__NR_clock_gettime, sys_clock_gettime32, sys_clock_gettime)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 373) #define __NR_clock_getres 114
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 374) __SC_3264(__NR_clock_getres, sys_clock_getres_time32, sys_clock_getres)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 375) #define __NR_clock_nanosleep 115
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 376) __SC_3264(__NR_clock_nanosleep, sys_clock_nanosleep_time32, \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 377) sys_clock_nanosleep)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 378) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 379)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 380) /* kernel/printk.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 381) #define __NR_syslog 116
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 382) __SYSCALL(__NR_syslog, sys_syslog)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 383)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 384) /* kernel/ptrace.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 385) #define __NR_ptrace 117
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 386) __SYSCALL(__NR_ptrace, sys_ptrace)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 387)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 388) /* kernel/sched/core.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 389) #define __NR_sched_setparam 118
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 390) __SYSCALL(__NR_sched_setparam, sys_sched_setparam)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 391) #define __NR_sched_setscheduler 119
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 392) __SYSCALL(__NR_sched_setscheduler, sys_sched_setscheduler)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 393) #define __NR_sched_getscheduler 120
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 394) __SYSCALL(__NR_sched_getscheduler, sys_sched_getscheduler)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 395) #define __NR_sched_getparam 121
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 396) __SYSCALL(__NR_sched_getparam, sys_sched_getparam)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 397) #define __NR_sched_setaffinity 122
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 398) __SC_COMP(__NR_sched_setaffinity, sys_sched_setaffinity, \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 399) compat_sys_sched_setaffinity)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 400) #define __NR_sched_getaffinity 123
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 401) __SC_COMP(__NR_sched_getaffinity, sys_sched_getaffinity, \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 402) compat_sys_sched_getaffinity)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 403) #define __NR_sched_yield 124
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 404) __SYSCALL(__NR_sched_yield, sys_sched_yield)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 405) #define __NR_sched_get_priority_max 125
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 406) __SYSCALL(__NR_sched_get_priority_max, sys_sched_get_priority_max)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 407) #define __NR_sched_get_priority_min 126
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 408) __SYSCALL(__NR_sched_get_priority_min, sys_sched_get_priority_min)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 409) #if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 410) #define __NR_sched_rr_get_interval 127
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 411) __SC_3264(__NR_sched_rr_get_interval, sys_sched_rr_get_interval_time32, \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 412) sys_sched_rr_get_interval)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 413) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 414)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 415) /* kernel/signal.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 416) #define __NR_restart_syscall 128
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 417) __SYSCALL(__NR_restart_syscall, sys_restart_syscall)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 418) #define __NR_kill 129
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 419) __SYSCALL(__NR_kill, sys_kill)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 420) #define __NR_tkill 130
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 421) __SYSCALL(__NR_tkill, sys_tkill)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 422) #define __NR_tgkill 131
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 423) __SYSCALL(__NR_tgkill, sys_tgkill)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 424) #define __NR_sigaltstack 132
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 425) __SC_COMP(__NR_sigaltstack, sys_sigaltstack, compat_sys_sigaltstack)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 426) #define __NR_rt_sigsuspend 133
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 427) __SC_COMP(__NR_rt_sigsuspend, sys_rt_sigsuspend, compat_sys_rt_sigsuspend)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 428) #define __NR_rt_sigaction 134
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 429) __SC_COMP(__NR_rt_sigaction, sys_rt_sigaction, compat_sys_rt_sigaction)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 430) #define __NR_rt_sigprocmask 135
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 431) __SC_COMP(__NR_rt_sigprocmask, sys_rt_sigprocmask, compat_sys_rt_sigprocmask)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 432) #define __NR_rt_sigpending 136
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 433) __SC_COMP(__NR_rt_sigpending, sys_rt_sigpending, compat_sys_rt_sigpending)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 434) #if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 435) #define __NR_rt_sigtimedwait 137
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 436) __SC_COMP_3264(__NR_rt_sigtimedwait, sys_rt_sigtimedwait_time32, \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 437) sys_rt_sigtimedwait, compat_sys_rt_sigtimedwait_time32)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 438) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 439) #define __NR_rt_sigqueueinfo 138
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 440) __SC_COMP(__NR_rt_sigqueueinfo, sys_rt_sigqueueinfo, \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 441) compat_sys_rt_sigqueueinfo)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 442) #define __NR_rt_sigreturn 139
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 443) __SC_COMP(__NR_rt_sigreturn, sys_rt_sigreturn, compat_sys_rt_sigreturn)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 444)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 445) /* kernel/sys.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 446) #define __NR_setpriority 140
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 447) __SYSCALL(__NR_setpriority, sys_setpriority)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 448) #define __NR_getpriority 141
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 449) __SYSCALL(__NR_getpriority, sys_getpriority)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 450) #define __NR_reboot 142
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 451) __SYSCALL(__NR_reboot, sys_reboot)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 452) #define __NR_setregid 143
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 453) __SYSCALL(__NR_setregid, sys_setregid)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 454) #define __NR_setgid 144
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 455) __SYSCALL(__NR_setgid, sys_setgid)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 456) #define __NR_setreuid 145
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 457) __SYSCALL(__NR_setreuid, sys_setreuid)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 458) #define __NR_setuid 146
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 459) __SYSCALL(__NR_setuid, sys_setuid)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 460) #define __NR_setresuid 147
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 461) __SYSCALL(__NR_setresuid, sys_setresuid)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 462) #define __NR_getresuid 148
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 463) __SYSCALL(__NR_getresuid, sys_getresuid)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 464) #define __NR_setresgid 149
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 465) __SYSCALL(__NR_setresgid, sys_setresgid)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 466) #define __NR_getresgid 150
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 467) __SYSCALL(__NR_getresgid, sys_getresgid)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 468) #define __NR_setfsuid 151
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 469) __SYSCALL(__NR_setfsuid, sys_setfsuid)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 470) #define __NR_setfsgid 152
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 471) __SYSCALL(__NR_setfsgid, sys_setfsgid)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 472) #define __NR_times 153
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 473) __SC_COMP(__NR_times, sys_times, compat_sys_times)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 474) #define __NR_setpgid 154
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 475) __SYSCALL(__NR_setpgid, sys_setpgid)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 476) #define __NR_getpgid 155
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 477) __SYSCALL(__NR_getpgid, sys_getpgid)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 478) #define __NR_getsid 156
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 479) __SYSCALL(__NR_getsid, sys_getsid)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 480) #define __NR_setsid 157
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 481) __SYSCALL(__NR_setsid, sys_setsid)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 482) #define __NR_getgroups 158
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 483) __SYSCALL(__NR_getgroups, sys_getgroups)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 484) #define __NR_setgroups 159
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 485) __SYSCALL(__NR_setgroups, sys_setgroups)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 486) #define __NR_uname 160
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 487) __SYSCALL(__NR_uname, sys_newuname)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 488) #define __NR_sethostname 161
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 489) __SYSCALL(__NR_sethostname, sys_sethostname)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 490) #define __NR_setdomainname 162
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 491) __SYSCALL(__NR_setdomainname, sys_setdomainname)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 492)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 493) #ifdef __ARCH_WANT_SET_GET_RLIMIT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 494) /* getrlimit and setrlimit are superseded with prlimit64 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 495) #define __NR_getrlimit 163
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 496) __SC_COMP(__NR_getrlimit, sys_getrlimit, compat_sys_getrlimit)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 497) #define __NR_setrlimit 164
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 498) __SC_COMP(__NR_setrlimit, sys_setrlimit, compat_sys_setrlimit)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 499) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 500)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 501) #define __NR_getrusage 165
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 502) __SC_COMP(__NR_getrusage, sys_getrusage, compat_sys_getrusage)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 503) #define __NR_umask 166
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 504) __SYSCALL(__NR_umask, sys_umask)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 505) #define __NR_prctl 167
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 506) __SYSCALL(__NR_prctl, sys_prctl)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 507) #define __NR_getcpu 168
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 508) __SYSCALL(__NR_getcpu, sys_getcpu)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 509)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 510) /* kernel/time.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 511) #if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 512) #define __NR_gettimeofday 169
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 513) __SC_COMP(__NR_gettimeofday, sys_gettimeofday, compat_sys_gettimeofday)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 514) #define __NR_settimeofday 170
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 515) __SC_COMP(__NR_settimeofday, sys_settimeofday, compat_sys_settimeofday)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 516) #define __NR_adjtimex 171
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 517) __SC_3264(__NR_adjtimex, sys_adjtimex_time32, sys_adjtimex)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 518) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 519)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 520) /* kernel/timer.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 521) #define __NR_getpid 172
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 522) __SYSCALL(__NR_getpid, sys_getpid)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 523) #define __NR_getppid 173
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 524) __SYSCALL(__NR_getppid, sys_getppid)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 525) #define __NR_getuid 174
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 526) __SYSCALL(__NR_getuid, sys_getuid)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 527) #define __NR_geteuid 175
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 528) __SYSCALL(__NR_geteuid, sys_geteuid)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 529) #define __NR_getgid 176
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 530) __SYSCALL(__NR_getgid, sys_getgid)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 531) #define __NR_getegid 177
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 532) __SYSCALL(__NR_getegid, sys_getegid)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 533) #define __NR_gettid 178
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 534) __SYSCALL(__NR_gettid, sys_gettid)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 535) #define __NR_sysinfo 179
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 536) __SC_COMP(__NR_sysinfo, sys_sysinfo, compat_sys_sysinfo)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 537)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 538) /* ipc/mqueue.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 539) #define __NR_mq_open 180
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 540) __SC_COMP(__NR_mq_open, sys_mq_open, compat_sys_mq_open)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 541) #define __NR_mq_unlink 181
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 542) __SYSCALL(__NR_mq_unlink, sys_mq_unlink)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 543) #if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 544) #define __NR_mq_timedsend 182
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 545) __SC_3264(__NR_mq_timedsend, sys_mq_timedsend_time32, sys_mq_timedsend)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 546) #define __NR_mq_timedreceive 183
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 547) __SC_3264(__NR_mq_timedreceive, sys_mq_timedreceive_time32, \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 548) sys_mq_timedreceive)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 549) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 550) #define __NR_mq_notify 184
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 551) __SC_COMP(__NR_mq_notify, sys_mq_notify, compat_sys_mq_notify)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 552) #define __NR_mq_getsetattr 185
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 553) __SC_COMP(__NR_mq_getsetattr, sys_mq_getsetattr, compat_sys_mq_getsetattr)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 554)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 555) /* ipc/msg.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 556) #define __NR_msgget 186
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 557) __SYSCALL(__NR_msgget, sys_msgget)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 558) #define __NR_msgctl 187
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 559) __SC_COMP(__NR_msgctl, sys_msgctl, compat_sys_msgctl)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 560) #define __NR_msgrcv 188
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 561) __SC_COMP(__NR_msgrcv, sys_msgrcv, compat_sys_msgrcv)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 562) #define __NR_msgsnd 189
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 563) __SC_COMP(__NR_msgsnd, sys_msgsnd, compat_sys_msgsnd)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 564)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 565) /* ipc/sem.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 566) #define __NR_semget 190
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 567) __SYSCALL(__NR_semget, sys_semget)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 568) #define __NR_semctl 191
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 569) __SC_COMP(__NR_semctl, sys_semctl, compat_sys_semctl)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 570) #if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 571) #define __NR_semtimedop 192
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 572) __SC_3264(__NR_semtimedop, sys_semtimedop_time32, sys_semtimedop)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 573) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 574) #define __NR_semop 193
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 575) __SYSCALL(__NR_semop, sys_semop)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 576)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 577) /* ipc/shm.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 578) #define __NR_shmget 194
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 579) __SYSCALL(__NR_shmget, sys_shmget)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 580) #define __NR_shmctl 195
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 581) __SC_COMP(__NR_shmctl, sys_shmctl, compat_sys_shmctl)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 582) #define __NR_shmat 196
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 583) __SC_COMP(__NR_shmat, sys_shmat, compat_sys_shmat)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 584) #define __NR_shmdt 197
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 585) __SYSCALL(__NR_shmdt, sys_shmdt)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 586)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 587) /* net/socket.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 588) #define __NR_socket 198
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 589) __SYSCALL(__NR_socket, sys_socket)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 590) #define __NR_socketpair 199
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 591) __SYSCALL(__NR_socketpair, sys_socketpair)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 592) #define __NR_bind 200
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 593) __SYSCALL(__NR_bind, sys_bind)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 594) #define __NR_listen 201
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 595) __SYSCALL(__NR_listen, sys_listen)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 596) #define __NR_accept 202
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 597) __SYSCALL(__NR_accept, sys_accept)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 598) #define __NR_connect 203
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 599) __SYSCALL(__NR_connect, sys_connect)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 600) #define __NR_getsockname 204
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 601) __SYSCALL(__NR_getsockname, sys_getsockname)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 602) #define __NR_getpeername 205
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 603) __SYSCALL(__NR_getpeername, sys_getpeername)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 604) #define __NR_sendto 206
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 605) __SYSCALL(__NR_sendto, sys_sendto)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 606) #define __NR_recvfrom 207
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 607) __SC_COMP(__NR_recvfrom, sys_recvfrom, compat_sys_recvfrom)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 608) #define __NR_setsockopt 208
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 609) __SC_COMP(__NR_setsockopt, sys_setsockopt, sys_setsockopt)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 610) #define __NR_getsockopt 209
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 611) __SC_COMP(__NR_getsockopt, sys_getsockopt, sys_getsockopt)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 612) #define __NR_shutdown 210
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 613) __SYSCALL(__NR_shutdown, sys_shutdown)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 614) #define __NR_sendmsg 211
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 615) __SC_COMP(__NR_sendmsg, sys_sendmsg, compat_sys_sendmsg)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 616) #define __NR_recvmsg 212
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 617) __SC_COMP(__NR_recvmsg, sys_recvmsg, compat_sys_recvmsg)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 618)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 619) /* mm/filemap.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 620) #define __NR_readahead 213
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 621) __SC_COMP(__NR_readahead, sys_readahead, compat_sys_readahead)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 622)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 623) /* mm/nommu.c, also with MMU */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 624) #define __NR_brk 214
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 625) __SYSCALL(__NR_brk, sys_brk)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 626) #define __NR_munmap 215
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 627) __SYSCALL(__NR_munmap, sys_munmap)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 628) #define __NR_mremap 216
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 629) __SYSCALL(__NR_mremap, sys_mremap)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 630)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 631) /* security/keys/keyctl.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 632) #define __NR_add_key 217
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 633) __SYSCALL(__NR_add_key, sys_add_key)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 634) #define __NR_request_key 218
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 635) __SYSCALL(__NR_request_key, sys_request_key)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 636) #define __NR_keyctl 219
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 637) __SC_COMP(__NR_keyctl, sys_keyctl, compat_sys_keyctl)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 638)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 639) /* arch/example/kernel/sys_example.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 640) #define __NR_clone 220
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 641) __SYSCALL(__NR_clone, sys_clone)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 642) #define __NR_execve 221
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 643) __SC_COMP(__NR_execve, sys_execve, compat_sys_execve)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 644)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 645) #define __NR3264_mmap 222
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 646) __SC_3264(__NR3264_mmap, sys_mmap2, sys_mmap)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 647) /* mm/fadvise.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 648) #define __NR3264_fadvise64 223
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 649) __SC_COMP(__NR3264_fadvise64, sys_fadvise64_64, compat_sys_fadvise64_64)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 650)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 651) /* mm/, CONFIG_MMU only */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 652) #ifndef __ARCH_NOMMU
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 653) #define __NR_swapon 224
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 654) __SYSCALL(__NR_swapon, sys_swapon)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 655) #define __NR_swapoff 225
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 656) __SYSCALL(__NR_swapoff, sys_swapoff)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 657) #define __NR_mprotect 226
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 658) __SYSCALL(__NR_mprotect, sys_mprotect)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 659) #define __NR_msync 227
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 660) __SYSCALL(__NR_msync, sys_msync)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 661) #define __NR_mlock 228
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 662) __SYSCALL(__NR_mlock, sys_mlock)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 663) #define __NR_munlock 229
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 664) __SYSCALL(__NR_munlock, sys_munlock)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 665) #define __NR_mlockall 230
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 666) __SYSCALL(__NR_mlockall, sys_mlockall)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 667) #define __NR_munlockall 231
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 668) __SYSCALL(__NR_munlockall, sys_munlockall)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 669) #define __NR_mincore 232
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 670) __SYSCALL(__NR_mincore, sys_mincore)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 671) #define __NR_madvise 233
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 672) __SYSCALL(__NR_madvise, sys_madvise)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 673) #define __NR_remap_file_pages 234
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 674) __SYSCALL(__NR_remap_file_pages, sys_remap_file_pages)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 675) #define __NR_mbind 235
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 676) __SC_COMP(__NR_mbind, sys_mbind, compat_sys_mbind)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 677) #define __NR_get_mempolicy 236
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 678) __SC_COMP(__NR_get_mempolicy, sys_get_mempolicy, compat_sys_get_mempolicy)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 679) #define __NR_set_mempolicy 237
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 680) __SC_COMP(__NR_set_mempolicy, sys_set_mempolicy, compat_sys_set_mempolicy)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 681) #define __NR_migrate_pages 238
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 682) __SC_COMP(__NR_migrate_pages, sys_migrate_pages, compat_sys_migrate_pages)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 683) #define __NR_move_pages 239
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 684) __SC_COMP(__NR_move_pages, sys_move_pages, compat_sys_move_pages)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 685) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 686)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 687) #define __NR_rt_tgsigqueueinfo 240
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 688) __SC_COMP(__NR_rt_tgsigqueueinfo, sys_rt_tgsigqueueinfo, \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 689) compat_sys_rt_tgsigqueueinfo)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 690) #define __NR_perf_event_open 241
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 691) __SYSCALL(__NR_perf_event_open, sys_perf_event_open)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 692) #define __NR_accept4 242
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 693) __SYSCALL(__NR_accept4, sys_accept4)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 694) #if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 695) #define __NR_recvmmsg 243
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 696) __SC_COMP_3264(__NR_recvmmsg, sys_recvmmsg_time32, sys_recvmmsg, compat_sys_recvmmsg_time32)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 697) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 698)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 699) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 700) * Architectures may provide up to 16 syscalls of their own
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 701) * starting with this value.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 702) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 703) #define __NR_arch_specific_syscall 244
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 704)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 705) #if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 706) #define __NR_wait4 260
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 707) __SC_COMP(__NR_wait4, sys_wait4, compat_sys_wait4)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 708) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 709) #define __NR_prlimit64 261
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 710) __SYSCALL(__NR_prlimit64, sys_prlimit64)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 711) #define __NR_fanotify_init 262
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 712) __SYSCALL(__NR_fanotify_init, sys_fanotify_init)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 713) #define __NR_fanotify_mark 263
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 714) __SYSCALL(__NR_fanotify_mark, sys_fanotify_mark)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 715) #define __NR_name_to_handle_at 264
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 716) __SYSCALL(__NR_name_to_handle_at, sys_name_to_handle_at)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 717) #define __NR_open_by_handle_at 265
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 718) __SYSCALL(__NR_open_by_handle_at, sys_open_by_handle_at)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 719) #if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 720) #define __NR_clock_adjtime 266
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 721) __SC_3264(__NR_clock_adjtime, sys_clock_adjtime32, sys_clock_adjtime)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 722) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 723) #define __NR_syncfs 267
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 724) __SYSCALL(__NR_syncfs, sys_syncfs)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 725) #define __NR_setns 268
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 726) __SYSCALL(__NR_setns, sys_setns)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 727) #define __NR_sendmmsg 269
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 728) __SC_COMP(__NR_sendmmsg, sys_sendmmsg, compat_sys_sendmmsg)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 729) #define __NR_process_vm_readv 270
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 730) __SYSCALL(__NR_process_vm_readv, sys_process_vm_readv)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 731) #define __NR_process_vm_writev 271
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 732) __SYSCALL(__NR_process_vm_writev, sys_process_vm_writev)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 733) #define __NR_kcmp 272
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 734) __SYSCALL(__NR_kcmp, sys_kcmp)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 735) #define __NR_finit_module 273
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 736) __SYSCALL(__NR_finit_module, sys_finit_module)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 737) #define __NR_sched_setattr 274
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 738) __SYSCALL(__NR_sched_setattr, sys_sched_setattr)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 739) #define __NR_sched_getattr 275
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 740) __SYSCALL(__NR_sched_getattr, sys_sched_getattr)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 741) #define __NR_renameat2 276
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 742) __SYSCALL(__NR_renameat2, sys_renameat2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 743) #define __NR_seccomp 277
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 744) __SYSCALL(__NR_seccomp, sys_seccomp)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 745) #define __NR_getrandom 278
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 746) __SYSCALL(__NR_getrandom, sys_getrandom)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 747) #define __NR_memfd_create 279
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 748) __SYSCALL(__NR_memfd_create, sys_memfd_create)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 749) #define __NR_bpf 280
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 750) __SYSCALL(__NR_bpf, sys_bpf)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 751) #define __NR_execveat 281
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 752) __SC_COMP(__NR_execveat, sys_execveat, compat_sys_execveat)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 753) #define __NR_userfaultfd 282
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 754) __SYSCALL(__NR_userfaultfd, sys_userfaultfd)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 755) #define __NR_membarrier 283
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 756) __SYSCALL(__NR_membarrier, sys_membarrier)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 757) #define __NR_mlock2 284
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 758) __SYSCALL(__NR_mlock2, sys_mlock2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 759) #define __NR_copy_file_range 285
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 760) __SYSCALL(__NR_copy_file_range, sys_copy_file_range)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 761) #define __NR_preadv2 286
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 762) __SC_COMP(__NR_preadv2, sys_preadv2, compat_sys_preadv2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 763) #define __NR_pwritev2 287
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 764) __SC_COMP(__NR_pwritev2, sys_pwritev2, compat_sys_pwritev2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 765) #define __NR_pkey_mprotect 288
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 766) __SYSCALL(__NR_pkey_mprotect, sys_pkey_mprotect)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 767) #define __NR_pkey_alloc 289
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 768) __SYSCALL(__NR_pkey_alloc, sys_pkey_alloc)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 769) #define __NR_pkey_free 290
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 770) __SYSCALL(__NR_pkey_free, sys_pkey_free)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 771) #define __NR_statx 291
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 772) __SYSCALL(__NR_statx, sys_statx)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 773) #if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 774) #define __NR_io_pgetevents 292
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 775) __SC_COMP_3264(__NR_io_pgetevents, sys_io_pgetevents_time32, sys_io_pgetevents, compat_sys_io_pgetevents)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 776) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 777) #define __NR_rseq 293
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 778) __SYSCALL(__NR_rseq, sys_rseq)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 779) #define __NR_kexec_file_load 294
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 780) __SYSCALL(__NR_kexec_file_load, sys_kexec_file_load)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 781) /* 295 through 402 are unassigned to sync up with generic numbers, don't use */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 782) #if __BITS_PER_LONG == 32
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 783) #define __NR_clock_gettime64 403
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 784) __SYSCALL(__NR_clock_gettime64, sys_clock_gettime)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 785) #define __NR_clock_settime64 404
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 786) __SYSCALL(__NR_clock_settime64, sys_clock_settime)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 787) #define __NR_clock_adjtime64 405
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 788) __SYSCALL(__NR_clock_adjtime64, sys_clock_adjtime)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 789) #define __NR_clock_getres_time64 406
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 790) __SYSCALL(__NR_clock_getres_time64, sys_clock_getres)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 791) #define __NR_clock_nanosleep_time64 407
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 792) __SYSCALL(__NR_clock_nanosleep_time64, sys_clock_nanosleep)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 793) #define __NR_timer_gettime64 408
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 794) __SYSCALL(__NR_timer_gettime64, sys_timer_gettime)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 795) #define __NR_timer_settime64 409
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 796) __SYSCALL(__NR_timer_settime64, sys_timer_settime)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 797) #define __NR_timerfd_gettime64 410
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 798) __SYSCALL(__NR_timerfd_gettime64, sys_timerfd_gettime)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 799) #define __NR_timerfd_settime64 411
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 800) __SYSCALL(__NR_timerfd_settime64, sys_timerfd_settime)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 801) #define __NR_utimensat_time64 412
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 802) __SYSCALL(__NR_utimensat_time64, sys_utimensat)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 803) #define __NR_pselect6_time64 413
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 804) __SC_COMP(__NR_pselect6_time64, sys_pselect6, compat_sys_pselect6_time64)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 805) #define __NR_ppoll_time64 414
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 806) __SC_COMP(__NR_ppoll_time64, sys_ppoll, compat_sys_ppoll_time64)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 807) #define __NR_io_pgetevents_time64 416
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 808) __SYSCALL(__NR_io_pgetevents_time64, sys_io_pgetevents)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 809) #define __NR_recvmmsg_time64 417
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 810) __SC_COMP(__NR_recvmmsg_time64, sys_recvmmsg, compat_sys_recvmmsg_time64)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 811) #define __NR_mq_timedsend_time64 418
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 812) __SYSCALL(__NR_mq_timedsend_time64, sys_mq_timedsend)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 813) #define __NR_mq_timedreceive_time64 419
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 814) __SYSCALL(__NR_mq_timedreceive_time64, sys_mq_timedreceive)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 815) #define __NR_semtimedop_time64 420
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 816) __SYSCALL(__NR_semtimedop_time64, sys_semtimedop)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 817) #define __NR_rt_sigtimedwait_time64 421
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 818) __SC_COMP(__NR_rt_sigtimedwait_time64, sys_rt_sigtimedwait, compat_sys_rt_sigtimedwait_time64)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 819) #define __NR_futex_time64 422
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 820) __SYSCALL(__NR_futex_time64, sys_futex)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 821) #define __NR_sched_rr_get_interval_time64 423
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 822) __SYSCALL(__NR_sched_rr_get_interval_time64, sys_sched_rr_get_interval)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 823) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 824)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 825) #define __NR_pidfd_send_signal 424
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 826) __SYSCALL(__NR_pidfd_send_signal, sys_pidfd_send_signal)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 827) #define __NR_io_uring_setup 425
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 828) __SYSCALL(__NR_io_uring_setup, sys_io_uring_setup)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 829) #define __NR_io_uring_enter 426
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 830) __SYSCALL(__NR_io_uring_enter, sys_io_uring_enter)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 831) #define __NR_io_uring_register 427
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 832) __SYSCALL(__NR_io_uring_register, sys_io_uring_register)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 833) #define __NR_open_tree 428
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 834) __SYSCALL(__NR_open_tree, sys_open_tree)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 835) #define __NR_move_mount 429
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 836) __SYSCALL(__NR_move_mount, sys_move_mount)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 837) #define __NR_fsopen 430
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 838) __SYSCALL(__NR_fsopen, sys_fsopen)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 839) #define __NR_fsconfig 431
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 840) __SYSCALL(__NR_fsconfig, sys_fsconfig)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 841) #define __NR_fsmount 432
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 842) __SYSCALL(__NR_fsmount, sys_fsmount)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 843) #define __NR_fspick 433
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 844) __SYSCALL(__NR_fspick, sys_fspick)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 845) #define __NR_pidfd_open 434
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 846) __SYSCALL(__NR_pidfd_open, sys_pidfd_open)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 847) #ifdef __ARCH_WANT_SYS_CLONE3
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 848) #define __NR_clone3 435
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 849) __SYSCALL(__NR_clone3, sys_clone3)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 850) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 851) #define __NR_close_range 436
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 852) __SYSCALL(__NR_close_range, sys_close_range)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 853)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 854) #define __NR_openat2 437
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 855) __SYSCALL(__NR_openat2, sys_openat2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 856) #define __NR_pidfd_getfd 438
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 857) __SYSCALL(__NR_pidfd_getfd, sys_pidfd_getfd)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 858) #define __NR_faccessat2 439
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 859) __SYSCALL(__NR_faccessat2, sys_faccessat2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 860) #define __NR_process_madvise 440
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 861) __SYSCALL(__NR_process_madvise, sys_process_madvise)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 862) #define __NR_process_mrelease 448
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 863) __SYSCALL(__NR_process_mrelease, sys_process_mrelease)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 864)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 865) #undef __NR_syscalls
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 866) #define __NR_syscalls 449
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 867)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 868) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 869) * 32 bit systems traditionally used different
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 870) * syscalls for off_t and loff_t arguments, while
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 871) * 64 bit systems only need the off_t version.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 872) * For new 32 bit platforms, there is no need to
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 873) * implement the old 32 bit off_t syscalls, so
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 874) * they take different names.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 875) * Here we map the numbers so that both versions
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 876) * use the same syscall table layout.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 877) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 878) #if __BITS_PER_LONG == 64 && !defined(__SYSCALL_COMPAT)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 879) #define __NR_fcntl __NR3264_fcntl
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 880) #define __NR_statfs __NR3264_statfs
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 881) #define __NR_fstatfs __NR3264_fstatfs
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 882) #define __NR_truncate __NR3264_truncate
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 883) #define __NR_ftruncate __NR3264_ftruncate
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 884) #define __NR_lseek __NR3264_lseek
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 885) #define __NR_sendfile __NR3264_sendfile
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 886) #if defined(__ARCH_WANT_NEW_STAT) || defined(__ARCH_WANT_STAT64)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 887) #define __NR_newfstatat __NR3264_fstatat
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 888) #define __NR_fstat __NR3264_fstat
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 889) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 890) #define __NR_mmap __NR3264_mmap
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 891) #define __NR_fadvise64 __NR3264_fadvise64
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 892) #ifdef __NR3264_stat
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 893) #define __NR_stat __NR3264_stat
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 894) #define __NR_lstat __NR3264_lstat
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 895) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 896) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 897) #define __NR_fcntl64 __NR3264_fcntl
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 898) #define __NR_statfs64 __NR3264_statfs
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 899) #define __NR_fstatfs64 __NR3264_fstatfs
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 900) #define __NR_truncate64 __NR3264_truncate
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 901) #define __NR_ftruncate64 __NR3264_ftruncate
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 902) #define __NR_llseek __NR3264_lseek
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 903) #define __NR_sendfile64 __NR3264_sendfile
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 904) #if defined(__ARCH_WANT_NEW_STAT) || defined(__ARCH_WANT_STAT64)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 905) #define __NR_fstatat64 __NR3264_fstatat
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 906) #define __NR_fstat64 __NR3264_fstat
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 907) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 908) #define __NR_mmap2 __NR3264_mmap
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 909) #define __NR_fadvise64_64 __NR3264_fadvise64
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 910) #ifdef __NR3264_stat
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 911) #define __NR_stat64 __NR3264_stat
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 912) #define __NR_lstat64 __NR3264_lstat
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 913) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 914) #endif