mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 22:17:44 +00:00
LibC: Stub mlock in sys/mman
mlock is supposed to prevent memory from being paged out to swap, which we don't have currently. Required by OpenSSL.
This commit is contained in:
parent
add3a02ddd
commit
f5d4de8b66
2 changed files with 8 additions and 0 deletions
|
@ -4,6 +4,7 @@
|
|||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include <AK/Format.h>
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
@ -82,4 +83,10 @@ void* allocate_tls(const char* initial_data, size_t size)
|
|||
}
|
||||
return (void*)rc;
|
||||
}
|
||||
|
||||
int mlock(const void*, size_t)
|
||||
{
|
||||
dbgln("FIXME: Implement mlock()");
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue