mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:37:36 +00:00
LibCore: Add syscall wrapper for mmap()
For convenience on SerenityOS, this also takes a custom alignment request, and a memory region name. These are non-POSIX extensions.
This commit is contained in:
parent
dd6e73176d
commit
53e9b9758e
2 changed files with 20 additions and 0 deletions
|
@ -20,5 +20,6 @@ ErrorOr<void> unveil(StringView path, StringView permissions);
|
|||
ErrorOr<void> sigaction(int signal, struct sigaction const* action, struct sigaction* old_action);
|
||||
ErrorOr<struct stat> fstat(int fd);
|
||||
ErrorOr<int> fcntl(int fd, int command, ...);
|
||||
ErrorOr<void*> mmap(void* address, size_t, int protection, int flags, int fd, off_t, size_t alignment = 0, StringView name = {});
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue