1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:47:35 +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:
Idan Horowitz 2021-12-04 23:00:49 +02:00 committed by Brian Gianforcaro
parent b19efc4db6
commit 3080cc16ec
2 changed files with 8 additions and 0 deletions

View file

@ -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)
{