mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-15 23:09:05 +00:00
Kernel+LibC: Allow sys$mmap() callers to specify address alignment
This is exposed via the non-standard serenity_mmap() call in userspace.
This commit is contained in:
parent
02e199a9cb
commit
31e1af732f
Notes:
sideshowbarker
2024-07-19 09:16:31 +09:00
Author: https://github.com/awesomekling
Commit: 31e1af732f
7 changed files with 66 additions and 30 deletions
|
@ -53,6 +53,7 @@ __BEGIN_DECLS
|
|||
|
||||
void* mmap(void* addr, size_t, int prot, int flags, int fd, off_t);
|
||||
void* mmap_with_name(void* addr, size_t, int prot, int flags, int fd, off_t, const char* name);
|
||||
void* serenity_mmap(void* addr, size_t, int prot, int flags, int fd, off_t, size_t alignment, const char* name);
|
||||
int munmap(void*, size_t);
|
||||
int mprotect(void*, size_t, int prot);
|
||||
int set_mmap_name(void*, size_t, const char*);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue