cosmopolitan/libc/nexgen32e
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
..
doc Fix Clang support 2021-02-06 00:29:09 -08:00
argv.S Perform some minor code cleanup 2021-03-04 13:22:32 -08:00
auxv.S Perform some minor code cleanup 2021-03-04 13:22:32 -08:00
bench.h Initial import 2020-06-15 07:18:57 -07:00
bsf.h Add chibicc 2020-12-06 16:20:21 -08:00
bsr.h Add chibicc 2020-12-06 16:20:21 -08:00
bsrmax.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
bzero.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
cachesize.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
cescapec.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
cmpsb.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
cmpsl.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
cmpsq.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
cmpsw.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
cmpub.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
cmpul.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
cmpuq.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
cmpuw.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
cpuid4.internal.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
crc32-pclmul.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
crc32.h Add /statusz page to redbean plus other enhancements 2021-04-23 18:53:57 -07:00
crc32init.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
div10int64.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
div100int64.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
div1000int64.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
div10000int64.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
div1000000int64.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
div1000000000int64.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
djbsort-avx2.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
environ.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
errno.c Make examples folder somewhat more focused 2021-03-05 06:09:12 -08:00
explicit_bzero.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
fentry.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
ffs.h Auto-generate some documentation 2020-12-26 02:09:07 -08:00
ffs.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
ffsl.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
gc.internal.h Get codebase completely working with LLVM 2021-02-09 02:57:32 -08:00
gc.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
gclongjmp.S Expose public garbage collector API for C language 2021-03-08 10:59:34 -08:00
hascharacter.internal.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
identity.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
imapxlatab.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
kbase36.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
kcp437.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
kcpuids.h Auto-generate some documentation 2020-12-26 02:09:07 -08:00
kcpuids.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
kcrc32ctab.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
khalfcache3.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
kompressor.h Initial import 2020-06-15 07:18:57 -07:00
kreversebits.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
ksha256tab.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
kstarttsc.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
ktolower.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
llog10.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
loadxmm.S Expose public garbage collector API for C language 2021-03-08 10:59:34 -08:00
lolendian.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
longjmp.S Expose public garbage collector API for C language 2021-03-08 10:59:34 -08:00
lz4.h Improve dead code elimination 2021-02-08 04:04:42 -08:00
lzcnt.h Initial import 2020-06-15 07:18:57 -07:00
lzcnt.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
lzcntl.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
macros.h Make improvements 2020-12-01 03:43:40 -08:00
macros.internal.inc Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
mcount.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
memcpy.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
memeqmask.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
memjmpinit.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
memmove.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
mempcpy.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
memrchr.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
memrchr16.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
memrchr32.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
memset.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
missingno.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
msr.h Initial import 2020-06-15 07:18:57 -07:00
nexgen32e.h Make more functions friendly to Address Sanitizer 2021-02-02 03:45:31 -08:00
nexgen32e.mk Make examples folder somewhat more focused 2021-03-05 06:09:12 -08:00
nt2sysv.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
nt2sysv.S Expose public garbage collector API for C language 2021-03-08 10:59:34 -08:00
pcmpstr.inc Get codebase completely working with LLVM 2021-02-09 02:57:32 -08:00
program_invocation_name.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
rdtsc.h Initial import 2020-06-15 07:18:57 -07:00
rdtscp.h Get binaries closer to running without an o/s 2020-11-02 19:12:47 -08:00
rem10int64.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
rem100int64.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
rem1000int64.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
rem10000int64.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
rem1000000int64.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
rem1000000000int64.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
rldecode.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
savexmm.S Expose public garbage collector API for C language 2021-03-08 10:59:34 -08:00
setjmp.S Expose public garbage collector API for C language 2021-03-08 10:59:34 -08:00
slowcall.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
slowcall.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
stackframe.h Get address sanitizer mostly working 2020-09-03 05:44:37 -07:00
strcpyzbw.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
strcspn.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
strlen.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
strsak.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
strsak16.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
strsak32.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
strstr-sse42.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
strstr.inc Get codebase completely working with LLVM 2021-02-09 02:57:32 -08:00
strstr16-sse42.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
tinydivsi.greg.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
tinystrlen.greg.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
tinystrlen.internal.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
tinystrlen16.greg.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
tinystrncmp.ncabi.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
tinystrnlen.greg.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
tinystrnlen16.greg.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
tinywcslen.greg.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
tinywcsnlen.greg.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
trampoline.h Replace .pushsection directives (#30) 2021-01-10 13:36:31 -08:00
tzcnt.h Initial import 2020-06-15 07:18:57 -07:00
tzcnt.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
tzcntl.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
uart.internal.h Add epoll and do more release readiness changes 2020-11-28 12:01:51 -08:00
vendor.internal.h Add UEFI support 2021-02-21 21:33:04 -08:00
vidya.internal.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
x86compiler.h Initial import 2020-06-15 07:18:57 -07:00
x86feature.h Add pseudoteletypewriter to emulator 2020-08-29 23:51:09 -07:00
x86info.h Improve dead code elimination 2021-02-08 04:04:42 -08:00
x87conf.inc Get codebase completely working with LLVM 2021-02-09 02:57:32 -08:00
zip.S Generate ZIP files the same way as Windows 2021-03-01 06:24:11 -08:00