mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:37:36 +00:00
LibC: Stub out munlock()
This function is supposed to unlock memory ranges that were locked by mlock, but since mlock is stubbed out right now, this is a no-op.
This commit is contained in:
parent
b19efc4db6
commit
3080cc16ec
2 changed files with 8 additions and 0 deletions
|
@ -94,6 +94,13 @@ int mlock(const void*, size_t)
|
|||
return 0;
|
||||
}
|
||||
|
||||
// https://pubs.opengroup.org/onlinepubs/9699919799/functions/munlock.html
|
||||
int munlock(const void*, size_t)
|
||||
{
|
||||
dbgln("FIXME: Implement munlock()");
|
||||
return 0;
|
||||
}
|
||||
|
||||
// https://pubs.opengroup.org/onlinepubs/9699919799/functions/msync.html
|
||||
int msync(void* address, size_t size, int flags)
|
||||
{
|
||||
|
|
|
@ -20,6 +20,7 @@ int set_mmap_name(void*, size_t, const char*);
|
|||
int madvise(void*, size_t, int advice);
|
||||
void* allocate_tls(const char* initial_data, size_t);
|
||||
int mlock(const void*, size_t);
|
||||
int munlock(const void*, size_t);
|
||||
int msync(void*, size_t, int flags);
|
||||
|
||||
__END_DECLS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue