summaryrefslogtreecommitdiff
path: root/src/linux/remap_file_pages.c
blob: f95c4cc3afe22adba8e6ae1f1930e3a5f795278d (plain)
1
2
3
4
5
6
7
8
#define _GNU_SOURCE
#include <sys/mman.h>
#include "syscall.h"

int remap_file_pages(void *addr, size_t size, int prot, ssize_t pgoff, int flags)
{
	return syscall(SYS_remap_file_pages, addr, size, prot, pgoff, flags);
}