cosmopolitan/libc/zipos
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
..
access.c Improve system call documentation 2022-10-02 09:15:46 -07:00
close.c Add torture test for zipos file descriptors 2022-06-15 16:29:49 -07:00
fcntl.c Polish recent changes and make improvements 2022-03-19 03:37:00 -07:00
find.c Fix bugs and make code tinier 2022-10-09 23:21:34 -07:00
free.c Don't relocate file descriptor memory 2022-09-09 16:54:28 -07:00
fstat.c Polish recent changes and make improvements 2022-03-19 03:37:00 -07:00
get.c Rewrite IPv4 Turf War backend 2022-10-03 08:23:54 -07:00
lock.c Implement pthread_atfork() 2022-10-16 12:25:13 -07:00
lseek.c Polish recent changes and make improvements 2022-03-19 03:37:00 -07:00
notat.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
open.c Fix bugs and make code tinier 2022-10-09 23:21:34 -07:00
parseuri.c Improve ZIP filesystem and change its prefix 2021-08-22 01:11:53 -07:00
read.c Fold LIBC_BITS into LIBC_INTRIN 2022-08-11 12:13:18 -07:00
stat-impl.c Improve zipos path handling (#579) 2022-09-03 22:50:23 -07:00
stat.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
zipos.internal.h Improve system call documentation 2022-10-02 09:15:46 -07:00
zipos.mk Productionize new APE loader and more 2021-10-02 08:27:03 -07:00
zipos.S Improve system call documentation 2022-10-02 09:15:46 -07:00