Add waitpid and execve

This commit is contained in:
2026-01-17 15:19:52 -05:00
parent ea0ec6a818
commit 73ad441585
5 changed files with 249 additions and 153 deletions

2
sys.h
View File

@@ -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);