summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/pmadvise.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/gen/pmadvise.c')
-rw-r--r--lib/libc/gen/pmadvise.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/libc/gen/pmadvise.c b/lib/libc/gen/pmadvise.c
new file mode 100644
index 0000000..60cef63
--- /dev/null
+++ b/lib/libc/gen/pmadvise.c
@@ -0,0 +1,16 @@
+/*
+ * The contents of this file are in the public domain.
+ * Written by Garrett A. Wollman, 2000-10-07.
+ *
+ */
+
+#include <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
+
+#include <sys/mman.h>
+
+int
+posix_madvise(void *address, size_t size, int how)
+{
+ return madvise(address, size, how);
+}
OpenPOWER on IntegriCloud