Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/signal
[linux-3.10.git] / arch / m32r / include / asm / unistd.h
1 #ifndef _ASM_M32R_UNISTD_H
2 #define _ASM_M32R_UNISTD_H
3
4 #include <uapi/asm/unistd.h>
5
6
7 #define NR_syscalls 326
8
9 #define __ARCH_WANT_STAT64
10 #define __ARCH_WANT_SYS_ALARM
11 #define __ARCH_WANT_SYS_GETHOSTNAME
12 #define __ARCH_WANT_SYS_IPC
13 #define __ARCH_WANT_SYS_PAUSE
14 #define __ARCH_WANT_SYS_TIME
15 #define __ARCH_WANT_SYS_UTIME
16 #define __ARCH_WANT_SYS_WAITPID
17 #define __ARCH_WANT_SYS_SOCKETCALL
18 #define __ARCH_WANT_SYS_FADVISE64
19 #define __ARCH_WANT_SYS_GETPGRP
20 #define __ARCH_WANT_SYS_LLSEEK
21 #define __ARCH_WANT_SYS_OLD_GETRLIMIT /*will be unused*/
22 #define __ARCH_WANT_SYS_OLDUMOUNT
23 #define __ARCH_WANT_SYS_RT_SIGACTION
24 #define __ARCH_WANT_SYS_RT_SIGSUSPEND
25 #define __ARCH_WANT_SYS_CLONE
26 #define __ARCH_WANT_SYS_FORK
27 #define __ARCH_WANT_SYS_VFORK
28
29 #define __IGNORE_lchown
30 #define __IGNORE_setuid
31 #define __IGNORE_getuid
32 #define __IGNORE_setgid
33 #define __IGNORE_getgid
34 #define __IGNORE_geteuid
35 #define __IGNORE_getegid
36 #define __IGNORE_fcntl
37 #define __IGNORE_setreuid
38 #define __IGNORE_setregid
39 #define __IGNORE_getrlimit
40 #define __IGNORE_getgroups
41 #define __IGNORE_setgroups
42 #define __IGNORE_select
43 #define __IGNORE_mmap
44 #define __IGNORE_fchown
45 #define __IGNORE_setfsuid
46 #define __IGNORE_setfsgid
47 #define __IGNORE_setresuid
48 #define __IGNORE_getresuid
49 #define __IGNORE_setresgid
50 #define __IGNORE_getresgid
51 #define __IGNORE_chown
52
53 /*
54  * "Conditional" syscalls
55  *
56  * What we want is __attribute__((weak,alias("sys_ni_syscall"))),
57  * but it doesn't work on all toolchains, so we just do it by hand
58  */
59 #ifndef cond_syscall
60 #define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall")
61 #endif
62
63 #endif /* _ASM_M32R_UNISTD_H */