summaryrefslogtreecommitdiff
path: root/src/mman/madvise.c
blob: f03647ca0449f049a0681eb6d9bf9d1e2e868a09 (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 syscall3(__NR_madvise, (long)addr, len, advice);
}

weak_alias(__madvise, madvise);