Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 1 | #if !defined(_ASM_GENERIC_UNISTD_H) || defined(__SYSCALL) |
| 2 | #define _ASM_GENERIC_UNISTD_H |
| 3 | |
| 4 | #include <asm/bitsperlong.h> |
| 5 | |
| 6 | /* |
| 7 | * This file contains the system call numbers, based on the |
| 8 | * layout of the x86-64 architecture, which embeds the |
| 9 | * pointer to the syscall in the table. |
| 10 | * |
| 11 | * As a basic principle, no duplication of functionality |
| 12 | * should be added, e.g. we don't use lseek when llseek |
| 13 | * is present. New architectures should use this file |
| 14 | * and implement the less feature-full calls in user space. |
| 15 | */ |
| 16 | |
| 17 | #ifndef __SYSCALL |
| 18 | #define __SYSCALL(x, y) |
| 19 | #endif |
| 20 | |
Chris Metcalf | 5360bd7 | 2010-05-28 23:01:00 -0400 | [diff] [blame] | 21 | #if __BITS_PER_LONG == 32 || defined(__SYSCALL_COMPAT) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 22 | #define __SC_3264(_nr, _32, _64) __SYSCALL(_nr, _32) |
| 23 | #else |
| 24 | #define __SC_3264(_nr, _32, _64) __SYSCALL(_nr, _64) |
| 25 | #endif |
| 26 | |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 27 | #ifdef __SYSCALL_COMPAT |
| 28 | #define __SC_COMP(_nr, _sys, _comp) __SYSCALL(_nr, _comp) |
| 29 | #define __SC_COMP_3264(_nr, _32, _64, _comp) __SYSCALL(_nr, _comp) |
| 30 | #else |
| 31 | #define __SC_COMP(_nr, _sys, _comp) __SYSCALL(_nr, _sys) |
| 32 | #define __SC_COMP_3264(_nr, _32, _64, _comp) __SC_3264(_nr, _32, _64) |
| 33 | #endif |
| 34 | |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 35 | #define __NR_io_setup 0 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 36 | __SC_COMP(__NR_io_setup, sys_io_setup, compat_sys_io_setup) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 37 | #define __NR_io_destroy 1 |
| 38 | __SYSCALL(__NR_io_destroy, sys_io_destroy) |
| 39 | #define __NR_io_submit 2 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 40 | __SC_COMP(__NR_io_submit, sys_io_submit, compat_sys_io_submit) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 41 | #define __NR_io_cancel 3 |
| 42 | __SYSCALL(__NR_io_cancel, sys_io_cancel) |
| 43 | #define __NR_io_getevents 4 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 44 | __SC_COMP(__NR_io_getevents, sys_io_getevents, compat_sys_io_getevents) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [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 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 78 | __SC_COMP(__NR_lookup_dcookie, sys_lookup_dcookie, compat_sys_lookup_dcookie) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 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 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 90 | __SC_COMP(__NR_epoll_pwait, sys_epoll_pwait, compat_sys_epoll_pwait) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 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 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 98 | __SC_COMP_3264(__NR3264_fcntl, sys_fcntl64, sys_fcntl, compat_sys_fcntl64) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 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 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 110 | __SC_COMP(__NR_ioctl, sys_ioctl, compat_sys_ioctl) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 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) |
| 133 | #define __NR_renameat 38 |
| 134 | __SYSCALL(__NR_renameat, sys_renameat) |
| 135 | |
| 136 | /* fs/namespace.c */ |
| 137 | #define __NR_umount2 39 |
| 138 | __SYSCALL(__NR_umount2, sys_umount) |
| 139 | #define __NR_mount 40 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 140 | __SC_COMP(__NR_mount, sys_mount, compat_sys_mount) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 141 | #define __NR_pivot_root 41 |
| 142 | __SYSCALL(__NR_pivot_root, sys_pivot_root) |
| 143 | |
| 144 | /* fs/nfsctl.c */ |
| 145 | #define __NR_nfsservctl 42 |
NeilBrown | f5b9409 | 2011-08-26 18:03:11 -0400 | [diff] [blame] | 146 | __SYSCALL(__NR_nfsservctl, sys_ni_syscall) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 147 | |
| 148 | /* fs/open.c */ |
| 149 | #define __NR3264_statfs 43 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 150 | __SC_COMP_3264(__NR3264_statfs, sys_statfs64, sys_statfs, \ |
| 151 | compat_sys_statfs64) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 152 | #define __NR3264_fstatfs 44 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 153 | __SC_COMP_3264(__NR3264_fstatfs, sys_fstatfs64, sys_fstatfs, \ |
| 154 | compat_sys_fstatfs64) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 155 | #define __NR3264_truncate 45 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 156 | __SC_COMP_3264(__NR3264_truncate, sys_truncate64, sys_truncate, \ |
| 157 | compat_sys_truncate64) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 158 | #define __NR3264_ftruncate 46 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 159 | __SC_COMP_3264(__NR3264_ftruncate, sys_ftruncate64, sys_ftruncate, \ |
| 160 | compat_sys_ftruncate64) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 161 | |
| 162 | #define __NR_fallocate 47 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 163 | __SC_COMP(__NR_fallocate, sys_fallocate, compat_sys_fallocate) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 164 | #define __NR_faccessat 48 |
| 165 | __SYSCALL(__NR_faccessat, sys_faccessat) |
| 166 | #define __NR_chdir 49 |
| 167 | __SYSCALL(__NR_chdir, sys_chdir) |
| 168 | #define __NR_fchdir 50 |
| 169 | __SYSCALL(__NR_fchdir, sys_fchdir) |
| 170 | #define __NR_chroot 51 |
| 171 | __SYSCALL(__NR_chroot, sys_chroot) |
| 172 | #define __NR_fchmod 52 |
| 173 | __SYSCALL(__NR_fchmod, sys_fchmod) |
| 174 | #define __NR_fchmodat 53 |
| 175 | __SYSCALL(__NR_fchmodat, sys_fchmodat) |
| 176 | #define __NR_fchownat 54 |
| 177 | __SYSCALL(__NR_fchownat, sys_fchownat) |
| 178 | #define __NR_fchown 55 |
| 179 | __SYSCALL(__NR_fchown, sys_fchown) |
| 180 | #define __NR_openat 56 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 181 | __SC_COMP(__NR_openat, sys_openat, compat_sys_openat) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 182 | #define __NR_close 57 |
| 183 | __SYSCALL(__NR_close, sys_close) |
| 184 | #define __NR_vhangup 58 |
| 185 | __SYSCALL(__NR_vhangup, sys_vhangup) |
| 186 | |
| 187 | /* fs/pipe.c */ |
| 188 | #define __NR_pipe2 59 |
| 189 | __SYSCALL(__NR_pipe2, sys_pipe2) |
| 190 | |
| 191 | /* fs/quota.c */ |
| 192 | #define __NR_quotactl 60 |
| 193 | __SYSCALL(__NR_quotactl, sys_quotactl) |
| 194 | |
| 195 | /* fs/readdir.c */ |
| 196 | #define __NR_getdents64 61 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 197 | __SC_COMP(__NR_getdents64, sys_getdents64, compat_sys_getdents64) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 198 | |
| 199 | /* fs/read_write.c */ |
| 200 | #define __NR3264_lseek 62 |
| 201 | __SC_3264(__NR3264_lseek, sys_llseek, sys_lseek) |
| 202 | #define __NR_read 63 |
| 203 | __SYSCALL(__NR_read, sys_read) |
| 204 | #define __NR_write 64 |
| 205 | __SYSCALL(__NR_write, sys_write) |
| 206 | #define __NR_readv 65 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 207 | __SC_COMP(__NR_readv, sys_readv, compat_sys_readv) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 208 | #define __NR_writev 66 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 209 | __SC_COMP(__NR_writev, sys_writev, compat_sys_writev) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 210 | #define __NR_pread64 67 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 211 | __SC_COMP(__NR_pread64, sys_pread64, compat_sys_pread64) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 212 | #define __NR_pwrite64 68 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 213 | __SC_COMP(__NR_pwrite64, sys_pwrite64, compat_sys_pwrite64) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 214 | #define __NR_preadv 69 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 215 | __SC_COMP(__NR_preadv, sys_preadv, compat_sys_preadv) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 216 | #define __NR_pwritev 70 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 217 | __SC_COMP(__NR_pwritev, sys_pwritev, compat_sys_pwritev) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 218 | |
| 219 | /* fs/sendfile.c */ |
| 220 | #define __NR3264_sendfile 71 |
| 221 | __SC_3264(__NR3264_sendfile, sys_sendfile64, sys_sendfile) |
| 222 | |
| 223 | /* fs/select.c */ |
| 224 | #define __NR_pselect6 72 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 225 | __SC_COMP(__NR_pselect6, sys_pselect6, compat_sys_pselect6) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 226 | #define __NR_ppoll 73 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 227 | __SC_COMP(__NR_ppoll, sys_ppoll, compat_sys_ppoll) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 228 | |
| 229 | /* fs/signalfd.c */ |
| 230 | #define __NR_signalfd4 74 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 231 | __SC_COMP(__NR_signalfd4, sys_signalfd4, compat_sys_signalfd4) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 232 | |
| 233 | /* fs/splice.c */ |
| 234 | #define __NR_vmsplice 75 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 235 | __SC_COMP(__NR_vmsplice, sys_vmsplice, compat_sys_vmsplice) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 236 | #define __NR_splice 76 |
| 237 | __SYSCALL(__NR_splice, sys_splice) |
| 238 | #define __NR_tee 77 |
| 239 | __SYSCALL(__NR_tee, sys_tee) |
| 240 | |
| 241 | /* fs/stat.c */ |
| 242 | #define __NR_readlinkat 78 |
| 243 | __SYSCALL(__NR_readlinkat, sys_readlinkat) |
| 244 | #define __NR3264_fstatat 79 |
| 245 | __SC_3264(__NR3264_fstatat, sys_fstatat64, sys_newfstatat) |
| 246 | #define __NR3264_fstat 80 |
| 247 | __SC_3264(__NR3264_fstat, sys_fstat64, sys_newfstat) |
| 248 | |
| 249 | /* fs/sync.c */ |
| 250 | #define __NR_sync 81 |
| 251 | __SYSCALL(__NR_sync, sys_sync) |
| 252 | #define __NR_fsync 82 |
| 253 | __SYSCALL(__NR_fsync, sys_fsync) |
| 254 | #define __NR_fdatasync 83 |
| 255 | __SYSCALL(__NR_fdatasync, sys_fdatasync) |
Chris Metcalf | 5360bd7 | 2010-05-28 23:01:00 -0400 | [diff] [blame] | 256 | #ifdef __ARCH_WANT_SYNC_FILE_RANGE2 |
| 257 | #define __NR_sync_file_range2 84 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 258 | __SC_COMP(__NR_sync_file_range2, sys_sync_file_range2, \ |
| 259 | compat_sys_sync_file_range2) |
Chris Metcalf | 5360bd7 | 2010-05-28 23:01:00 -0400 | [diff] [blame] | 260 | #else |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 261 | #define __NR_sync_file_range 84 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 262 | __SC_COMP(__NR_sync_file_range, sys_sync_file_range, \ |
| 263 | compat_sys_sync_file_range) |
Chris Metcalf | 5360bd7 | 2010-05-28 23:01:00 -0400 | [diff] [blame] | 264 | #endif |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 265 | |
| 266 | /* fs/timerfd.c */ |
| 267 | #define __NR_timerfd_create 85 |
| 268 | __SYSCALL(__NR_timerfd_create, sys_timerfd_create) |
| 269 | #define __NR_timerfd_settime 86 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 270 | __SC_COMP(__NR_timerfd_settime, sys_timerfd_settime, \ |
| 271 | compat_sys_timerfd_settime) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 272 | #define __NR_timerfd_gettime 87 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 273 | __SC_COMP(__NR_timerfd_gettime, sys_timerfd_gettime, \ |
| 274 | compat_sys_timerfd_gettime) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 275 | |
| 276 | /* fs/utimes.c */ |
| 277 | #define __NR_utimensat 88 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 278 | __SC_COMP(__NR_utimensat, sys_utimensat, compat_sys_utimensat) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 279 | |
| 280 | /* kernel/acct.c */ |
| 281 | #define __NR_acct 89 |
| 282 | __SYSCALL(__NR_acct, sys_acct) |
| 283 | |
| 284 | /* kernel/capability.c */ |
| 285 | #define __NR_capget 90 |
| 286 | __SYSCALL(__NR_capget, sys_capget) |
| 287 | #define __NR_capset 91 |
| 288 | __SYSCALL(__NR_capset, sys_capset) |
| 289 | |
| 290 | /* kernel/exec_domain.c */ |
| 291 | #define __NR_personality 92 |
| 292 | __SYSCALL(__NR_personality, sys_personality) |
| 293 | |
| 294 | /* kernel/exit.c */ |
| 295 | #define __NR_exit 93 |
| 296 | __SYSCALL(__NR_exit, sys_exit) |
| 297 | #define __NR_exit_group 94 |
| 298 | __SYSCALL(__NR_exit_group, sys_exit_group) |
| 299 | #define __NR_waitid 95 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 300 | __SC_COMP(__NR_waitid, sys_waitid, compat_sys_waitid) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 301 | |
| 302 | /* kernel/fork.c */ |
| 303 | #define __NR_set_tid_address 96 |
| 304 | __SYSCALL(__NR_set_tid_address, sys_set_tid_address) |
| 305 | #define __NR_unshare 97 |
| 306 | __SYSCALL(__NR_unshare, sys_unshare) |
| 307 | |
| 308 | /* kernel/futex.c */ |
| 309 | #define __NR_futex 98 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 310 | __SC_COMP(__NR_futex, sys_futex, compat_sys_futex) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 311 | #define __NR_set_robust_list 99 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 312 | __SC_COMP(__NR_set_robust_list, sys_set_robust_list, \ |
| 313 | compat_sys_set_robust_list) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 314 | #define __NR_get_robust_list 100 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 315 | __SC_COMP(__NR_get_robust_list, sys_get_robust_list, \ |
| 316 | compat_sys_get_robust_list) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 317 | |
| 318 | /* kernel/hrtimer.c */ |
| 319 | #define __NR_nanosleep 101 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 320 | __SC_COMP(__NR_nanosleep, sys_nanosleep, compat_sys_nanosleep) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 321 | |
| 322 | /* kernel/itimer.c */ |
| 323 | #define __NR_getitimer 102 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 324 | __SC_COMP(__NR_getitimer, sys_getitimer, compat_sys_getitimer) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 325 | #define __NR_setitimer 103 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 326 | __SC_COMP(__NR_setitimer, sys_setitimer, compat_sys_setitimer) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 327 | |
| 328 | /* kernel/kexec.c */ |
| 329 | #define __NR_kexec_load 104 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 330 | __SC_COMP(__NR_kexec_load, sys_kexec_load, compat_sys_kexec_load) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 331 | |
| 332 | /* kernel/module.c */ |
| 333 | #define __NR_init_module 105 |
| 334 | __SYSCALL(__NR_init_module, sys_init_module) |
| 335 | #define __NR_delete_module 106 |
| 336 | __SYSCALL(__NR_delete_module, sys_delete_module) |
| 337 | |
| 338 | /* kernel/posix-timers.c */ |
| 339 | #define __NR_timer_create 107 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 340 | __SC_COMP(__NR_timer_create, sys_timer_create, compat_sys_timer_create) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 341 | #define __NR_timer_gettime 108 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 342 | __SC_COMP(__NR_timer_gettime, sys_timer_gettime, compat_sys_timer_gettime) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 343 | #define __NR_timer_getoverrun 109 |
| 344 | __SYSCALL(__NR_timer_getoverrun, sys_timer_getoverrun) |
| 345 | #define __NR_timer_settime 110 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 346 | __SC_COMP(__NR_timer_settime, sys_timer_settime, compat_sys_timer_settime) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 347 | #define __NR_timer_delete 111 |
| 348 | __SYSCALL(__NR_timer_delete, sys_timer_delete) |
| 349 | #define __NR_clock_settime 112 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 350 | __SC_COMP(__NR_clock_settime, sys_clock_settime, compat_sys_clock_settime) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 351 | #define __NR_clock_gettime 113 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 352 | __SC_COMP(__NR_clock_gettime, sys_clock_gettime, compat_sys_clock_gettime) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 353 | #define __NR_clock_getres 114 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 354 | __SC_COMP(__NR_clock_getres, sys_clock_getres, compat_sys_clock_getres) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 355 | #define __NR_clock_nanosleep 115 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 356 | __SC_COMP(__NR_clock_nanosleep, sys_clock_nanosleep, \ |
| 357 | compat_sys_clock_nanosleep) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 358 | |
| 359 | /* kernel/printk.c */ |
| 360 | #define __NR_syslog 116 |
| 361 | __SYSCALL(__NR_syslog, sys_syslog) |
| 362 | |
| 363 | /* kernel/ptrace.c */ |
| 364 | #define __NR_ptrace 117 |
| 365 | __SYSCALL(__NR_ptrace, sys_ptrace) |
| 366 | |
| 367 | /* kernel/sched.c */ |
| 368 | #define __NR_sched_setparam 118 |
| 369 | __SYSCALL(__NR_sched_setparam, sys_sched_setparam) |
| 370 | #define __NR_sched_setscheduler 119 |
| 371 | __SYSCALL(__NR_sched_setscheduler, sys_sched_setscheduler) |
| 372 | #define __NR_sched_getscheduler 120 |
| 373 | __SYSCALL(__NR_sched_getscheduler, sys_sched_getscheduler) |
| 374 | #define __NR_sched_getparam 121 |
| 375 | __SYSCALL(__NR_sched_getparam, sys_sched_getparam) |
| 376 | #define __NR_sched_setaffinity 122 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 377 | __SC_COMP(__NR_sched_setaffinity, sys_sched_setaffinity, \ |
| 378 | compat_sys_sched_setaffinity) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 379 | #define __NR_sched_getaffinity 123 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 380 | __SC_COMP(__NR_sched_getaffinity, sys_sched_getaffinity, \ |
| 381 | compat_sys_sched_getaffinity) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 382 | #define __NR_sched_yield 124 |
| 383 | __SYSCALL(__NR_sched_yield, sys_sched_yield) |
| 384 | #define __NR_sched_get_priority_max 125 |
| 385 | __SYSCALL(__NR_sched_get_priority_max, sys_sched_get_priority_max) |
| 386 | #define __NR_sched_get_priority_min 126 |
| 387 | __SYSCALL(__NR_sched_get_priority_min, sys_sched_get_priority_min) |
| 388 | #define __NR_sched_rr_get_interval 127 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 389 | __SC_COMP(__NR_sched_rr_get_interval, sys_sched_rr_get_interval, \ |
| 390 | compat_sys_sched_rr_get_interval) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 391 | |
| 392 | /* kernel/signal.c */ |
| 393 | #define __NR_restart_syscall 128 |
| 394 | __SYSCALL(__NR_restart_syscall, sys_restart_syscall) |
| 395 | #define __NR_kill 129 |
| 396 | __SYSCALL(__NR_kill, sys_kill) |
| 397 | #define __NR_tkill 130 |
| 398 | __SYSCALL(__NR_tkill, sys_tkill) |
| 399 | #define __NR_tgkill 131 |
| 400 | __SYSCALL(__NR_tgkill, sys_tgkill) |
| 401 | #define __NR_sigaltstack 132 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 402 | __SC_COMP(__NR_sigaltstack, sys_sigaltstack, compat_sys_sigaltstack) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 403 | #define __NR_rt_sigsuspend 133 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 404 | __SC_COMP(__NR_rt_sigsuspend, sys_rt_sigsuspend, compat_sys_rt_sigsuspend) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 405 | #define __NR_rt_sigaction 134 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 406 | __SC_COMP(__NR_rt_sigaction, sys_rt_sigaction, compat_sys_rt_sigaction) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 407 | #define __NR_rt_sigprocmask 135 |
| 408 | __SYSCALL(__NR_rt_sigprocmask, sys_rt_sigprocmask) |
| 409 | #define __NR_rt_sigpending 136 |
| 410 | __SYSCALL(__NR_rt_sigpending, sys_rt_sigpending) |
| 411 | #define __NR_rt_sigtimedwait 137 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 412 | __SC_COMP(__NR_rt_sigtimedwait, sys_rt_sigtimedwait, \ |
| 413 | compat_sys_rt_sigtimedwait) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 414 | #define __NR_rt_sigqueueinfo 138 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 415 | __SC_COMP(__NR_rt_sigqueueinfo, sys_rt_sigqueueinfo, \ |
| 416 | compat_sys_rt_sigqueueinfo) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 417 | #define __NR_rt_sigreturn 139 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 418 | __SC_COMP(__NR_rt_sigreturn, sys_rt_sigreturn, compat_sys_rt_sigreturn) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 419 | |
| 420 | /* kernel/sys.c */ |
| 421 | #define __NR_setpriority 140 |
| 422 | __SYSCALL(__NR_setpriority, sys_setpriority) |
| 423 | #define __NR_getpriority 141 |
| 424 | __SYSCALL(__NR_getpriority, sys_getpriority) |
| 425 | #define __NR_reboot 142 |
| 426 | __SYSCALL(__NR_reboot, sys_reboot) |
| 427 | #define __NR_setregid 143 |
| 428 | __SYSCALL(__NR_setregid, sys_setregid) |
| 429 | #define __NR_setgid 144 |
| 430 | __SYSCALL(__NR_setgid, sys_setgid) |
| 431 | #define __NR_setreuid 145 |
| 432 | __SYSCALL(__NR_setreuid, sys_setreuid) |
| 433 | #define __NR_setuid 146 |
| 434 | __SYSCALL(__NR_setuid, sys_setuid) |
| 435 | #define __NR_setresuid 147 |
| 436 | __SYSCALL(__NR_setresuid, sys_setresuid) |
| 437 | #define __NR_getresuid 148 |
| 438 | __SYSCALL(__NR_getresuid, sys_getresuid) |
| 439 | #define __NR_setresgid 149 |
| 440 | __SYSCALL(__NR_setresgid, sys_setresgid) |
| 441 | #define __NR_getresgid 150 |
| 442 | __SYSCALL(__NR_getresgid, sys_getresgid) |
| 443 | #define __NR_setfsuid 151 |
| 444 | __SYSCALL(__NR_setfsuid, sys_setfsuid) |
| 445 | #define __NR_setfsgid 152 |
| 446 | __SYSCALL(__NR_setfsgid, sys_setfsgid) |
| 447 | #define __NR_times 153 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 448 | __SC_COMP(__NR_times, sys_times, compat_sys_times) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 449 | #define __NR_setpgid 154 |
| 450 | __SYSCALL(__NR_setpgid, sys_setpgid) |
| 451 | #define __NR_getpgid 155 |
| 452 | __SYSCALL(__NR_getpgid, sys_getpgid) |
| 453 | #define __NR_getsid 156 |
| 454 | __SYSCALL(__NR_getsid, sys_getsid) |
| 455 | #define __NR_setsid 157 |
| 456 | __SYSCALL(__NR_setsid, sys_setsid) |
| 457 | #define __NR_getgroups 158 |
| 458 | __SYSCALL(__NR_getgroups, sys_getgroups) |
| 459 | #define __NR_setgroups 159 |
| 460 | __SYSCALL(__NR_setgroups, sys_setgroups) |
| 461 | #define __NR_uname 160 |
| 462 | __SYSCALL(__NR_uname, sys_newuname) |
| 463 | #define __NR_sethostname 161 |
| 464 | __SYSCALL(__NR_sethostname, sys_sethostname) |
| 465 | #define __NR_setdomainname 162 |
| 466 | __SYSCALL(__NR_setdomainname, sys_setdomainname) |
| 467 | #define __NR_getrlimit 163 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 468 | __SC_COMP(__NR_getrlimit, sys_getrlimit, compat_sys_getrlimit) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 469 | #define __NR_setrlimit 164 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 470 | __SC_COMP(__NR_setrlimit, sys_setrlimit, compat_sys_setrlimit) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 471 | #define __NR_getrusage 165 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 472 | __SC_COMP(__NR_getrusage, sys_getrusage, compat_sys_getrusage) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 473 | #define __NR_umask 166 |
| 474 | __SYSCALL(__NR_umask, sys_umask) |
| 475 | #define __NR_prctl 167 |
| 476 | __SYSCALL(__NR_prctl, sys_prctl) |
| 477 | #define __NR_getcpu 168 |
| 478 | __SYSCALL(__NR_getcpu, sys_getcpu) |
| 479 | |
| 480 | /* kernel/time.c */ |
| 481 | #define __NR_gettimeofday 169 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 482 | __SC_COMP(__NR_gettimeofday, sys_gettimeofday, compat_sys_gettimeofday) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 483 | #define __NR_settimeofday 170 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 484 | __SC_COMP(__NR_settimeofday, sys_settimeofday, compat_sys_settimeofday) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 485 | #define __NR_adjtimex 171 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 486 | __SC_COMP(__NR_adjtimex, sys_adjtimex, compat_sys_adjtimex) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 487 | |
| 488 | /* kernel/timer.c */ |
| 489 | #define __NR_getpid 172 |
| 490 | __SYSCALL(__NR_getpid, sys_getpid) |
| 491 | #define __NR_getppid 173 |
| 492 | __SYSCALL(__NR_getppid, sys_getppid) |
| 493 | #define __NR_getuid 174 |
| 494 | __SYSCALL(__NR_getuid, sys_getuid) |
| 495 | #define __NR_geteuid 175 |
| 496 | __SYSCALL(__NR_geteuid, sys_geteuid) |
| 497 | #define __NR_getgid 176 |
| 498 | __SYSCALL(__NR_getgid, sys_getgid) |
| 499 | #define __NR_getegid 177 |
| 500 | __SYSCALL(__NR_getegid, sys_getegid) |
| 501 | #define __NR_gettid 178 |
| 502 | __SYSCALL(__NR_gettid, sys_gettid) |
| 503 | #define __NR_sysinfo 179 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 504 | __SC_COMP(__NR_sysinfo, sys_sysinfo, compat_sys_sysinfo) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 505 | |
| 506 | /* ipc/mqueue.c */ |
| 507 | #define __NR_mq_open 180 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 508 | __SC_COMP(__NR_mq_open, sys_mq_open, compat_sys_mq_open) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 509 | #define __NR_mq_unlink 181 |
| 510 | __SYSCALL(__NR_mq_unlink, sys_mq_unlink) |
| 511 | #define __NR_mq_timedsend 182 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 512 | __SC_COMP(__NR_mq_timedsend, sys_mq_timedsend, compat_sys_mq_timedsend) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 513 | #define __NR_mq_timedreceive 183 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 514 | __SC_COMP(__NR_mq_timedreceive, sys_mq_timedreceive, \ |
| 515 | compat_sys_mq_timedreceive) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 516 | #define __NR_mq_notify 184 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 517 | __SC_COMP(__NR_mq_notify, sys_mq_notify, compat_sys_mq_notify) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 518 | #define __NR_mq_getsetattr 185 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 519 | __SC_COMP(__NR_mq_getsetattr, sys_mq_getsetattr, compat_sys_mq_getsetattr) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 520 | |
| 521 | /* ipc/msg.c */ |
| 522 | #define __NR_msgget 186 |
| 523 | __SYSCALL(__NR_msgget, sys_msgget) |
| 524 | #define __NR_msgctl 187 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 525 | __SC_COMP(__NR_msgctl, sys_msgctl, compat_sys_msgctl) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 526 | #define __NR_msgrcv 188 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 527 | __SC_COMP(__NR_msgrcv, sys_msgrcv, compat_sys_msgrcv) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 528 | #define __NR_msgsnd 189 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 529 | __SC_COMP(__NR_msgsnd, sys_msgsnd, compat_sys_msgsnd) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 530 | |
| 531 | /* ipc/sem.c */ |
| 532 | #define __NR_semget 190 |
| 533 | __SYSCALL(__NR_semget, sys_semget) |
| 534 | #define __NR_semctl 191 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 535 | __SC_COMP(__NR_semctl, sys_semctl, compat_sys_semctl) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 536 | #define __NR_semtimedop 192 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 537 | __SC_COMP(__NR_semtimedop, sys_semtimedop, compat_sys_semtimedop) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 538 | #define __NR_semop 193 |
| 539 | __SYSCALL(__NR_semop, sys_semop) |
| 540 | |
| 541 | /* ipc/shm.c */ |
| 542 | #define __NR_shmget 194 |
| 543 | __SYSCALL(__NR_shmget, sys_shmget) |
| 544 | #define __NR_shmctl 195 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 545 | __SC_COMP(__NR_shmctl, sys_shmctl, compat_sys_shmctl) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 546 | #define __NR_shmat 196 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 547 | __SC_COMP(__NR_shmat, sys_shmat, compat_sys_shmat) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 548 | #define __NR_shmdt 197 |
| 549 | __SYSCALL(__NR_shmdt, sys_shmdt) |
| 550 | |
| 551 | /* net/socket.c */ |
| 552 | #define __NR_socket 198 |
| 553 | __SYSCALL(__NR_socket, sys_socket) |
| 554 | #define __NR_socketpair 199 |
| 555 | __SYSCALL(__NR_socketpair, sys_socketpair) |
| 556 | #define __NR_bind 200 |
| 557 | __SYSCALL(__NR_bind, sys_bind) |
| 558 | #define __NR_listen 201 |
| 559 | __SYSCALL(__NR_listen, sys_listen) |
| 560 | #define __NR_accept 202 |
| 561 | __SYSCALL(__NR_accept, sys_accept) |
| 562 | #define __NR_connect 203 |
| 563 | __SYSCALL(__NR_connect, sys_connect) |
| 564 | #define __NR_getsockname 204 |
| 565 | __SYSCALL(__NR_getsockname, sys_getsockname) |
| 566 | #define __NR_getpeername 205 |
| 567 | __SYSCALL(__NR_getpeername, sys_getpeername) |
| 568 | #define __NR_sendto 206 |
| 569 | __SYSCALL(__NR_sendto, sys_sendto) |
| 570 | #define __NR_recvfrom 207 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 571 | __SC_COMP(__NR_recvfrom, sys_recvfrom, compat_sys_recvfrom) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 572 | #define __NR_setsockopt 208 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 573 | __SC_COMP(__NR_setsockopt, sys_setsockopt, compat_sys_setsockopt) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 574 | #define __NR_getsockopt 209 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 575 | __SC_COMP(__NR_getsockopt, sys_getsockopt, compat_sys_getsockopt) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 576 | #define __NR_shutdown 210 |
| 577 | __SYSCALL(__NR_shutdown, sys_shutdown) |
| 578 | #define __NR_sendmsg 211 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 579 | __SC_COMP(__NR_sendmsg, sys_sendmsg, compat_sys_sendmsg) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 580 | #define __NR_recvmsg 212 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 581 | __SC_COMP(__NR_recvmsg, sys_recvmsg, compat_sys_recvmsg) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 582 | |
| 583 | /* mm/filemap.c */ |
| 584 | #define __NR_readahead 213 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 585 | __SC_COMP(__NR_readahead, sys_readahead, compat_sys_readahead) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 586 | |
| 587 | /* mm/nommu.c, also with MMU */ |
| 588 | #define __NR_brk 214 |
| 589 | __SYSCALL(__NR_brk, sys_brk) |
| 590 | #define __NR_munmap 215 |
| 591 | __SYSCALL(__NR_munmap, sys_munmap) |
| 592 | #define __NR_mremap 216 |
| 593 | __SYSCALL(__NR_mremap, sys_mremap) |
| 594 | |
| 595 | /* security/keys/keyctl.c */ |
| 596 | #define __NR_add_key 217 |
| 597 | __SYSCALL(__NR_add_key, sys_add_key) |
| 598 | #define __NR_request_key 218 |
| 599 | __SYSCALL(__NR_request_key, sys_request_key) |
| 600 | #define __NR_keyctl 219 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 601 | __SC_COMP(__NR_keyctl, sys_keyctl, compat_sys_keyctl) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 602 | |
| 603 | /* arch/example/kernel/sys_example.c */ |
| 604 | #define __NR_clone 220 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 605 | __SYSCALL(__NR_clone, sys_clone) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 606 | #define __NR_execve 221 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 607 | __SC_COMP(__NR_execve, sys_execve, compat_sys_execve) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 608 | |
| 609 | #define __NR3264_mmap 222 |
| 610 | __SC_3264(__NR3264_mmap, sys_mmap2, sys_mmap) |
| 611 | /* mm/fadvise.c */ |
| 612 | #define __NR3264_fadvise64 223 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 613 | __SC_COMP(__NR3264_fadvise64, sys_fadvise64_64, compat_sys_fadvise64_64) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 614 | |
| 615 | /* mm/, CONFIG_MMU only */ |
| 616 | #ifndef __ARCH_NOMMU |
| 617 | #define __NR_swapon 224 |
| 618 | __SYSCALL(__NR_swapon, sys_swapon) |
| 619 | #define __NR_swapoff 225 |
| 620 | __SYSCALL(__NR_swapoff, sys_swapoff) |
| 621 | #define __NR_mprotect 226 |
| 622 | __SYSCALL(__NR_mprotect, sys_mprotect) |
| 623 | #define __NR_msync 227 |
| 624 | __SYSCALL(__NR_msync, sys_msync) |
| 625 | #define __NR_mlock 228 |
| 626 | __SYSCALL(__NR_mlock, sys_mlock) |
| 627 | #define __NR_munlock 229 |
| 628 | __SYSCALL(__NR_munlock, sys_munlock) |
| 629 | #define __NR_mlockall 230 |
| 630 | __SYSCALL(__NR_mlockall, sys_mlockall) |
| 631 | #define __NR_munlockall 231 |
| 632 | __SYSCALL(__NR_munlockall, sys_munlockall) |
| 633 | #define __NR_mincore 232 |
| 634 | __SYSCALL(__NR_mincore, sys_mincore) |
| 635 | #define __NR_madvise 233 |
| 636 | __SYSCALL(__NR_madvise, sys_madvise) |
| 637 | #define __NR_remap_file_pages 234 |
| 638 | __SYSCALL(__NR_remap_file_pages, sys_remap_file_pages) |
| 639 | #define __NR_mbind 235 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 640 | __SC_COMP(__NR_mbind, sys_mbind, compat_sys_mbind) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 641 | #define __NR_get_mempolicy 236 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 642 | __SC_COMP(__NR_get_mempolicy, sys_get_mempolicy, compat_sys_get_mempolicy) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 643 | #define __NR_set_mempolicy 237 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 644 | __SC_COMP(__NR_set_mempolicy, sys_set_mempolicy, compat_sys_set_mempolicy) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 645 | #define __NR_migrate_pages 238 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 646 | __SC_COMP(__NR_migrate_pages, sys_migrate_pages, compat_sys_migrate_pages) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 647 | #define __NR_move_pages 239 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 648 | __SC_COMP(__NR_move_pages, sys_move_pages, compat_sys_move_pages) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 649 | #endif |
| 650 | |
Arnd Bergmann | fcec9bf | 2009-06-19 10:30:29 +0200 | [diff] [blame] | 651 | #define __NR_rt_tgsigqueueinfo 240 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 652 | __SC_COMP(__NR_rt_tgsigqueueinfo, sys_rt_tgsigqueueinfo, \ |
| 653 | compat_sys_rt_tgsigqueueinfo) |
Ingo Molnar | cdd6c48 | 2009-09-21 12:02:48 +0200 | [diff] [blame] | 654 | #define __NR_perf_event_open 241 |
| 655 | __SYSCALL(__NR_perf_event_open, sys_perf_event_open) |
Arnd Bergmann | 9ab8764 | 2009-12-10 22:10:31 +0100 | [diff] [blame] | 656 | #define __NR_accept4 242 |
| 657 | __SYSCALL(__NR_accept4, sys_accept4) |
Arnd Bergmann | 3d77038 | 2009-12-10 22:15:20 +0100 | [diff] [blame] | 658 | #define __NR_recvmmsg 243 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 659 | __SC_COMP(__NR_recvmmsg, sys_recvmmsg, compat_sys_recvmmsg) |
Arnd Bergmann | fcec9bf | 2009-06-19 10:30:29 +0200 | [diff] [blame] | 660 | |
Chris Metcalf | 5360bd7 | 2010-05-28 23:01:00 -0400 | [diff] [blame] | 661 | /* |
| 662 | * Architectures may provide up to 16 syscalls of their own |
| 663 | * starting with this value. |
| 664 | */ |
| 665 | #define __NR_arch_specific_syscall 244 |
| 666 | |
Chris Metcalf | b51cae2 | 2010-06-25 14:54:16 -0400 | [diff] [blame] | 667 | #define __NR_wait4 260 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 668 | __SC_COMP(__NR_wait4, sys_wait4, compat_sys_wait4) |
Linus Torvalds | b34d891 | 2010-08-10 12:07:51 -0700 | [diff] [blame] | 669 | #define __NR_prlimit64 261 |
Jiri Slaby | f33ebbe | 2010-05-06 20:17:00 +0200 | [diff] [blame] | 670 | __SYSCALL(__NR_prlimit64, sys_prlimit64) |
Chris Metcalf | fad9e93 | 2010-08-11 11:07:24 -0400 | [diff] [blame] | 671 | #define __NR_fanotify_init 262 |
| 672 | __SYSCALL(__NR_fanotify_init, sys_fanotify_init) |
| 673 | #define __NR_fanotify_mark 263 |
| 674 | __SYSCALL(__NR_fanotify_mark, sys_fanotify_mark) |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 675 | #define __NR_name_to_handle_at 264 |
Aneesh Kumar K.V | a51571c | 2011-01-29 18:43:38 +0530 | [diff] [blame] | 676 | __SYSCALL(__NR_name_to_handle_at, sys_name_to_handle_at) |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 677 | #define __NR_open_by_handle_at 265 |
| 678 | __SC_COMP(__NR_open_by_handle_at, sys_open_by_handle_at, \ |
| 679 | compat_sys_open_by_handle_at) |
Chris Metcalf | 339dc50 | 2011-03-19 11:47:53 -0400 | [diff] [blame] | 680 | #define __NR_clock_adjtime 266 |
Chris Metcalf | be84cb4 | 2011-05-09 13:12:30 -0400 | [diff] [blame] | 681 | __SC_COMP(__NR_clock_adjtime, sys_clock_adjtime, compat_sys_clock_adjtime) |
Andrew Morton | c7a1fcd | 2011-03-22 16:30:07 -0700 | [diff] [blame] | 682 | #define __NR_syncfs 267 |
Sage Weil | b7ed78f | 2011-03-10 11:31:30 -0800 | [diff] [blame] | 683 | __SYSCALL(__NR_syncfs, sys_syncfs) |
Eric W. Biederman | 7b21fdd | 2011-05-27 19:28:27 -0700 | [diff] [blame] | 684 | #define __NR_setns 268 |
| 685 | __SYSCALL(__NR_setns, sys_setns) |
Chris Metcalf | b36a968 | 2011-06-02 14:21:45 -0400 | [diff] [blame] | 686 | #define __NR_sendmmsg 269 |
| 687 | __SC_COMP(__NR_sendmmsg, sys_sendmmsg, compat_sys_sendmmsg) |
Chris Metcalf | b51cae2 | 2010-06-25 14:54:16 -0400 | [diff] [blame] | 688 | |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 689 | #undef __NR_syscalls |
Chris Metcalf | b36a968 | 2011-06-02 14:21:45 -0400 | [diff] [blame] | 690 | #define __NR_syscalls 270 |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 691 | |
| 692 | /* |
| 693 | * All syscalls below here should go away really, |
| 694 | * these are provided for both review and as a porting |
| 695 | * help for the C library version. |
| 696 | * |
André Goddard Rosa | af901ca | 2009-11-14 13:09:05 -0200 | [diff] [blame] | 697 | * Last chance: are any of these important enough to |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 698 | * enable by default? |
| 699 | */ |
| 700 | #ifdef __ARCH_WANT_SYSCALL_NO_AT |
| 701 | #define __NR_open 1024 |
| 702 | __SYSCALL(__NR_open, sys_open) |
| 703 | #define __NR_link 1025 |
| 704 | __SYSCALL(__NR_link, sys_link) |
| 705 | #define __NR_unlink 1026 |
| 706 | __SYSCALL(__NR_unlink, sys_unlink) |
| 707 | #define __NR_mknod 1027 |
| 708 | __SYSCALL(__NR_mknod, sys_mknod) |
| 709 | #define __NR_chmod 1028 |
| 710 | __SYSCALL(__NR_chmod, sys_chmod) |
| 711 | #define __NR_chown 1029 |
| 712 | __SYSCALL(__NR_chown, sys_chown) |
| 713 | #define __NR_mkdir 1030 |
| 714 | __SYSCALL(__NR_mkdir, sys_mkdir) |
| 715 | #define __NR_rmdir 1031 |
| 716 | __SYSCALL(__NR_rmdir, sys_rmdir) |
| 717 | #define __NR_lchown 1032 |
| 718 | __SYSCALL(__NR_lchown, sys_lchown) |
| 719 | #define __NR_access 1033 |
| 720 | __SYSCALL(__NR_access, sys_access) |
| 721 | #define __NR_rename 1034 |
| 722 | __SYSCALL(__NR_rename, sys_rename) |
| 723 | #define __NR_readlink 1035 |
| 724 | __SYSCALL(__NR_readlink, sys_readlink) |
| 725 | #define __NR_symlink 1036 |
| 726 | __SYSCALL(__NR_symlink, sys_symlink) |
| 727 | #define __NR_utimes 1037 |
| 728 | __SYSCALL(__NR_utimes, sys_utimes) |
| 729 | #define __NR3264_stat 1038 |
| 730 | __SC_3264(__NR3264_stat, sys_stat64, sys_newstat) |
| 731 | #define __NR3264_lstat 1039 |
| 732 | __SC_3264(__NR3264_lstat, sys_lstat64, sys_newlstat) |
| 733 | |
| 734 | #undef __NR_syscalls |
| 735 | #define __NR_syscalls (__NR3264_lstat+1) |
| 736 | #endif /* __ARCH_WANT_SYSCALL_NO_AT */ |
| 737 | |
| 738 | #ifdef __ARCH_WANT_SYSCALL_NO_FLAGS |
| 739 | #define __NR_pipe 1040 |
| 740 | __SYSCALL(__NR_pipe, sys_pipe) |
| 741 | #define __NR_dup2 1041 |
| 742 | __SYSCALL(__NR_dup2, sys_dup2) |
| 743 | #define __NR_epoll_create 1042 |
| 744 | __SYSCALL(__NR_epoll_create, sys_epoll_create) |
| 745 | #define __NR_inotify_init 1043 |
| 746 | __SYSCALL(__NR_inotify_init, sys_inotify_init) |
| 747 | #define __NR_eventfd 1044 |
| 748 | __SYSCALL(__NR_eventfd, sys_eventfd) |
| 749 | #define __NR_signalfd 1045 |
| 750 | __SYSCALL(__NR_signalfd, sys_signalfd) |
| 751 | |
| 752 | #undef __NR_syscalls |
| 753 | #define __NR_syscalls (__NR_signalfd+1) |
| 754 | #endif /* __ARCH_WANT_SYSCALL_NO_FLAGS */ |
| 755 | |
Chris Metcalf | 5360bd7 | 2010-05-28 23:01:00 -0400 | [diff] [blame] | 756 | #if (__BITS_PER_LONG == 32 || defined(__SYSCALL_COMPAT)) && \ |
| 757 | defined(__ARCH_WANT_SYSCALL_OFF_T) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 758 | #define __NR_sendfile 1046 |
| 759 | __SYSCALL(__NR_sendfile, sys_sendfile) |
| 760 | #define __NR_ftruncate 1047 |
| 761 | __SYSCALL(__NR_ftruncate, sys_ftruncate) |
| 762 | #define __NR_truncate 1048 |
| 763 | __SYSCALL(__NR_truncate, sys_truncate) |
| 764 | #define __NR_stat 1049 |
| 765 | __SYSCALL(__NR_stat, sys_newstat) |
| 766 | #define __NR_lstat 1050 |
| 767 | __SYSCALL(__NR_lstat, sys_newlstat) |
| 768 | #define __NR_fstat 1051 |
| 769 | __SYSCALL(__NR_fstat, sys_newfstat) |
| 770 | #define __NR_fcntl 1052 |
| 771 | __SYSCALL(__NR_fcntl, sys_fcntl) |
| 772 | #define __NR_fadvise64 1053 |
| 773 | #define __ARCH_WANT_SYS_FADVISE64 |
| 774 | __SYSCALL(__NR_fadvise64, sys_fadvise64) |
| 775 | #define __NR_newfstatat 1054 |
| 776 | #define __ARCH_WANT_SYS_NEWFSTATAT |
| 777 | __SYSCALL(__NR_newfstatat, sys_newfstatat) |
| 778 | #define __NR_fstatfs 1055 |
| 779 | __SYSCALL(__NR_fstatfs, sys_fstatfs) |
| 780 | #define __NR_statfs 1056 |
| 781 | __SYSCALL(__NR_statfs, sys_statfs) |
| 782 | #define __NR_lseek 1057 |
| 783 | __SYSCALL(__NR_lseek, sys_lseek) |
| 784 | #define __NR_mmap 1058 |
| 785 | __SYSCALL(__NR_mmap, sys_mmap) |
| 786 | |
| 787 | #undef __NR_syscalls |
| 788 | #define __NR_syscalls (__NR_mmap+1) |
| 789 | #endif /* 32 bit off_t syscalls */ |
| 790 | |
| 791 | #ifdef __ARCH_WANT_SYSCALL_DEPRECATED |
| 792 | #define __NR_alarm 1059 |
| 793 | #define __ARCH_WANT_SYS_ALARM |
| 794 | __SYSCALL(__NR_alarm, sys_alarm) |
| 795 | #define __NR_getpgrp 1060 |
| 796 | #define __ARCH_WANT_SYS_GETPGRP |
| 797 | __SYSCALL(__NR_getpgrp, sys_getpgrp) |
| 798 | #define __NR_pause 1061 |
| 799 | #define __ARCH_WANT_SYS_PAUSE |
| 800 | __SYSCALL(__NR_pause, sys_pause) |
| 801 | #define __NR_time 1062 |
| 802 | #define __ARCH_WANT_SYS_TIME |
Chris Metcalf | 5360bd7 | 2010-05-28 23:01:00 -0400 | [diff] [blame] | 803 | #define __ARCH_WANT_COMPAT_SYS_TIME |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 804 | __SYSCALL(__NR_time, sys_time) |
| 805 | #define __NR_utime 1063 |
| 806 | #define __ARCH_WANT_SYS_UTIME |
| 807 | __SYSCALL(__NR_utime, sys_utime) |
| 808 | |
| 809 | #define __NR_creat 1064 |
| 810 | __SYSCALL(__NR_creat, sys_creat) |
| 811 | #define __NR_getdents 1065 |
| 812 | #define __ARCH_WANT_SYS_GETDENTS |
| 813 | __SYSCALL(__NR_getdents, sys_getdents) |
| 814 | #define __NR_futimesat 1066 |
| 815 | __SYSCALL(__NR_futimesat, sys_futimesat) |
| 816 | #define __NR_select 1067 |
| 817 | #define __ARCH_WANT_SYS_SELECT |
| 818 | __SYSCALL(__NR_select, sys_select) |
| 819 | #define __NR_poll 1068 |
| 820 | __SYSCALL(__NR_poll, sys_poll) |
| 821 | #define __NR_epoll_wait 1069 |
| 822 | __SYSCALL(__NR_epoll_wait, sys_epoll_wait) |
| 823 | #define __NR_ustat 1070 |
| 824 | __SYSCALL(__NR_ustat, sys_ustat) |
| 825 | #define __NR_vfork 1071 |
| 826 | __SYSCALL(__NR_vfork, sys_vfork) |
Chris Metcalf | b51cae2 | 2010-06-25 14:54:16 -0400 | [diff] [blame] | 827 | #define __NR_oldwait4 1072 |
| 828 | __SYSCALL(__NR_oldwait4, sys_wait4) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 829 | #define __NR_recv 1073 |
| 830 | __SYSCALL(__NR_recv, sys_recv) |
| 831 | #define __NR_send 1074 |
| 832 | __SYSCALL(__NR_send, sys_send) |
| 833 | #define __NR_bdflush 1075 |
| 834 | __SYSCALL(__NR_bdflush, sys_bdflush) |
| 835 | #define __NR_umount 1076 |
| 836 | __SYSCALL(__NR_umount, sys_oldumount) |
| 837 | #define __ARCH_WANT_SYS_OLDUMOUNT |
| 838 | #define __NR_uselib 1077 |
| 839 | __SYSCALL(__NR_uselib, sys_uselib) |
| 840 | #define __NR__sysctl 1078 |
| 841 | __SYSCALL(__NR__sysctl, sys_sysctl) |
| 842 | |
| 843 | #define __NR_fork 1079 |
| 844 | #ifdef CONFIG_MMU |
| 845 | __SYSCALL(__NR_fork, sys_fork) |
| 846 | #else |
| 847 | __SYSCALL(__NR_fork, sys_ni_syscall) |
| 848 | #endif /* CONFIG_MMU */ |
| 849 | |
| 850 | #undef __NR_syscalls |
| 851 | #define __NR_syscalls (__NR_fork+1) |
| 852 | |
| 853 | #endif /* __ARCH_WANT_SYSCALL_DEPRECATED */ |
| 854 | |
| 855 | /* |
| 856 | * 32 bit systems traditionally used different |
| 857 | * syscalls for off_t and loff_t arguments, while |
| 858 | * 64 bit systems only need the off_t version. |
| 859 | * For new 32 bit platforms, there is no need to |
| 860 | * implement the old 32 bit off_t syscalls, so |
| 861 | * they take different names. |
| 862 | * Here we map the numbers so that both versions |
| 863 | * use the same syscall table layout. |
| 864 | */ |
Chris Metcalf | 5360bd7 | 2010-05-28 23:01:00 -0400 | [diff] [blame] | 865 | #if __BITS_PER_LONG == 64 && !defined(__SYSCALL_COMPAT) |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 866 | #define __NR_fcntl __NR3264_fcntl |
| 867 | #define __NR_statfs __NR3264_statfs |
| 868 | #define __NR_fstatfs __NR3264_fstatfs |
| 869 | #define __NR_truncate __NR3264_truncate |
Chen Liqin | 4029a91f | 2009-10-26 11:09:29 +0800 | [diff] [blame] | 870 | #define __NR_ftruncate __NR3264_ftruncate |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 871 | #define __NR_lseek __NR3264_lseek |
| 872 | #define __NR_sendfile __NR3264_sendfile |
| 873 | #define __NR_newfstatat __NR3264_fstatat |
| 874 | #define __NR_fstat __NR3264_fstat |
| 875 | #define __NR_mmap __NR3264_mmap |
| 876 | #define __NR_fadvise64 __NR3264_fadvise64 |
| 877 | #ifdef __NR3264_stat |
| 878 | #define __NR_stat __NR3264_stat |
| 879 | #define __NR_lstat __NR3264_lstat |
| 880 | #endif |
| 881 | #else |
| 882 | #define __NR_fcntl64 __NR3264_fcntl |
| 883 | #define __NR_statfs64 __NR3264_statfs |
| 884 | #define __NR_fstatfs64 __NR3264_fstatfs |
| 885 | #define __NR_truncate64 __NR3264_truncate |
Chen Liqin | 4029a91f | 2009-10-26 11:09:29 +0800 | [diff] [blame] | 886 | #define __NR_ftruncate64 __NR3264_ftruncate |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 887 | #define __NR_llseek __NR3264_lseek |
| 888 | #define __NR_sendfile64 __NR3264_sendfile |
| 889 | #define __NR_fstatat64 __NR3264_fstatat |
| 890 | #define __NR_fstat64 __NR3264_fstat |
| 891 | #define __NR_mmap2 __NR3264_mmap |
| 892 | #define __NR_fadvise64_64 __NR3264_fadvise64 |
| 893 | #ifdef __NR3264_stat |
| 894 | #define __NR_stat64 __NR3264_stat |
| 895 | #define __NR_lstat64 __NR3264_lstat |
| 896 | #endif |
| 897 | #endif |
| 898 | |
| 899 | #ifdef __KERNEL__ |
| 900 | |
| 901 | /* |
| 902 | * These are required system calls, we should |
| 903 | * invert the logic eventually and let them |
| 904 | * be selected by default. |
| 905 | */ |
| 906 | #if __BITS_PER_LONG == 32 |
| 907 | #define __ARCH_WANT_STAT64 |
| 908 | #define __ARCH_WANT_SYS_LLSEEK |
| 909 | #endif |
| 910 | #define __ARCH_WANT_SYS_RT_SIGACTION |
| 911 | #define __ARCH_WANT_SYS_RT_SIGSUSPEND |
Chris Metcalf | 5360bd7 | 2010-05-28 23:01:00 -0400 | [diff] [blame] | 912 | #define __ARCH_WANT_COMPAT_SYS_RT_SIGSUSPEND |
Arnd Bergmann | e64a161 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 913 | |
| 914 | /* |
| 915 | * "Conditional" syscalls |
| 916 | * |
| 917 | * What we want is __attribute__((weak,alias("sys_ni_syscall"))), |
| 918 | * but it doesn't work on all toolchains, so we just do it by hand |
| 919 | */ |
| 920 | #ifndef cond_syscall |
| 921 | #define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall") |
| 922 | #endif |
| 923 | |
| 924 | #endif /* __KERNEL__ */ |
| 925 | #endif /* _ASM_GENERIC_UNISTD_H */ |