mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-02 22:55:23 +00:00
Kernel+LibC: Add a very limited sys$mremap() implementation
This syscall can currently only remap a shared file-backed mapping into a private file-backed mapping.
This commit is contained in:
@@ -195,7 +195,8 @@ namespace Kernel {
|
||||
S(disown) \
|
||||
S(adjtime) \
|
||||
S(allocate_tls) \
|
||||
S(prctl)
|
||||
S(prctl) \
|
||||
S(mremap)
|
||||
|
||||
namespace Syscall {
|
||||
|
||||
@@ -256,6 +257,13 @@ struct SC_mmap_params {
|
||||
StringArgument name;
|
||||
};
|
||||
|
||||
struct SC_mremap_params {
|
||||
uintptr_t old_address;
|
||||
size_t old_size;
|
||||
size_t new_size;
|
||||
int32_t flags;
|
||||
};
|
||||
|
||||
struct SC_open_params {
|
||||
int dirfd;
|
||||
StringArgument path;
|
||||
|
||||
Reference in New Issue
Block a user