mailing list of musl libc
 help / color / mirror / code / Atom feed
5cd3fbe76fb492a13b920331b847a04aae061808 blob 300 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
 
#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);
#ifdef SYS_mlock2
	return syscall(SYS_mlock2, addr, len, flags);
#else
	return __syscall_ret(-EINVAL);
#endif
}
debug log:

solving 5cd3fbe7 ...
found 5cd3fbe7 in https://inbox.vuxu.org/musl/20180428195656.GU4418@port70.net/

applying [1/1] https://inbox.vuxu.org/musl/20180428195656.GU4418@port70.net/
diff --git a/src/linux/mlock2.c b/src/linux/mlock2.c
new file mode 100644
index 00000000..5cd3fbe7

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

index at:
100644 5cd3fbe76fb492a13b920331b847a04aae061808	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).