Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef _ALPHA_UNISTD_H |
| 2 | #define _ALPHA_UNISTD_H |
| 3 | |
David Howells | 96433f6e | 2012-12-17 13:47:09 +0000 | [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 | |
Michael Cree | d8d5da1 | 2012-08-19 14:40:57 +1200 | [diff] [blame] | 7 | #define NR_SYSCALLS 506 |
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_STAT64 |
| 11 | #define __ARCH_WANT_SYS_GETHOSTNAME |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 12 | #define __ARCH_WANT_SYS_FADVISE64 |
| 13 | #define __ARCH_WANT_SYS_GETPGRP |
| 14 | #define __ARCH_WANT_SYS_OLD_GETRLIMIT |
| 15 | #define __ARCH_WANT_SYS_OLDUMOUNT |
| 16 | #define __ARCH_WANT_SYS_SIGPENDING |
Al Viro | 392fb6e | 2010-09-18 08:40:07 -0400 | [diff] [blame] | 17 | #define __ARCH_WANT_SYS_RT_SIGSUSPEND |
Al Viro | 756144f | 2012-08-02 12:53:03 +0400 | [diff] [blame] | 18 | #define __ARCH_WANT_SYS_EXECVE |
Al Viro | dfe09ae | 2012-10-26 09:54:47 -0400 | [diff] [blame] | 19 | #define __ARCH_WANT_SYS_FORK |
| 20 | #define __ARCH_WANT_SYS_VFORK |
| 21 | #define __ARCH_WANT_SYS_CLONE |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 22 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 23 | /* "Conditional" syscalls. What we want is |
| 24 | |
| 25 | __attribute__((weak,alias("sys_ni_syscall"))) |
| 26 | |
| 27 | but that raises the problem of what type to give the symbol. If we use |
| 28 | a prototype, it'll conflict with the definition given in this file and |
| 29 | others. If we use __typeof, we discover that not all symbols actually |
| 30 | have declarations. If we use no prototype, then we get warnings from |
| 31 | -Wstrict-prototypes. Ho hum. */ |
| 32 | |
| 33 | #define cond_syscall(x) asm(".weak\t" #x "\n" #x " = sys_ni_syscall") |
| 34 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 35 | #endif /* _ALPHA_UNISTD_H */ |