nuttx/fs:remove (flags & MAP_PRIVATE) == 0.
NuttX not support MAP_PRIVATE currently. Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
This commit is contained in:
parent
e872610071
commit
a0206adcfa
|
@ -136,7 +136,7 @@ static int file_mmap_(FAR struct file *filep, FAR void *start,
|
||||||
* in memory.
|
* in memory.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if ((flags & MAP_PRIVATE) == 0 && filep->f_inode &&
|
if (filep->f_inode &&
|
||||||
filep->f_inode->u.i_ops->mmap != NULL)
|
filep->f_inode->u.i_ops->mmap != NULL)
|
||||||
{
|
{
|
||||||
ret = filep->f_inode->u.i_ops->mmap(filep, &entry);
|
ret = filep->f_inode->u.i_ops->mmap(filep, &entry);
|
||||||
|
|
Loading…
Reference in New Issue