diff options
author | Anton Kling <anton@kling.gg> | 2024-04-02 09:17:06 +0200 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2024-04-02 09:39:03 +0200 |
commit | 2229fd91f7230ae7068814ae029b733945852eb1 (patch) | |
tree | 416487f8c66c389c57dee465f648362ca59b8f23 /userland/libc/fcntl | |
parent | 7eceb43433634ee253507208baf1d8298b40e377 (diff) |
Kernel: Fix some memory leaks
Diffstat (limited to 'userland/libc/fcntl')
-rw-r--r-- | userland/libc/fcntl/open_process.c | 6 |
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)); +} |