blob: a021d67cdd72202b63d86abcc74216338c1a1e06 [file] [log] [blame]
Greg Ungerer9df3d512009-03-16 22:12:28 +10001#ifndef _ASM_M68K_UNISTD_H_
2#define _ASM_M68K_UNISTD_H_
3
David Howells10b3a972012-10-09 09:47:06 +01004#include <uapi/asm/unistd.h>
Greg Ungerer9df3d512009-03-16 22:12:28 +10005
Greg Ungerer9df3d512009-03-16 22:12:28 +10006
Geert Uytterhoeven8a745ee2012-09-23 11:03:00 +02007#define NR_syscalls 348
Greg Ungerer9df3d512009-03-16 22:12:28 +10008
Greg Ungerer9df3d512009-03-16 22:12:28 +10009#define __ARCH_WANT_OLD_READDIR
10#define __ARCH_WANT_OLD_STAT
11#define __ARCH_WANT_STAT64
12#define __ARCH_WANT_SYS_ALARM
13#define __ARCH_WANT_SYS_GETHOSTNAME
Christoph Hellwigbaed7fc2010-03-10 15:21:18 -080014#define __ARCH_WANT_SYS_IPC
Greg Ungerer9df3d512009-03-16 22:12:28 +100015#define __ARCH_WANT_SYS_PAUSE
16#define __ARCH_WANT_SYS_SGETMASK
17#define __ARCH_WANT_SYS_SIGNAL
18#define __ARCH_WANT_SYS_TIME
19#define __ARCH_WANT_SYS_UTIME
20#define __ARCH_WANT_SYS_WAITPID
21#define __ARCH_WANT_SYS_SOCKETCALL
22#define __ARCH_WANT_SYS_FADVISE64
23#define __ARCH_WANT_SYS_GETPGRP
24#define __ARCH_WANT_SYS_LLSEEK
25#define __ARCH_WANT_SYS_NICE
26#define __ARCH_WANT_SYS_OLD_GETRLIMIT
Christoph Hellwiga4679372010-03-10 15:21:15 -080027#define __ARCH_WANT_SYS_OLD_MMAP
Christoph Hellwig5d0e5282010-03-10 15:21:13 -080028#define __ARCH_WANT_SYS_OLD_SELECT
Greg Ungerer9df3d512009-03-16 22:12:28 +100029#define __ARCH_WANT_SYS_OLDUMOUNT
30#define __ARCH_WANT_SYS_SIGPENDING
31#define __ARCH_WANT_SYS_SIGPROCMASK
32#define __ARCH_WANT_SYS_RT_SIGACTION
Al Viroe68847f2010-09-29 23:28:59 -040033#define __ARCH_WANT_SYS_RT_SIGSUSPEND
Al Virod878d6d2012-09-16 12:06:34 -040034#define __ARCH_WANT_SYS_EXECVE
Al Viro20ecc912012-10-21 16:41:46 -040035#define __ARCH_WANT_SYS_FORK
36#define __ARCH_WANT_SYS_VFORK
Greg Ungerer9df3d512009-03-16 22:12:28 +100037
38/*
39 * "Conditional" syscalls
40 *
41 * What we want is __attribute__((weak,alias("sys_ni_syscall"))),
42 * but it doesn't work on all toolchains, so we just do it by hand
43 */
44#define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall")
45
Greg Ungerer9df3d512009-03-16 22:12:28 +100046#endif /* _ASM_M68K_UNISTD_H_ */