Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef _ASM_CRIS_UNISTD_H_ |
| 2 | #define _ASM_CRIS_UNISTD_H_ |
| 3 | |
David Howells | e717aba | 2012-10-09 09:46:45 +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 336 |
Mikael Starvik | 5d01e6c | 2005-07-27 11:44:43 -0700 | [diff] [blame] | 8 | |
Jesper Nilsson | 556dcee | 2008-10-21 17:45:58 +0200 | [diff] [blame] | 9 | #include <arch/unistd.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 10 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 11 | #define __ARCH_WANT_OLD_READDIR |
| 12 | #define __ARCH_WANT_OLD_STAT |
| 13 | #define __ARCH_WANT_STAT64 |
| 14 | #define __ARCH_WANT_SYS_ALARM |
| 15 | #define __ARCH_WANT_SYS_GETHOSTNAME |
Christoph Hellwig | baed7fc | 2010-03-10 15:21:18 -0800 | [diff] [blame] | 16 | #define __ARCH_WANT_SYS_IPC |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 17 | #define __ARCH_WANT_SYS_PAUSE |
| 18 | #define __ARCH_WANT_SYS_SGETMASK |
| 19 | #define __ARCH_WANT_SYS_SIGNAL |
| 20 | #define __ARCH_WANT_SYS_TIME |
| 21 | #define __ARCH_WANT_SYS_UTIME |
| 22 | #define __ARCH_WANT_SYS_WAITPID |
| 23 | #define __ARCH_WANT_SYS_SOCKETCALL |
| 24 | #define __ARCH_WANT_SYS_FADVISE64 |
| 25 | #define __ARCH_WANT_SYS_GETPGRP |
| 26 | #define __ARCH_WANT_SYS_LLSEEK |
| 27 | #define __ARCH_WANT_SYS_NICE |
| 28 | #define __ARCH_WANT_SYS_OLD_GETRLIMIT |
Christoph Hellwig | a467937 | 2010-03-10 15:21:15 -0800 | [diff] [blame] | 29 | #define __ARCH_WANT_SYS_OLD_MMAP |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 30 | #define __ARCH_WANT_SYS_OLDUMOUNT |
| 31 | #define __ARCH_WANT_SYS_SIGPENDING |
| 32 | #define __ARCH_WANT_SYS_SIGPROCMASK |
| 33 | #define __ARCH_WANT_SYS_RT_SIGACTION |
Jesper Nilsson | 3ea0345 | 2008-01-14 00:55:22 -0800 | [diff] [blame] | 34 | #define __ARCH_WANT_SYS_RT_SIGSUSPEND |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 35 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 36 | /* |
| 37 | * "Conditional" syscalls |
| 38 | * |
| 39 | * What we want is __attribute__((weak,alias("sys_ni_syscall"))), |
| 40 | * but it doesn't work on all toolchains, so we just do it by hand |
| 41 | */ |
| 42 | #define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall") |
| 43 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 44 | #endif /* _ASM_CRIS_UNISTD_H_ */ |