unistd.h 1.2 KB
Newer Older
1 2 3
#ifndef _ASM_M68K_UNISTD_H_
#define _ASM_M68K_UNISTD_H_

4
#include <uapi/asm/unistd.h>
5 6


G
Geert Uytterhoeven 已提交
7
#define NR_syscalls		348
8 9 10 11 12 13

#define __ARCH_WANT_OLD_READDIR
#define __ARCH_WANT_OLD_STAT
#define __ARCH_WANT_STAT64
#define __ARCH_WANT_SYS_ALARM
#define __ARCH_WANT_SYS_GETHOSTNAME
C
Christoph Hellwig 已提交
14
#define __ARCH_WANT_SYS_IPC
15 16 17 18 19 20 21 22 23 24 25 26
#define __ARCH_WANT_SYS_PAUSE
#define __ARCH_WANT_SYS_SGETMASK
#define __ARCH_WANT_SYS_SIGNAL
#define __ARCH_WANT_SYS_TIME
#define __ARCH_WANT_SYS_UTIME
#define __ARCH_WANT_SYS_WAITPID
#define __ARCH_WANT_SYS_SOCKETCALL
#define __ARCH_WANT_SYS_FADVISE64
#define __ARCH_WANT_SYS_GETPGRP
#define __ARCH_WANT_SYS_LLSEEK
#define __ARCH_WANT_SYS_NICE
#define __ARCH_WANT_SYS_OLD_GETRLIMIT
C
Christoph Hellwig 已提交
27
#define __ARCH_WANT_SYS_OLD_MMAP
C
Christoph Hellwig 已提交
28
#define __ARCH_WANT_SYS_OLD_SELECT
29 30 31 32
#define __ARCH_WANT_SYS_OLDUMOUNT
#define __ARCH_WANT_SYS_SIGPENDING
#define __ARCH_WANT_SYS_SIGPROCMASK
#define __ARCH_WANT_SYS_RT_SIGACTION
A
Al Viro 已提交
33
#define __ARCH_WANT_SYS_RT_SIGSUSPEND
34
#define __ARCH_WANT_SYS_EXECVE
35 36 37 38 39 40 41 42 43 44

/*
 * "Conditional" syscalls
 *
 * What we want is __attribute__((weak,alias("sys_ni_syscall"))),
 * but it doesn't work on all toolchains, so we just do it by hand
 */
#define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall")

#endif /* _ASM_M68K_UNISTD_H_ */