about summary refs log tree commit diff
path: root/src/mman/madvise.c
blob: f80926bec487584edb2cade5b6cdc8009df61e07 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#include <sys/mman.h>
#include "syscall.h"
#include "libc.h"

int __madvise(void *addr, size_t len, int advice)
{
	return syscall(SYS_madvise, addr, len, advice);
}

weak_alias(__madvise, madvise);