Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * This file is subject to the terms and conditions of the GNU General Public
0003  * License.  See the file "COPYING" in the main directory of this archive
0004  * for more details.
0005  *
0006  * Copyright (C) 1995, 96, 97, 98, 99, 2000 by Ralf Baechle
0007  * Copyright (C) 1999, 2000 Silicon Graphics, Inc.
0008  *
0009  * Changed system calls macros _syscall5 - _syscall7 to push args 5 to 7 onto
0010  * the stack. Robin Farine for ACN S.A, Copyright (C) 1996 by ACN S.A
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 /* whitelists for checksyscalls */
0064 #define __IGNORE_fadvise64_64
0065 
0066 #endif /* !__ASSEMBLY__ */
0067 
0068 #endif /* _ASM_UNISTD_H */