mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-02 17:28:30 +00:00
Make ZipOS mmap safer (#735)
- It now runs entirely under __mmi_lock - Hide implementation strace
This commit is contained in:
parent
e323527ffa
commit
b275e664ec
6 changed files with 44 additions and 29 deletions
|
@ -48,8 +48,8 @@ ssize_t __zipos_write(struct ZiposHandle *, const struct iovec *, size_t,
|
|||
int64_t __zipos_lseek(struct ZiposHandle *, int64_t, unsigned) _Hide;
|
||||
int __zipos_fcntl(int, int, uintptr_t) _Hide;
|
||||
int __zipos_notat(int, const char *) _Hide;
|
||||
void *__zipos_mmap(void *, uint64_t, int32_t, int32_t, struct ZiposHandle *,
|
||||
int64_t) _Hide;
|
||||
noasan void *__zipos_Mmap(void *, uint64_t, int32_t, int32_t,
|
||||
struct ZiposHandle *, int64_t) _Hide;
|
||||
|
||||
#ifdef _NOPL0
|
||||
#define __zipos_lock() _NOPL0("__threadcalls", __zipos_lock)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue