Greg Ungerer | 9df3d51 | 2009-03-16 22:12:28 +1000 | [diff] [blame] | 1 | #ifndef _ASM_M68K_UNISTD_H_ |
| 2 | #define _ASM_M68K_UNISTD_H_ |
| 3 | |
David Howells | 10b3a97 | 2012-10-09 09:47:06 +0100 | [diff] [blame] | 4 | #include <uapi/asm/unistd.h> |
Greg Ungerer | 9df3d51 | 2009-03-16 22:12:28 +1000 | [diff] [blame] | 5 | |
Greg Ungerer | 9df3d51 | 2009-03-16 22:12:28 +1000 | [diff] [blame] | 6 | |
Geert Uytterhoeven | 8a745ee | 2012-09-23 11:03:00 +0200 | [diff] [blame] | 7 | #define NR_syscalls 348 |
Greg Ungerer | 9df3d51 | 2009-03-16 22:12:28 +1000 | [diff] [blame] | 8 | |
Greg Ungerer | 9df3d51 | 2009-03-16 22:12:28 +1000 | [diff] [blame] | 9 | #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 Hellwig | baed7fc | 2010-03-10 15:21:18 -0800 | [diff] [blame] | 14 | #define __ARCH_WANT_SYS_IPC |
Greg Ungerer | 9df3d51 | 2009-03-16 22:12:28 +1000 | [diff] [blame] | 15 | #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 Hellwig | a467937 | 2010-03-10 15:21:15 -0800 | [diff] [blame] | 27 | #define __ARCH_WANT_SYS_OLD_MMAP |
Christoph Hellwig | 5d0e528 | 2010-03-10 15:21:13 -0800 | [diff] [blame] | 28 | #define __ARCH_WANT_SYS_OLD_SELECT |
Greg Ungerer | 9df3d51 | 2009-03-16 22:12:28 +1000 | [diff] [blame] | 29 | #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 Viro | e68847f | 2010-09-29 23:28:59 -0400 | [diff] [blame] | 33 | #define __ARCH_WANT_SYS_RT_SIGSUSPEND |
Al Viro | d878d6d | 2012-09-16 12:06:34 -0400 | [diff] [blame] | 34 | #define __ARCH_WANT_SYS_EXECVE |
Al Viro | 20ecc91 | 2012-10-21 16:41:46 -0400 | [diff] [blame^] | 35 | #define __ARCH_WANT_SYS_FORK |
| 36 | #define __ARCH_WANT_SYS_VFORK |
Greg Ungerer | 9df3d51 | 2009-03-16 22:12:28 +1000 | [diff] [blame] | 37 | |
| 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 Ungerer | 9df3d51 | 2009-03-16 22:12:28 +1000 | [diff] [blame] | 46 | #endif /* _ASM_M68K_UNISTD_H_ */ |