mmaptest.c revision e739ac0589b4fb43561f801c4faba8c1b89f8680
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 7int 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