diff options
author | Andreas Kling <kling@serenityos.org> | 2020-12-29 02:11:47 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-12-29 02:20:43 +0100 |
commit | 30dbe9c78a50e98befe1e6fa331aaa46ab60a162 (patch) | |
tree | c85d776ae59aaede4362fa005b64fcefff44b666 /Kernel/API/Syscall.h | |
parent | c1360ef22e1bf0a3e8745d63ad4f07b13d3acd2c (diff) | |
download | serenity-30dbe9c78a50e98befe1e6fa331aaa46ab60a162.zip |
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.
Diffstat (limited to 'Kernel/API/Syscall.h')
-rw-r--r-- | Kernel/API/Syscall.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Kernel/API/Syscall.h b/Kernel/API/Syscall.h index 2cc1b0ff33..e83a67b5a3 100644 --- a/Kernel/API/Syscall.h +++ b/Kernel/API/Syscall.h @@ -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; |