☰
Debian Codegraph
@
0.0~git20260129.ec0effd-3
0.0~git20260129.ec0effd-2
/
/
libc-top-half
/
musl
/
src
/
mman
/
posix_madvise.c
☽
☼
libc-top-half/musl/src/mman/posix_madvise.c
code
plain
raw
MIT
2005-2019 Rich Felker <
[email protected]
>; 2005-2019 Many other contributors
debian/copyright
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
}