Commits (1)
  • Deucе's avatar
    Fix mmap flags for read. · 74729f19
    Deucе authored
    At least one of MAP_ANON, MAP_GUARD, MAP_PRIVATE, MAP_SHARED, or MAP_STACK
    must be specified.
    74729f19
......@@ -43,7 +43,7 @@ struct xpmapping* xpmap(const char *filename, enum xpmap_type type)
switch(type) {
case XPMAP_READ:
oflags=O_RDONLY;
mflags=0;
mflags=MAP_PRIVATE;
mprot=PROT_READ;
break;
case XPMAP_WRITE:
......