cosmopolitan/libc/fmt
Justine Tunney b107d2709f Add /statusz page to redbean plus other enhancements
redbean improvements:

- Explicitly disable corking
- Simulate Python regex API for Lua
- Send warmup requests in main process on startup
- Add Class-A granular IPv4 network classification
- Add /statusz page so you can monitor your redbean's health
- Fix regressions on OpenBSD/NetBSD caused by recent changes
- Plug Authorization header into Lua GetUser and GetPass APIs
- Recognize X-Forwarded-{For,Host} from local reverse proxies
- Add many additional functions to redbean Lua server page API
- Report resource usage of child processes on `/` listing page
- Introduce `-a` flag for logging child process resource usage
- Introduce `-t MILLIS` flag and `ProgramTimeout(ms)` init API
- Introduce `-H "Header: value"` flag and `ProgramHeader(k,v)` API

Cosmopolitan Libc improvements:

- Make strerror() simpler
- Make inet_pton() not depend on sscanf()
- Fix OpenExecutable() which broke .data section earlier
- Fix stdio in cases where it overflows kernel tty buffer
- Fix bugs in crash reporting w/o .com.dbg binary present
- Add polyfills for SO_LINGER, SO_RCVTIMEO, and SO_SNDTIMEO
- Polyfill TCP_CORK on BSD and XNU using TCP_NOPUSH magnums

New netcat clone in examples/nc.c:

While testing some of the failure conditions for redbean, I noticed that
BusyBox's `nc` command is pretty busted, if you use it as an interactive
tool, rather than having it be part of a pipeline. Unfortunately this'll
only work on UNIX since Windows doesn't let us poll on stdio and sockets
at the same time because I don't think they want tools like this running
on their platform. So if you want forbidden fruit, it's here so enjoy it
2021-04-23 18:53:57 -07:00
..
abs.c Change license 2020-12-27 17:18:44 -08:00
atoi.c Fix strtol 2020-12-29 22:40:52 -08:00
atol.c Fix strtol 2020-12-29 22:40:52 -08:00
atoll.c Fix strtol 2020-12-29 22:40:52 -08:00
basename.c Change license 2020-12-27 17:18:44 -08:00
basename_n.c Change license 2020-12-27 17:18:44 -08:00
bing.c Change license 2020-12-27 17:18:44 -08:00
bing.internal.h Enhance chibicc 2020-12-09 04:00:48 -08:00
conv.h Support proper %g, %f, and %a float formatting 2021-03-05 10:31:16 -08:00
convertmicros.c Change license 2020-12-27 17:18:44 -08:00
dirname.c Apply some touchups 2021-02-07 07:02:46 -08:00
div.c Change license 2020-12-27 17:18:44 -08:00
dosdatetimetounix.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
fcvt.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
filetimetotime.c Get all tests passing on NetBSD 2021-02-05 09:49:28 -08:00
filetimetotimespec.c Get all tests passing on NetBSD 2021-02-05 09:49:28 -08:00
filetimetotimeval.c Get all tests passing on NetBSD 2021-02-05 09:49:28 -08:00
fmt.c Make %p consistent with glibc and musl 2021-03-06 14:36:44 -08:00
fmt.h Support proper %g, %f, and %a float formatting 2021-03-05 10:31:16 -08:00
fmt.mk Make more functions friendly to Address Sanitizer 2021-02-02 03:45:31 -08:00
fmts.h Support proper %g, %f, and %a float formatting 2021-03-05 10:31:16 -08:00
imaxabs.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
imaxabs.thunk.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
internal.h Support proper %g, %f, and %a float formatting 2021-03-05 10:31:16 -08:00
isabspath.c Change license 2020-12-27 17:18:44 -08:00
isslash.internal.h Fold conv package into fmt 2020-12-09 16:52:00 -08:00
itoa.c Support proper %g, %f, and %a float formatting 2021-03-05 10:31:16 -08:00
itoa.h Fold conv package into fmt 2020-12-09 16:52:00 -08:00
itoa64.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
itoa64fixed16.greg.c Change license 2020-12-27 17:18:44 -08:00
itoa64radix8.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
itoa64radix10.greg.c Make minor performance improvement to HTTP parser 2021-03-28 18:00:29 -07:00
itoa64radix16.greg.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
itoa128radix10.greg.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
kmonthyearday.c Change license 2020-12-27 17:18:44 -08:00
labs.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
ldiv.c Change license 2020-12-27 17:18:44 -08:00
leb128.h Make Cosmopolitan ANSI C89 compatible 2021-02-03 17:48:59 -08:00
llabs.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
lldiv.c Change license 2020-12-27 17:18:44 -08:00
ntoa.c Support proper %g, %f, and %a float formatting 2021-03-05 10:31:16 -08:00
pad.c Support proper %g, %f, and %a float formatting 2021-03-05 10:31:16 -08:00
pflink.h Support proper %g, %f, and %a float formatting 2021-03-05 10:31:16 -08:00
sleb128.c Change license 2020-12-27 17:18:44 -08:00
snprintf.c Support proper %g, %f, and %a float formatting 2021-03-05 10:31:16 -08:00
sprintf.c Support proper %g, %f, and %a float formatting 2021-03-05 10:31:16 -08:00
sscanf.c Change license 2020-12-27 17:18:44 -08:00
stoa.c Support proper %g, %f, and %a float formatting 2021-03-05 10:31:16 -08:00
strerror.c Change license 2020-12-27 17:18:44 -08:00
strerror_r.c Add /statusz page to redbean plus other enhancements 2021-04-23 18:53:57 -07:00
strtoimax.c Set errno when out of range in strtoimax (#111) 2021-03-07 14:38:56 -08:00
strtol.c Set errno in strtol family of functions (#110) 2021-03-07 14:18:08 -08:00
strtoll.c Set errno in strtol family of functions (#110) 2021-03-07 14:18:08 -08:00
strtonum.c Change license 2020-12-27 17:18:44 -08:00
strtoul.c Set errno in strtol family of functions (#110) 2021-03-07 14:18:08 -08:00
strtoull.c Set errno in strtol family of functions (#110) 2021-03-07 14:18:08 -08:00
strtoumax.c Fix int parsing with base 2 and 16 (#107) 2021-03-06 21:12:32 -08:00
timespectofiletime.c Change license 2020-12-27 17:18:44 -08:00
timetofiletime.c Change license 2020-12-27 17:18:44 -08:00
timevaltofiletime.c Change license 2020-12-27 17:18:44 -08:00
unbing.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
unhexbuf.c Change license 2020-12-27 17:18:44 -08:00
unsleb128.c Change license 2020-12-27 17:18:44 -08:00
vcscanf.c Get codebase completely working with LLVM 2021-02-09 02:57:32 -08:00
vsnprintf.c Support proper %g, %f, and %a float formatting 2021-03-05 10:31:16 -08:00
vsprintf.c Support proper %g, %f, and %a float formatting 2021-03-05 10:31:16 -08:00
vsscanf.c Change license 2020-12-27 17:18:44 -08:00
wcstoimax.c Change license 2020-12-27 17:18:44 -08:00
wcstol.c Support proper %g, %f, and %a float formatting 2021-03-05 10:31:16 -08:00