cosmopolitan/test/libc/intrin
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
..
asan_test.c Improve system call wrappers 2022-09-19 15:06:25 -07:00
bextra_test.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
bitreverse_test.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
countbits_test.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
describeflags_test.c Clean up some code 2022-08-20 12:32:51 -07:00
describegidlist_test.c Add getgroups and setgroups (#619) 2022-09-18 02:48:53 -07:00
describesigset_test.c Implement pthread_atfork() 2022-10-16 12:25:13 -07:00
division_test.c Fold LIBC_BITS into LIBC_INTRIN 2022-08-11 12:13:18 -07:00
dos2errno_test.c Make important improvements 2022-09-14 22:39:08 -07:00
formatint32_test.c Use Lua auto buffers when possible 2022-05-29 19:04:30 -07:00
getenv_test.c Restart CI for New Technology and UBSAN hunting 2022-03-21 04:32:57 -07:00
integralarithmetic_test.c Fold LIBC_BITS into LIBC_INTRIN 2022-08-11 12:13:18 -07:00
intrin_test.c Rename rand64() to _rand64() 2022-10-10 04:12:06 -07:00
kprintf_test.c Introduce sigtimedwait() and sigwaitinfo() 2022-10-10 07:39:44 -07:00
lock_test.c Implement pthread_atfork() 2022-10-16 12:25:13 -07:00
lockipc_test.c Add shared memory apis to redbean 2022-10-06 04:55:26 -07:00
lockscale_test.c Improve pthread_join() 2022-09-16 14:02:06 -07:00
memcmp_test.c Rename rand64() to _rand64() 2022-10-10 04:12:06 -07:00
memmove_test.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
memset_test.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
morton_test.c Fold LIBC_BITS into LIBC_INTRIN 2022-08-11 12:13:18 -07:00
palignr_test.c Fold LIBC_RAND into LIBC_STDIO/TINYMATH/INTRIN 2022-08-11 12:32:00 -07:00
pmulhrsw_test.c Remove undefined behaviors 2021-05-16 11:16:28 -07:00
popcnt_test.c Fold LIBC_BITS into LIBC_INTRIN 2022-08-11 12:13:18 -07:00
pshuf_test.c Fold LIBC_RAND into LIBC_STDIO/TINYMATH/INTRIN 2022-08-11 12:32:00 -07:00
pthread_atfork_test.c Implement pthread_atfork() 2022-10-16 12:25:13 -07:00
pthread_mutex_lock2_test.c Clean up threading code some more 2022-09-13 20:17:34 -07:00
pthread_mutex_lock_test.c Implement pthread_atfork() 2022-10-16 12:25:13 -07:00
pthread_once_test.c Rewrite IPv4 Turf War backend 2022-10-03 08:23:54 -07:00
rand64_test.c Rename rand64() to _rand64() 2022-10-10 04:12:06 -07:00
rounddown2pow_test.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
roundup2log_test.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
roundup2pow_test.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
sched_yield_test.c Improve system calls 2022-07-08 06:42:03 -07:00
strlen_test.c Rename rand64() to _rand64() 2022-10-10 04:12:06 -07:00
strsignal_r_test.c Introduce sigtimedwait() and sigwaitinfo() 2022-10-10 07:39:44 -07:00
test.mk Pay off more technical debt 2022-09-12 23:36:56 -07:00