summaryrefslogtreecommitdiff
path: root/userland/libc/fcntl
diff options
context:
space:
mode:
Diffstat (limited to 'userland/libc/fcntl')
-rw-r--r--userland/libc/fcntl/open_process.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/userland/libc/fcntl/open_process.c b/userland/libc/fcntl/open_process.c
new file mode 100644
index 0000000..8486728
--- /dev/null
+++ b/userland/libc/fcntl/open_process.c
@@ -0,0 +1,6 @@
+#include <fcntl.h>
+#include <syscall.h>
+
+int open_process(int pid) {
+ RC_ERRNO(syscall(SYS_OPEN_PROCESS, pid, 0, 0, 0, 0));
+}