X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmman%2Fmunmap.c;h=2bf83bbe9b702144b8268fdf91a50f1154899367;hb=bd3b9c4ca5e93f10f7fd891b8c07cc0c5dfd198f;hp=359c691fc970ec4063b15ca9b23a3f63a35636d6;hpb=25d12fc0fc51f1fae0f85b4649a6463eb805aa8f;p=musl diff --git a/src/mman/munmap.c b/src/mman/munmap.c index 359c691f..2bf83bbe 100644 --- a/src/mman/munmap.c +++ b/src/mman/munmap.c @@ -1,19 +1,13 @@ #include #include "syscall.h" -#include "libc.h" -static void dummy1(int x) { } -static void dummy0(void) { } -weak_alias(dummy1, __vm_lock); -weak_alias(dummy0, __vm_unlock); +static void dummy(void) { } +weak_alias(dummy, __vm_wait); int __munmap(void *start, size_t len) { - int ret; - __vm_lock(-1); - __vm_unlock(); - ret = syscall(SYS_munmap, start, len); - return ret; + __vm_wait(); + return syscall(SYS_munmap, start, len); } weak_alias(__munmap, munmap);