mailing list of musl libc
 help / color / mirror / code / Atom feed
91aefd407f5071e348dc020aa98c3719bb6b8931 blob 374 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"

static void dummy1(int x) { }
static void dummy0(void) { }
weak_alias(dummy1, __vm_lock);
weak_alias(dummy0, __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 91aefd4 ...
found 91aefd4 in https://git.vuxu.org/mirror/musl/

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).