Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
unistd.h
Go to the documentation of this file.
1 /*
2  * S390 version
3  *
4  * Derived from "include/asm-i386/unistd.h"
5  */
6 #ifndef _ASM_S390_UNISTD_H_
7 #define _ASM_S390_UNISTD_H_
8 
9 #include <uapi/asm/unistd.h>
10 
11 
12 #ifndef CONFIG_64BIT
13 #define __IGNORE_select
14 #else
15 #define __IGNORE_time
16 #endif
17 
18 /* Ignore NUMA system calls. Not wired up on s390. */
19 #define __IGNORE_mbind
20 #define __IGNORE_get_mempolicy
21 #define __IGNORE_set_mempolicy
22 #define __IGNORE_migrate_pages
23 #define __IGNORE_move_pages
24 
25 /* Ignore system calls that are also reachable via sys_socket */
26 #define __IGNORE_recvmmsg
27 #define __IGNORE_sendmmsg
28 
29 #define __ARCH_WANT_OLD_READDIR
30 #define __ARCH_WANT_SYS_ALARM
31 #define __ARCH_WANT_SYS_GETHOSTNAME
32 #define __ARCH_WANT_SYS_PAUSE
33 #define __ARCH_WANT_SYS_SIGNAL
34 #define __ARCH_WANT_SYS_UTIME
35 #define __ARCH_WANT_SYS_SOCKETCALL
36 #define __ARCH_WANT_SYS_IPC
37 #define __ARCH_WANT_SYS_FADVISE64
38 #define __ARCH_WANT_SYS_GETPGRP
39 #define __ARCH_WANT_SYS_LLSEEK
40 #define __ARCH_WANT_SYS_NICE
41 #define __ARCH_WANT_SYS_OLD_GETRLIMIT
42 #define __ARCH_WANT_SYS_OLD_MMAP
43 #define __ARCH_WANT_SYS_OLDUMOUNT
44 #define __ARCH_WANT_SYS_SIGPENDING
45 #define __ARCH_WANT_SYS_SIGPROCMASK
46 #define __ARCH_WANT_SYS_RT_SIGACTION
47 #define __ARCH_WANT_SYS_RT_SIGSUSPEND
48 # ifndef CONFIG_64BIT
49 # define __ARCH_WANT_STAT64
50 # define __ARCH_WANT_SYS_TIME
51 # endif
52 # ifdef CONFIG_COMPAT
53 # define __ARCH_WANT_COMPAT_SYS_TIME
54 # define __ARCH_WANT_COMPAT_SYS_RT_SIGSUSPEND
55 # endif
56 #define __ARCH_WANT_SYS_EXECVE
57 #define __ARCH_WANT_KERNEL_EXECVE
58 
59 /*
60  * "Conditional" syscalls
61  *
62  * What we want is __attribute__((weak,alias("sys_ni_syscall"))),
63  * but it doesn't work on all toolchains, so we just do it by hand
64  */
65 #define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall")
66 
67 #endif /* _ASM_S390_UNISTD_H_ */