1 /* $OpenBSD: posix_madvise.c,v 1.4 2015/09/11 13:26:20 guenther Exp $ */ 2 /* 3 * Ted Unangst wrote this file and placed it into the public domain. 4 */ 5 #include <sys/mman.h> 6 #include <errno.h> 7 8 int 9 posix_madvise(void *addr, size_t len, int behav) 10 { 11 return (madvise(addr, len, behav) ? errno : 0); 12 } 13