cosmopolitan/libc/mem
Justine Tunney 8c4cce043c Make improvements to redbean
The following Lua APIs have been added:

  - IsDaemon() → bool
  - ProgramPidPath(str)

The following Lua hooks have been added:

  - OnClientConnection(ip:int,port:int,serverip:int,serverport:int) → bool
  - OnProcessCreate(pid:int,ip:int,port:int,serverip:int,serverport:int)
  - OnProcessDestroy(pid:int)
  - OnServerStart()
  - OnServerStop()
  - OnWorkerStart()
  - OnWorkerStop()

redbean now does a better job at applying gzip on the fly from the local
filesystem, using a streaming chunked api with constant memory, which is
useful for doing things like serving a 4gb text file off NFS, and having
it start transmitting in milliseconds. redbean will also compute entropy
on the beginnings of files to determine if compression is profitable.

This change pays off technical debts relating to memory, such as relying
on exit() to free() allocations. That's now mostly fixed so it should be
easier now to spot memory leaks in malloc traces.

This change also fixes bugs and makes improvements to our SSL support.
Uniprocess mode failed handshakes are no longer an issue. Token Alpn is
offered so curl -v looks less weird. Hybrid SSL certificate loading is
now smarter about naming conflicts. Self-signed CA root anchors will no
longer be delivered to the client during the handshake.
2021-07-10 15:19:37 -07:00
..
cxx Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
hook Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
alloca.h Initial import 2020-06-15 07:18:57 -07:00
asprintf.c Make Cosmopolitan ANSI C89 compatible 2021-02-03 17:48:59 -08:00
balloc.c Change license 2020-12-27 17:18:44 -08:00
bfree.c Change license 2020-12-27 17:18:44 -08:00
calloc.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
defer.greg.c Expose public garbage collector API for C language 2021-03-08 10:59:34 -08:00
fmt.h Make Cosmopolitan ANSI C89 compatible 2021-02-03 17:48:59 -08:00
free.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
gc.c Expose public garbage collector API for C language 2021-03-08 10:59:34 -08:00
internal.h Improve documentation 2020-12-27 07:02:35 -08:00
malloc.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
malloc_trim.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
malloc_usable_size.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
mem.h Implement better hypot function 2021-02-21 11:06:18 -08:00
mem.mk Fix link order in cosmopolitan.a 2021-01-16 12:05:41 -08:00
memalign.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
posix_memalign.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
putenv.c Make improvements to redbean 2021-07-10 15:19:37 -07:00
pvalloc.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
realloc.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
realloc_in_place.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
reallocarray.c Make major improvements to redbean and libraries 2021-04-18 12:34:15 -07:00
setenv.c Change license 2020-12-27 17:18:44 -08:00
strdup.c Change license 2020-12-27 17:18:44 -08:00
strndup.c Change license 2020-12-27 17:18:44 -08:00
unhexstr.c Change license 2020-12-27 17:18:44 -08:00
valloc.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
vasprintf.c Improve performance of printf functions 2021-04-24 13:58:50 -07:00
wcsdup.c Change license 2020-12-27 17:18:44 -08:00