mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-03 09:48:29 +00:00
Remove __mmap() and __munmap()
This commit is contained in:
parent
01587de761
commit
fc65422660
5 changed files with 11 additions and 16 deletions
|
@ -148,8 +148,8 @@ textstartup void __enable_tls(void) {
|
|||
// if a binary needs this much thread_local storage, then it
|
||||
// surely must have linked the mmap() function at some point
|
||||
// we can't call mmap() because it's too early for sig block
|
||||
mem = _weaken(__mmap)(0, siz, PROT_READ | PROT_WRITE,
|
||||
MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
|
||||
mem = _weaken(mmap)(0, siz, PROT_READ | PROT_WRITE,
|
||||
MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
|
||||
}
|
||||
|
||||
struct CosmoTib *tib = (struct CosmoTib *)(mem + siz - sizeof(*tib));
|
||||
|
@ -176,8 +176,8 @@ textstartup void __enable_tls(void) {
|
|||
// if a binary needs this much thread_local storage, then it
|
||||
// surely must have linked the mmap() function at some point
|
||||
// we can't call mmap() because it's too early for sig block
|
||||
mem = _weaken(__mmap)(0, size, PROT_READ | PROT_WRITE,
|
||||
MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
|
||||
mem = _weaken(mmap)(0, size, PROT_READ | PROT_WRITE,
|
||||
MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
|
||||
}
|
||||
|
||||
struct CosmoTib *tib =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue