Ignore MAP_{PRIVATE,SHARED} in mmap()
Only one process is expected to exist at any one time.
This commit is contained in:
parent
cdd4adfb08
commit
cff7b5e62f
|
@ -22,11 +22,6 @@ void * mmap(void * addr, size_t length, int prot, int flags, int fd,
|
|||
return MAP_FAILED;
|
||||
}
|
||||
/* flags */
|
||||
if((flags & MAP_PRIVATE) != MAP_PRIVATE)
|
||||
{
|
||||
errno = EINVAL;
|
||||
return MAP_FAILED;
|
||||
}
|
||||
if((flags & MAP_ANONYMOUS) == MAP_ANONYMOUS)
|
||||
ret = calloc(1, length);
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue
Block a user