blob: 4d3b92886665799d2ca2b746d8efc310cc0c1168 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
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 Howells61730c52012-10-09 09:47:14 +010015#include <uapi/asm/unistd.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070016
Ralf Baechle1d7bf992013-09-06 20:24:48 +020017#ifdef CONFIG_MIPS32_N32
18#define NR_syscalls (__NR_N32_Linux + __NR_N32_Linux_syscalls)
19#elif defined(CONFIG_64BIT)
20#define NR_syscalls (__NR_64_Linux + __NR_64_Linux_syscalls)
21#else
22#define NR_syscalls (__NR_O32_Linux + __NR_O32_Linux_syscalls)
23#endif
David Woodhouse56142532006-04-29 01:51:47 +010024
Linus Torvalds1da177e2005-04-16 15:20:36 -070025#ifndef __ASSEMBLY__
26
Ralf Baechle21e9ac72006-10-30 21:38:22 +000027#define __ARCH_OMIT_COMPAT_SYS_GETDENTS64
Linus Torvalds1da177e2005-04-16 15:20:36 -070028#define __ARCH_WANT_OLD_READDIR
29#define __ARCH_WANT_SYS_ALARM
30#define __ARCH_WANT_SYS_GETHOSTNAME
Christoph Hellwigbaed7fc2010-03-10 15:21:18 -080031#define __ARCH_WANT_SYS_IPC
Linus Torvalds1da177e2005-04-16 15:20:36 -070032#define __ARCH_WANT_SYS_PAUSE
33#define __ARCH_WANT_SYS_SGETMASK
34#define __ARCH_WANT_SYS_UTIME
35#define __ARCH_WANT_SYS_WAITPID
36#define __ARCH_WANT_SYS_SOCKETCALL
Linus Torvalds1da177e2005-04-16 15:20:36 -070037#define __ARCH_WANT_SYS_GETPGRP
38#define __ARCH_WANT_SYS_LLSEEK
39#define __ARCH_WANT_SYS_NICE
40#define __ARCH_WANT_SYS_OLD_GETRLIMIT
Christoph Hellwig5cacdb42010-03-10 15:21:21 -080041#define __ARCH_WANT_SYS_OLD_UNAME
Linus Torvalds1da177e2005-04-16 15:20:36 -070042#define __ARCH_WANT_SYS_OLDUMOUNT
43#define __ARCH_WANT_SYS_SIGPENDING
44#define __ARCH_WANT_SYS_SIGPROCMASK
Ralf Baechle875d43e2005-09-03 15:56:16 -070045# ifdef CONFIG_32BIT
Ralf Baechle359bbd42006-02-09 12:13:28 +000046# define __ARCH_WANT_STAT64
Linus Torvalds1da177e2005-04-16 15:20:36 -070047# define __ARCH_WANT_SYS_TIME
48# endif
49# ifdef CONFIG_MIPS32_O32
50# define __ARCH_WANT_COMPAT_SYS_TIME
51# endif
Al Viro50150d22012-12-27 12:11:46 -050052#define __ARCH_WANT_SYS_FORK
53#define __ARCH_WANT_SYS_CLONE
Linus Torvalds1da177e2005-04-16 15:20:36 -070054
Atsushi Nemoto83d0f232007-05-29 23:30:04 +090055/* whitelists for checksyscalls */
56#define __IGNORE_select
57#define __IGNORE_vfork
58#define __IGNORE_time
59#define __IGNORE_uselib
60#define __IGNORE_fadvise64_64
61#define __IGNORE_getdents64
62#if _MIPS_SIM == _MIPS_SIM_NABI32
63#define __IGNORE_truncate64
64#define __IGNORE_ftruncate64
65#define __IGNORE_stat64
66#define __IGNORE_lstat64
67#define __IGNORE_fstat64
68#define __IGNORE_fstatat64
69#endif
70
Linus Torvalds1da177e2005-04-16 15:20:36 -070071#endif /* !__ASSEMBLY__ */
72
Linus Torvalds1da177e2005-04-16 15:20:36 -070073#endif /* _ASM_UNISTD_H */