summaryrefslogblamecommitdiff
path: root/src/linux/mlock2.c
blob: 10132742d0605f262646d708512476496c212fb8 (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                        
#define _GNU_SOURCE 1
#include <sys/mman.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);
}