cosmopolitan/libc/log
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
..
thunks Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
addr2linepath.c Change license 2020-12-27 17:18:44 -08:00
attachdebugger.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
backtrace.internal.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
backtrace2.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
backtrace3.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
bsd.h Add chibicc 2020-12-06 16:20:21 -08:00
cancolor.c Replace .pushsection directives (#30) 2021-01-10 13:36:31 -08:00
check.h Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
checkaligned.c Support proper %g, %f, and %a float formatting 2021-03-05 10:31:16 -08:00
checkfail.c Support proper %g, %f, and %a float formatting 2021-03-05 10:31:16 -08:00
checkfail_ndebug.c Make C memory safe like Rust 2021-02-01 03:58:46 -08:00
color.internal.h Get Cosmopolitan into releasable state 2020-11-25 08:19:00 -08:00
commandvenv.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
die.c Make pow() conform to standard definition 2021-03-03 09:21:27 -08:00
err.c Change license 2020-12-27 17:18:44 -08:00
errx.c Change license 2020-12-27 17:18:44 -08:00
flogf.c Change license 2020-12-27 17:18:44 -08:00
gdb.h Remove dollars from system call support symbols 2021-02-03 19:35:29 -08:00
gdbexec.c Make major improvements to redbean and libraries 2021-04-18 12:34:15 -07:00
gdbpath.c Change license 2020-12-27 17:18:44 -08:00
gdbsync.c Change license 2020-12-27 17:18:44 -08:00
getsymboltable.c Change license 2020-12-27 17:18:44 -08:00
getttycols.c Change license 2020-12-27 17:18:44 -08:00
getttysize.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
internal.h Add minor improvements and cleanup 2020-10-27 03:39:46 -07:00
isrunningundermake.c Make C memory safe like Rust 2021-02-01 03:58:46 -08:00
isterminalinarticulate.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
log.h Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
log.mk Support proper %g, %f, and %a float formatting 2021-03-05 10:31:16 -08:00
logerrno.c Make Cosmopolitan ANSI C89 compatible 2021-02-03 17:48:59 -08:00
logfile.initabi.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
loglevel.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
malloc_stats.c Support proper %g, %f, and %a float formatting 2021-03-05 10:31:16 -08:00
meminfo.c Support proper %g, %f, and %a float formatting 2021-03-05 10:31:16 -08:00
memsummary.c Support proper %g, %f, and %a float formatting 2021-03-05 10:31:16 -08:00
oncrash.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
oncrashthunks.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
onkill.c Make pow() conform to standard definition 2021-03-03 09:21:27 -08:00
perror.c Make Cosmopolitan ANSI C89 compatible 2021-02-03 17:48:59 -08:00
showcrashreports.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
somanyubsan.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
startfatal.c Implement more security stuff 2021-02-02 20:21:06 -08:00
startfatal_ndebug.c Change license 2020-12-27 17:18:44 -08:00
ubsan.c Change license 2020-12-27 17:18:44 -08:00
ubsan.internal.h Add chibicc 2020-12-06 16:20:21 -08:00
verr.c Change license 2020-12-27 17:18:44 -08:00
verrx.c Change license 2020-12-27 17:18:44 -08:00
vflogf.c Make major improvements to stdio 2021-03-26 22:31:41 -07:00
vwarn.c Change license 2020-12-27 17:18:44 -08:00
vwarnx.c Change license 2020-12-27 17:18:44 -08:00
warn.c Change license 2020-12-27 17:18:44 -08:00
warnx.c Change license 2020-12-27 17:18:44 -08:00