| * This file contains various random system calls that |
| * have a non-standard calling sequence on the Linux/i386 |
| #include <linux/syscalls.h> |
| #include <linux/utsname.h> |
| #include <linux/uaccess.h> |
| #include <linux/unistd.h> |
| #include <asm/syscalls.h> |
| * Do a system call from kernel instead of calling sys_execve so we |
| * end up with proper pt_regs. |
| int kernel_execve(const char *filename, |
| const char *const argv[], |
| const char *const envp[]) |
| asm volatile ("int $0x80" |
| : "0" (__NR_execve), "b" (filename), "c" (argv), "d" (envp) : "memory"); |