cosmopolitan/tool/emacs
Justine Tunney 60cb435cb4
Implement pthread_atfork()
If threads are being used, then fork() will now acquire and release and
runtime locks so that fork() may be safely used from threads. This also
makes vfork() thread safe, because pthread mutexes will do nothing when
the process is a child of vfork(). More torture tests have been written
to confirm this all works like a charm. Additionally:

- Invent hexpcpy() api
- Rename nsync_malloc_() to kmalloc()
- Complete posix named semaphore implementation
- Make pthread_create() asynchronous signal safe
- Add rm, rmdir, and touch to command interpreter builtins
- Invent sigisprecious() and modify sigset functions to use it
- Add unit tests for posix_spawn() attributes and fix its bugs

One unresolved problem is the reclaiming of *NSYNC waiter memory in the
forked child processes, within apps which have threads waiting on locks
2022-10-16 12:25:13 -07:00
..
c.lang Greatly expand system() shell code features 2022-10-11 21:30:31 -07:00
cosmo-asm-mode.el Remove trailing whitespace from all files (#497) 2022-07-20 20:31:16 -07:00
cosmo-c-builtins.el Use ARM's faster math functions on non-tiny builds 2022-07-11 18:34:10 -07:00
cosmo-c-constants.el Implement pthread_atfork() 2022-10-16 12:25:13 -07:00
cosmo-c-keywords.el Remove testonly keyword 2022-09-05 08:41:43 -07:00
cosmo-c-types.el Add SSL to redbean 2021-06-24 13:20:50 -07:00
cosmo-cpp-constants.el Restart CI for New Technology and UBSAN hunting 2022-03-21 04:32:57 -07:00
cosmo-format.el Make improvements 2022-03-16 13:40:10 -07:00
cosmo-platform-constants.el Optimize memory layout 2022-09-12 04:26:52 -07:00
cosmo-stuff.el Fix bug with sendfile() on XNU 2022-09-13 04:32:29 -07:00
cosmo.el Add NES emulator 2020-07-02 13:46:08 -07:00
ctest-mode.el Add SSL to redbean 2021-06-24 13:20:50 -07:00
javadown.el Auto-generate some documentation 2020-12-26 02:09:07 -08:00
key.py Remove testonly keyword 2022-09-05 08:41:43 -07:00
ld-script.el Make improvements 2022-05-28 00:28:09 -07:00
optinfo-mode.el Initial import 2020-06-15 07:18:57 -07:00
protobuf-mode.el Initial import 2020-06-15 07:18:57 -07:00