mailing list of musl libc
 help / color / mirror / code / Atom feed
e1235c46fed037142cef587a71d77292a8b019c9 blob 237 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
 
#define _GNU_SOURCE 1
#include <sys/mman.h>
#include <errno.h>
#include "syscall.h"

int mlock2(const void *addr, size_t len, unsigned flags)
{
	if (flags == 0)
		return mlock(addr, len);
	return syscall(SYS_mlock2, addr, len, flags);
}
debug log:

solving e1235c46 ...
found e1235c46 in https://inbox.vuxu.org/musl/20180428213958.GV4418@port70.net/ ||
	https://inbox.vuxu.org/musl/20180614230337.GR4418@port70.net/

applying [1/2] https://inbox.vuxu.org/musl/20180428213958.GV4418@port70.net/
diff --git a/src/linux/mlock2.c b/src/linux/mlock2.c
new file mode 100644
index 00000000..e1235c46

Checking patch src/linux/mlock2.c...
Applied patch src/linux/mlock2.c cleanly.

skipping https://inbox.vuxu.org/musl/20180614230337.GR4418@port70.net/ for e1235c46
index at:
100644 e1235c46fed037142cef587a71d77292a8b019c9	src/linux/mlock2.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).