mirror of
https://github.com/RGBCube/serenity
synced 2025-05-25 22:05:07 +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:
parent
c1360ef22e
commit
30dbe9c78a
6 changed files with 71 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue