aboutsummaryrefslogtreecommitdiff
path: root/lib/sys/execve.h
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2022-12-14 18:26:49 +0100
committerNathan Reiner <nathan@nathanreiner.xyz>2022-12-14 18:26:49 +0100
commitd179f1846f9372920ef02f08cfb4d3abe99b383f (patch)
tree4b6ddc71566be95a1ce520ef9d957f4cac1af6c9 /lib/sys/execve.h
first commit
Diffstat (limited to 'lib/sys/execve.h')
-rw-r--r--lib/sys/execve.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/sys/execve.h b/lib/sys/execve.h
new file mode 100644
index 0000000..04d6dea
--- /dev/null
+++ b/lib/sys/execve.h
@@ -0,0 +1,11 @@
+#ifndef EXECVE_H
+#define EXECVE_H
+
+#include "syscalls.h"
+
+int execve(const char *pathname, char *const argv[], char *const envp[])
+{
+ return syscall(EXECVE, pathname, argv, envp);
+}
+
+#endif