Go to the documentation of this file.
14 #include <linux/errno.h>
16 #include <linux/sched.h>
20 #include <linux/sem.h>
21 #include <linux/msg.h>
22 #include <linux/shm.h>
23 #include <linux/stat.h>
24 #include <linux/mman.h>
27 #include <linux/ipc.h>
28 #include <asm/uaccess.h>
29 #include <asm/ptrace.h>
30 #include <asm/unistd.h>
37 const char *
const argv[],
38 const char *
const envp[])
41 register unsigned long __sc2
__asm__ (
"r2") = (
unsigned long) filename;
42 register unsigned long __sc3
__asm__ (
"r3") = (
unsigned long) argv;
43 register unsigned long __sc4
__asm__ (
"r4") = (
unsigned long) envp;
44 __asm__ __volatile__ (
"trapa %1 !\t\t\t execve(%2,%3,%4)"
46 :
"r" (__sc0),
"r" (__sc2),
"r" (__sc3),
"r" (__sc4) );
47 __asm__ __volatile__ (
"!dummy %0 %1 %2 %3"
48 : :
"r" (__sc0),
"r" (__sc2),
"r" (__sc3),
"r" (__sc4) :
"memory");