summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/madvise.c
blob: dee2ac309a004753b8ec7076afde57aa176cf6f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*
 * madvise() for uClibc
 *
 * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
 *
 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 */

#include <sys/syscall.h>
#include <sys/mman.h>
#ifdef __ARCH_USE_MMU__
#if defined __NR_madvise && defined __USE_BSD
_syscall3(int, madvise, void *, __addr, size_t, __len, int, __advice)
#endif /* __ARCH_USE_MMU__ */
#endif