1 2 3 4 5 6 7 8
#include <syscall.h> #include <unistd.h> // FIXME: Path resolution int execvp(const char *file, char *const argv[]) { struct SYS_EXEC_PARAMS args = {.path = file, .argv = (char **)argv}; return syscall(SYS_EXEC, &args, 0, 0, 0, 0); }