mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-28 16:22:29 +00:00
Implement zipos mmap (#725)
This commit is contained in:
parent
6d36584ff2
commit
fd0da9c0df
7 changed files with 175 additions and 4 deletions
|
@ -48,7 +48,7 @@
|
|||
static char *mapend;
|
||||
static size_t maptotal;
|
||||
|
||||
static void *__zipos_mmap(size_t mapsize) {
|
||||
static void *__zipos_mmap_space(size_t mapsize) {
|
||||
char *start;
|
||||
size_t offset;
|
||||
_unassert(mapsize);
|
||||
|
@ -78,7 +78,7 @@ StartOver:
|
|||
ph = &h->next;
|
||||
}
|
||||
if (!h) {
|
||||
h = __zipos_mmap(mapsize);
|
||||
h = __zipos_mmap_space(mapsize);
|
||||
}
|
||||
__zipos_unlock();
|
||||
if (IsAsan()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue