diff options
Diffstat (limited to 'libc-top-half/musl/src/mman/munmap.c')
-rw-r--r-- | libc-top-half/musl/src/mman/munmap.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libc-top-half/musl/src/mman/munmap.c b/libc-top-half/musl/src/mman/munmap.c new file mode 100644 index 0000000..2bf83bb --- /dev/null +++ b/libc-top-half/musl/src/mman/munmap.c @@ -0,0 +1,13 @@ +#include <sys/mman.h> +#include "syscall.h" + +static void dummy(void) { } +weak_alias(dummy, __vm_wait); + +int __munmap(void *start, size_t len) +{ + __vm_wait(); + return syscall(SYS_munmap, start, len); +} + +weak_alias(__munmap, munmap); |