mailing list of musl libc
 help / color / mirror / code / Atom feed
2c18e7cf04b9e2778ec4c4723d5ae3e73c41f71c blob 373 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
 
#include <unistd.h>
#include <sys/mman.h>
#include "syscall.h"
#include "libc.h"

WEAK_PROVIDE_INT;
WEAK_PROVIDE_VOID;
weak_alias(__weak_dummy_int, __vm_lock);
weak_alias(__weak_dummy_void, __vm_unlock);

int __munmap(void *start, size_t len)
{
	int ret;
	__vm_lock(-1);
	ret = syscall(SYS_munmap, start, len);
	__vm_unlock();
	return ret;
}

weak_alias(__munmap, munmap);
debug log:

solving 2c18e7c ...
found 2c18e7c in https://inbox.vuxu.org/musl/fef8bbf759787cabc4ffd61c4e3357bc11112f8b.1360968989.git.Jens.Gustedt@inria.fr/
found 91aefd4 in https://git.vuxu.org/mirror/musl/
preparing index
index prepared:
100644 91aefd407f5071e348dc020aa98c3719bb6b8931	src/mman/munmap.c

applying [1/1] https://inbox.vuxu.org/musl/fef8bbf759787cabc4ffd61c4e3357bc11112f8b.1360968989.git.Jens.Gustedt@inria.fr/
diff --git a/src/mman/munmap.c b/src/mman/munmap.c
index 91aefd4..2c18e7c 100644

Checking patch src/mman/munmap.c...
Applied patch src/mman/munmap.c cleanly.

index at:
100644 2c18e7cf04b9e2778ec4c4723d5ae3e73c41f71c	src/mman/munmap.c

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).