0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #ifndef _ASM_UNISTD_H
0013 #define _ASM_UNISTD_H
0014
0015 #include <uapi/asm/unistd.h>
0016 #include <asm/unistd_nr_n32.h>
0017 #include <asm/unistd_nr_n64.h>
0018 #include <asm/unistd_nr_o32.h>
0019
0020 #define __NR_N32_Linux 6000
0021 #define __NR_64_Linux 5000
0022 #define __NR_O32_Linux 4000
0023
0024 #ifdef CONFIG_MIPS32_N32
0025 #define NR_syscalls (__NR_N32_Linux + __NR_N32_Linux_syscalls)
0026 #elif defined(CONFIG_64BIT)
0027 #define NR_syscalls (__NR_64_Linux + __NR_64_Linux_syscalls)
0028 #else
0029 #define NR_syscalls (__NR_O32_Linux + __NR_O32_Linux_syscalls)
0030 #endif
0031
0032 #ifndef __ASSEMBLY__
0033
0034 #define __ARCH_WANT_NEW_STAT
0035 #define __ARCH_WANT_OLD_READDIR
0036 #define __ARCH_WANT_SYS_ALARM
0037 #define __ARCH_WANT_SYS_GETHOSTNAME
0038 #define __ARCH_WANT_SYS_IPC
0039 #define __ARCH_WANT_SYS_PAUSE
0040 #define __ARCH_WANT_SYS_UTIME
0041 #define __ARCH_WANT_SYS_UTIME32
0042 #define __ARCH_WANT_SYS_WAITPID
0043 #define __ARCH_WANT_SYS_SOCKETCALL
0044 #define __ARCH_WANT_SYS_GETPGRP
0045 #define __ARCH_WANT_SYS_NICE
0046 #define __ARCH_WANT_SYS_OLD_UNAME
0047 #define __ARCH_WANT_SYS_OLDUMOUNT
0048 #define __ARCH_WANT_SYS_SIGPENDING
0049 #define __ARCH_WANT_SYS_SIGPROCMASK
0050 # ifdef CONFIG_32BIT
0051 # define __ARCH_WANT_STAT64
0052 # define __ARCH_WANT_SYS_TIME32
0053 # else
0054 # define __ARCH_WANT_COMPAT_STAT
0055 # endif
0056 # ifdef CONFIG_MIPS32_O32
0057 # define __ARCH_WANT_SYS_TIME32
0058 # endif
0059 #define __ARCH_WANT_SYS_FORK
0060 #define __ARCH_WANT_SYS_CLONE
0061 #define __ARCH_WANT_SYS_CLONE3
0062
0063
0064 #define __IGNORE_fadvise64_64
0065
0066 #endif
0067
0068 #endif