Commit | Line | Data |
---|---|---|
1da177e4 LT |
1 | /* |
2 | * This file contains the system call numbers. | |
eef289f7 PM |
3 | * |
4 | * This program is free software; you can redistribute it and/or | |
5 | * modify it under the terms of the GNU General Public License | |
6 | * as published by the Free Software Foundation; either version | |
7 | * 2 of the License, or (at your option) any later version. | |
1da177e4 | 8 | */ |
c3617f72 DH |
9 | #ifndef _ASM_POWERPC_UNISTD_H_ |
10 | #define _ASM_POWERPC_UNISTD_H_ | |
eef289f7 | 11 | |
c3617f72 | 12 | #include <uapi/asm/unistd.h> |
1da177e4 | 13 | |
56142536 | 14 | |
fcf63409 | 15 | #define __NR_syscalls 353 |
1da177e4 | 16 | |
eef289f7 PM |
17 | #define __NR__exit __NR_exit |
18 | #define NR_syscalls __NR_syscalls | |
eef289f7 PM |
19 | |
20 | #ifndef __ASSEMBLY__ | |
1da177e4 | 21 | |
eef289f7 PM |
22 | #include <linux/types.h> |
23 | #include <linux/compiler.h> | |
24 | #include <linux/linkage.h> | |
1da177e4 | 25 | |
1da177e4 | 26 | #define __ARCH_WANT_OLD_READDIR |
1da177e4 LT |
27 | #define __ARCH_WANT_STAT64 |
28 | #define __ARCH_WANT_SYS_ALARM | |
29 | #define __ARCH_WANT_SYS_GETHOSTNAME | |
baed7fc9 | 30 | #define __ARCH_WANT_SYS_IPC |
1da177e4 LT |
31 | #define __ARCH_WANT_SYS_PAUSE |
32 | #define __ARCH_WANT_SYS_SGETMASK | |
33 | #define __ARCH_WANT_SYS_SIGNAL | |
34 | #define __ARCH_WANT_SYS_TIME | |
35 | #define __ARCH_WANT_SYS_UTIME | |
36 | #define __ARCH_WANT_SYS_WAITPID | |
37 | #define __ARCH_WANT_SYS_SOCKETCALL | |
38 | #define __ARCH_WANT_SYS_FADVISE64 | |
39 | #define __ARCH_WANT_SYS_GETPGRP | |
40 | #define __ARCH_WANT_SYS_LLSEEK | |
41 | #define __ARCH_WANT_SYS_NICE | |
42 | #define __ARCH_WANT_SYS_OLD_GETRLIMIT | |
5cacdb4a | 43 | #define __ARCH_WANT_SYS_OLD_UNAME |
1da177e4 LT |
44 | #define __ARCH_WANT_SYS_OLDUMOUNT |
45 | #define __ARCH_WANT_SYS_SIGPENDING | |
46 | #define __ARCH_WANT_SYS_SIGPROCMASK | |
47 | #define __ARCH_WANT_SYS_RT_SIGACTION | |
150256d8 | 48 | #define __ARCH_WANT_SYS_RT_SIGSUSPEND |
eef289f7 PM |
49 | #ifdef CONFIG_PPC32 |
50 | #define __ARCH_WANT_OLD_STAT | |
51 | #endif | |
52 | #ifdef CONFIG_PPC64 | |
53 | #define __ARCH_WANT_COMPAT_SYS_TIME | |
150256d8 | 54 | #define __ARCH_WANT_COMPAT_SYS_RT_SIGSUSPEND |
2833c28a | 55 | #define __ARCH_WANT_SYS_NEWFSTATAT |
8f9c0119 | 56 | #define __ARCH_WANT_COMPAT_SYS_SENDFILE |
0ad50c38 | 57 | #define __ARCH_WANT_COMPAT_SYS_SCHED_RR_GET_INTERVAL |
eef289f7 | 58 | #endif |
be6abfa7 | 59 | #define __ARCH_WANT_SYS_EXECVE |
0bcfe540 AV |
60 | #define __ARCH_WANT_SYS_FORK |
61 | #define __ARCH_WANT_SYS_VFORK | |
62 | #define __ARCH_WANT_SYS_CLONE | |
1da177e4 | 63 | |
1da177e4 LT |
64 | /* |
65 | * "Conditional" syscalls | |
1da177e4 | 66 | */ |
8dc86ab9 GL |
67 | #define cond_syscall(x) \ |
68 | asmlinkage long x (void) __attribute__((weak,alias("sys_ni_syscall"))) | |
eef289f7 PM |
69 | |
70 | #endif /* __ASSEMBLY__ */ | |
f4dcd3c2 | 71 | #endif /* _ASM_POWERPC_UNISTD_H_ */ |