Commit 74729f19 authored by Deucе's avatar Deucе 👌🏾
Browse files

Fix mmap flags for read.

At least one of MAP_ANON, MAP_GUARD, MAP_PRIVATE, MAP_SHARED, or MAP_STACK
must be specified.
parent 85fdb87b
Pipeline #2709 passed with stage
in 9 minutes and 34 seconds
......@@ -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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment