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

@ -21,7 +21,7 @@
/**
* Converts unsigned 64-bit integer to string w/ commas.
*
* @param p needs at least 21 bytes
* @param p needs at least 27 bytes
* @return pointer to nul byte
*/
dontinline char *FormatUint64Thousands(char p[static 27], uint64_t x) {
@ -44,7 +44,7 @@ dontinline char *FormatUint64Thousands(char p[static 27], uint64_t x) {
/**
* Converts 64-bit integer to string w/ commas.
*
* @param p needs at least 21 bytes
* @param p needs at least 27 bytes
* @return pointer to nul byte
*/
char *FormatInt64Thousands(char p[static 27], int64_t x) {