projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
implement hcreate_r, hdestroy_r and hsearch_r
[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
}