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:
Justine Tunney 2022-06-15 16:19:50 -07:00
parent 579080cd4c
commit e466dd0553
44 changed files with 2981 additions and 307 deletions

View file

@ -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;