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