summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/pmadvise.c
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>2001-01-23 04:49:39 +0000
committerwollman <wollman@FreeBSD.org>2001-01-23 04:49:39 +0000
commit2d9096c43d1c48b7e623d68946ea3edaf171e1e7 (patch)
tree81e163523b5db3514670b8227b5e5530b6df627f /lib/libc/gen/pmadvise.c
parent7885956de1c3defa0003f266eff5748c7d9157d0 (diff)
downloadFreeBSD-src-2d9096c43d1c48b7e623d68946ea3edaf171e1e7.zip
FreeBSD-src-2d9096c43d1c48b7e623d68946ea3edaf171e1e7.tar.gz
Add a couple of new library interfaces (will be activated when the
relavant header file changes are committed) for POSIX support.
Diffstat (limited to 'lib/libc/gen/pmadvise.c')
-rw-r--r--lib/libc/gen/pmadvise.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/libc/gen/pmadvise.c b/lib/libc/gen/pmadvise.c
new file mode 100644
index 0000000..bcd1520
--- /dev/null
+++ b/lib/libc/gen/pmadvise.c
@@ -0,0 +1,14 @@
+/*
+ * The contents of this file are in the public domain.
+ * Written by Garrett A. Wollman, 2000-10-07.
+ *
+ * $FreeBSD$
+ */
+
+#include <sys/mman.h>
+
+int
+(posix_madvise)(void *address, size_t size, int how)
+{
+ return posix_madvise(address, size, how);
+}
OpenPOWER on IntegriCloud