cosmopolitan/test/libc
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
..
bits Fold LIBC_BITS into LIBC_INTRIN 2022-08-11 12:13:18 -07:00
calls Implement pthread_atfork() 2022-10-16 12:25:13 -07:00
dns Rename rand64() to _rand64() 2022-10-10 04:12:06 -07:00
fmt Greatly expand system() shell code features 2022-10-11 21:30:31 -07:00
intrin Implement pthread_atfork() 2022-10-16 12:25:13 -07:00
log Improve cosmo's conformance to libc-test 2022-10-10 17:52:41 -07:00
mem Make cli commands yoinkable into cosmo shell 2022-10-14 16:37:29 -07:00
nexgen32e Rename rand64() to _rand64() 2022-10-10 04:12:06 -07:00
release Add *NSYNC to libc/isystem 2022-09-13 01:47:12 -07:00
runtime Make some foss compatibility improvements 2022-10-14 13:59:34 -07:00
sock Greatly expand system() shell code features 2022-10-11 21:30:31 -07:00
stdio Implement pthread_atfork() 2022-10-16 12:25:13 -07:00
str Implement pthread_atfork() 2022-10-16 12:25:13 -07:00
thread Implement pthread_atfork() 2022-10-16 12:25:13 -07:00
time Pay off more technical debt 2022-09-12 23:36:56 -07:00
tinymath Pay off more technical debt 2022-09-12 23:36:56 -07:00
x Greatly expand system() shell code features 2022-10-11 21:30:31 -07:00
xed Pay off more technical debt 2022-09-12 23:36:56 -07:00
zipos Add fexecve() and map O_EXEC to O_PATH on Linux 2022-10-02 09:15:46 -07:00
test.mk Don't relocate file descriptor memory 2022-09-09 16:54:28 -07:00