diff options
Diffstat (limited to 'lib/execve.c')
-rw-r--r-- | lib/execve.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/lib/execve.c b/lib/execve.c deleted file mode 100644 index 2667ebc..0000000 --- a/lib/execve.c +++ /dev/null @@ -1,23 +0,0 @@ -#include <asm/bug.h> -#include <asm/uaccess.h> - -#define __KERNEL_SYSCALLS__ -static int errno __attribute__((unused)); -#include <asm/unistd.h> - -#ifdef _syscall3 -int kernel_execve (const char *filename, char *const argv[], char *const envp[]) - __attribute__((__weak__)); -int kernel_execve (const char *filename, char *const argv[], char *const envp[]) -{ - mm_segment_t fs = get_fs(); - int ret; - - WARN_ON(segment_eq(fs, USER_DS)); - ret = execve(filename, (char **)argv, (char **)envp); - if (ret) - ret = -errno; - - return ret; -} -#endif |