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:
Andreas Kling
2020-12-29 02:11:47 +01:00
parent c1360ef22e
commit 30dbe9c78a
6 changed files with 71 additions and 1 deletions

View File

@@ -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;