Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
musl
/
64e32287f9d8a84217834bcc3387e9431cad9e4c
/
.
/
src
/
mman
/
posix_madvise.c
blob: e5e5acb84aba85765096b00058c3804aa8a2402a [
file
] [
log
] [
blame
]
#define
_GNU_SOURCE
#include
<sys/mman.h>
#include
"syscall.h"
int
posix_madvise
(
void
*
addr
,
size_t
len
,
int
advice
)
{
if
(
advice
==
MADV_DONTNEED
)
return
0
;
return
-
__syscall
(
SYS_madvise
,
addr
,
len
,
advice
);
}