unistd.h 1.3 KB
Newer Older
L
Linus Torvalds 已提交
1 2 3
#ifndef _ASM_CRIS_UNISTD_H_
#define _ASM_CRIS_UNISTD_H_

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


7
#define NR_syscalls 336
L
Linus Torvalds 已提交
8

9
#include <arch/unistd.h>
L
Linus Torvalds 已提交
10 11 12 13 14 15

#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 已提交
16
#define __ARCH_WANT_SYS_IPC
L
Linus Torvalds 已提交
17 18 19 20 21 22 23 24 25 26 27 28
#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 已提交
29
#define __ARCH_WANT_SYS_OLD_MMAP
L
Linus Torvalds 已提交
30 31 32 33
#define __ARCH_WANT_SYS_OLDUMOUNT
#define __ARCH_WANT_SYS_SIGPENDING
#define __ARCH_WANT_SYS_SIGPROCMASK
#define __ARCH_WANT_SYS_RT_SIGACTION
34
#define __ARCH_WANT_SYS_RT_SIGSUSPEND
35
#define __ARCH_WANT_SYS_EXECVE
A
Al Viro 已提交
36 37 38
#define __ARCH_WANT_SYS_FORK
#define __ARCH_WANT_SYS_VFORK
#define __ARCH_WANT_SYS_CLONE
L
Linus Torvalds 已提交
39 40 41 42 43 44 45 46 47 48

/*
 * "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_CRIS_UNISTD_H_ */