summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/posix_madvise.c
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2014-07-10 12:46:28 +0000
committertedu <tedu@openbsd.org>2014-07-10 12:46:28 +0000
commit7ab35e9cc9e7553eb4aa519de495f5739d7e0035 (patch)
treeeb219f70fbcbd2e17ba7c239c47806b20cf6f88f /lib/libc/sys/posix_madvise.c
parentRSA_setup_blinding() gets a BN with BN_CTX_get(), returns `out of memory' (diff)
downloadwireguard-openbsd-7ab35e9cc9e7553eb4aa519de495f5739d7e0035.tar.xz
wireguard-openbsd-7ab35e9cc9e7553eb4aa519de495f5739d7e0035.zip
prototype for _thread_sys_madvise
Diffstat (limited to 'lib/libc/sys/posix_madvise.c')
-rw-r--r--lib/libc/sys/posix_madvise.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/sys/posix_madvise.c b/lib/libc/sys/posix_madvise.c
index 4952c5cc77a..be310dbd7df 100644
--- a/lib/libc/sys/posix_madvise.c
+++ b/lib/libc/sys/posix_madvise.c
@@ -1,9 +1,11 @@
-/* $OpenBSD: posix_madvise.c,v 1.1 2010/05/18 22:24:55 tedu Exp $ */
+/* $OpenBSD: posix_madvise.c,v 1.2 2014/07/10 12:46:28 tedu Exp $ */
/*
* Ted Unangst wrote this file and placed it into the public domain.
*/
#include <sys/mman.h>
+int _thread_sys_madvise(void *addr, size_t len, int behav);
+
int
posix_madvise(void *addr, size_t len, int behav)
{