mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 23:03:27 +08:00
mmap: Implement the minial but reasonable mlock/munlock/mprotect
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> Change-Id: I538e0d78ecd0680374a2e0f56adbc61d7a4e6d1f
This commit is contained in:
committed by
Masayuki Ishikawa
parent
ec30d6ef6b
commit
06215be327
+1
-2
@@ -132,8 +132,7 @@ FAR void *mmap(FAR void *start, size_t length, int prot, int flags,
|
||||
* logic is not in place.
|
||||
*/
|
||||
|
||||
if (prot == PROT_NONE ||
|
||||
(flags & (MAP_FIXED | MAP_DENYWRITE)) != 0)
|
||||
if ((flags & (MAP_FIXED | MAP_DENYWRITE)) != 0)
|
||||
{
|
||||
ferr("ERROR: Unsupported options, prot=%x flags=%04x\n", prot, flags);
|
||||
ret = -ENOSYS;
|
||||
|
||||
Reference in New Issue
Block a user