cosmopolitan/tool/build/lib
Justine Tunney bf03b2e64c Make major improvements to redbean and libraries
The most exciting improvement is dynamic pages will soon be able to use
the executable itself as an object store. it required a heroic technique
for overcoming ETXTBSY restrictions which lets us open the executable in
read/write mode, which means (1) wa can restore the APE header, and (2)
we can potentially containerize redbean extension code so that modules
you download for your redbean online will only impact your redbean.

Here's a list of breaking changes to redbean:

- Remove /tool/net/ prefix from magic ZIP paths
- GetHeader() now returns NIL if header is absent

Here's a list of fixes and enhancements to redbean:

- Support 64-bit ZIP archives
- Record User-Agent header in logs
- Add twelve error handlers to accept()
- Display octal st_mode on listing page
- Show ZIP file comments on listing page
- Restore APE MZ header on redbean startup
- Track request count on redbean index page
- Report server uptime on redbean index page
- Don't bind server socket using SO_REUSEPORT
- Fix #151 where Lua LoadAsset() could free twice
- Report rusage accounting when workers exit w/ -vv
- Use ZIP iattr field as text/plain vs. binary hint
- Add ParseUrl() API for parsing things like a.href
- Add ParseParams() API for parsing HTTP POST bodies
- Add IsAcceptablePath() API for checking dots, etc.
- Add IsValidHttpToken() API for validating sane ASCII
- Add IsAcceptableHostPort() for validating HOST[:PORT]
- Send 400 response to HTTP/1.1 requests without a Host
- Send 403 response if ZIP or file isn't other readable
- Add virtual hosting that tries prepending Host to path
- Route requests based on Host in Request-URI if present
- Host routing will attempt to remove or add the www. prefix
- Sign-extend UNIX timestamps and don't adjust FileTime zone

Here's some of the improvements made to Cosmopolitan Libc:

