cosmopolitan/test/libc/stdio
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
..
crypt_test.c Make more libc improvements 2022-08-06 17:18:40 -07:00
devrand_test.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
dirstream_test.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
dtoa_test.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
dumphexc_test.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
ecvt_test.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
fgetln_test.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
fgets_test.c Improve cosmo's conformance to libc-test 2022-10-10 17:52:41 -07:00
fgetwc_test.c Fold LIBC_BITS into LIBC_INTRIN 2022-08-11 12:13:18 -07:00
fmemopen_test.c Improve memory safety 2021-10-13 17:27:13 -07:00
fputc_test.c Remove stdio lock macros from amalgamation 2022-09-10 12:03:36 -07:00
fputs_test.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
fread_test.c Fix bugs and make code tinier 2022-10-09 23:21:34 -07:00
freopen_test.c Fix freopen so it resets stream buffer (#61) 2021-03-07 12:12:02 -08:00
fseeko_test.c Restore zip.com and .symtab files 2022-08-21 00:17:20 -07:00
ftell_test.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
fwrite_test.c Rename rand64() to _rand64() 2022-10-10 04:12:06 -07:00
getdelim_test.c Clean up some code 2022-08-20 12:32:51 -07:00
getrandom_test.c Make some foss compatibility improvements 2022-10-14 13:59:34 -07:00
gz_test.c Add zlib gzip functions 2022-05-12 12:17:40 -07:00
iconv_test.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
joinstrlist_test.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
memory_test.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
mkostempsm_test.c Fold LIBC_BITS into LIBC_INTRIN 2022-08-11 12:13:18 -07:00
mt19937_test.c Rename rand64() to _rand64() 2022-10-10 04:12:06 -07:00
popen_test.c Implement pthread_atfork() 2022-10-16 12:25:13 -07:00
posix_spawn_test.c Implement pthread_atfork() 2022-10-16 12:25:13 -07:00
rand_test.c Rename rand64() to _rand64() 2022-10-10 04:12:06 -07:00
rngset_test.c Fold LIBC_RAND into LIBC_STDIO/TINYMATH/INTRIN 2022-08-11 12:32:00 -07:00
system_test.c Further improve cocmd interpreter 2022-10-12 10:44:54 -07:00
test.mk Implement pthread_atfork() 2022-10-16 12:25:13 -07:00
tmpfile_test.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
ungetc_test.c Unbloat the build 2022-08-11 00:15:29 -07:00
vappendf_test.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
wut_test.c Implement pthread_atfork() 2022-10-16 12:25:13 -07:00