From 253a32e2f9ff1cbb8edbe7c79834a678daebeb93 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Sat, 9 Feb 2019 13:14:01 -0500 Subject: merge POSIX.1-1988/1990 --- src/unistd/execve.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/unistd/execve.c (limited to 'src/unistd/execve.c') diff --git a/src/unistd/execve.c b/src/unistd/execve.c new file mode 100644 index 00000000..7d54ec91 --- /dev/null +++ b/src/unistd/execve.c @@ -0,0 +1,14 @@ +#include "stddef.h" +#include "sys/types.h" +#include +#include "nonstd/syscall.h" + +int execve(const char *path, char *const argv[], char *const envp[]) +{ + SCNO(scno, "execve", -1); + errno = -__libc.syscall(scno, path, argv, envp); + return -1; +} +/* +POSIX(1) +*/ -- cgit v1.2.1