xref: /linux/arch/x86/include/asm/unistd.h (revision cb787f4ac0c2e439ea8d7e6387b925f74576bdf8)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_X86_UNISTD_H
3 #define _ASM_X86_UNISTD_H 1
4 
5 #include <uapi/asm/unistd.h>
6 
7 
8 # ifdef CONFIG_X86_32
9 
10 #  include <asm/unistd_32.h>
11 #  define __ARCH_WANT_STAT64
12 #  define __ARCH_WANT_SYS_IPC
13 #  define __ARCH_WANT_SYS_OLD_MMAP
14 #  define __ARCH_WANT_SYS_OLD_SELECT
15 
16 #  define IA32_NR_syscalls (__NR_syscalls)
17 
18 # else
19 
20 #  include <asm/unistd_64.h>
21 #  include <asm/unistd_64_x32.h>
22 #  include <asm/unistd_32_ia32.h>
23 #  define __ARCH_WANT_SYS_TIME
24 #  define __ARCH_WANT_SYS_UTIME
25 #  define __ARCH_WANT_COMPAT_STAT
26 #  define __ARCH_WANT_COMPAT_SYS_PREADV64
27 #  define __ARCH_WANT_COMPAT_SYS_PWRITEV64
28 #  define __ARCH_WANT_COMPAT_SYS_PREADV64V2
29 #  define __ARCH_WANT_COMPAT_SYS_PWRITEV64V2
30 #  define X32_NR_syscalls (__NR_x32_syscalls)
31 #  define IA32_NR_syscalls (__NR_ia32_syscalls)
32 
33 # endif
34 
35 # define NR_syscalls (__NR_syscalls)
36 
37 # define __ARCH_WANT_NEW_STAT
38 # define __ARCH_WANT_OLD_READDIR
39 # define __ARCH_WANT_OLD_STAT
40 # define __ARCH_WANT_SYS_ALARM
41 # define __ARCH_WANT_SYS_FADVISE64
42 # define __ARCH_WANT_SYS_GETHOSTNAME
43 # define __ARCH_WANT_SYS_GETPGRP
44 # define __ARCH_WANT_SYS_NICE
45 # define __ARCH_WANT_SYS_OLDUMOUNT
46 # define __ARCH_WANT_SYS_OLD_GETRLIMIT
47 # define __ARCH_WANT_SYS_OLD_UNAME
48 # define __ARCH_WANT_SYS_PAUSE
49 # define __ARCH_WANT_SYS_SIGNAL
50 # define __ARCH_WANT_SYS_SIGPENDING
51 # define __ARCH_WANT_SYS_SIGPROCMASK
52 # define __ARCH_WANT_SYS_SOCKETCALL
53 # define __ARCH_WANT_SYS_TIME32
54 # define __ARCH_WANT_SYS_UTIME32
55 # define __ARCH_WANT_SYS_WAITPID
56 # define __ARCH_WANT_SYS_FORK
57 # define __ARCH_WANT_SYS_VFORK
58 # define __ARCH_WANT_SYS_CLONE
59 
60 #endif /* _ASM_X86_UNISTD_H */
61