mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 19:43:32 +00:00
e466dd0553
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.
33 lines
1.4 KiB
C
33 lines
1.4 KiB
C
#ifndef COSMOPOLITAN_LIBC_FMT_ITOA_H_
|
|
#define COSMOPOLITAN_LIBC_FMT_ITOA_H_
|
|
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
COSMOPOLITAN_C_START_
|
|
|
|
unsigned LengthInt64(int64_t) pureconst;
|
|
unsigned LengthUint64(uint64_t) pureconst;
|
|
unsigned LengthInt64Thousands(int64_t) pureconst;
|
|
unsigned LengthUint64Thousands(uint64_t) pureconst;
|
|
char *FormatInt32(char[hasatleast 12], int32_t);
|
|
char *FormatUint32(char[hasatleast 12], uint32_t);
|
|
char *FormatInt64(char[hasatleast 21], int64_t);
|
|
char *FormatUint64(char[hasatleast 21], uint64_t);
|
|
char *FormatInt64Thousands(char[hasatleast 27], int64_t);
|
|
char *FormatUint64Thousands(char[hasatleast 27], uint64_t);
|
|
char *FormatOctal32(char[hasatleast 13], uint32_t, bool);
|
|
char *FormatOctal64(char[hasatleast 24], uint64_t, bool);
|
|
char *FormatBinary64(char[hasatleast 67], uint64_t, char);
|
|
char *FormatHex64(char[hasatleast 19], uint64_t, char);
|
|
char *FormatFlex64(char[hasatleast 24], int64_t, char);
|
|
size_t uint64toarray_radix16(uint64_t, char[hasatleast 17]);
|
|
size_t uint64toarray_fixed16(uint64_t, char[hasatleast 17], uint8_t);
|
|
size_t uint64toarray_radix8(uint64_t, char[hasatleast 24]);
|
|
char *FormatMemorySize(char *, uint64_t);
|
|
|
|
#ifndef __STRICT_ANSI__
|
|
size_t int128toarray_radix10(int128_t, char *);
|
|
size_t uint128toarray_radix10(uint128_t, char *);
|
|
#endif
|
|
|
|
COSMOPOLITAN_C_END_
|
|
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
#endif /* COSMOPOLITAN_LIBC_FMT_ITOA_H_ */
|