mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 20:17:44 +00:00
Support basic mmap'ing of a file!
All right, we can now mmap() a file and it gets magically paged in from fs in response to an NP page fault. This is really cool :^) I need to refactor this to support sharing of read-only file-backed pages, but it's cool to just have something working.
This commit is contained in:
parent
fdbd9f1e27
commit
3c8064a787
8 changed files with 141 additions and 14 deletions
|
@ -14,6 +14,8 @@
|
|||
#define PROT_EXEC 0x4
|
||||
#define PROT_NONE 0x0
|
||||
|
||||
#define MAP_FAILED ((void*)-1)
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
void* mmap(void* addr, size_t, int prot, int flags, int fd, off_t);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue