Skip to content

Commit

Permalink
Add mlock, munlock and munlockall
Browse files Browse the repository at this point in the history
Signed-off-by: Wei Liu <liuw@liuw.name>
  • Loading branch information
liuw committed Jun 22, 2015
1 parent c8d5d18 commit 62c5935
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions lib/librumprun_base/syscall_misc.c
Expand Up @@ -122,6 +122,30 @@ mlockall(int flags)
return 0;
}

int
munlockall(void)
{

/* no vm => no need to unlock */
return 0;
}

int
mlock(const void *addr, size_t len)
{

/* no vm => everything is automatically locked */
return 0;
}

int
munlock(const void *addr, size_t len)
{

/* no vm => no need to unlock */
return 0;
}

int
munmap(void *addr, size_t len)
{
Expand Down

0 comments on commit 62c5935

Please sign in to comment.