1
2
3
4
5
6
7
8
9
10
11
12 #ifndef _ASM_UNISTD_H
13 #define _ASM_UNISTD_H
14
15 #include <uapi/asm/unistd.h>
16 #include <asm/unistd_nr_n32.h>
17 #include <asm/unistd_nr_n64.h>
18 #include <asm/unistd_nr_o32.h>
19
20 #ifdef CONFIG_MIPS32_N32
21 #define NR_syscalls (__NR_N32_Linux + __NR_N32_Linux_syscalls)
22 #elif defined(CONFIG_64BIT)
23 #define NR_syscalls (__NR_64_Linux + __NR_64_Linux_syscalls)
24 #else
25 #define NR_syscalls (__NR_O32_Linux + __NR_O32_Linux_syscalls)
26 #endif
27
28 #ifndef __ASSEMBLY__
29
30 #define __ARCH_WANT_NEW_STAT
31 #define __ARCH_WANT_OLD_READDIR
32 #define __ARCH_WANT_SYS_ALARM
33 #define __ARCH_WANT_SYS_GETHOSTNAME
34 #define __ARCH_WANT_SYS_IPC
35 #define __ARCH_WANT_SYS_PAUSE
36 #define __ARCH_WANT_SYS_UTIME
37 #define __ARCH_WANT_SYS_UTIME32
38 #define __ARCH_WANT_SYS_WAITPID
39 #define __ARCH_WANT_SYS_SOCKETCALL
40 #define __ARCH_WANT_SYS_GETPGRP
41 #define __ARCH_WANT_SYS_NICE
42 #define __ARCH_WANT_SYS_OLD_UNAME
43 #define __ARCH_WANT_SYS_OLDUMOUNT
44 #define __ARCH_WANT_SYS_SIGPENDING
45 #define __ARCH_WANT_SYS_SIGPROCMASK
46 # ifdef CONFIG_32BIT
47 # define __ARCH_WANT_STAT64
48 # define __ARCH_WANT_SYS_TIME32
49 # endif
50 # ifdef CONFIG_MIPS32_O32
51 # define __ARCH_WANT_SYS_TIME32
52 # endif
53 #define __ARCH_WANT_SYS_FORK
54 #define __ARCH_WANT_SYS_CLONE
55 #define __ARCH_WANT_SYS_CLONE3
56
57
58 #define __IGNORE_fadvise64_64
59
60 #endif
61
62 #endif