/uspace/trunk/libc/generic/mmap.c |
---|
38,10 → 38,10 |
prot |= AS_AREA_CACHEABLE; |
if (! ((flags & MAP_SHARED) ^ (flags & MAP_FIXED))) |
return NULL; |
if (! (flags & MAP_ANONYMOUS)) |
return NULL; |
// if (! ((flags & MAP_SHARED) ^ (flags & MAP_PRIVATE))) |
// return NULL; |
// if (! (flags & MAP_ANONYMOUS)) |
// return NULL; |
return as_area_create(start, length, prot); |
} |