1b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */ 2303395acSH. Peter Anvin #ifndef _ASM_X86_UNISTD_H 3303395acSH. Peter Anvin #define _ASM_X86_UNISTD_H 1 4303395acSH. Peter Anvin 5af170c50SDavid Howells #include <uapi/asm/unistd.h> 66cbb369fSH. Peter Anvin 7fca460f9SH. Peter Anvin 8bb898558SAl Viro # ifdef CONFIG_X86_32 9303395acSH. Peter Anvin 10303395acSH. Peter Anvin # include <asm/unistd_32.h> 11303395acSH. Peter Anvin # define __ARCH_WANT_STAT64 124f2f81a5SH. Peter Anvin # define __ARCH_WANT_SYS_IPC 13303395acSH. Peter Anvin # define __ARCH_WANT_SYS_OLD_MMAP 14303395acSH. Peter Anvin # define __ARCH_WANT_SYS_OLD_SELECT 15303395acSH. Peter Anvin 1649f731f1SMasahiro Yamada # define IA32_NR_syscalls (__NR_syscalls) 1708720988SBrian Gerst 18bb898558SAl Viro # else 19303395acSH. Peter Anvin 20303395acSH. Peter Anvin # include <asm/unistd_64.h> 21ea499fecSH. Peter Anvin # include <asm/unistd_64_x32.h> 2208720988SBrian Gerst # include <asm/unistd_32_ia32.h> 23d33c577cSArnd Bergmann # define __ARCH_WANT_SYS_TIME 24d33c577cSArnd Bergmann # define __ARCH_WANT_SYS_UTIME 25*f18ed30dSGuo Ren # define __ARCH_WANT_COMPAT_STAT 26378a10f3SHeiko Carstens # define __ARCH_WANT_COMPAT_SYS_PREADV64 27378a10f3SHeiko Carstens # define __ARCH_WANT_COMPAT_SYS_PWRITEV64 283ebfd81fSH.J. Lu # define __ARCH_WANT_COMPAT_SYS_PREADV64V2 293ebfd81fSH.J. Lu # define __ARCH_WANT_COMPAT_SYS_PWRITEV64V2 3049f731f1SMasahiro Yamada # define X32_NR_syscalls (__NR_x32_syscalls) 3149f731f1SMasahiro Yamada # define IA32_NR_syscalls (__NR_ia32_syscalls) 32303395acSH. Peter Anvin 33bb898558SAl Viro # endif 34303395acSH. Peter Anvin 3549f731f1SMasahiro Yamada # define NR_syscalls (__NR_syscalls) 3608720988SBrian Gerst 3782b355d1SArnd Bergmann # define __ARCH_WANT_NEW_STAT 38303395acSH. Peter Anvin # define __ARCH_WANT_OLD_READDIR 39303395acSH. Peter Anvin # define __ARCH_WANT_OLD_STAT 40303395acSH. Peter Anvin # define __ARCH_WANT_SYS_ALARM 41303395acSH. Peter Anvin # define __ARCH_WANT_SYS_FADVISE64 42303395acSH. Peter Anvin # define __ARCH_WANT_SYS_GETHOSTNAME 43303395acSH. Peter Anvin # define __ARCH_WANT_SYS_GETPGRP 44303395acSH. Peter Anvin # define __ARCH_WANT_SYS_NICE 45303395acSH. Peter Anvin # define __ARCH_WANT_SYS_OLDUMOUNT 46303395acSH. Peter Anvin # define __ARCH_WANT_SYS_OLD_GETRLIMIT 47303395acSH. Peter Anvin # define __ARCH_WANT_SYS_OLD_UNAME 48303395acSH. Peter Anvin # define __ARCH_WANT_SYS_PAUSE 49303395acSH. Peter Anvin # define __ARCH_WANT_SYS_SIGNAL 50303395acSH. Peter Anvin # define __ARCH_WANT_SYS_SIGPENDING 51303395acSH. Peter Anvin # define __ARCH_WANT_SYS_SIGPROCMASK 52303395acSH. Peter Anvin # define __ARCH_WANT_SYS_SOCKETCALL 53d33c577cSArnd Bergmann # define __ARCH_WANT_SYS_TIME32 54d33c577cSArnd Bergmann # define __ARCH_WANT_SYS_UTIME32 55303395acSH. Peter Anvin # define __ARCH_WANT_SYS_WAITPID 561d4b4b29SAl Viro # define __ARCH_WANT_SYS_FORK 571d4b4b29SAl Viro # define __ARCH_WANT_SYS_VFORK 581d4b4b29SAl Viro # define __ARCH_WANT_SYS_CLONE 59d68dbb0cSChristian Brauner # define __ARCH_WANT_SYS_CLONE3 60303395acSH. Peter Anvin 61303395acSH. Peter Anvin #endif /* _ASM_X86_UNISTD_H */ 62