X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmman%2Fmunmap.c;h=3f711ee50145bc6bf1ed905b1e310a63b32ace72;hb=8c4be3e2209d2a1d3874b8bc2b474668fcbbbac6;hp=c9661cda3354a56c5f96b854e007c6655f26a8d1;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01;p=musl diff --git a/src/mman/munmap.c b/src/mman/munmap.c index c9661cda..3f711ee5 100644 --- a/src/mman/munmap.c +++ b/src/mman/munmap.c @@ -1,11 +1,14 @@ -#include #include #include "syscall.h" #include "libc.h" +static void dummy(void) { } +weak_alias(dummy, __vm_wait); + int __munmap(void *start, size_t len) { - return syscall2(__NR_munmap, (long)start, len); + __vm_wait(); + return syscall(SYS_munmap, start, len); } weak_alias(__munmap, munmap);