b4a3db7ce1408213e0def655e775ff3aa94c82c0
[cascardo/linux.git] / arch / x86 / include / asm / unistd.h
1 #ifndef _ASM_X86_UNISTD_H
2 #define _ASM_X86_UNISTD_H 1
3
4 #ifdef __KERNEL__
5 # ifdef CONFIG_X86_32
6
7 #  include <asm/unistd_32.h>
8 #  define __ARCH_WANT_IPC_PARSE_VERSION
9 #  define __ARCH_WANT_STAT64
10 #  define __ARCH_WANT_SYS_OLD_MMAP
11 #  define __ARCH_WANT_SYS_OLD_SELECT
12
13 # else
14
15 #  include <asm/unistd_64.h>
16 #  define __ARCH_WANT_COMPAT_SYS_TIME
17
18 # endif
19
20 # define __ARCH_WANT_OLD_READDIR
21 # define __ARCH_WANT_OLD_STAT
22 # define __ARCH_WANT_SYS_ALARM
23 # define __ARCH_WANT_SYS_FADVISE64
24 # define __ARCH_WANT_SYS_GETHOSTNAME
25 # define __ARCH_WANT_SYS_GETPGRP
26 # define __ARCH_WANT_SYS_LLSEEK
27 # define __ARCH_WANT_SYS_NICE
28 # define __ARCH_WANT_SYS_OLDUMOUNT
29 # define __ARCH_WANT_SYS_OLD_GETRLIMIT
30 # define __ARCH_WANT_SYS_OLD_UNAME
31 # define __ARCH_WANT_SYS_PAUSE
32 # define __ARCH_WANT_SYS_RT_SIGACTION
33 # define __ARCH_WANT_SYS_RT_SIGSUSPEND
34 # define __ARCH_WANT_SYS_SGETMASK
35 # define __ARCH_WANT_SYS_SIGNAL
36 # define __ARCH_WANT_SYS_SIGPENDING
37 # define __ARCH_WANT_SYS_SIGPROCMASK
38 # define __ARCH_WANT_SYS_SOCKETCALL
39 # define __ARCH_WANT_SYS_TIME
40 # define __ARCH_WANT_SYS_UTIME
41 # define __ARCH_WANT_SYS_WAITPID
42
43 /*
44  * "Conditional" syscalls
45  *
46  * What we want is __attribute__((weak,alias("sys_ni_syscall"))),
47  * but it doesn't work on all toolchains, so we just do it by hand
48  */
49 # define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall")
50
51 #else
52 # ifdef __i386__
53 #  include <asm/unistd_32.h>
54 # else
55 #  include <asm/unistd_64.h>
56 # endif
57 #endif
58
59 #endif /* _ASM_X86_UNISTD_H */