mmap gets called, now lets make it actually work

This commit is contained in:
Ciro Santilli
2017-07-27 15:10:41 +01:00
parent 75afeba635
commit 41742640cf
3 changed files with 102 additions and 4 deletions

View File

@@ -16,6 +16,7 @@ int main(int argc, char **argv)
printf("Usage: %s <mmap_file>\n", argv[0]);
return EXIT_FAILURE;
}
printf("open pathname = %s\n", argv[1]);
fd = open(argv[1], O_RDWR | O_SYNC);
if (fd < 0) {
perror("open");