projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix getgrouplist when nscd reports an empty list
[musl]
/
src
/
mman
/
munmap.c
diff --git
a/src/mman/munmap.c
b/src/mman/munmap.c
index
c9661cd
..
2bf83bb
100644
(file)
--- a/
src/mman/munmap.c
+++ b/
src/mman/munmap.c
@@
-1,11
+1,13
@@
-#include <unistd.h>
#include <sys/mman.h>
#include "syscall.h"
#include <sys/mman.h>
#include "syscall.h"
-#include "libc.h"
+
+static void dummy(void) { }
+weak_alias(dummy, __vm_wait);
int __munmap(void *start, size_t len)
{
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);
}
weak_alias(__munmap, munmap);