summaryrefslogtreecommitdiff
path: root/src/unistd/execve.c
blob: 8d7a12253f857a5d57031ccaaf61993615eba763 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "stddef.h"
#include "sys/types.h"
#include <unistd.h>
#include "nonstd/syscall.h"

int execve(const char *path, char *const argv[], char *const envp[])
{
	SYSCALL_NUMBER(scno, "execve", -1);
	errno = -__syscall(scno, path, argv, envp);
	return -1;
}
/*
POSIX(1)
*/