cosmopolitan/test/libc/str
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
..
a64l_test.c Add pthread attributes and other libc functions 2022-09-07 05:28:32 -07:00
blake2_test.c Rename rand64() to _rand64() 2022-10-10 04:12:06 -07:00
blake2b256_tests.txt Decentralize Python native module linkage 2021-09-07 11:40:11 -07:00
bsr_test.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
bzero_test.c Rename rand64() to _rand64() 2022-10-10 04:12:06 -07:00
classifypath_test.c Add NET_HTTP to the amalgamation 2022-05-16 14:47:49 -07:00
crc32c_test.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
crc32z_test.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
hexpcpy_test.c Implement pthread_atfork() 2022-10-16 12:25:13 -07:00
highwayhash64_test.c Rename rand64() to _rand64() 2022-10-10 04:12:06 -07:00
isutf8_test.c Unbloat the build 2022-08-11 00:15:29 -07:00
longsort_test.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
memcasecmp_test.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
memccpy_test.c Rename rand64() to _rand64() 2022-10-10 04:12:06 -07:00
memcpy_test.c Rename rand64() to _rand64() 2022-10-10 04:12:06 -07:00
memfrob_test.c Fold LIBC_BITS into LIBC_INTRIN 2022-08-11 12:13:18 -07:00
memmem_test.c Fold LIBC_ALG into LIBC_MEM 2022-08-13 08:32:34 -07:00
memmove_test.c Improve Libc by making Python work even better 2021-08-18 22:16:23 -07:00
memrchr16_test.c Perform some code cleanup 2022-06-23 10:21:07 -07:00
memrchr_test.c Fold LIBC_RAND into LIBC_STDIO/TINYMATH/INTRIN 2022-08-11 12:32:00 -07:00
regex_test.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
setlocale_test.c Add fake support for locale="" (#546) 2022-08-18 15:51:23 -07:00
str_test.c Fold LIBC_BITS into LIBC_INTRIN 2022-08-11 12:13:18 -07:00
strcasecmp_test.c Get more Python tests passing (#141) 2021-08-16 15:26:31 -07:00
strcasestr_test.c Make important improvements 2022-09-14 22:39:08 -07:00
strcat_test.c Get more Python tests passing (#141) 2021-08-16 15:26:31 -07:00
strchr_test.c Rename rand64() to _rand64() 2022-10-10 04:12:06 -07:00
strclen_test.c Improve Python and Linenoise 2021-09-11 22:30:37 -07:00
strcmp_test.c Rename rand64() to _rand64() 2022-10-10 04:12:06 -07:00
strcpy_test.c Change license 2020-12-27 17:18:44 -08:00
strlcpy_test.c Fix strtol 2020-12-29 22:40:52 -08:00
strnlen_test.c Perform some code cleanup 2022-06-23 10:21:07 -07:00
strnwidth_test.c Make more compatibility improvements 2022-09-06 07:04:13 -07:00
strpbrk_test.c Make fixes, improvements, and chibicc python bindings 2021-10-08 08:41:57 -07:00
strrchr_test.c Improve backwards compatibility with GNU Make 2021-05-02 07:48:59 -07:00
strstr_test.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
strtok_r_test.c Make C memory safe like Rust 2021-02-01 03:58:46 -08:00
strtolower_test.c Fold LIBC_BITS into LIBC_INTRIN 2022-08-11 12:13:18 -07:00
test.mk Fold LIBC_UNICODE into LIBC_STR 2022-08-13 08:42:32 -07:00
towupper_test.c Improve Python and Linenoise 2021-09-11 22:30:37 -07:00
tpenc_test.c Pay off more technical debt 2022-09-12 23:36:56 -07:00
tprecode8to16_test.c Fold LIBC_BITS into LIBC_INTRIN 2022-08-11 12:13:18 -07:00
tprecode16to8_test.c Make C memory safe like Rust 2021-02-01 03:58:46 -08:00
wcsrchr_test.c Get more Python tests passing (#141) 2021-08-16 15:26:31 -07:00
wcwidth_test.c Make more compatibility improvements 2022-09-06 07:04:13 -07:00
wmemrchr_test.c Add more missing C / C++ headers 2022-09-04 04:53:52 -07:00