mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 17:57:35 +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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -41,5 +41,6 @@ int mprotect(void*, size_t, int prot);
|
|||
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);
|
||||
|
||||
__END_DECLS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue