summaryrefslogtreecommitdiff
path: root/userland/libc/unistd/execvp.c
blob: 573e822ab0c6bce8880630fb53ca1739cd5c9829 (plain)
1
2
3
4
5
6
7
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);
}