diff options
author | Arnd Bergmann <arnd@arndb.de> | 2006-10-02 05:18:44 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-02 10:57:23 -0400 |
commit | 135ab6ec8fdad6f61aabe53f456821baf4a4aa0e (patch) | |
tree | 22a46321949e6621e95f6c21a3d34e3516d07cc8 /include/asm-h8300/unistd.h | |
parent | 821278a75d270048e291fcbec9304439a176ba88 (diff) |
[PATCH] remove remaining errno and __KERNEL_SYSCALLS__ references
The last in-kernel user of errno is gone, so we should remove the definition
and everything referring to it. This also removes the now-unused lib/execve.c
file that was introduced earlier.
Also remove every trace of __KERNEL_SYSCALLS__ that still remained in the
kernel.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Andi Kleen <ak@muc.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Richard Henderson <rth@twiddle.net>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Cc: Russell King <rmk@arm.linux.org.uk>
Cc: Ian Molton <spyro@f2s.com>
Cc: Mikael Starvik <starvik@axis.com>
Cc: David Howells <dhowells@redhat.com>
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Cc: Hirokazu Takata <takata.hirokazu@renesas.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Kyle McMartin <kyle@mcmartin.ca>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Paul Mundt <lethal@linux-sh.org>
Cc: Kazumoto Kojima <kkojima@rr.iij4u.or.jp>
Cc: Richard Curnow <rc@rc0.org.uk>
Cc: William Lee Irwin III <wli@holomorphy.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Jeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Cc: Miles Bader <uclinux-v850@lsi.nec.co.jp>
Cc: Chris Zankel <chris@zankel.net>
Cc: "Luck, Tony" <tony.luck@intel.com>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Roman Zippel <zippel@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-h8300/unistd.h')
-rw-r--r-- | include/asm-h8300/unistd.h | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/include/asm-h8300/unistd.h b/include/asm-h8300/unistd.h index a2dd90462d80..747788d629ae 100644 --- a/include/asm-h8300/unistd.h +++ b/include/asm-h8300/unistd.h | |||
@@ -485,57 +485,6 @@ type name(atype a, btype b, ctype c, dtype d, etype e, ftype f) \ | |||
485 | #define __ARCH_WANT_SYS_SIGPROCMASK | 485 | #define __ARCH_WANT_SYS_SIGPROCMASK |
486 | #define __ARCH_WANT_SYS_RT_SIGACTION | 486 | #define __ARCH_WANT_SYS_RT_SIGACTION |
487 | 487 | ||
488 | #ifdef __KERNEL_SYSCALLS__ | ||
489 | |||
490 | #include <linux/compiler.h> | ||
491 | #include <linux/types.h> | ||
492 | |||
493 | /* | ||
494 | * we need this inline - forking from kernel space will result | ||
495 | * in NO COPY ON WRITE (!!!), until an execve is executed. This | ||
496 | * is no problem, but for the stack. This is handled by not letting | ||
497 | * main() use the stack at all after fork(). Thus, no function | ||
498 | * calls - which means inline code for fork too, as otherwise we | ||
499 | * would use the stack upon exit from 'fork()'. | ||
500 | * | ||
501 | * Actually only pause and fork are needed inline, so that there | ||
502 | * won't be any messing with the stack from main(), but we define | ||
503 | * some others too. | ||
504 | */ | ||
505 | #define __NR__exit __NR_exit | ||
506 | static inline _syscall0(int,pause) | ||
507 | static inline _syscall0(int,sync) | ||
508 | static inline _syscall0(pid_t,setsid) | ||
509 | static inline _syscall3(int,write,int,fd,const char *,buf,off_t,count) | ||
510 | static inline _syscall3(int,read,int,fd,char *,buf,off_t,count) | ||
511 | static inline _syscall3(off_t,lseek,int,fd,off_t,offset,int,count) | ||
512 | static inline _syscall1(int,dup,int,fd) | ||
513 | static inline _syscall3(int,execve,const char *,file,char **,argv,char **,envp) | ||
514 | static inline _syscall3(int,open,const char *,file,int,flag,int,mode) | ||
515 | static inline _syscall1(int,close,int,fd) | ||
516 | static inline _syscall1(int,_exit,int,exitcode) | ||
517 | static inline _syscall3(pid_t,waitpid,pid_t,pid,int *,wait_stat,int,options) | ||
518 | static inline _syscall1(int,delete_module,const char *,name) | ||
519 | |||
520 | static inline pid_t wait(int * wait_stat) | ||
521 | { | ||
522 | return waitpid(-1,wait_stat,0); | ||
523 | } | ||
524 | |||
525 | asmlinkage long sys_mmap2(unsigned long addr, unsigned long len, | ||
526 | unsigned long prot, unsigned long flags, | ||
527 | unsigned long fd, unsigned long pgoff); | ||
528 | asmlinkage int sys_execve(char *name, char **argv, char **envp, | ||
529 | int dummy, ...); | ||
530 | asmlinkage int sys_pipe(unsigned long *fildes); | ||
531 | struct sigaction; | ||
532 | asmlinkage long sys_rt_sigaction(int sig, | ||
533 | const struct sigaction __user *act, | ||
534 | struct sigaction __user *oact, | ||
535 | size_t sigsetsize); | ||
536 | |||
537 | #endif /* __KERNEL_SYSCALLS__ */ | ||
538 | |||
539 | /* | 488 | /* |
540 | * "Conditional" syscalls | 489 | * "Conditional" syscalls |
541 | */ | 490 | */ |