blob: c4ef799bad4f6ee249224c33e43d08b2bb72214f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#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);
}
int madvise(void *addr, size_t len, int advice)
{
return syscall3(__NR_madvise, (long)addr, len, advice);
}
|