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 __NR_ia32_syscall_max __NR_syscall_max 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_SYS_PREADV64 26 # define __ARCH_WANT_COMPAT_SYS_PWRITEV64 27 # define __ARCH_WANT_COMPAT_SYS_PREADV64V2 28 # define __ARCH_WANT_COMPAT_SYS_PWRITEV64V2 29 30 # endif 31 32 # define NR_syscalls (__NR_syscall_max + 1) 33 # define X32_NR_syscalls (__NR_x32_syscall_max + 1) 34 # define IA32_NR_syscalls (__NR_ia32_syscall_max + 1) 35 36 # define __ARCH_WANT_NEW_STAT 37 # define __ARCH_WANT_OLD_READDIR 38 # define __ARCH_WANT_OLD_STAT 39 # define __ARCH_WANT_SYS_ALARM 40 # define __ARCH_WANT_SYS_FADVISE64 41 # define __ARCH_WANT_SYS_GETHOSTNAME 42 # define __ARCH_WANT_SYS_GETPGRP 43 # define __ARCH_WANT_SYS_NICE 44 # define __ARCH_WANT_SYS_OLDUMOUNT 45 # define __ARCH_WANT_SYS_OLD_GETRLIMIT 46 # define __ARCH_WANT_SYS_OLD_UNAME 47 # define __ARCH_WANT_SYS_PAUSE 48 # define __ARCH_WANT_SYS_SIGNAL 49 # define __ARCH_WANT_SYS_SIGPENDING 50 # define __ARCH_WANT_SYS_SIGPROCMASK 51 # define __ARCH_WANT_SYS_SOCKETCALL 52 # define __ARCH_WANT_SYS_TIME32 53 # define __ARCH_WANT_SYS_UTIME32 54 # define __ARCH_WANT_SYS_WAITPID 55 # define __ARCH_WANT_SYS_FORK 56 # define __ARCH_WANT_SYS_VFORK 57 # define __ARCH_WANT_SYS_CLONE 58 # define __ARCH_WANT_SYS_CLONE3 59 60 #endif /* _ASM_X86_UNISTD_H */ 61