cosmopolitan/libc/time
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
..
struct Get repository to build with GCC 11 2022-09-13 04:14:55 -07:00
asctime.c Get repository to build with GCC 11 2022-09-13 04:14:55 -07:00
clockstonanos.internal.h Improve locks and signals 2022-04-12 05:20:17 -07:00
ctime.c Fix Landlock Make so it can read pattern rule vars 2022-08-13 17:23:05 -07:00
ctime_r.c Get repository to build with GCC 11 2022-09-13 04:14:55 -07:00
difftime.c Add raw memory visualization tool to redbean 2022-05-14 04:33:58 -07:00
dsleep.c Reduce build graph by another eight percent 2022-08-13 13:11:56 -07:00
futimesat.c Reduce build graph by another eight percent 2022-08-13 13:11:56 -07:00
iso8601.c Make redbean tinier 2021-07-04 12:26:54 -07:00
kmonthname.S Add ASAN guards to some asm data structures 2022-03-18 13:02:57 -07:00
kmonthnameshort.S Add ASAN guards to some asm data structures 2022-03-18 13:02:57 -07:00
kweekdayname.S Add ASAN guards to some asm data structures 2022-03-18 13:02:57 -07:00
kweekdaynameshort.S Add ASAN guards to some asm data structures 2022-03-18 13:02:57 -07:00
localtime.c Implement pthread_atfork() 2022-10-16 12:25:13 -07:00
strftime.c Fold LIBC_UNICODE into LIBC_STR 2022-08-13 08:42:32 -07:00
strptime.c Revert "Use 64-bit years" 2022-05-12 06:45:36 -07:00
time.h Get repository to build with GCC 11 2022-09-13 04:14:55 -07:00
time.mk Avoid sandboxing directory prerequisites 2022-08-19 13:02:25 -07:00
times.c Reduce Makefile dependencies by 4% 2022-05-23 15:07:01 -07:00
timezone.c Make improvements 2022-04-28 09:57:07 -07:00
tz.internal.h Add raw memory visualization tool to redbean 2022-05-14 04:33:58 -07:00
tzfile.internal.h Make improvements 2022-04-27 05:39:39 -07:00
xiso8601.c Revert "Use 64-bit years" 2022-05-12 06:45:36 -07:00