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-cris | |
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-cris')
-rw-r--r-- | include/asm-cris/unistd.h | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/include/asm-cris/unistd.h b/include/asm-cris/unistd.h index 7372efae0516..7c90fa970c38 100644 --- a/include/asm-cris/unistd.h +++ b/include/asm-cris/unistd.h | |||
@@ -322,67 +322,6 @@ | |||
322 | #define __ARCH_WANT_SYS_SIGPROCMASK | 322 | #define __ARCH_WANT_SYS_SIGPROCMASK |
323 | #define __ARCH_WANT_SYS_RT_SIGACTION | 323 | #define __ARCH_WANT_SYS_RT_SIGACTION |
324 | 324 | ||
325 | #ifdef __KERNEL_SYSCALLS__ | ||
326 | |||
327 | #include <linux/compiler.h> | ||
328 | #include <linux/types.h> | ||
329 | #include <linux/linkage.h> | ||
330 | |||
331 | /* | ||
332 | * we need this inline - forking from kernel space will result | ||
333 | * in NO COPY ON WRITE (!!!), until an execve is executed. This | ||
334 | * is no problem, but for the stack. This is handled by not letting | ||
335 | * main() use the stack at all after fork(). Thus, no function | ||
336 | * calls - which means inline code for fork too, as otherwise we | ||
337 | * would use the stack upon exit from 'fork()'. | ||
338 | * | ||
339 | * Actually only pause and fork are needed inline, so that there | ||
340 | * won't be any messing with the stack from main(), but we define | ||
341 | * some others too. | ||
342 | */ | ||
343 | #define __NR__exit __NR_exit | ||
344 | static inline _syscall0(pid_t,setsid) | ||
345 | static inline _syscall3(int,write,int,fd,const char *,buf,off_t,count) | ||
346 | static inline _syscall3(int,read,int,fd,char *,buf,off_t,count) | ||
347 | static inline _syscall3(off_t,lseek,int,fd,off_t,offset,int,count) | ||
348 | static inline _syscall1(int,dup,int,fd) | ||
349 | static inline _syscall3(int,execve,const char *,file,char **,argv,char **,envp) | ||
350 | static inline _syscall3(int,open,const char *,file,int,flag,int,mode) | ||
351 | static inline _syscall1(int,close,int,fd) | ||
352 | |||
353 | struct pt_regs; | ||
354 | asmlinkage long sys_mmap2( | ||
355 | unsigned long addr, unsigned long len, | ||
356 | unsigned long prot, unsigned long flags, | ||
357 | unsigned long fd, unsigned long pgoff); | ||
358 | asmlinkage int sys_execve(const char *fname, char **argv, char **envp, | ||
359 | long r13, long mof, long srp, struct pt_regs *regs); | ||
360 | asmlinkage int sys_clone(unsigned long newusp, unsigned long flags, | ||
361 | int* parent_tid, int* child_tid, long mof, long srp, | ||
362 | struct pt_regs *regs); | ||
363 | asmlinkage int sys_fork(long r10, long r11, long r12, long r13, | ||
364 | long mof, long srp, struct pt_regs *regs); | ||
365 | asmlinkage int sys_vfork(long r10, long r11, long r12, long r13, | ||
366 | long mof, long srp, struct pt_regs *regs); | ||
367 | asmlinkage int sys_pipe(unsigned long __user *fildes); | ||
368 | struct sigaction; | ||
369 | asmlinkage long sys_rt_sigaction(int sig, | ||
370 | const struct sigaction __user *act, | ||
371 | struct sigaction __user *oact, | ||
372 | size_t sigsetsize); | ||
373 | |||
374 | /* | ||
375 | * Since we define it "external", it collides with the built-in | ||
376 | * definition, which has the "noreturn" attribute and will cause | ||
377 | * complaints. We don't want to use -fno-builtin, so just use a | ||
378 | * different name when in the kernel. | ||
379 | */ | ||
380 | #define _exit kernel_syscall_exit | ||
381 | static inline _syscall1(int,_exit,int,exitcode) | ||
382 | static inline _syscall3(pid_t,waitpid,pid_t,pid,int *,wait_stat,int,options) | ||
383 | #endif /* __KERNEL_SYSCALLS__ */ | ||
384 | |||
385 | |||
386 | /* | 325 | /* |
387 | * "Conditional" syscalls | 326 | * "Conditional" syscalls |
388 | * | 327 | * |