diff options
Diffstat (limited to 'userland/libc/unistd/execvp.c')
-rw-r--r-- | userland/libc/unistd/execvp.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/userland/libc/unistd/execvp.c b/userland/libc/unistd/execvp.c new file mode 100644 index 0000000..573e822 --- /dev/null +++ b/userland/libc/unistd/execvp.c @@ -0,0 +1,8 @@ +#include <unistd.h> +#include <syscall.h> + +// FIXME: Path resolution +int execvp(const char *file, char *const argv[]) { + struct SYS_EXEC_PARAMS args = {.path = file, .argv = argv}; + return syscall(SYS_EXEC, &args, 0, 0, 0, 0); +} |