- Fix ape.S indentation
- Improve consts.sh magnums
- Write pretty good URL parser
- Improve rusage accounting apis
- Bring mremap() closer to working
- Added ZIP APIs which will change
- Check for overflow in reallocarray()
- Remove overly fancy linkage in strerror()
- Fix GDB attach on crash w/ OpenBSD msyscall()
- Make sigqueue() portable to most UNIX distros
- Make integer serialization macros more elegant
- Bring back 34x tprecode8to16() performance boost
- Make malloc() more resilient to absurdly large sizes
2021-04-18 12:34:15 -07:00
..
abp.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
address.c Change license 2020-12-27 17:18:44 -08:00
address.h Add The LISP Challenge 2020-10-01 01:20:13 -07:00
alu.c Change license 2020-12-27 17:18:44 -08:00
alu.h Add minor improvements and cleanup 2020-10-27 03:39:46 -07:00
argv.c Remove garbage collector macro from header (#114) 2021-03-07 20:23:29 -08:00
argv.h Make terminal ui binaries work well everywhere 2020-10-19 06:38:31 -07:00
asmdown.c Change license 2020-12-27 17:18:44 -08:00
asmdown.h Improve documentation 2020-12-27 07:02:35 -08:00
bcd.c Change license 2020-12-27 17:18:44 -08:00
bcd.h Make improvements 2020-09-14 00:02:34 -07:00
bitscan.c Improve signal handling and math 2021-02-25 18:33:33 -08:00
bitscan.h Make improvements 2020-09-14 00:02:34 -07:00
breakpoint.c Change license 2020-12-27 17:18:44 -08:00
breakpoint.h Add pseudoteletypewriter to emulator 2020-08-29 23:51:09 -07:00
breg.c Change license 2020-12-27 17:18:44 -08:00
buffer.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
buffer.h Get binaries closer to running without an o/s 2020-11-02 19:12:47 -08:00
buildlib.mk Delete LIBC_CALLS_HEFTY 2021-02-02 22:17:53 -08:00
case.h Fix bugs and have emulator emulate itself 2020-08-31 05:17:31 -07:00
cga.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
cga.h Make more improvements 2020-09-28 01:20:34 -07:00
cpuid.c Change license 2020-12-27 17:18:44 -08:00
cpuid.h Make improvements 2020-09-14 00:02:34 -07:00
cvt.c Make major improvements to redbean and libraries 2021-04-18 12:34:15 -07:00
cvt.h Make improvements 2020-09-14 00:02:34 -07:00
debug.c Remove garbage collector macro from header (#114) 2021-03-07 20:23:29 -08:00
demangle.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
demangle.h Add fixes performance and static web server 2020-10-05 23:11:49 -07:00
dis.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
dis.h Add minor improvements and cleanup 2020-10-27 03:39:46 -07:00
disarg.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
diself.c Make %p consistent with glibc and musl 2021-03-06 14:36:44 -08:00
disinst.c Change license 2020-12-27 17:18:44 -08:00
disspec.c Improve signal handling and math 2021-02-25 18:33:33 -08:00
divmul.c Change license 2020-12-27 17:18:44 -08:00
divmul.h Add pseudoteletypewriter to emulator 2020-08-29 23:51:09 -07:00
elfwriter.c Remove garbage collector macro from header (#114) 2021-03-07 20:23:29 -08:00
elfwriter.h finish intellisense support and sync with upstream 2021-02-03 13:50:08 -05:00
elfwriter_cargoculting.c Change license 2020-12-27 17:18:44 -08:00
elfwriter_yoink.c Change license 2020-12-27 17:18:44 -08:00
endian.h Make major improvements to redbean and libraries 2021-04-18 12:34:15 -07:00
errnos.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
fds.c Change license 2020-12-27 17:18:44 -08:00
fds.h finish intellisense support and sync with upstream 2021-02-03 13:50:08 -05:00
flags.c Change license 2020-12-27 17:18:44 -08:00
flags.h Add minor improvements and cleanup 2020-10-27 03:39:46 -07:00
fpu.c Make pow() conform to standard definition 2021-03-03 09:21:27 -08:00
fpu.h Make improvements 2020-09-14 00:02:34 -07:00
high.c Change license 2020-12-27 17:18:44 -08:00
high.h Make more improvements 2020-09-28 01:20:34 -07:00
instruction.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
interner.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
interner.h Initial import 2020-06-15 07:18:57 -07:00
ioports.c Change license 2020-12-27 17:18:44 -08:00
ioports.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
iovs.c Change license 2020-12-27 17:18:44 -08:00
iovs.h Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
javadown.c Get codebase completely working with LLVM 2021-02-09 02:57:32 -08:00
javadown.h finish intellisense support and sync with upstream 2021-02-03 13:50:08 -05:00
lines.c Add help dialog to Blinkenlights emulator 2021-02-19 17:16:17 -08:00
lines.h Add help dialog to Blinkenlights emulator 2021-02-19 17:16:17 -08:00
loader.c Make %p consistent with glibc and musl 2021-03-06 14:36:44 -08:00
loader.h Make improvements 2020-09-14 00:02:34 -07:00
machine.c Make major improvements to redbean and libraries 2021-04-18 12:34:15 -07:00
machine.h Refactor some Blinkenlights code 2021-03-03 13:09:06 -08:00
mda.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
mda.h Make improvements 2020-09-14 00:02:34 -07:00
memory.c Refactor some Blinkenlights code 2021-03-03 13:09:06 -08:00
memory.h Refactor some Blinkenlights code 2021-03-03 13:09:06 -08:00
memorymalloc.c Change license 2020-12-27 17:18:44 -08:00
message.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
modrm.c Perform some code cleanup 2021-02-27 10:33:32 -08:00
modrm.h Perform some code cleanup 2021-02-27 10:33:32 -08:00
op101.c Change license 2020-12-27 17:18:44 -08:00
op101.h Add minor improvements and cleanup 2020-10-27 03:39:46 -07:00
panel.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
panel.h Add minor improvements and cleanup 2020-10-27 03:39:46 -07:00
persist.c Remove garbage collector macro from header (#114) 2021-03-07 20:23:29 -08:00
persist.h finish intellisense support and sync with upstream 2021-02-03 13:50:08 -05:00
pml4t.c Change license 2020-12-27 17:18:44 -08:00
pml4t.h Fix missing header include 2020-11-07 00:05:25 -08:00
pml4tfmt.c Make %p consistent with glibc and musl 2021-03-06 14:36:44 -08:00
pty.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
pty.h Add minor improvements and cleanup 2020-10-27 03:39:46 -07:00
reset.c Refactor some Blinkenlights code 2021-03-03 13:09:06 -08:00
sse.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
sse.h Make more improvements 2020-09-28 01:20:34 -07:00
ssefloat.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
ssefloat.h Add chibicc 2020-12-06 16:20:21 -08:00
ssemov.c Change license 2020-12-27 17:18:44 -08:00
ssemov.h Make improvements 2020-09-14 00:02:34 -07:00
stack.c Make major improvements to redbean and libraries 2021-04-18 12:34:15 -07:00
stack.h Get binaries closer to running without an o/s 2020-11-02 19:12:47 -08:00
stats.c Change license 2020-12-27 17:18:44 -08:00
stats.h Add minor improvements and cleanup 2020-10-27 03:39:46 -07:00
string.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
string.h Make improvements 2020-09-14 00:02:34 -07:00
syscall.c Make major improvements to redbean and libraries 2021-04-18 12:34:15 -07:00
syscall.h Make improvements 2020-09-14 00:02:34 -07:00
throw.c Expose public garbage collector API for C language 2021-03-08 10:59:34 -08:00
throw.h Add chibicc 2020-12-06 16:20:21 -08:00
time.c Change license 2020-12-27 17:18:44 -08:00
time.h Get binaries closer to running without an o/s 2020-11-02 19:12:47 -08:00
word.c Make major improvements to redbean and libraries 2021-04-18 12:34:15 -07:00
word.h Fix bugs and have emulator emulate itself 2020-08-31 05:17:31 -07:00
xlaterrno.c Change license 2020-12-27 17:18:44 -08:00
xlaterrno.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
xmmtype.c Change license 2020-12-27 17:18:44 -08:00
xmmtype.h Add tool for viewing memory 2020-11-06 20:20:10 -08:00