blob: 555629b052672ed9c7532455b311fcdd90eb436a [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef _ASM_M32R_UNISTD_H
2#define _ASM_M32R_UNISTD_H
3
David Howellsf7f4dc12012-12-19 16:07:18 +00004#include <uapi/asm/unistd.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -07005
David Woodhouse56142532006-04-29 01:51:47 +01006
Eric W. Biederman7b21fdd2011-05-27 19:28:27 -07007#define NR_syscalls 326
Linus Torvalds1da177e2005-04-16 15:20:36 -07008
Linus Torvalds1da177e2005-04-16 15:20:36 -07009#define __ARCH_WANT_STAT64
10#define __ARCH_WANT_SYS_ALARM
11#define __ARCH_WANT_SYS_GETHOSTNAME
Christoph Hellwigbaed7fc2010-03-10 15:21:18 -080012#define __ARCH_WANT_SYS_IPC
Linus Torvalds1da177e2005-04-16 15:20:36 -070013#define __ARCH_WANT_SYS_PAUSE
14#define __ARCH_WANT_SYS_TIME
15#define __ARCH_WANT_SYS_UTIME
16#define __ARCH_WANT_SYS_WAITPID
17#define __ARCH_WANT_SYS_SOCKETCALL
18#define __ARCH_WANT_SYS_FADVISE64
19#define __ARCH_WANT_SYS_GETPGRP
20#define __ARCH_WANT_SYS_LLSEEK
21#define __ARCH_WANT_SYS_OLD_GETRLIMIT /*will be unused*/
22#define __ARCH_WANT_SYS_OLDUMOUNT
Al Viro92bbe6c2012-10-21 16:52:56 -040023#define __ARCH_WANT_SYS_CLONE
24#define __ARCH_WANT_SYS_FORK
25#define __ARCH_WANT_SYS_VFORK
Linus Torvalds1da177e2005-04-16 15:20:36 -070026
Hirokazu Takata52fda482007-09-13 18:31:34 +090027#define __IGNORE_lchown
28#define __IGNORE_setuid
29#define __IGNORE_getuid
30#define __IGNORE_setgid
31#define __IGNORE_getgid
32#define __IGNORE_geteuid
33#define __IGNORE_getegid
34#define __IGNORE_fcntl
35#define __IGNORE_setreuid
36#define __IGNORE_setregid
37#define __IGNORE_getrlimit
38#define __IGNORE_getgroups
39#define __IGNORE_setgroups
40#define __IGNORE_select
41#define __IGNORE_mmap
42#define __IGNORE_fchown
43#define __IGNORE_setfsuid
44#define __IGNORE_setfsgid
45#define __IGNORE_setresuid
46#define __IGNORE_getresuid
47#define __IGNORE_setresgid
48#define __IGNORE_getresgid
49#define __IGNORE_chown
50
Linus Torvalds1da177e2005-04-16 15:20:36 -070051/*
52 * "Conditional" syscalls
53 *
54 * What we want is __attribute__((weak,alias("sys_ni_syscall"))),
55 * but it doesn't work on all toolchains, so we just do it by hand
56 */
57#ifndef cond_syscall
58#define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall")
59#endif
60
Linus Torvalds1da177e2005-04-16 15:20:36 -070061#endif /* _ASM_M32R_UNISTD_H */