You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[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>
This commit is contained in:
committed by
Linus Torvalds
parent
6760856791
commit
3db03b4afb
@@ -580,75 +580,6 @@ type name (type1 arg1,type2 arg2,type3 arg3,type4 arg4,type5 arg5, type6 arg6)\
|
||||
#define __ARCH_WANT_SYS_OLDUMOUNT
|
||||
#define __ARCH_WANT_SYS_SIGPENDING
|
||||
|
||||
#ifdef __KERNEL_SYSCALLS__
|
||||
|
||||
#include <linux/compiler.h>
|
||||
#include <linux/types.h>
|
||||
#include <linux/string.h>
|
||||
#include <linux/signal.h>
|
||||
#include <linux/syscalls.h>
|
||||
#include <asm/ptrace.h>
|
||||
|
||||
static inline long open(const char * name, int mode, int flags)
|
||||
{
|
||||
return sys_open(name, mode, flags);
|
||||
}
|
||||
|
||||
static inline long dup(int fd)
|
||||
{
|
||||
return sys_dup(fd);
|
||||
}
|
||||
|
||||
static inline long close(int fd)
|
||||
{
|
||||
return sys_close(fd);
|
||||
}
|
||||
|
||||
static inline off_t lseek(int fd, off_t off, int whence)
|
||||
{
|
||||
return sys_lseek(fd, off, whence);
|
||||
}
|
||||
|
||||
static inline void _exit(int value)
|
||||
{
|
||||
sys_exit(value);
|
||||
}
|
||||
|
||||
#define exit(x) _exit(x)
|
||||
|
||||
static inline long write(int fd, const char * buf, size_t nr)
|
||||
{
|
||||
return sys_write(fd, buf, nr);
|
||||
}
|
||||
|
||||
static inline long read(int fd, char * buf, size_t nr)
|
||||
{
|
||||
return sys_read(fd, buf, nr);
|
||||
}
|
||||
|
||||
extern int execve(char *, char **, char **);
|
||||
|
||||
static inline long setsid(void)
|
||||
{
|
||||
return sys_setsid();
|
||||
}
|
||||
|
||||
static inline pid_t waitpid(int pid, int * wait_stat, int flags)
|
||||
{
|
||||
return sys_wait4(pid, wait_stat, flags, NULL);
|
||||
}
|
||||
|
||||
asmlinkage int sys_execve(char *ufilename, char **argv, char **envp,
|
||||
unsigned long a3, unsigned long a4, unsigned long a5,
|
||||
struct pt_regs regs);
|
||||
asmlinkage long sys_rt_sigaction(int sig,
|
||||
const struct sigaction __user *act,
|
||||
struct sigaction __user *oact,
|
||||
size_t sigsetsize,
|
||||
void *restorer);
|
||||
|
||||
#endif /* __KERNEL_SYSCALLS__ */
|
||||
|
||||
/* "Conditional" syscalls. What we want is
|
||||
|
||||
__attribute__((weak,alias("sys_ni_syscall")))
|
||||
|
||||
Reference in New Issue
Block a user