aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-powerpc/unistd.h
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@shinybook.infradead.org>2006-04-28 20:51:47 -0400
committerDavid Woodhouse <dwmw2@infradead.org>2006-04-28 20:51:47 -0400
commit56142536868a2be34f261ed8fdca1610f8a73fbd (patch)
tree0bd66166b318d8403b1881285f6813ece2acced1 /include/asm-powerpc/unistd.h
parent34c278d3913a15b64943e8c40a16b4f732cc7c59 (diff)
Remove unneeded _syscallX macros from user view in asm-*/unistd.h
These aren't needed by glibc or klibc, and they're broken in some cases anyway. The uClibc folks are apparently switching over to stop using them too (now that we agreed that they should be dropped, at least). Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'include/asm-powerpc/unistd.h')
-rw-r--r--include/asm-powerpc/unistd.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/include/asm-powerpc/unistd.h b/include/asm-powerpc/unistd.h
index ef932f1cddc3..bd3c6b6cc50e 100644
--- a/include/asm-powerpc/unistd.h
+++ b/include/asm-powerpc/unistd.h
@@ -305,12 +305,12 @@
305#define __NR_tee 284 305#define __NR_tee 284
306#define __NR_vmsplice 285 306#define __NR_vmsplice 285
307 307
308#ifdef __KERNEL__
309
308#define __NR_syscalls 286 310#define __NR_syscalls 286
309 311
310#ifdef __KERNEL__
311#define __NR__exit __NR_exit 312#define __NR__exit __NR_exit
312#define NR_syscalls __NR_syscalls 313#define NR_syscalls __NR_syscalls
313#endif
314 314
315#ifndef __ASSEMBLY__ 315#ifndef __ASSEMBLY__
316 316
@@ -422,7 +422,6 @@ type name(type1 arg1, type2 arg2, type3 arg3, type4 arg4, type5 arg5, type6 arg6
422 __syscall_nr(6, type, name, arg1, arg2, arg3, arg4, arg5, arg6); \ 422 __syscall_nr(6, type, name, arg1, arg2, arg3, arg4, arg5, arg6); \
423} 423}
424 424
425#ifdef __KERNEL__
426 425
427#include <linux/types.h> 426#include <linux/types.h>
428#include <linux/compiler.h> 427#include <linux/compiler.h>
@@ -478,8 +477,8 @@ extern int execve(const char *file, char **argv, char **envp);
478#define cond_syscall(x) asm(".weak\t." #x "\n\t.set\t." #x ",.sys_ni_syscall") 477#define cond_syscall(x) asm(".weak\t." #x "\n\t.set\t." #x ",.sys_ni_syscall")
479#endif 478#endif
480 479
481#endif /* __KERNEL__ */
482 480
483#endif /* __ASSEMBLY__ */ 481#endif /* __ASSEMBLY__ */
482#endif /* __KERNEL__ */
484 483
485#endif /* _ASM_PPC_UNISTD_H_ */ 484#endif /* _ASM_PPC_UNISTD_H_ */