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