16f52b16cSGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 28a1ab315SDavid Howells #include <asm/bitsperlong.h> 38a1ab315SDavid Howells 48a1ab315SDavid Howells /* 58a1ab315SDavid Howells * This file contains the system call numbers, based on the 68a1ab315SDavid Howells * layout of the x86-64 architecture, which embeds the 78a1ab315SDavid Howells * pointer to the syscall in the table. 88a1ab315SDavid Howells * 98a1ab315SDavid Howells * As a basic principle, no duplication of functionality 108a1ab315SDavid Howells * should be added, e.g. we don't use lseek when llseek 118a1ab315SDavid Howells * is present. New architectures should use this file 128a1ab315SDavid Howells * and implement the less feature-full calls in user space. 138a1ab315SDavid Howells */ 148a1ab315SDavid Howells 158a1ab315SDavid Howells #ifndef __SYSCALL 168a1ab315SDavid Howells #define __SYSCALL(x, y) 178a1ab315SDavid Howells #endif 188a1ab315SDavid Howells 198a1ab315SDavid Howells #if __BITS_PER_LONG == 32 || defined(__SYSCALL_COMPAT) 208a1ab315SDavid Howells #define __SC_3264(_nr, _32, _64) __SYSCALL(_nr, _32) 218a1ab315SDavid Howells #else 228a1ab315SDavid Howells #define __SC_3264(_nr, _32, _64) __SYSCALL(_nr, _64) 238a1ab315SDavid Howells #endif 248a1ab315SDavid Howells 258a1ab315SDavid Howells #ifdef __SYSCALL_COMPAT 268a1ab315SDavid Howells #define __SC_COMP(_nr, _sys, _comp) __SYSCALL(_nr, _comp) 278a1ab315SDavid Howells #define __SC_COMP_3264(_nr, _32, _64, _comp) __SYSCALL(_nr, _comp) 288a1ab315SDavid Howells #else 298a1ab315SDavid Howells #define __SC_COMP(_nr, _sys, _comp) __SYSCALL(_nr, _sys) 308a1ab315SDavid Howells #define __SC_COMP_3264(_nr, _32, _64, _comp) __SC_3264(_nr, _32, _64) 318a1ab315SDavid Howells #endif 328a1ab315SDavid Howells 338a1ab315SDavid Howells #define __NR_io_setup 0 348a1ab315SDavid Howells __SC_COMP(__NR_io_setup, sys_io_setup, compat_sys_io_setup) 358a1ab315SDavid Howells #define __NR_io_destroy 1 368a1ab315SDavid Howells __SYSCALL(__NR_io_destroy, sys_io_destroy) 378a1ab315SDavid Howells #define __NR_io_submit 2 388a1ab315SDavid Howells __SC_COMP(__NR_io_submit, sys_io_submit, compat_sys_io_submit) 398a1ab315SDavid Howells #define __NR_io_cancel 3 408a1ab315SDavid Howells __SYSCALL(__NR_io_cancel, sys_io_cancel) 414dd595c3SSohil Mehta 42c8ce48f0SArnd Bergmann #if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32 438a1ab315SDavid Howells #define __NR_io_getevents 4 4400bf25d6SArnd Bergmann __SC_3264(__NR_io_getevents, sys_io_getevents_time32, sys_io_getevents) 45c8ce48f0SArnd Bergmann #endif 468a1ab315SDavid Howells 478a1ab315SDavid Howells #define __NR_setxattr 5 488a1ab315SDavid Howells __SYSCALL(__NR_setxattr, sys_setxattr) 498a1ab315SDavid Howells #define __NR_lsetxattr 6 508a1ab315SDavid Howells __SYSCALL(__NR_lsetxattr, sys_lsetxattr) 518a1ab315SDavid Howells #define __NR_fsetxattr 7 528a1ab315SDavid Howells __SYSCALL(__NR_fsetxattr, sys_fsetxattr) 538a1ab315SDavid Howells #define __NR_getxattr 8 548a1ab315SDavid Howells __SYSCALL(__NR_getxattr, sys_getxattr) 558a1ab315SDavid Howells #define __NR_lgetxattr 9 568a1ab315SDavid Howells __SYSCALL(__NR_lgetxattr, sys_lgetxattr) 578a1ab315SDavid Howells #define __NR_fgetxattr 10 588a1ab315SDavid Howells __SYSCALL(__NR_fgetxattr, sys_fgetxattr) 598a1ab315SDavid Howells #define __NR_listxattr 11 608a1ab315SDavid Howells __SYSCALL(__NR_listxattr, sys_listxattr) 618a1ab315SDavid Howells #define __NR_llistxattr 12 628a1ab315SDavid Howells __SYSCALL(__NR_llistxattr, sys_llistxattr) 638a1ab315SDavid Howells #define __NR_flistxattr 13 648a1ab315SDavid Howells __SYSCALL(__NR_flistxattr, sys_flistxattr) 658a1ab315SDavid Howells #define __NR_removexattr 14 668a1ab315SDavid Howells __SYSCALL(__NR_removexattr, sys_removexattr) 678a1ab315SDavid Howells #define __NR_lremovexattr 15 688a1ab315SDavid Howells __SYSCALL(__NR_lremovexattr, sys_lremovexattr) 698a1ab315SDavid Howells #define __NR_fremovexattr 16 708a1ab315SDavid Howells __SYSCALL(__NR_fremovexattr, sys_fremovexattr) 718a1ab315SDavid Howells #define __NR_getcwd 17 728a1ab315SDavid Howells __SYSCALL(__NR_getcwd, sys_getcwd) 738a1ab315SDavid Howells #define __NR_lookup_dcookie 18 74ccab211aSSohil Mehta __SYSCALL(__NR_lookup_dcookie, sys_ni_syscall) 758a1ab315SDavid Howells #define __NR_eventfd2 19 768a1ab315SDavid Howells __SYSCALL(__NR_eventfd2, sys_eventfd2) 778a1ab315SDavid Howells #define __NR_epoll_create1 20 788a1ab315SDavid Howells __SYSCALL(__NR_epoll_create1, sys_epoll_create1) 798a1ab315SDavid Howells #define __NR_epoll_ctl 21 808a1ab315SDavid Howells __SYSCALL(__NR_epoll_ctl, sys_epoll_ctl) 818a1ab315SDavid Howells #define __NR_epoll_pwait 22 828a1ab315SDavid Howells __SC_COMP(__NR_epoll_pwait, sys_epoll_pwait, compat_sys_epoll_pwait) 838a1ab315SDavid Howells #define __NR_dup 23 848a1ab315SDavid Howells __SYSCALL(__NR_dup, sys_dup) 858a1ab315SDavid Howells #define __NR_dup3 24 868a1ab315SDavid Howells __SYSCALL(__NR_dup3, sys_dup3) 878a1ab315SDavid Howells #define __NR3264_fcntl 25 888a1ab315SDavid Howells __SC_COMP_3264(__NR3264_fcntl, sys_fcntl64, sys_fcntl, compat_sys_fcntl64) 898a1ab315SDavid Howells #define __NR_inotify_init1 26 908a1ab315SDavid Howells __SYSCALL(__NR_inotify_init1, sys_inotify_init1) 918a1ab315SDavid Howells #define __NR_inotify_add_watch 27 928a1ab315SDavid Howells __SYSCALL(__NR_inotify_add_watch, sys_inotify_add_watch) 938a1ab315SDavid Howells #define __NR_inotify_rm_watch 28 948a1ab315SDavid Howells __SYSCALL(__NR_inotify_rm_watch, sys_inotify_rm_watch) 958a1ab315SDavid Howells #define __NR_ioctl 29 968a1ab315SDavid Howells __SC_COMP(__NR_ioctl, sys_ioctl, compat_sys_ioctl) 978a1ab315SDavid Howells #define __NR_ioprio_set 30 988a1ab315SDavid Howells __SYSCALL(__NR_ioprio_set, sys_ioprio_set) 998a1ab315SDavid Howells #define __NR_ioprio_get 31 1008a1ab315SDavid Howells __SYSCALL(__NR_ioprio_get, sys_ioprio_get) 1018a1ab315SDavid Howells #define __NR_flock 32 1028a1ab315SDavid Howells __SYSCALL(__NR_flock, sys_flock) 1038a1ab315SDavid Howells #define __NR_mknodat 33 1048a1ab315SDavid Howells __SYSCALL(__NR_mknodat, sys_mknodat) 1058a1ab315SDavid Howells #define __NR_mkdirat 34 1068a1ab315SDavid Howells __SYSCALL(__NR_mkdirat, sys_mkdirat) 1078a1ab315SDavid Howells #define __NR_unlinkat 35 1088a1ab315SDavid Howells __SYSCALL(__NR_unlinkat, sys_unlinkat) 1098a1ab315SDavid Howells #define __NR_symlinkat 36 1108a1ab315SDavid Howells __SYSCALL(__NR_symlinkat, sys_symlinkat) 1118a1ab315SDavid Howells #define __NR_linkat 37 1128a1ab315SDavid Howells __SYSCALL(__NR_linkat, sys_linkat) 1134dd595c3SSohil Mehta 114b0da6d44SJames Hogan #ifdef __ARCH_WANT_RENAMEAT 115b0da6d44SJames Hogan /* renameat is superseded with flags by renameat2 */ 1168a1ab315SDavid Howells #define __NR_renameat 38 1178a1ab315SDavid Howells __SYSCALL(__NR_renameat, sys_renameat) 118b0da6d44SJames Hogan #endif /* __ARCH_WANT_RENAMEAT */ 1198a1ab315SDavid Howells 1208a1ab315SDavid Howells #define __NR_umount2 39 1218a1ab315SDavid Howells __SYSCALL(__NR_umount2, sys_umount) 1228a1ab315SDavid Howells #define __NR_mount 40 123028abd92SChristoph Hellwig __SYSCALL(__NR_mount, sys_mount) 1248a1ab315SDavid Howells #define __NR_pivot_root 41 1258a1ab315SDavid Howells __SYSCALL(__NR_pivot_root, sys_pivot_root) 1268a1ab315SDavid Howells #define __NR_nfsservctl 42 1278a1ab315SDavid Howells __SYSCALL(__NR_nfsservctl, sys_ni_syscall) 1288a1ab315SDavid Howells #define __NR3264_statfs 43 1298a1ab315SDavid Howells __SC_COMP_3264(__NR3264_statfs, sys_statfs64, sys_statfs, \ 1308a1ab315SDavid Howells compat_sys_statfs64) 1318a1ab315SDavid Howells #define __NR3264_fstatfs 44 1328a1ab315SDavid Howells __SC_COMP_3264(__NR3264_fstatfs, sys_fstatfs64, sys_fstatfs, \ 1338a1ab315SDavid Howells compat_sys_fstatfs64) 1348a1ab315SDavid Howells #define __NR3264_truncate 45 1358a1ab315SDavid Howells __SC_COMP_3264(__NR3264_truncate, sys_truncate64, sys_truncate, \ 1368a1ab315SDavid Howells compat_sys_truncate64) 1378a1ab315SDavid Howells #define __NR3264_ftruncate 46 1388a1ab315SDavid Howells __SC_COMP_3264(__NR3264_ftruncate, sys_ftruncate64, sys_ftruncate, \ 1398a1ab315SDavid Howells compat_sys_ftruncate64) 1408a1ab315SDavid Howells #define __NR_fallocate 47 1418a1ab315SDavid Howells __SC_COMP(__NR_fallocate, sys_fallocate, compat_sys_fallocate) 1428a1ab315SDavid Howells #define __NR_faccessat 48 1438a1ab315SDavid Howells __SYSCALL(__NR_faccessat, sys_faccessat) 1448a1ab315SDavid Howells #define __NR_chdir 49 1458a1ab315SDavid Howells __SYSCALL(__NR_chdir, sys_chdir) 1468a1ab315SDavid Howells #define __NR_fchdir 50 1478a1ab315SDavid Howells __SYSCALL(__NR_fchdir, sys_fchdir) 1488a1ab315SDavid Howells #define __NR_chroot 51 1498a1ab315SDavid Howells __SYSCALL(__NR_chroot, sys_chroot) 1508a1ab315SDavid Howells #define __NR_fchmod 52 1518a1ab315SDavid Howells __SYSCALL(__NR_fchmod, sys_fchmod) 1528a1ab315SDavid Howells #define __NR_fchmodat 53 1538a1ab315SDavid Howells __SYSCALL(__NR_fchmodat, sys_fchmodat) 1548a1ab315SDavid Howells #define __NR_fchownat 54 1558a1ab315SDavid Howells __SYSCALL(__NR_fchownat, sys_fchownat) 1568a1ab315SDavid Howells #define __NR_fchown 55 1578a1ab315SDavid Howells __SYSCALL(__NR_fchown, sys_fchown) 1588a1ab315SDavid Howells #define __NR_openat 56 1590d0216c0SYury Norov __SYSCALL(__NR_openat, sys_openat) 1608a1ab315SDavid Howells #define __NR_close 57 1618a1ab315SDavid Howells __SYSCALL(__NR_close, sys_close) 1628a1ab315SDavid Howells #define __NR_vhangup 58 1638a1ab315SDavid Howells __SYSCALL(__NR_vhangup, sys_vhangup) 1648a1ab315SDavid Howells #define __NR_pipe2 59 1658a1ab315SDavid Howells __SYSCALL(__NR_pipe2, sys_pipe2) 1668a1ab315SDavid Howells #define __NR_quotactl 60 1678a1ab315SDavid Howells __SYSCALL(__NR_quotactl, sys_quotactl) 1688a1ab315SDavid Howells #define __NR_getdents64 61 1692611dc19SAl Viro __SYSCALL(__NR_getdents64, sys_getdents64) 1708a1ab315SDavid Howells #define __NR3264_lseek 62 1718a1ab315SDavid Howells __SC_3264(__NR3264_lseek, sys_llseek, sys_lseek) 1728a1ab315SDavid Howells #define __NR_read 63 1738a1ab315SDavid Howells __SYSCALL(__NR_read, sys_read) 1748a1ab315SDavid Howells #define __NR_write 64 1758a1ab315SDavid Howells __SYSCALL(__NR_write, sys_write) 1768a1ab315SDavid Howells #define __NR_readv 65 1775f764d62SChristoph Hellwig __SC_COMP(__NR_readv, sys_readv, sys_readv) 1788a1ab315SDavid Howells #define __NR_writev 66 1795f764d62SChristoph Hellwig __SC_COMP(__NR_writev, sys_writev, sys_writev) 1808a1ab315SDavid Howells #define __NR_pread64 67 1818a1ab315SDavid Howells __SC_COMP(__NR_pread64, sys_pread64, compat_sys_pread64) 1828a1ab315SDavid Howells #define __NR_pwrite64 68 1838a1ab315SDavid Howells __SC_COMP(__NR_pwrite64, sys_pwrite64, compat_sys_pwrite64) 1848a1ab315SDavid Howells #define __NR_preadv 69 1858a1ab315SDavid Howells __SC_COMP(__NR_preadv, sys_preadv, compat_sys_preadv) 1868a1ab315SDavid Howells #define __NR_pwritev 70 1878a1ab315SDavid Howells __SC_COMP(__NR_pwritev, sys_pwritev, compat_sys_pwritev) 1888a1ab315SDavid Howells #define __NR3264_sendfile 71 1898a1ab315SDavid Howells __SYSCALL(__NR3264_sendfile, sys_sendfile64) 1908a1ab315SDavid Howells 191c8ce48f0SArnd Bergmann #if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32 1928a1ab315SDavid Howells #define __NR_pselect6 72 19300bf25d6SArnd Bergmann __SC_COMP_3264(__NR_pselect6, sys_pselect6_time32, sys_pselect6, compat_sys_pselect6_time32) 1948a1ab315SDavid Howells #define __NR_ppoll 73 19500bf25d6SArnd Bergmann __SC_COMP_3264(__NR_ppoll, sys_ppoll_time32, sys_ppoll, compat_sys_ppoll_time32) 196c8ce48f0SArnd Bergmann #endif 1978a1ab315SDavid Howells 1988a1ab315SDavid Howells #define __NR_signalfd4 74 1998a1ab315SDavid Howells __SC_COMP(__NR_signalfd4, sys_signalfd4, compat_sys_signalfd4) 2008a1ab315SDavid Howells #define __NR_vmsplice 75 201598b3cecSChristoph Hellwig __SYSCALL(__NR_vmsplice, sys_vmsplice) 2028a1ab315SDavid Howells #define __NR_splice 76 2038a1ab315SDavid Howells __SYSCALL(__NR_splice, sys_splice) 2048a1ab315SDavid Howells #define __NR_tee 77 2058a1ab315SDavid Howells __SYSCALL(__NR_tee, sys_tee) 2068a1ab315SDavid Howells #define __NR_readlinkat 78 2078a1ab315SDavid Howells __SYSCALL(__NR_readlinkat, sys_readlinkat) 2084dd595c3SSohil Mehta 209bf4b6a7dSArnd Bergmann #if defined(__ARCH_WANT_NEW_STAT) || defined(__ARCH_WANT_STAT64) 2108a1ab315SDavid Howells #define __NR3264_fstatat 79 2118a1ab315SDavid Howells __SC_3264(__NR3264_fstatat, sys_fstatat64, sys_newfstatat) 2128a1ab315SDavid Howells #define __NR3264_fstat 80 2138a1ab315SDavid Howells __SC_3264(__NR3264_fstat, sys_fstat64, sys_newfstat) 214bf4b6a7dSArnd Bergmann #endif 2158a1ab315SDavid Howells 2168a1ab315SDavid Howells #define __NR_sync 81 2178a1ab315SDavid Howells __SYSCALL(__NR_sync, sys_sync) 2188a1ab315SDavid Howells #define __NR_fsync 82 2198a1ab315SDavid Howells __SYSCALL(__NR_fsync, sys_fsync) 2208a1ab315SDavid Howells #define __NR_fdatasync 83 2218a1ab315SDavid Howells __SYSCALL(__NR_fdatasync, sys_fdatasync) 2224dd595c3SSohil Mehta 2238a1ab315SDavid Howells #ifdef __ARCH_WANT_SYNC_FILE_RANGE2 2248a1ab315SDavid Howells #define __NR_sync_file_range2 84 2258a1ab315SDavid Howells __SC_COMP(__NR_sync_file_range2, sys_sync_file_range2, \ 2268a1ab315SDavid Howells compat_sys_sync_file_range2) 2278a1ab315SDavid Howells #else 2288a1ab315SDavid Howells #define __NR_sync_file_range 84 2298a1ab315SDavid Howells __SC_COMP(__NR_sync_file_range, sys_sync_file_range, \ 2308a1ab315SDavid Howells compat_sys_sync_file_range) 2318a1ab315SDavid Howells #endif 2328a1ab315SDavid Howells 2338a1ab315SDavid Howells #define __NR_timerfd_create 85 2348a1ab315SDavid Howells __SYSCALL(__NR_timerfd_create, sys_timerfd_create) 2354dd595c3SSohil Mehta 236c8ce48f0SArnd Bergmann #if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32 2378a1ab315SDavid Howells #define __NR_timerfd_settime 86 23800bf25d6SArnd Bergmann __SC_3264(__NR_timerfd_settime, sys_timerfd_settime32, \ 23900bf25d6SArnd Bergmann sys_timerfd_settime) 2408a1ab315SDavid Howells #define __NR_timerfd_gettime 87 24100bf25d6SArnd Bergmann __SC_3264(__NR_timerfd_gettime, sys_timerfd_gettime32, \ 24200bf25d6SArnd Bergmann sys_timerfd_gettime) 243c8ce48f0SArnd Bergmann #endif 2448a1ab315SDavid Howells 245c8ce48f0SArnd Bergmann #if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32 2468a1ab315SDavid Howells #define __NR_utimensat 88 24700bf25d6SArnd Bergmann __SC_3264(__NR_utimensat, sys_utimensat_time32, sys_utimensat) 248c8ce48f0SArnd Bergmann #endif 2498a1ab315SDavid Howells 2508a1ab315SDavid Howells #define __NR_acct 89 2518a1ab315SDavid Howells __SYSCALL(__NR_acct, sys_acct) 2528a1ab315SDavid Howells #define __NR_capget 90 2538a1ab315SDavid Howells __SYSCALL(__NR_capget, sys_capget) 2548a1ab315SDavid Howells #define __NR_capset 91 2558a1ab315SDavid Howells __SYSCALL(__NR_capset, sys_capset) 2568a1ab315SDavid Howells #define __NR_personality 92 2578a1ab315SDavid Howells __SYSCALL(__NR_personality, sys_personality) 2588a1ab315SDavid Howells #define __NR_exit 93 2598a1ab315SDavid Howells __SYSCALL(__NR_exit, sys_exit) 2608a1ab315SDavid Howells #define __NR_exit_group 94 2618a1ab315SDavid Howells __SYSCALL(__NR_exit_group, sys_exit_group) 2628a1ab315SDavid Howells #define __NR_waitid 95 2638a1ab315SDavid Howells __SC_COMP(__NR_waitid, sys_waitid, compat_sys_waitid) 2648a1ab315SDavid Howells #define __NR_set_tid_address 96 2658a1ab315SDavid Howells __SYSCALL(__NR_set_tid_address, sys_set_tid_address) 2668a1ab315SDavid Howells #define __NR_unshare 97 2678a1ab315SDavid Howells __SYSCALL(__NR_unshare, sys_unshare) 2688a1ab315SDavid Howells 269c8ce48f0SArnd Bergmann #if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32 2708a1ab315SDavid Howells #define __NR_futex 98 27100bf25d6SArnd Bergmann __SC_3264(__NR_futex, sys_futex_time32, sys_futex) 272c8ce48f0SArnd Bergmann #endif 2734dd595c3SSohil Mehta 2748a1ab315SDavid Howells #define __NR_set_robust_list 99 2758a1ab315SDavid Howells __SC_COMP(__NR_set_robust_list, sys_set_robust_list, \ 2768a1ab315SDavid Howells compat_sys_set_robust_list) 2778a1ab315SDavid Howells #define __NR_get_robust_list 100 2788a1ab315SDavid Howells __SC_COMP(__NR_get_robust_list, sys_get_robust_list, \ 2798a1ab315SDavid Howells compat_sys_get_robust_list) 2808a1ab315SDavid Howells 281c8ce48f0SArnd Bergmann #if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32 2828a1ab315SDavid Howells #define __NR_nanosleep 101 28300bf25d6SArnd Bergmann __SC_3264(__NR_nanosleep, sys_nanosleep_time32, sys_nanosleep) 284c8ce48f0SArnd Bergmann #endif 2858a1ab315SDavid Howells 2868a1ab315SDavid Howells #define __NR_getitimer 102 2878a1ab315SDavid Howells __SC_COMP(__NR_getitimer, sys_getitimer, compat_sys_getitimer) 2888a1ab315SDavid Howells #define __NR_setitimer 103 2898a1ab315SDavid Howells __SC_COMP(__NR_setitimer, sys_setitimer, compat_sys_setitimer) 2908a1ab315SDavid Howells #define __NR_kexec_load 104 2918a1ab315SDavid Howells __SC_COMP(__NR_kexec_load, sys_kexec_load, compat_sys_kexec_load) 2928a1ab315SDavid Howells #define __NR_init_module 105 2938a1ab315SDavid Howells __SYSCALL(__NR_init_module, sys_init_module) 2948a1ab315SDavid Howells #define __NR_delete_module 106 2958a1ab315SDavid Howells __SYSCALL(__NR_delete_module, sys_delete_module) 2968a1ab315SDavid Howells #define __NR_timer_create 107 2978a1ab315SDavid Howells __SC_COMP(__NR_timer_create, sys_timer_create, compat_sys_timer_create) 2984dd595c3SSohil Mehta 299c8ce48f0SArnd Bergmann #if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32 3008a1ab315SDavid Howells #define __NR_timer_gettime 108 30100bf25d6SArnd Bergmann __SC_3264(__NR_timer_gettime, sys_timer_gettime32, sys_timer_gettime) 302c8ce48f0SArnd Bergmann #endif 3034dd595c3SSohil Mehta 3048a1ab315SDavid Howells #define __NR_timer_getoverrun 109 3058a1ab315SDavid Howells __SYSCALL(__NR_timer_getoverrun, sys_timer_getoverrun) 3064dd595c3SSohil Mehta 307c8ce48f0SArnd Bergmann #if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32 3088a1ab315SDavid Howells #define __NR_timer_settime 110 30900bf25d6SArnd Bergmann __SC_3264(__NR_timer_settime, sys_timer_settime32, sys_timer_settime) 310c8ce48f0SArnd Bergmann #endif 3114dd595c3SSohil Mehta 3128a1ab315SDavid Howells #define __NR_timer_delete 111 3138a1ab315SDavid Howells __SYSCALL(__NR_timer_delete, sys_timer_delete) 3144dd595c3SSohil Mehta 315c8ce48f0SArnd Bergmann #if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32 3168a1ab315SDavid Howells #define __NR_clock_settime 112 31700bf25d6SArnd Bergmann __SC_3264(__NR_clock_settime, sys_clock_settime32, sys_clock_settime) 3188a1ab315SDavid Howells #define __NR_clock_gettime 113 31900bf25d6SArnd Bergmann __SC_3264(__NR_clock_gettime, sys_clock_gettime32, sys_clock_gettime) 3208a1ab315SDavid Howells #define __NR_clock_getres 114 32100bf25d6SArnd Bergmann __SC_3264(__NR_clock_getres, sys_clock_getres_time32, sys_clock_getres) 3228a1ab315SDavid Howells #define __NR_clock_nanosleep 115 32300bf25d6SArnd Bergmann __SC_3264(__NR_clock_nanosleep, sys_clock_nanosleep_time32, \ 32400bf25d6SArnd Bergmann sys_clock_nanosleep) 325c8ce48f0SArnd Bergmann #endif 3268a1ab315SDavid Howells 3278a1ab315SDavid Howells #define __NR_syslog 116 3288a1ab315SDavid Howells __SYSCALL(__NR_syslog, sys_syslog) 3298a1ab315SDavid Howells #define __NR_ptrace 117 330c86d2cadSGuo Ren __SC_COMP(__NR_ptrace, sys_ptrace, compat_sys_ptrace) 3318a1ab315SDavid Howells #define __NR_sched_setparam 118 3328a1ab315SDavid Howells __SYSCALL(__NR_sched_setparam, sys_sched_setparam) 3338a1ab315SDavid Howells #define __NR_sched_setscheduler 119 3348a1ab315SDavid Howells __SYSCALL(__NR_sched_setscheduler, sys_sched_setscheduler) 3358a1ab315SDavid Howells #define __NR_sched_getscheduler 120 3368a1ab315SDavid Howells __SYSCALL(__NR_sched_getscheduler, sys_sched_getscheduler) 3378a1ab315SDavid Howells #define __NR_sched_getparam 121 3388a1ab315SDavid Howells __SYSCALL(__NR_sched_getparam, sys_sched_getparam) 3398a1ab315SDavid Howells #define __NR_sched_setaffinity 122 3408a1ab315SDavid Howells __SC_COMP(__NR_sched_setaffinity, sys_sched_setaffinity, \ 3418a1ab315SDavid Howells compat_sys_sched_setaffinity) 3428a1ab315SDavid Howells #define __NR_sched_getaffinity 123 3438a1ab315SDavid Howells __SC_COMP(__NR_sched_getaffinity, sys_sched_getaffinity, \ 3448a1ab315SDavid Howells compat_sys_sched_getaffinity) 3458a1ab315SDavid Howells #define __NR_sched_yield 124 3468a1ab315SDavid Howells __SYSCALL(__NR_sched_yield, sys_sched_yield) 3478a1ab315SDavid Howells #define __NR_sched_get_priority_max 125 3488a1ab315SDavid Howells __SYSCALL(__NR_sched_get_priority_max, sys_sched_get_priority_max) 3498a1ab315SDavid Howells #define __NR_sched_get_priority_min 126 3508a1ab315SDavid Howells __SYSCALL(__NR_sched_get_priority_min, sys_sched_get_priority_min) 3514dd595c3SSohil Mehta 352c8ce48f0SArnd Bergmann #if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32 3538a1ab315SDavid Howells #define __NR_sched_rr_get_interval 127 35400bf25d6SArnd Bergmann __SC_3264(__NR_sched_rr_get_interval, sys_sched_rr_get_interval_time32, \ 35500bf25d6SArnd Bergmann sys_sched_rr_get_interval) 356c8ce48f0SArnd Bergmann #endif 3578a1ab315SDavid Howells 3588a1ab315SDavid Howells #define __NR_restart_syscall 128 3598a1ab315SDavid Howells __SYSCALL(__NR_restart_syscall, sys_restart_syscall) 3608a1ab315SDavid Howells #define __NR_kill 129 3618a1ab315SDavid Howells __SYSCALL(__NR_kill, sys_kill) 3628a1ab315SDavid Howells #define __NR_tkill 130 3638a1ab315SDavid Howells __SYSCALL(__NR_tkill, sys_tkill) 3648a1ab315SDavid Howells #define __NR_tgkill 131 3658a1ab315SDavid Howells __SYSCALL(__NR_tgkill, sys_tgkill) 3668a1ab315SDavid Howells #define __NR_sigaltstack 132 3678a1ab315SDavid Howells __SC_COMP(__NR_sigaltstack, sys_sigaltstack, compat_sys_sigaltstack) 3688a1ab315SDavid Howells #define __NR_rt_sigsuspend 133 3698a1ab315SDavid Howells __SC_COMP(__NR_rt_sigsuspend, sys_rt_sigsuspend, compat_sys_rt_sigsuspend) 3708a1ab315SDavid Howells #define __NR_rt_sigaction 134 3718a1ab315SDavid Howells __SC_COMP(__NR_rt_sigaction, sys_rt_sigaction, compat_sys_rt_sigaction) 3728a1ab315SDavid Howells #define __NR_rt_sigprocmask 135 37303e27595SAl Viro __SC_COMP(__NR_rt_sigprocmask, sys_rt_sigprocmask, compat_sys_rt_sigprocmask) 3748a1ab315SDavid Howells #define __NR_rt_sigpending 136 37503e27595SAl Viro __SC_COMP(__NR_rt_sigpending, sys_rt_sigpending, compat_sys_rt_sigpending) 3764dd595c3SSohil Mehta 377c8ce48f0SArnd Bergmann #if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32 3788a1ab315SDavid Howells #define __NR_rt_sigtimedwait 137 37900bf25d6SArnd Bergmann __SC_COMP_3264(__NR_rt_sigtimedwait, sys_rt_sigtimedwait_time32, \ 38000bf25d6SArnd Bergmann sys_rt_sigtimedwait, compat_sys_rt_sigtimedwait_time32) 381c8ce48f0SArnd Bergmann #endif 3824dd595c3SSohil Mehta 3838a1ab315SDavid Howells #define __NR_rt_sigqueueinfo 138 3848a1ab315SDavid Howells __SC_COMP(__NR_rt_sigqueueinfo, sys_rt_sigqueueinfo, \ 3858a1ab315SDavid Howells compat_sys_rt_sigqueueinfo) 3868a1ab315SDavid Howells #define __NR_rt_sigreturn 139 3878a1ab315SDavid Howells __SC_COMP(__NR_rt_sigreturn, sys_rt_sigreturn, compat_sys_rt_sigreturn) 3888a1ab315SDavid Howells #define __NR_setpriority 140 3898a1ab315SDavid Howells __SYSCALL(__NR_setpriority, sys_setpriority) 3908a1ab315SDavid Howells #define __NR_getpriority 141 3918a1ab315SDavid Howells __SYSCALL(__NR_getpriority, sys_getpriority) 3928a1ab315SDavid Howells #define __NR_reboot 142 3938a1ab315SDavid Howells __SYSCALL(__NR_reboot, sys_reboot) 3948a1ab315SDavid Howells #define __NR_setregid 143 3958a1ab315SDavid Howells __SYSCALL(__NR_setregid, sys_setregid) 3968a1ab315SDavid Howells #define __NR_setgid 144 3978a1ab315SDavid Howells __SYSCALL(__NR_setgid, sys_setgid) 3988a1ab315SDavid Howells #define __NR_setreuid 145 3998a1ab315SDavid Howells __SYSCALL(__NR_setreuid, sys_setreuid) 4008a1ab315SDavid Howells #define __NR_setuid 146 4018a1ab315SDavid Howells __SYSCALL(__NR_setuid, sys_setuid) 4028a1ab315SDavid Howells #define __NR_setresuid 147 4038a1ab315SDavid Howells __SYSCALL(__NR_setresuid, sys_setresuid) 4048a1ab315SDavid Howells #define __NR_getresuid 148 4058a1ab315SDavid Howells __SYSCALL(__NR_getresuid, sys_getresuid) 4068a1ab315SDavid Howells #define __NR_setresgid 149 4078a1ab315SDavid Howells __SYSCALL(__NR_setresgid, sys_setresgid) 4088a1ab315SDavid Howells #define __NR_getresgid 150 4098a1ab315SDavid Howells __SYSCALL(__NR_getresgid, sys_getresgid) 4108a1ab315SDavid Howells #define __NR_setfsuid 151 4118a1ab315SDavid Howells __SYSCALL(__NR_setfsuid, sys_setfsuid) 4128a1ab315SDavid Howells #define __NR_setfsgid 152 4138a1ab315SDavid Howells __SYSCALL(__NR_setfsgid, sys_setfsgid) 4148a1ab315SDavid Howells #define __NR_times 153 4158a1ab315SDavid Howells __SC_COMP(__NR_times, sys_times, compat_sys_times) 4168a1ab315SDavid Howells #define __NR_setpgid 154 4178a1ab315SDavid Howells __SYSCALL(__NR_setpgid, sys_setpgid) 4188a1ab315SDavid Howells #define __NR_getpgid 155 4198a1ab315SDavid Howells __SYSCALL(__NR_getpgid, sys_getpgid) 4208a1ab315SDavid Howells #define __NR_getsid 156 4218a1ab315SDavid Howells __SYSCALL(__NR_getsid, sys_getsid) 4228a1ab315SDavid Howells #define __NR_setsid 157 4238a1ab315SDavid Howells __SYSCALL(__NR_setsid, sys_setsid) 4248a1ab315SDavid Howells #define __NR_getgroups 158 4258a1ab315SDavid Howells __SYSCALL(__NR_getgroups, sys_getgroups) 4268a1ab315SDavid Howells #define __NR_setgroups 159 4278a1ab315SDavid Howells __SYSCALL(__NR_setgroups, sys_setgroups) 4288a1ab315SDavid Howells #define __NR_uname 160 4298a1ab315SDavid Howells __SYSCALL(__NR_uname, sys_newuname) 4308a1ab315SDavid Howells #define __NR_sethostname 161 4318a1ab315SDavid Howells __SYSCALL(__NR_sethostname, sys_sethostname) 4328a1ab315SDavid Howells #define __NR_setdomainname 162 4338a1ab315SDavid Howells __SYSCALL(__NR_setdomainname, sys_setdomainname) 43480d7da1cSYury Norov 43580d7da1cSYury Norov #ifdef __ARCH_WANT_SET_GET_RLIMIT 43680d7da1cSYury Norov /* getrlimit and setrlimit are superseded with prlimit64 */ 4378a1ab315SDavid Howells #define __NR_getrlimit 163 4388a1ab315SDavid Howells __SC_COMP(__NR_getrlimit, sys_getrlimit, compat_sys_getrlimit) 4398a1ab315SDavid Howells #define __NR_setrlimit 164 4408a1ab315SDavid Howells __SC_COMP(__NR_setrlimit, sys_setrlimit, compat_sys_setrlimit) 44180d7da1cSYury Norov #endif 44280d7da1cSYury Norov 4438a1ab315SDavid Howells #define __NR_getrusage 165 4448a1ab315SDavid Howells __SC_COMP(__NR_getrusage, sys_getrusage, compat_sys_getrusage) 4458a1ab315SDavid Howells #define __NR_umask 166 4468a1ab315SDavid Howells __SYSCALL(__NR_umask, sys_umask) 4478a1ab315SDavid Howells #define __NR_prctl 167 4488a1ab315SDavid Howells __SYSCALL(__NR_prctl, sys_prctl) 4498a1ab315SDavid Howells #define __NR_getcpu 168 4508a1ab315SDavid Howells __SYSCALL(__NR_getcpu, sys_getcpu) 4518a1ab315SDavid Howells 452c8ce48f0SArnd Bergmann #if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32 4538a1ab315SDavid Howells #define __NR_gettimeofday 169 4548a1ab315SDavid Howells __SC_COMP(__NR_gettimeofday, sys_gettimeofday, compat_sys_gettimeofday) 4558a1ab315SDavid Howells #define __NR_settimeofday 170 4568a1ab315SDavid Howells __SC_COMP(__NR_settimeofday, sys_settimeofday, compat_sys_settimeofday) 4578a1ab315SDavid Howells #define __NR_adjtimex 171 45800bf25d6SArnd Bergmann __SC_3264(__NR_adjtimex, sys_adjtimex_time32, sys_adjtimex) 459c8ce48f0SArnd Bergmann #endif 4608a1ab315SDavid Howells 4618a1ab315SDavid Howells #define __NR_getpid 172 4628a1ab315SDavid Howells __SYSCALL(__NR_getpid, sys_getpid) 4638a1ab315SDavid Howells #define __NR_getppid 173 4648a1ab315SDavid Howells __SYSCALL(__NR_getppid, sys_getppid) 4658a1ab315SDavid Howells #define __NR_getuid 174 4668a1ab315SDavid Howells __SYSCALL(__NR_getuid, sys_getuid) 4678a1ab315SDavid Howells #define __NR_geteuid 175 4688a1ab315SDavid Howells __SYSCALL(__NR_geteuid, sys_geteuid) 4698a1ab315SDavid Howells #define __NR_getgid 176 4708a1ab315SDavid Howells __SYSCALL(__NR_getgid, sys_getgid) 4718a1ab315SDavid Howells #define __NR_getegid 177 4728a1ab315SDavid Howells __SYSCALL(__NR_getegid, sys_getegid) 4738a1ab315SDavid Howells #define __NR_gettid 178 4748a1ab315SDavid Howells __SYSCALL(__NR_gettid, sys_gettid) 4758a1ab315SDavid Howells #define __NR_sysinfo 179 4768a1ab315SDavid Howells __SC_COMP(__NR_sysinfo, sys_sysinfo, compat_sys_sysinfo) 4778a1ab315SDavid Howells #define __NR_mq_open 180 4788a1ab315SDavid Howells __SC_COMP(__NR_mq_open, sys_mq_open, compat_sys_mq_open) 4798a1ab315SDavid Howells #define __NR_mq_unlink 181 4808a1ab315SDavid Howells __SYSCALL(__NR_mq_unlink, sys_mq_unlink) 4814dd595c3SSohil Mehta 482c8ce48f0SArnd Bergmann #if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32 4838a1ab315SDavid Howells #define __NR_mq_timedsend 182 48400bf25d6SArnd Bergmann __SC_3264(__NR_mq_timedsend, sys_mq_timedsend_time32, sys_mq_timedsend) 4858a1ab315SDavid Howells #define __NR_mq_timedreceive 183 48600bf25d6SArnd Bergmann __SC_3264(__NR_mq_timedreceive, sys_mq_timedreceive_time32, \ 48700bf25d6SArnd Bergmann sys_mq_timedreceive) 488c8ce48f0SArnd Bergmann #endif 4894dd595c3SSohil Mehta 4908a1ab315SDavid Howells #define __NR_mq_notify 184 4918a1ab315SDavid Howells __SC_COMP(__NR_mq_notify, sys_mq_notify, compat_sys_mq_notify) 4928a1ab315SDavid Howells #define __NR_mq_getsetattr 185 4938a1ab315SDavid Howells __SC_COMP(__NR_mq_getsetattr, sys_mq_getsetattr, compat_sys_mq_getsetattr) 4948a1ab315SDavid Howells #define __NR_msgget 186 4958a1ab315SDavid Howells __SYSCALL(__NR_msgget, sys_msgget) 4968a1ab315SDavid Howells #define __NR_msgctl 187 4978a1ab315SDavid Howells __SC_COMP(__NR_msgctl, sys_msgctl, compat_sys_msgctl) 4988a1ab315SDavid Howells #define __NR_msgrcv 188 4998a1ab315SDavid Howells __SC_COMP(__NR_msgrcv, sys_msgrcv, compat_sys_msgrcv) 5008a1ab315SDavid Howells #define __NR_msgsnd 189 5018a1ab315SDavid Howells __SC_COMP(__NR_msgsnd, sys_msgsnd, compat_sys_msgsnd) 5028a1ab315SDavid Howells #define __NR_semget 190 5038a1ab315SDavid Howells __SYSCALL(__NR_semget, sys_semget) 5048a1ab315SDavid Howells #define __NR_semctl 191 5058a1ab315SDavid Howells __SC_COMP(__NR_semctl, sys_semctl, compat_sys_semctl) 5064dd595c3SSohil Mehta 507c8ce48f0SArnd Bergmann #if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32 5088a1ab315SDavid Howells #define __NR_semtimedop 192 50978e05972SArnd Bergmann __SC_3264(__NR_semtimedop, sys_semtimedop_time32, sys_semtimedop) 510c8ce48f0SArnd Bergmann #endif 5114dd595c3SSohil Mehta 5128a1ab315SDavid Howells #define __NR_semop 193 5138a1ab315SDavid Howells __SYSCALL(__NR_semop, sys_semop) 5148a1ab315SDavid Howells #define __NR_shmget 194 5158a1ab315SDavid Howells __SYSCALL(__NR_shmget, sys_shmget) 5168a1ab315SDavid Howells #define __NR_shmctl 195 5178a1ab315SDavid Howells __SC_COMP(__NR_shmctl, sys_shmctl, compat_sys_shmctl) 5188a1ab315SDavid Howells #define __NR_shmat 196 5198a1ab315SDavid Howells __SC_COMP(__NR_shmat, sys_shmat, compat_sys_shmat) 5208a1ab315SDavid Howells #define __NR_shmdt 197 5218a1ab315SDavid Howells __SYSCALL(__NR_shmdt, sys_shmdt) 5228a1ab315SDavid Howells #define __NR_socket 198 5238a1ab315SDavid Howells __SYSCALL(__NR_socket, sys_socket) 5248a1ab315SDavid Howells #define __NR_socketpair 199 5258a1ab315SDavid Howells __SYSCALL(__NR_socketpair, sys_socketpair) 5268a1ab315SDavid Howells #define __NR_bind 200 5278a1ab315SDavid Howells __SYSCALL(__NR_bind, sys_bind) 5288a1ab315SDavid Howells #define __NR_listen 201 5298a1ab315SDavid Howells __SYSCALL(__NR_listen, sys_listen) 5308a1ab315SDavid Howells #define __NR_accept 202 5318a1ab315SDavid Howells __SYSCALL(__NR_accept, sys_accept) 5328a1ab315SDavid Howells #define __NR_connect 203 5338a1ab315SDavid Howells __SYSCALL(__NR_connect, sys_connect) 5348a1ab315SDavid Howells #define __NR_getsockname 204 5358a1ab315SDavid Howells __SYSCALL(__NR_getsockname, sys_getsockname) 5368a1ab315SDavid Howells #define __NR_getpeername 205 5378a1ab315SDavid Howells __SYSCALL(__NR_getpeername, sys_getpeername) 5388a1ab315SDavid Howells #define __NR_sendto 206 5398a1ab315SDavid Howells __SYSCALL(__NR_sendto, sys_sendto) 5408a1ab315SDavid Howells #define __NR_recvfrom 207 5418a1ab315SDavid Howells __SC_COMP(__NR_recvfrom, sys_recvfrom, compat_sys_recvfrom) 5428a1ab315SDavid Howells #define __NR_setsockopt 208 54355db9c0eSChristoph Hellwig __SC_COMP(__NR_setsockopt, sys_setsockopt, sys_setsockopt) 5448a1ab315SDavid Howells #define __NR_getsockopt 209 54555db9c0eSChristoph Hellwig __SC_COMP(__NR_getsockopt, sys_getsockopt, sys_getsockopt) 5468a1ab315SDavid Howells #define __NR_shutdown 210 5478a1ab315SDavid Howells __SYSCALL(__NR_shutdown, sys_shutdown) 5488a1ab315SDavid Howells #define __NR_sendmsg 211 5498a1ab315SDavid Howells __SC_COMP(__NR_sendmsg, sys_sendmsg, compat_sys_sendmsg) 5508a1ab315SDavid Howells #define __NR_recvmsg 212 5518a1ab315SDavid Howells __SC_COMP(__NR_recvmsg, sys_recvmsg, compat_sys_recvmsg) 5528a1ab315SDavid Howells #define __NR_readahead 213 5538a1ab315SDavid Howells __SC_COMP(__NR_readahead, sys_readahead, compat_sys_readahead) 5548a1ab315SDavid Howells #define __NR_brk 214 5558a1ab315SDavid Howells __SYSCALL(__NR_brk, sys_brk) 5568a1ab315SDavid Howells #define __NR_munmap 215 5578a1ab315SDavid Howells __SYSCALL(__NR_munmap, sys_munmap) 5588a1ab315SDavid Howells #define __NR_mremap 216 5598a1ab315SDavid Howells __SYSCALL(__NR_mremap, sys_mremap) 5608a1ab315SDavid Howells #define __NR_add_key 217 5618a1ab315SDavid Howells __SYSCALL(__NR_add_key, sys_add_key) 5628a1ab315SDavid Howells #define __NR_request_key 218 5638a1ab315SDavid Howells __SYSCALL(__NR_request_key, sys_request_key) 5648a1ab315SDavid Howells #define __NR_keyctl 219 5658a1ab315SDavid Howells __SC_COMP(__NR_keyctl, sys_keyctl, compat_sys_keyctl) 5668a1ab315SDavid Howells #define __NR_clone 220 5678a1ab315SDavid Howells __SYSCALL(__NR_clone, sys_clone) 5688a1ab315SDavid Howells #define __NR_execve 221 5698a1ab315SDavid Howells __SC_COMP(__NR_execve, sys_execve, compat_sys_execve) 5708a1ab315SDavid Howells #define __NR3264_mmap 222 5718a1ab315SDavid Howells __SC_3264(__NR3264_mmap, sys_mmap2, sys_mmap) 5728a1ab315SDavid Howells #define __NR3264_fadvise64 223 5738a1ab315SDavid Howells __SC_COMP(__NR3264_fadvise64, sys_fadvise64_64, compat_sys_fadvise64_64) 5748a1ab315SDavid Howells 5754dd595c3SSohil Mehta /* CONFIG_MMU only */ 5768a1ab315SDavid Howells #ifndef __ARCH_NOMMU 5778a1ab315SDavid Howells #define __NR_swapon 224 5788a1ab315SDavid Howells __SYSCALL(__NR_swapon, sys_swapon) 5798a1ab315SDavid Howells #define __NR_swapoff 225 5808a1ab315SDavid Howells __SYSCALL(__NR_swapoff, sys_swapoff) 5818a1ab315SDavid Howells #define __NR_mprotect 226 5828a1ab315SDavid Howells __SYSCALL(__NR_mprotect, sys_mprotect) 5838a1ab315SDavid Howells #define __NR_msync 227 5848a1ab315SDavid Howells __SYSCALL(__NR_msync, sys_msync) 5858a1ab315SDavid Howells #define __NR_mlock 228 5868a1ab315SDavid Howells __SYSCALL(__NR_mlock, sys_mlock) 5878a1ab315SDavid Howells #define __NR_munlock 229 5888a1ab315SDavid Howells __SYSCALL(__NR_munlock, sys_munlock) 5898a1ab315SDavid Howells #define __NR_mlockall 230 5908a1ab315SDavid Howells __SYSCALL(__NR_mlockall, sys_mlockall) 5918a1ab315SDavid Howells #define __NR_munlockall 231 5928a1ab315SDavid Howells __SYSCALL(__NR_munlockall, sys_munlockall) 5938a1ab315SDavid Howells #define __NR_mincore 232 5948a1ab315SDavid Howells __SYSCALL(__NR_mincore, sys_mincore) 5958a1ab315SDavid Howells #define __NR_madvise 233 5968a1ab315SDavid Howells __SYSCALL(__NR_madvise, sys_madvise) 5978a1ab315SDavid Howells #define __NR_remap_file_pages 234 5988a1ab315SDavid Howells __SYSCALL(__NR_remap_file_pages, sys_remap_file_pages) 5998a1ab315SDavid Howells #define __NR_mbind 235 60059ab844eSArnd Bergmann __SYSCALL(__NR_mbind, sys_mbind) 6018a1ab315SDavid Howells #define __NR_get_mempolicy 236 60259ab844eSArnd Bergmann __SYSCALL(__NR_get_mempolicy, sys_get_mempolicy) 6038a1ab315SDavid Howells #define __NR_set_mempolicy 237 60459ab844eSArnd Bergmann __SYSCALL(__NR_set_mempolicy, sys_set_mempolicy) 6058a1ab315SDavid Howells #define __NR_migrate_pages 238 60659ab844eSArnd Bergmann __SYSCALL(__NR_migrate_pages, sys_migrate_pages) 6078a1ab315SDavid Howells #define __NR_move_pages 239 60859ab844eSArnd Bergmann __SYSCALL(__NR_move_pages, sys_move_pages) 6098a1ab315SDavid Howells #endif 6108a1ab315SDavid Howells 6118a1ab315SDavid Howells #define __NR_rt_tgsigqueueinfo 240 6128a1ab315SDavid Howells __SC_COMP(__NR_rt_tgsigqueueinfo, sys_rt_tgsigqueueinfo, \ 6138a1ab315SDavid Howells compat_sys_rt_tgsigqueueinfo) 6148a1ab315SDavid Howells #define __NR_perf_event_open 241 6158a1ab315SDavid Howells __SYSCALL(__NR_perf_event_open, sys_perf_event_open) 6168a1ab315SDavid Howells #define __NR_accept4 242 6178a1ab315SDavid Howells __SYSCALL(__NR_accept4, sys_accept4) 6184dd595c3SSohil Mehta 619c8ce48f0SArnd Bergmann #if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32 6208a1ab315SDavid Howells #define __NR_recvmmsg 243 62100bf25d6SArnd Bergmann __SC_COMP_3264(__NR_recvmmsg, sys_recvmmsg_time32, sys_recvmmsg, compat_sys_recvmmsg_time32) 622c8ce48f0SArnd Bergmann #endif 6238a1ab315SDavid Howells 6248a1ab315SDavid Howells /* 6258a1ab315SDavid Howells * Architectures may provide up to 16 syscalls of their own 6268a1ab315SDavid Howells * starting with this value. 6278a1ab315SDavid Howells */ 6288a1ab315SDavid Howells #define __NR_arch_specific_syscall 244 6298a1ab315SDavid Howells 630c8ce48f0SArnd Bergmann #if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32 6318a1ab315SDavid Howells #define __NR_wait4 260 6328a1ab315SDavid Howells __SC_COMP(__NR_wait4, sys_wait4, compat_sys_wait4) 633c8ce48f0SArnd Bergmann #endif 6344dd595c3SSohil Mehta 6358a1ab315SDavid Howells #define __NR_prlimit64 261 6368a1ab315SDavid Howells __SYSCALL(__NR_prlimit64, sys_prlimit64) 6378a1ab315SDavid Howells #define __NR_fanotify_init 262 6388a1ab315SDavid Howells __SYSCALL(__NR_fanotify_init, sys_fanotify_init) 6398a1ab315SDavid Howells #define __NR_fanotify_mark 263 6408a1ab315SDavid Howells __SYSCALL(__NR_fanotify_mark, sys_fanotify_mark) 6418a1ab315SDavid Howells #define __NR_name_to_handle_at 264 6428a1ab315SDavid Howells __SYSCALL(__NR_name_to_handle_at, sys_name_to_handle_at) 6438a1ab315SDavid Howells #define __NR_open_by_handle_at 265 6440d0216c0SYury Norov __SYSCALL(__NR_open_by_handle_at, sys_open_by_handle_at) 6454dd595c3SSohil Mehta 646c8ce48f0SArnd Bergmann #if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32 6478a1ab315SDavid Howells #define __NR_clock_adjtime 266 64800bf25d6SArnd Bergmann __SC_3264(__NR_clock_adjtime, sys_clock_adjtime32, sys_clock_adjtime) 649c8ce48f0SArnd Bergmann #endif 6504dd595c3SSohil Mehta 6518a1ab315SDavid Howells #define __NR_syncfs 267 6528a1ab315SDavid Howells __SYSCALL(__NR_syncfs, sys_syncfs) 6538a1ab315SDavid Howells #define __NR_setns 268 6548a1ab315SDavid Howells __SYSCALL(__NR_setns, sys_setns) 6558a1ab315SDavid Howells #define __NR_sendmmsg 269 6568a1ab315SDavid Howells __SC_COMP(__NR_sendmmsg, sys_sendmmsg, compat_sys_sendmmsg) 6578a1ab315SDavid Howells #define __NR_process_vm_readv 270 658c3973b40SChristoph Hellwig __SYSCALL(__NR_process_vm_readv, sys_process_vm_readv) 6598a1ab315SDavid Howells #define __NR_process_vm_writev 271 660c3973b40SChristoph Hellwig __SYSCALL(__NR_process_vm_writev, sys_process_vm_writev) 6618a1ab315SDavid Howells #define __NR_kcmp 272 6628a1ab315SDavid Howells __SYSCALL(__NR_kcmp, sys_kcmp) 6631625cee5SKees Cook #define __NR_finit_module 273 6641625cee5SKees Cook __SYSCALL(__NR_finit_module, sys_finit_module) 665e6cfc029SJames Hogan #define __NR_sched_setattr 274 666e6cfc029SJames Hogan __SYSCALL(__NR_sched_setattr, sys_sched_setattr) 667e6cfc029SJames Hogan #define __NR_sched_getattr 275 668e6cfc029SJames Hogan __SYSCALL(__NR_sched_getattr, sys_sched_getattr) 66963ba6000SJames Hogan #define __NR_renameat2 276 67063ba6000SJames Hogan __SYSCALL(__NR_renameat2, sys_renameat2) 67148dc92b9SKees Cook #define __NR_seccomp 277 67248dc92b9SKees Cook __SYSCALL(__NR_seccomp, sys_seccomp) 673c6e9d6f3STheodore Ts'o #define __NR_getrandom 278 674c6e9d6f3STheodore Ts'o __SYSCALL(__NR_getrandom, sys_getrandom) 675503e6636SWill Deacon #define __NR_memfd_create 279 676503e6636SWill Deacon __SYSCALL(__NR_memfd_create, sys_memfd_create) 677749730ceSAlexei Starovoitov #define __NR_bpf 280 678749730ceSAlexei Starovoitov __SYSCALL(__NR_bpf, sys_bpf) 67951f39a1fSDavid Drysdale #define __NR_execveat 281 68051f39a1fSDavid Drysdale __SC_COMP(__NR_execveat, sys_execveat, compat_sys_execveat) 68109f72981SDr. David Alan Gilbert #define __NR_userfaultfd 282 68209f72981SDr. David Alan Gilbert __SYSCALL(__NR_userfaultfd, sys_userfaultfd) 68309f72981SDr. David Alan Gilbert #define __NR_membarrier 283 6845b25b13aSMathieu Desnoyers __SYSCALL(__NR_membarrier, sys_membarrier) 685a8ca5d0eSEric B Munson #define __NR_mlock2 284 686a8ca5d0eSEric B Munson __SYSCALL(__NR_mlock2, sys_mlock2) 68729732938SZach Brown #define __NR_copy_file_range 285 68829732938SZach Brown __SYSCALL(__NR_copy_file_range, sys_copy_file_range) 689987aedb5SAndre Przywara #define __NR_preadv2 286 6901f93e9f2SYury Norov __SC_COMP(__NR_preadv2, sys_preadv2, compat_sys_preadv2) 691987aedb5SAndre Przywara #define __NR_pwritev2 287 6921f93e9f2SYury Norov __SC_COMP(__NR_pwritev2, sys_pwritev2, compat_sys_pwritev2) 693a60f7b69SDave Hansen #define __NR_pkey_mprotect 288 694a60f7b69SDave Hansen __SYSCALL(__NR_pkey_mprotect, sys_pkey_mprotect) 695a60f7b69SDave Hansen #define __NR_pkey_alloc 289 696a60f7b69SDave Hansen __SYSCALL(__NR_pkey_alloc, sys_pkey_alloc) 697a60f7b69SDave Hansen #define __NR_pkey_free 290 698a60f7b69SDave Hansen __SYSCALL(__NR_pkey_free, sys_pkey_free) 699fdfe4a39SStafford Horne #define __NR_statx 291 700fdfe4a39SStafford Horne __SYSCALL(__NR_statx, sys_statx) 7014dd595c3SSohil Mehta 702c8ce48f0SArnd Bergmann #if defined(__ARCH_WANT_TIME32_SYSCALLS) || __BITS_PER_LONG != 32 7037a074e96SChristoph Hellwig #define __NR_io_pgetevents 292 70400bf25d6SArnd Bergmann __SC_COMP_3264(__NR_io_pgetevents, sys_io_pgetevents_time32, sys_io_pgetevents, compat_sys_io_pgetevents) 705c8ce48f0SArnd Bergmann #endif 7064dd595c3SSohil Mehta 707db7a2d18SWill Deacon #define __NR_rseq 293 708db7a2d18SWill Deacon __SYSCALL(__NR_rseq, sys_rseq) 7094e21565bSAKASHI Takahiro #define __NR_kexec_file_load 294 7104e21565bSAKASHI Takahiro __SYSCALL(__NR_kexec_file_load, sys_kexec_file_load) 7114dd595c3SSohil Mehta 7120d6040d4SArnd Bergmann /* 295 through 402 are unassigned to sync up with generic numbers, don't use */ 7134dd595c3SSohil Mehta 714c86d2cadSGuo Ren #if defined(__SYSCALL_COMPAT) || __BITS_PER_LONG == 32 71548166e6eSArnd Bergmann #define __NR_clock_gettime64 403 71648166e6eSArnd Bergmann __SYSCALL(__NR_clock_gettime64, sys_clock_gettime) 71748166e6eSArnd Bergmann #define __NR_clock_settime64 404 71848166e6eSArnd Bergmann __SYSCALL(__NR_clock_settime64, sys_clock_settime) 71948166e6eSArnd Bergmann #define __NR_clock_adjtime64 405 72048166e6eSArnd Bergmann __SYSCALL(__NR_clock_adjtime64, sys_clock_adjtime) 72148166e6eSArnd Bergmann #define __NR_clock_getres_time64 406 72248166e6eSArnd Bergmann __SYSCALL(__NR_clock_getres_time64, sys_clock_getres) 72348166e6eSArnd Bergmann #define __NR_clock_nanosleep_time64 407 72448166e6eSArnd Bergmann __SYSCALL(__NR_clock_nanosleep_time64, sys_clock_nanosleep) 72548166e6eSArnd Bergmann #define __NR_timer_gettime64 408 72648166e6eSArnd Bergmann __SYSCALL(__NR_timer_gettime64, sys_timer_gettime) 72748166e6eSArnd Bergmann #define __NR_timer_settime64 409 72848166e6eSArnd Bergmann __SYSCALL(__NR_timer_settime64, sys_timer_settime) 72948166e6eSArnd Bergmann #define __NR_timerfd_gettime64 410 73048166e6eSArnd Bergmann __SYSCALL(__NR_timerfd_gettime64, sys_timerfd_gettime) 73148166e6eSArnd Bergmann #define __NR_timerfd_settime64 411 73248166e6eSArnd Bergmann __SYSCALL(__NR_timerfd_settime64, sys_timerfd_settime) 73348166e6eSArnd Bergmann #define __NR_utimensat_time64 412 73448166e6eSArnd Bergmann __SYSCALL(__NR_utimensat_time64, sys_utimensat) 73548166e6eSArnd Bergmann #define __NR_pselect6_time64 413 73648166e6eSArnd Bergmann __SC_COMP(__NR_pselect6_time64, sys_pselect6, compat_sys_pselect6_time64) 73748166e6eSArnd Bergmann #define __NR_ppoll_time64 414 73848166e6eSArnd Bergmann __SC_COMP(__NR_ppoll_time64, sys_ppoll, compat_sys_ppoll_time64) 73948166e6eSArnd Bergmann #define __NR_io_pgetevents_time64 416 740d3882564SArnd Bergmann __SC_COMP(__NR_io_pgetevents_time64, sys_io_pgetevents, compat_sys_io_pgetevents_time64) 74148166e6eSArnd Bergmann #define __NR_recvmmsg_time64 417 74248166e6eSArnd Bergmann __SC_COMP(__NR_recvmmsg_time64, sys_recvmmsg, compat_sys_recvmmsg_time64) 74348166e6eSArnd Bergmann #define __NR_mq_timedsend_time64 418 74448166e6eSArnd Bergmann __SYSCALL(__NR_mq_timedsend_time64, sys_mq_timedsend) 74548166e6eSArnd Bergmann #define __NR_mq_timedreceive_time64 419 74648166e6eSArnd Bergmann __SYSCALL(__NR_mq_timedreceive_time64, sys_mq_timedreceive) 74748166e6eSArnd Bergmann #define __NR_semtimedop_time64 420 74848166e6eSArnd Bergmann __SYSCALL(__NR_semtimedop_time64, sys_semtimedop) 74948166e6eSArnd Bergmann #define __NR_rt_sigtimedwait_time64 421 75048166e6eSArnd Bergmann __SC_COMP(__NR_rt_sigtimedwait_time64, sys_rt_sigtimedwait, compat_sys_rt_sigtimedwait_time64) 75148166e6eSArnd Bergmann #define __NR_futex_time64 422 75248166e6eSArnd Bergmann __SYSCALL(__NR_futex_time64, sys_futex) 75348166e6eSArnd Bergmann #define __NR_sched_rr_get_interval_time64 423 75448166e6eSArnd Bergmann __SYSCALL(__NR_sched_rr_get_interval_time64, sys_sched_rr_get_interval) 75548166e6eSArnd Bergmann #endif 7568a1ab315SDavid Howells 7573eb39f47SChristian Brauner #define __NR_pidfd_send_signal 424 7583eb39f47SChristian Brauner __SYSCALL(__NR_pidfd_send_signal, sys_pidfd_send_signal) 7592b188cc1SJens Axboe #define __NR_io_uring_setup 425 7602b188cc1SJens Axboe __SYSCALL(__NR_io_uring_setup, sys_io_uring_setup) 7612b188cc1SJens Axboe #define __NR_io_uring_enter 426 7622b188cc1SJens Axboe __SYSCALL(__NR_io_uring_enter, sys_io_uring_enter) 763edafcceeSJens Axboe #define __NR_io_uring_register 427 764edafcceeSJens Axboe __SYSCALL(__NR_io_uring_register, sys_io_uring_register) 765d8076bdbSDavid Howells #define __NR_open_tree 428 766d8076bdbSDavid Howells __SYSCALL(__NR_open_tree, sys_open_tree) 767d8076bdbSDavid Howells #define __NR_move_mount 429 768d8076bdbSDavid Howells __SYSCALL(__NR_move_mount, sys_move_mount) 769d8076bdbSDavid Howells #define __NR_fsopen 430 770d8076bdbSDavid Howells __SYSCALL(__NR_fsopen, sys_fsopen) 771d8076bdbSDavid Howells #define __NR_fsconfig 431 772d8076bdbSDavid Howells __SYSCALL(__NR_fsconfig, sys_fsconfig) 773d8076bdbSDavid Howells #define __NR_fsmount 432 774d8076bdbSDavid Howells __SYSCALL(__NR_fsmount, sys_fsmount) 775d8076bdbSDavid Howells #define __NR_fspick 433 776d8076bdbSDavid Howells __SYSCALL(__NR_fspick, sys_fspick) 7777615d9e1SChristian Brauner #define __NR_pidfd_open 434 7787615d9e1SChristian Brauner __SYSCALL(__NR_pidfd_open, sys_pidfd_open) 7798f6ccf61SLinus Torvalds #define __NR_clone3 435 7808f3220a8SChristian Brauner __SYSCALL(__NR_clone3, sys_clone3) 7819b4feb63SChristian Brauner #define __NR_close_range 436 7829b4feb63SChristian Brauner __SYSCALL(__NR_close_range, sys_close_range) 783fddb5d43SAleksa Sarai #define __NR_openat2 437 784fddb5d43SAleksa Sarai __SYSCALL(__NR_openat2, sys_openat2) 7859a2cef09SSargun Dhillon #define __NR_pidfd_getfd 438 7869a2cef09SSargun Dhillon __SYSCALL(__NR_pidfd_getfd, sys_pidfd_getfd) 787c8ffd8bcSMiklos Szeredi #define __NR_faccessat2 439 788c8ffd8bcSMiklos Szeredi __SYSCALL(__NR_faccessat2, sys_faccessat2) 789ecb8ac8bSMinchan Kim #define __NR_process_madvise 440 790ecb8ac8bSMinchan Kim __SYSCALL(__NR_process_madvise, sys_process_madvise) 791b0a0c261SWillem de Bruijn #define __NR_epoll_pwait2 441 792b0a0c261SWillem de Bruijn __SC_COMP(__NR_epoll_pwait2, sys_epoll_pwait2, compat_sys_epoll_pwait2) 7932a186721SChristian Brauner #define __NR_mount_setattr 442 7942a186721SChristian Brauner __SYSCALL(__NR_mount_setattr, sys_mount_setattr) 79564c2c2c6SJan Kara #define __NR_quotactl_fd 443 79664c2c2c6SJan Kara __SYSCALL(__NR_quotactl_fd, sys_quotactl_fd) 797a49f4f81SMickaël Salaün #define __NR_landlock_create_ruleset 444 798a49f4f81SMickaël Salaün __SYSCALL(__NR_landlock_create_ruleset, sys_landlock_create_ruleset) 799a49f4f81SMickaël Salaün #define __NR_landlock_add_rule 445 800a49f4f81SMickaël Salaün __SYSCALL(__NR_landlock_add_rule, sys_landlock_add_rule) 801a49f4f81SMickaël Salaün #define __NR_landlock_restrict_self 446 802a49f4f81SMickaël Salaün __SYSCALL(__NR_landlock_restrict_self, sys_landlock_restrict_self) 803fddb5d43SAleksa Sarai 8047bb7f2acSMike Rapoport #ifdef __ARCH_WANT_MEMFD_SECRET 8057bb7f2acSMike Rapoport #define __NR_memfd_secret 447 8067bb7f2acSMike Rapoport __SYSCALL(__NR_memfd_secret, sys_memfd_secret) 8077bb7f2acSMike Rapoport #endif 8084dd595c3SSohil Mehta 809dce49103SSuren Baghdasaryan #define __NR_process_mrelease 448 810dce49103SSuren Baghdasaryan __SYSCALL(__NR_process_mrelease, sys_process_mrelease) 811bf69bad3SAndré Almeida #define __NR_futex_waitv 449 812bf69bad3SAndré Almeida __SYSCALL(__NR_futex_waitv, sys_futex_waitv) 81321b084fdSAneesh Kumar K.V #define __NR_set_mempolicy_home_node 450 81421b084fdSAneesh Kumar K.V __SYSCALL(__NR_set_mempolicy_home_node, sys_set_mempolicy_home_node) 815cf264e13SNhat Pham #define __NR_cachestat 451 816cf264e13SNhat Pham __SYSCALL(__NR_cachestat, sys_cachestat) 81778252debSPalmer Dabbelt #define __NR_fchmodat2 452 81878252debSPalmer Dabbelt __SYSCALL(__NR_fchmodat2, sys_fchmodat2) 8192fd0ebadSSohil Mehta #define __NR_map_shadow_stack 453 8202fd0ebadSSohil Mehta __SYSCALL(__NR_map_shadow_stack, sys_map_shadow_stack) 8219f6c532fSpeterz@infradead.org #define __NR_futex_wake 454 8229f6c532fSpeterz@infradead.org __SYSCALL(__NR_futex_wake, sys_futex_wake) 823cb8c4312Speterz@infradead.org #define __NR_futex_wait 455 824cb8c4312Speterz@infradead.org __SYSCALL(__NR_futex_wait, sys_futex_wait) 8250f4b5f97Speterz@infradead.org #define __NR_futex_requeue 456 8260f4b5f97Speterz@infradead.org __SYSCALL(__NR_futex_requeue, sys_futex_requeue) 82778252debSPalmer Dabbelt 828d8b0f546SMiklos Szeredi #define __NR_statmount 457 829d8b0f546SMiklos Szeredi __SYSCALL(__NR_statmount, sys_statmount) 830d8b0f546SMiklos Szeredi 831d8b0f546SMiklos Szeredi #define __NR_listmount 458 832d8b0f546SMiklos Szeredi __SYSCALL(__NR_listmount, sys_listmount) 833d8b0f546SMiklos Szeredi 834063a7ce3SLinus Torvalds #define __NR_lsm_get_self_attr 459 8355f423759SCasey Schaufler __SYSCALL(__NR_lsm_get_self_attr, sys_lsm_get_self_attr) 836063a7ce3SLinus Torvalds #define __NR_lsm_set_self_attr 460 8375f423759SCasey Schaufler __SYSCALL(__NR_lsm_set_self_attr, sys_lsm_set_self_attr) 838063a7ce3SLinus Torvalds #define __NR_lsm_list_modules 461 8395f423759SCasey Schaufler __SYSCALL(__NR_lsm_list_modules, sys_lsm_list_modules) 8405f423759SCasey Schaufler 841ff388fe5SJeff Xu #define __NR_mseal 462 842ff388fe5SJeff Xu __SYSCALL(__NR_mseal, sys_mseal) 843ff388fe5SJeff Xu 8448a1ab315SDavid Howells #undef __NR_syscalls 845*54233a42SArnd Bergmann #define __NR_syscalls 463 8468a1ab315SDavid Howells 8478a1ab315SDavid Howells /* 8488a1ab315SDavid Howells * 32 bit systems traditionally used different 8498a1ab315SDavid Howells * syscalls for off_t and loff_t arguments, while 8508a1ab315SDavid Howells * 64 bit systems only need the off_t version. 8518a1ab315SDavid Howells * For new 32 bit platforms, there is no need to 8528a1ab315SDavid Howells * implement the old 32 bit off_t syscalls, so 8538a1ab315SDavid Howells * they take different names. 8548a1ab315SDavid Howells * Here we map the numbers so that both versions 8558a1ab315SDavid Howells * use the same syscall table layout. 8568a1ab315SDavid Howells */ 8578a1ab315SDavid Howells #if __BITS_PER_LONG == 64 && !defined(__SYSCALL_COMPAT) 8588a1ab315SDavid Howells #define __NR_fcntl __NR3264_fcntl 8598a1ab315SDavid Howells #define __NR_statfs __NR3264_statfs 8608a1ab315SDavid Howells #define __NR_fstatfs __NR3264_fstatfs 8618a1ab315SDavid Howells #define __NR_truncate __NR3264_truncate 8628a1ab315SDavid Howells #define __NR_ftruncate __NR3264_ftruncate 8638a1ab315SDavid Howells #define __NR_lseek __NR3264_lseek 8648a1ab315SDavid Howells #define __NR_sendfile __NR3264_sendfile 865b7d624abSGuo Ren #if defined(__ARCH_WANT_NEW_STAT) || defined(__ARCH_WANT_STAT64) 8668a1ab315SDavid Howells #define __NR_newfstatat __NR3264_fstatat 8678a1ab315SDavid Howells #define __NR_fstat __NR3264_fstat 868b7d624abSGuo Ren #endif 8698a1ab315SDavid Howells #define __NR_mmap __NR3264_mmap 8708a1ab315SDavid Howells #define __NR_fadvise64 __NR3264_fadvise64 8718a1ab315SDavid Howells #ifdef __NR3264_stat 8728a1ab315SDavid Howells #define __NR_stat __NR3264_stat 8738a1ab315SDavid Howells #define __NR_lstat __NR3264_lstat 8748a1ab315SDavid Howells #endif 8758a1ab315SDavid Howells #else 8768a1ab315SDavid Howells #define __NR_fcntl64 __NR3264_fcntl 8778a1ab315SDavid Howells #define __NR_statfs64 __NR3264_statfs 8788a1ab315SDavid Howells #define __NR_fstatfs64 __NR3264_fstatfs 8798a1ab315SDavid Howells #define __NR_truncate64 __NR3264_truncate 8808a1ab315SDavid Howells #define __NR_ftruncate64 __NR3264_ftruncate 8818a1ab315SDavid Howells #define __NR_llseek __NR3264_lseek 8828a1ab315SDavid Howells #define __NR_sendfile64 __NR3264_sendfile 883b7d624abSGuo Ren #if defined(__ARCH_WANT_NEW_STAT) || defined(__ARCH_WANT_STAT64) 8848a1ab315SDavid Howells #define __NR_fstatat64 __NR3264_fstatat 8858a1ab315SDavid Howells #define __NR_fstat64 __NR3264_fstat 886b7d624abSGuo Ren #endif 8878a1ab315SDavid Howells #define __NR_mmap2 __NR3264_mmap 8888a1ab315SDavid Howells #define __NR_fadvise64_64 __NR3264_fadvise64 8898a1ab315SDavid Howells #ifdef __NR3264_stat 8908a1ab315SDavid Howells #define __NR_stat64 __NR3264_stat 8918a1ab315SDavid Howells #define __NR_lstat64 __NR3264_lstat 8928a1ab315SDavid Howells #endif 8938a1ab315SDavid Howells #endif 894