sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 1 | #include <sys/types.h> |
2 | #include <sys/stat.h> | ||||
3 | #include <fcntl.h> | ||||
4 | #include <unistd.h> | ||||
5 | #include <sys/mman.h> | ||||
6 | |||||
7 | int main() | ||||
8 | { | ||||
9 | int fd; | ||||
10 | |||||
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 11 | mkdir("dir", 0777); |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 12 | fd = open("dir", O_RDONLY); |
13 | mmap(NULL, 4711, PROT_READ, MAP_PRIVATE, fd, 0); | ||||
14 | return 0; | ||||
15 | } |