Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
| 2 | * This file is subject to the terms and conditions of the GNU General Public |
| 3 | * License. See the file "COPYING" in the main directory of this archive |
| 4 | * for more details. |
| 5 | * |
| 6 | * Copyright (C) 1995, 96, 97, 98, 99, 2000 by Ralf Baechle |
| 7 | * Copyright (C) 1999, 2000 Silicon Graphics, Inc. |
| 8 | * |
| 9 | * Changed system calls macros _syscall5 - _syscall7 to push args 5 to 7 onto |
| 10 | * the stack. Robin Farine for ACN S.A, Copyright (C) 1996 by ACN S.A |
| 11 | */ |
| 12 | #ifndef _ASM_UNISTD_H |
| 13 | #define _ASM_UNISTD_H |
| 14 | |
David Howells | 61730c5 | 2012-10-09 09:47:14 +0100 | [diff] [blame] | 15 | #include <uapi/asm/unistd.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 16 | |
David Woodhouse | 5614253 | 2006-04-29 01:51:47 +0100 | [diff] [blame] | 17 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 18 | #ifndef __ASSEMBLY__ |
| 19 | |
Ralf Baechle | 21e9ac7 | 2006-10-30 21:38:22 +0000 | [diff] [blame] | 20 | #define __ARCH_OMIT_COMPAT_SYS_GETDENTS64 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 21 | #define __ARCH_WANT_OLD_READDIR |
| 22 | #define __ARCH_WANT_SYS_ALARM |
| 23 | #define __ARCH_WANT_SYS_GETHOSTNAME |
Christoph Hellwig | baed7fc | 2010-03-10 15:21:18 -0800 | [diff] [blame] | 24 | #define __ARCH_WANT_SYS_IPC |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 25 | #define __ARCH_WANT_SYS_PAUSE |
| 26 | #define __ARCH_WANT_SYS_SGETMASK |
| 27 | #define __ARCH_WANT_SYS_UTIME |
| 28 | #define __ARCH_WANT_SYS_WAITPID |
| 29 | #define __ARCH_WANT_SYS_SOCKETCALL |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 30 | #define __ARCH_WANT_SYS_GETPGRP |
| 31 | #define __ARCH_WANT_SYS_LLSEEK |
| 32 | #define __ARCH_WANT_SYS_NICE |
| 33 | #define __ARCH_WANT_SYS_OLD_GETRLIMIT |
Christoph Hellwig | 5cacdb4 | 2010-03-10 15:21:21 -0800 | [diff] [blame] | 34 | #define __ARCH_WANT_SYS_OLD_UNAME |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 35 | #define __ARCH_WANT_SYS_OLDUMOUNT |
| 36 | #define __ARCH_WANT_SYS_SIGPENDING |
| 37 | #define __ARCH_WANT_SYS_SIGPROCMASK |
| 38 | #define __ARCH_WANT_SYS_RT_SIGACTION |
Ralf Baechle | 875d43e | 2005-09-03 15:56:16 -0700 | [diff] [blame] | 39 | # ifdef CONFIG_32BIT |
Ralf Baechle | 359bbd4 | 2006-02-09 12:13:28 +0000 | [diff] [blame] | 40 | # define __ARCH_WANT_STAT64 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 41 | # define __ARCH_WANT_SYS_TIME |
| 42 | # endif |
| 43 | # ifdef CONFIG_MIPS32_O32 |
| 44 | # define __ARCH_WANT_COMPAT_SYS_TIME |
| 45 | # endif |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 46 | |
Atsushi Nemoto | 83d0f23 | 2007-05-29 23:30:04 +0900 | [diff] [blame] | 47 | /* whitelists for checksyscalls */ |
| 48 | #define __IGNORE_select |
| 49 | #define __IGNORE_vfork |
| 50 | #define __IGNORE_time |
| 51 | #define __IGNORE_uselib |
| 52 | #define __IGNORE_fadvise64_64 |
| 53 | #define __IGNORE_getdents64 |
| 54 | #if _MIPS_SIM == _MIPS_SIM_NABI32 |
| 55 | #define __IGNORE_truncate64 |
| 56 | #define __IGNORE_ftruncate64 |
| 57 | #define __IGNORE_stat64 |
| 58 | #define __IGNORE_lstat64 |
| 59 | #define __IGNORE_fstat64 |
| 60 | #define __IGNORE_fstatat64 |
| 61 | #endif |
| 62 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 63 | #endif /* !__ASSEMBLY__ */ |
| 64 | |
| 65 | /* |
| 66 | * "Conditional" syscalls |
| 67 | * |
| 68 | * What we want is __attribute__((weak,alias("sys_ni_syscall"))), |
| 69 | * but it doesn't work on all toolchains, so we just do it by hand |
| 70 | */ |
| 71 | #define cond_syscall(x) asm(".weak\t" #x "\n" #x "\t=\tsys_ni_syscall") |
| 72 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 73 | #endif /* _ASM_UNISTD_H */ |