Revision 059bca46
b/bsd-user/mmap.c | ||
---|---|---|
240 | 240 |
possible while it is a shared mapping */ |
241 | 241 |
if ((flags & TARGET_BSD_MAP_FLAGMASK) == MAP_SHARED && |
242 | 242 |
(prot & PROT_WRITE)) |
243 |
return -EINVAL;
|
|
243 |
return -1;
|
|
244 | 244 |
|
245 | 245 |
/* adjust protection to be able to read */ |
246 | 246 |
if (!(prot1 & PROT_WRITE)) |
b/darwin-user/mmap.c | ||
---|---|---|
129 | 129 |
if ((flags & MAP_SHARED) && |
130 | 130 |
#endif |
131 | 131 |
(prot & PROT_WRITE)) |
132 |
return -EINVAL;
|
|
132 |
return -1;
|
|
133 | 133 |
|
134 | 134 |
/* adjust protection to be able to read */ |
135 | 135 |
if (!(prot1 & PROT_WRITE)) |
Also available in: Unified diff