summaryrefslogtreecommitdiff
path: root/lib/libc/mman/posix_madvise.c
blob: 6e9243ca32f19fbba66341024869027a651cc2a8 (plain)
1
2
3
4
5
6
7
8
9
10
11



#include <stddef.h>
#include <sys/mman.h> // for posix_madvise, size_t
#include <syscall.h>  // for __syscall_3, syscall

int posix_madvise(void *addr, size_t len, int advice)
{
	return syscall(madvise, addr, len, advice);
}