diff options
| author | Arnd Bergmann <arnd@arndb.de> | 2006-10-02 05:18:31 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-02 10:57:23 -0400 |
| commit | 3db03b4afb3ecd66a0399b8ba57742ca953b0ecd (patch) | |
| tree | fe0bd5c3663c58583f0181e2673d569c2df664e7 /include/asm-alpha | |
| parent | 6760856791c6e527da678021ee6a67896549d4da (diff) | |
[PATCH] rename the provided execve functions to kernel_execve
Some architectures provide an execve function that does not set errno, but
instead returns the result code directly. Rename these to kernel_execve to
get the right semantics there. Moreover, there is no reasone for any of these
architectures to still provide __KERNEL_SYSCALLS__ or _syscallN macros, so
remove these right away.
[akpm@osdl.org: build fix]
[bunk@stusta.de: build fix]
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Andi Kleen <ak@muc.de>
Acked-by: 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: Adrian Bunk <bunk@stusta.de>
Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-alpha')
| -rw-r--r-- | include/asm-alpha/unistd.h | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/include/asm-alpha/unistd.h b/include/asm-alpha/unistd.h index bc6e6a9259..2cabbd465c 100644 --- a/include/asm-alpha/unistd.h +++ b/include/asm-alpha/unistd.h | |||
| @@ -580,75 +580,6 @@ type name (type1 arg1,type2 arg2,type3 arg3,type4 arg4,type5 arg5, type6 arg6)\ | |||
| 580 | #define __ARCH_WANT_SYS_OLDUMOUNT | 580 | #define __ARCH_WANT_SYS_OLDUMOUNT |
| 581 | #define __ARCH_WANT_SYS_SIGPENDING | 581 | #define __ARCH_WANT_SYS_SIGPENDING |
| 582 | 582 | ||
| 583 | #ifdef __KERNEL_SYSCALLS__ | ||
| 584 | |||
| 585 | #include <linux/compiler.h> | ||
| 586 | #include <linux/types.h> | ||
| 587 | #include <linux/string.h> | ||
| 588 | #include <linux/signal.h> | ||
| 589 | #include <linux/syscalls.h> | ||
| 590 | #include <asm/ptrace.h> | ||
| 591 | |||
| 592 | static inline long open(const char * name, int mode, int flags) | ||
| 593 | { | ||
| 594 | return sys_open(name, mode, flags); | ||
| 595 | } | ||
| 596 | |||
| 597 | static inline long dup(int fd) | ||
| 598 | { | ||
| 599 | return sys_dup(fd); | ||
| 600 | } | ||
| 601 | |||
| 602 | static inline long close(int fd) | ||
| 603 | { | ||
| 604 | return sys_close(fd); | ||
| 605 | } | ||
| 606 | |||
| 607 | static inline off_t lseek(int fd, off_t off, int whence) | ||
| 608 | { | ||
| 609 | return sys_lseek(fd, off, whence); | ||
| 610 | } | ||
| 611 | |||
| 612 | static inline void _exit(int value) | ||
| 613 | { | ||
| 614 | sys_exit(value); | ||
| 615 | } | ||
| 616 | |||
| 617 | #define exit(x) _exit(x) | ||
| 618 | |||
| 619 | static inline long write(int fd, const char * buf, size_t nr) | ||
| 620 | { | ||
| 621 | return sys_write(fd, buf, nr); | ||
| 622 | } | ||
| 623 | |||
| 624 | static inline long read(int fd, char * buf, size_t nr) | ||
| 625 | { | ||
| 626 | return sys_read(fd, buf, nr); | ||
| 627 | } | ||
| 628 | |||
| 629 | extern int execve(char *, char **, char **); | ||
| 630 | |||
| 631 | static inline long setsid(void) | ||
| 632 | { | ||
| 633 | return sys_setsid(); | ||
| 634 | } | ||
| 635 | |||
| 636 | static inline pid_t waitpid(int pid, int * wait_stat, int flags) | ||
| 637 | { | ||
| 638 | return sys_wait4(pid, wait_stat, flags, NULL); | ||
| 639 | } | ||
| 640 | |||
| 641 | asmlinkage int sys_execve(char *ufilename, char **argv, char **envp, | ||
| 642 | unsigned long a3, unsigned long a4, unsigned long a5, | ||
| 643 | struct pt_regs regs); | ||
| 644 | asmlinkage long sys_rt_sigaction(int sig, | ||
| 645 | const struct sigaction __user *act, | ||
| 646 | struct sigaction __user *oact, | ||
| 647 | size_t sigsetsize, | ||
| 648 | void *restorer); | ||
| 649 | |||
| 650 | #endif /* __KERNEL_SYSCALLS__ */ | ||
| 651 | |||
| 652 | /* "Conditional" syscalls. What we want is | 583 | /* "Conditional" syscalls. What we want is |
| 653 | 584 | ||
| 654 | __attribute__((weak,alias("sys_ni_syscall"))) | 585 | __attribute__((weak,alias("sys_ni_syscall"))) |
