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 static void *f(void) 8 { 9 return mmap(NULL, 80 * 1000 * 1024, 10 PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 11 -1, 0); 12 } 13 14 int main() 15 { 16 void *m = f(); 17 munmap(m, 80 * 1000 * 1024); 18 return 0; 19 } 20