summaryrefslogtreecommitdiff
path: root/userland/libc/unistd/execvp.c
blob: e38b4b769378a70dcc78d778c5232d77ee5af7b2 (plain)
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);
}