release notes for 0.9.11
[musl] / 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 }