Add waitpid and execve
This commit is contained in:
2
sys.h
2
sys.h
@@ -141,6 +141,8 @@ int clock_nanosleep(clockid_t clockid, int flags, const struct timespec *t, stru
|
||||
#define nanosleep(t, remain) clock_nanosleep(CLOCK_MONOTONIC, 0, t, remain)
|
||||
|
||||
uint32_t fork();
|
||||
int32_t execve(const char* filename, const char* argv[], const char* envp[]);
|
||||
uint32_t waitpid(uint32_t pid, int* wstatus, int options);
|
||||
|
||||
void *memset(void* s, int c, unsigned long n);
|
||||
int strlen(char* s);
|
||||
|
||||
Reference in New Issue
Block a user