Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef _ASM_X86_UNISTD_H
0003 #define _ASM_X86_UNISTD_H 1
0004 
0005 #include <uapi/asm/unistd.h>
0006 
0007 
0008 # ifdef CONFIG_X86_32
0009 
0010 #  include <asm/unistd_32.h>
0011 #  define __ARCH_WANT_STAT64
0012 #  define __ARCH_WANT_SYS_IPC
0013 #  define __ARCH_WANT_SYS_OLD_MMAP
0014 #  define __ARCH_WANT_SYS_OLD_SELECT
0015 
0016 #  define IA32_NR_syscalls (__NR_syscalls)
0017 
0018 # else
0019 
0020 #  include <asm/unistd_64.h>
0021 #  include <asm/unistd_64_x32.h>
0022 #  include <asm/unistd_32_ia32.h>
0023 #  define __ARCH_WANT_SYS_TIME
0024 #  define __ARCH_WANT_SYS_UTIME
0025 #  define __ARCH_WANT_COMPAT_STAT
0026 #  define __ARCH_WANT_COMPAT_SYS_PREADV64
0027 #  define __ARCH_WANT_COMPAT_SYS_PWRITEV64
0028 #  define __ARCH_WANT_COMPAT_SYS_PREADV64V2
0029 #  define __ARCH_WANT_COMPAT_SYS_PWRITEV64V2
0030 #  define X32_NR_syscalls (__NR_x32_syscalls)
0031 #  define IA32_NR_syscalls (__NR_ia32_syscalls)
0032 
0033 # endif
0034 
0035 # define NR_syscalls (__NR_syscalls)
0036 
0037 # define __ARCH_WANT_NEW_STAT
0038 # define __ARCH_WANT_OLD_READDIR
0039 # define __ARCH_WANT_OLD_STAT
0040 # define __ARCH_WANT_SYS_ALARM
0041 # define __ARCH_WANT_SYS_FADVISE64
0042 # define __ARCH_WANT_SYS_GETHOSTNAME
0043 # define __ARCH_WANT_SYS_GETPGRP
0044 # define __ARCH_WANT_SYS_NICE
0045 # define __ARCH_WANT_SYS_OLDUMOUNT
0046 # define __ARCH_WANT_SYS_OLD_GETRLIMIT
0047 # define __ARCH_WANT_SYS_OLD_UNAME
0048 # define __ARCH_WANT_SYS_PAUSE
0049 # define __ARCH_WANT_SYS_SIGNAL
0050 # define __ARCH_WANT_SYS_SIGPENDING
0051 # define __ARCH_WANT_SYS_SIGPROCMASK
0052 # define __ARCH_WANT_SYS_SOCKETCALL
0053 # define __ARCH_WANT_SYS_TIME32
0054 # define __ARCH_WANT_SYS_UTIME32
0055 # define __ARCH_WANT_SYS_WAITPID
0056 # define __ARCH_WANT_SYS_FORK
0057 # define __ARCH_WANT_SYS_VFORK
0058 # define __ARCH_WANT_SYS_CLONE
0059 # define __ARCH_WANT_SYS_CLONE3
0060 
0061 #endif /* _ASM_X86_UNISTD_H */