diff options
author | Anton Kling <anton@kling.gg> | 2024-03-25 21:02:58 +0100 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2024-03-25 21:04:10 +0100 |
commit | 3deb2df8e62a5f0a5535ee734a5aa13b0959f53f (patch) | |
tree | af8841076c95ae3de7dcd4a006026be2607a0fbf /userland/libc/sys/mman/munmap.c | |
parent | 6baa733f5682f660143c851a635a53dc2c2df7ae (diff) |
Random changes
Diffstat (limited to 'userland/libc/sys/mman/munmap.c')
-rw-r--r-- | userland/libc/sys/mman/munmap.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/userland/libc/sys/mman/munmap.c b/userland/libc/sys/mman/munmap.c new file mode 100644 index 0000000..940ea46 --- /dev/null +++ b/userland/libc/sys/mman/munmap.c @@ -0,0 +1,6 @@ +#include <sys/mman.h> +#include <syscall.h> + +int munmap(void *addr, size_t length) { + RC_ERRNO(syscall(SYS_MUNMAP, addr, length,0, 0, 0)); +} |