xref: /third_party/musl/src/mman/posix_madvise.c (revision 570af302)
1#define _GNU_SOURCE
2#include <sys/mman.h>
3#include "syscall.h"
4#include <unsupported_api.h>
5
6int posix_madvise(void *addr, size_t len, int advice)
7{
8	UNSUPPORTED_API_VOID(LITEOS_A);
9	if (advice == MADV_DONTNEED) return 0;
10	return -__syscall(SYS_madvise, addr, len, advice);
11}
12