source:
EcnlProtoTool/trunk/musl-1.1.18/src/mman/posix_madvise.c
Last change on this file was 444, checked in by , 4 years ago | |
---|---|
|
|
File size: 214 bytes |
Line | |
---|---|
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 | } |
Note:
See TracBrowser
for help on using the repository browser.