Merge tag 'disintegrate-cris-20121009' of git://git.infradead.org/users/dhowells...
[~shefty/rdma-dev.git] / arch / cris / include / asm / unistd.h
1 #ifndef _ASM_CRIS_UNISTD_H_
2 #define _ASM_CRIS_UNISTD_H_
3
4 #include <uapi/asm/unistd.h>
5
6
7 #define NR_syscalls 336
8
9 #include <arch/unistd.h>
10
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
16 #define __ARCH_WANT_SYS_IPC
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
29 #define __ARCH_WANT_SYS_OLD_MMAP
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
34 #define __ARCH_WANT_SYS_RT_SIGSUSPEND
35 #define __ARCH_WANT_SYS_EXECVE
36 #define __ARCH_WANT_SYS_FORK
37 #define __ARCH_WANT_SYS_VFORK
38 #define __ARCH_WANT_SYS_CLONE
39
40 /*
41  * "Conditional" syscalls
42  *
43  * What we want is __attribute__((weak,alias("sys_ni_syscall"))),
44  * but it doesn't work on all toolchains, so we just do it by hand
45  */
46 #define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall")
47
48 #endif /* _ASM_CRIS_UNISTD_H_ */