unistd.h 1.9 KB
Newer Older
L
Linus Torvalds 已提交
1 2
/*
 * This file contains the system call numbers.
P
Paul Mackerras 已提交
3 4 5 6 7
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version
 * 2 of the License, or (at your option) any later version.
L
Linus Torvalds 已提交
8
 */
9 10
#ifndef _ASM_POWERPC_UNISTD_H_
#define _ASM_POWERPC_UNISTD_H_
P
Paul Mackerras 已提交
11

12
#include <uapi/asm/unistd.h>
L
Linus Torvalds 已提交
13

14

C
Christopher Yeoh 已提交
15
#define __NR_syscalls		353
L
Linus Torvalds 已提交
16

P
Paul Mackerras 已提交
17 18 19 20
#define __NR__exit __NR_exit
#define NR_syscalls	__NR_syscalls

#ifndef __ASSEMBLY__
L
Linus Torvalds 已提交
21

P
Paul Mackerras 已提交
22 23 24
#include <linux/types.h>
#include <linux/compiler.h>
#include <linux/linkage.h>
L
Linus Torvalds 已提交
25 26 27 28 29

#define __ARCH_WANT_OLD_READDIR
#define __ARCH_WANT_STAT64
#define __ARCH_WANT_SYS_ALARM
#define __ARCH_WANT_SYS_GETHOSTNAME
C
Christoph Hellwig 已提交
30
#define __ARCH_WANT_SYS_IPC
L
Linus Torvalds 已提交
31 32 33 34 35 36 37 38 39 40 41 42
#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 已提交
43
#define __ARCH_WANT_SYS_OLD_UNAME
L
Linus Torvalds 已提交
44 45 46 47
#define __ARCH_WANT_SYS_OLDUMOUNT
#define __ARCH_WANT_SYS_SIGPENDING
#define __ARCH_WANT_SYS_SIGPROCMASK
#define __ARCH_WANT_SYS_RT_SIGACTION
48
#define __ARCH_WANT_SYS_RT_SIGSUSPEND
P
Paul Mackerras 已提交
49 50 51 52 53
#ifdef CONFIG_PPC32
#define __ARCH_WANT_OLD_STAT
#endif
#ifdef CONFIG_PPC64
#define __ARCH_WANT_COMPAT_SYS_TIME
54
#define __ARCH_WANT_COMPAT_SYS_RT_SIGSUSPEND
55
#define __ARCH_WANT_SYS_NEWFSTATAT
56
#define __ARCH_WANT_COMPAT_SYS_SENDFILE
P
Paul Mackerras 已提交
57
#endif
58
#define __ARCH_WANT_SYS_EXECVE
59 60 61
#define __ARCH_WANT_SYS_FORK
#define __ARCH_WANT_SYS_VFORK
#define __ARCH_WANT_SYS_CLONE
L
Linus Torvalds 已提交
62 63 64 65

/*
 * "Conditional" syscalls
 */
66 67
#define cond_syscall(x) \
	asmlinkage long x (void) __attribute__((weak,alias("sys_ni_syscall")))
P
Paul Mackerras 已提交
68 69

#endif		/* __ASSEMBLY__ */
70
#endif /* _ASM_POWERPC_UNISTD_H_ */