1 #include <sys/types.h>
2 #include <sys/stat.h>
3 #include <fcntl.h>
4 #include <unistd.h>
5 #include "tests/sys_mman.h"
6 
7 int main()
8 {
9     int fd;
10 
11     mkdir("dir", 0777);
12     fd = open("dir", O_RDONLY);
13     mmap(NULL, 4711, PROT_READ, MAP_PRIVATE, fd, 0);
14     return 0;
15 }
16