Implement zipos mmap (#725)

This commit is contained in:
Gavin Hayes 2023-02-02 05:28:50 -05:00 committed by GitHub
parent 6d36584ff2
commit fd0da9c0df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 175 additions and 4 deletions

View file

@ -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()) {