projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
make socketcall types common as they are same for all architectures
[oweals/musl.git]
/
src
/
mman
/
posix_madvise.c
1
#define _GNU_SOURCE
2
#include <sys/mman.h>
3
#include "syscall.h"
4
5
int posix_madvise(void *addr, size_t len, int advice)
6
{
7
if (advice == MADV_DONTNEED) return 0;
8
return -__syscall(SYS_madvise, addr, len, advice);
9
}