aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test-mmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'test-mmap.c')
-rw-r--r--test-mmap.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/test-mmap.c b/test-mmap.c
new file mode 100644
index 00000000..87596e3f
--- /dev/null
+++ b/test-mmap.c
@@ -0,0 +1,9 @@
+#include <sys/mman.h>
+
+int
+main(int argc, char **argv)
+{
+
+ mmap(0, 0, PROT_READ, MAP_FILE|MAP_SHARED, -1, 0);
+ return 0;
+}