iconv: fix missing bounds checking for shift_jis decoding
[musl.git] / src / mman / posix_madvise.c
blobe5e5acb84aba85765096b00058c3804aa8a2402a
1 #define _GNU_SOURCE
2 #include <sys/mman.h>
3 #include "syscall.h"
5 int posix_madvise(void *addr, size_t len, int advice)
7 if (advice == MADV_DONTNEED) return 0;
8 return -__syscall(SYS_madvise, addr, len, advice);