Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef _ASM_UNISTD_H_ |
| 2 | #define _ASM_UNISTD_H_ |
| 3 | |
David Howells | aa2c47e | 2012-10-10 12:09:42 +0100 | [diff] [blame] | 4 | #include <uapi/asm/unistd.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 5 | |
David Woodhouse | 5614253 | 2006-04-29 01:51:47 +0100 | [diff] [blame] | 6 | |
Eric W. Biederman | 7b21fdd | 2011-05-27 19:28:27 -0700 | [diff] [blame] | 7 | #define NR_syscalls 338 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 8 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 9 | /* #define __ARCH_WANT_OLD_READDIR */ |
| 10 | #define __ARCH_WANT_OLD_STAT |
| 11 | #define __ARCH_WANT_STAT64 |
| 12 | #define __ARCH_WANT_SYS_ALARM |
| 13 | /* #define __ARCH_WANT_SYS_GETHOSTNAME */ |
Christoph Hellwig | baed7fc | 2010-03-10 15:21:18 -0800 | [diff] [blame] | 14 | #define __ARCH_WANT_SYS_IPC |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 15 | #define __ARCH_WANT_SYS_PAUSE |
| 16 | /* #define __ARCH_WANT_SYS_SGETMASK */ |
| 17 | /* #define __ARCH_WANT_SYS_SIGNAL */ |
| 18 | #define __ARCH_WANT_SYS_TIME |
| 19 | #define __ARCH_WANT_SYS_UTIME |
| 20 | #define __ARCH_WANT_SYS_WAITPID |
| 21 | #define __ARCH_WANT_SYS_SOCKETCALL |
| 22 | #define __ARCH_WANT_SYS_FADVISE64 |
| 23 | #define __ARCH_WANT_SYS_GETPGRP |
| 24 | #define __ARCH_WANT_SYS_LLSEEK |
| 25 | #define __ARCH_WANT_SYS_NICE |
| 26 | /* #define __ARCH_WANT_SYS_OLD_GETRLIMIT */ |
| 27 | #define __ARCH_WANT_SYS_OLDUMOUNT |
| 28 | /* #define __ARCH_WANT_SYS_SIGPENDING */ |
| 29 | #define __ARCH_WANT_SYS_SIGPROCMASK |
| 30 | #define __ARCH_WANT_SYS_RT_SIGACTION |
David Howells | a411aee | 2006-01-18 17:43:59 -0800 | [diff] [blame] | 31 | #define __ARCH_WANT_SYS_RT_SIGSUSPEND |
Al Viro | 460daba | 2012-09-18 22:25:02 -0400 | [diff] [blame] | 32 | #define __ARCH_WANT_SYS_EXECVE |
Al Viro | b9763ce | 2012-10-21 16:40:35 -0400 | [diff] [blame^] | 33 | #define __ARCH_WANT_SYS_FORK |
| 34 | #define __ARCH_WANT_SYS_VFORK |
| 35 | #define __ARCH_WANT_SYS_CLONE |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 36 | |
| 37 | /* |
| 38 | * "Conditional" syscalls |
| 39 | * |
| 40 | * What we want is __attribute__((weak,alias("sys_ni_syscall"))), |
| 41 | * but it doesn't work on all toolchains, so we just do it by hand |
| 42 | */ |
| 43 | #ifndef cond_syscall |
| 44 | #define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall") |
| 45 | #endif |
| 46 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 47 | #endif /* _ASM_UNISTD_H_ */ |