blob: 32712a925f26c63f1171b05519be5134867a2c64 [file] [log] [blame]
H. Peter Anvin303395a2011-11-11 16:07:41 -08001#ifndef _ASM_X86_UNISTD_H
2#define _ASM_X86_UNISTD_H 1
3
David Howellsaf170c52012-12-14 22:37:13 +00004#include <uapi/asm/unistd.h>
H. Peter Anvin6cbb3692012-02-14 14:38:31 -08005
H. Peter Anvinfca460f2012-02-19 07:56:26 -08006
7# ifdef CONFIG_X86_X32_ABI
8# define __SYSCALL_MASK (~(__X32_SYSCALL_BIT))
9# else
10# define __SYSCALL_MASK (~0)
11# endif
12
Adrian Bunkb11caa72008-04-20 22:02:17 +030013# ifdef CONFIG_X86_32
H. Peter Anvin303395a2011-11-11 16:07:41 -080014
15# include <asm/unistd_32.h>
H. Peter Anvin303395a2011-11-11 16:07:41 -080016# define __ARCH_WANT_STAT64
H. Peter Anvin4f2f81a2012-01-19 12:41:25 -080017# define __ARCH_WANT_SYS_IPC
H. Peter Anvin303395a2011-11-11 16:07:41 -080018# define __ARCH_WANT_SYS_OLD_MMAP
19# define __ARCH_WANT_SYS_OLD_SELECT
20
Adrian Bunkb11caa72008-04-20 22:02:17 +030021# else
H. Peter Anvin303395a2011-11-11 16:07:41 -080022
23# include <asm/unistd_64.h>
H. Peter Anvinea499fe2012-02-14 14:46:23 -080024# include <asm/unistd_64_x32.h>
H. Peter Anvin303395a2011-11-11 16:07:41 -080025# define __ARCH_WANT_COMPAT_SYS_TIME
Heiko Carstens0473c9b2014-03-03 10:44:03 +010026# define __ARCH_WANT_COMPAT_SYS_GETDENTS64
Heiko Carstens378a10f2014-03-05 10:43:51 +010027# define __ARCH_WANT_COMPAT_SYS_PREADV64
28# define __ARCH_WANT_COMPAT_SYS_PWRITEV64
H.J. Lu3ebfd812016-07-14 12:31:53 -070029# define __ARCH_WANT_COMPAT_SYS_PREADV64V2
30# define __ARCH_WANT_COMPAT_SYS_PWRITEV64V2
H. Peter Anvin303395a2011-11-11 16:07:41 -080031
Adrian Bunkb11caa72008-04-20 22:02:17 +030032# endif
H. Peter Anvin303395a2011-11-11 16:07:41 -080033
34# define __ARCH_WANT_OLD_READDIR
35# define __ARCH_WANT_OLD_STAT
36# define __ARCH_WANT_SYS_ALARM
37# define __ARCH_WANT_SYS_FADVISE64
38# define __ARCH_WANT_SYS_GETHOSTNAME
39# define __ARCH_WANT_SYS_GETPGRP
40# define __ARCH_WANT_SYS_LLSEEK
41# define __ARCH_WANT_SYS_NICE
42# define __ARCH_WANT_SYS_OLDUMOUNT
43# define __ARCH_WANT_SYS_OLD_GETRLIMIT
44# define __ARCH_WANT_SYS_OLD_UNAME
45# define __ARCH_WANT_SYS_PAUSE
H. Peter Anvin303395a2011-11-11 16:07:41 -080046# define __ARCH_WANT_SYS_SIGNAL
47# define __ARCH_WANT_SYS_SIGPENDING
48# define __ARCH_WANT_SYS_SIGPROCMASK
49# define __ARCH_WANT_SYS_SOCKETCALL
50# define __ARCH_WANT_SYS_TIME
51# define __ARCH_WANT_SYS_UTIME
52# define __ARCH_WANT_SYS_WAITPID
Al Viro1d4b4b22012-10-22 22:34:11 -040053# define __ARCH_WANT_SYS_FORK
54# define __ARCH_WANT_SYS_VFORK
55# define __ARCH_WANT_SYS_CLONE
H. Peter Anvin303395a2011-11-11 16:07:41 -080056
H. Peter Anvin303395a2011-11-11 16:07:41 -080057#endif /* _ASM_X86_UNISTD_H */