Merge pull request #32 from dram/add-execve
Add execve() system call for Linux
This commit is contained in:
commit
51862cff82
7
plat/linux/libsys/execve.c
Normal file
7
plat/linux/libsys/execve.c
Normal file
|
@ -0,0 +1,7 @@
|
|||
#include <unistd.h>
|
||||
#include "libsys.h"
|
||||
|
||||
int execve(const char *path, char *const argv[], char *const envp[])
|
||||
{
|
||||
return _syscall(__NR_execve, (quad) path, (quad) argv, (quad) envp);
|
||||
}
|
|
@ -69,6 +69,7 @@ extern pid_t getpid(void);
|
|||
extern int brk(void* ptr);
|
||||
extern void* sbrk(int increment);
|
||||
extern int isatty(int d);
|
||||
extern int execve(const char *path, char *const argv[], char *const envp[]);
|
||||
|
||||
/* Signal handling */
|
||||
|
||||
|
|
|
@ -67,6 +67,7 @@ extern pid_t getpid(void);
|
|||
extern int brk(void* ptr);
|
||||
extern void* sbrk(int increment);
|
||||
extern int isatty(int d);
|
||||
extern int execve(const char *path, char *const argv[], char *const envp[]);
|
||||
|
||||
/* Signal handling */
|
||||
|
||||
|
|
Loading…
Reference in a new issue