mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-28 07:18:30 +00:00
Add torture test for zipos file descriptors
This change hardens the code for opening /zip/ files using the system call interface. Thread safety and signal safety has been improved for file descriptors in general. We now document fixed addresses that are needed for low level allocations.
This commit is contained in:
parent
579080cd4c
commit
e466dd0553
44 changed files with 2981 additions and 307 deletions
4
third_party/make/fcntl.c
vendored
4
third_party/make/fcntl.c
vendored
|
@ -169,10 +169,10 @@ static int klibc_fcntl(int fd, int action, /* arg */...);
|
|||
FD_CLOEXEC is portable, but other flags may be present); otherwise
|
||||
return -1 and set errno. */
|
||||
|
||||
int fcntl(int fd, int action, /* arg */...)
|
||||
int fcntl_(int fd, int action, /* arg */...)
|
||||
#undef fcntl
|
||||
#ifdef __KLIBC__
|
||||
#define fcntl klibc_fcntl
|
||||
#define fcntl_ klibc_fcntl
|
||||
#endif
|
||||
{
|
||||
va_list arg;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue