cosmopolitan/third_party/tz
Justine Tunney af7bd80430
Eliminate cyclic locks in runtime
This change introduces a new deadlock detector for Cosmo's POSIX threads
implementation. Error check mutexes will now track a DAG of nested locks
and report EDEADLK when a deadlock is theoretically possible. These will
occur rarely, but it's important for production hardening your code. You
don't even need to change your mutexes to use the POSIX error check mode
because `cosmocc -mdbg` will enable error checking on mutexes by default
globally. When cycles are found, an error message showing your demangled
symbols describing the strongly connected component are printed and then
the SIGTRAP is raised, which means you'll also get a backtrace if you're
using ShowCrashReports() too. This new error checker is so low-level and
so pure that it's able to verify the relationships of every libc runtime
lock, including those locks upon which the mutex implementation depends.
2024-12-16 22:25:12 -08:00
..
BUILD.mk Fix build error 2024-05-04 23:23:56 -07:00
daylight.c Implement proper time zone support 2024-05-04 23:06:37 -07:00
difftime.c Remove .internal from more header filenames 2024-08-04 12:52:25 -07:00
LICENSE Implement proper time zone support 2024-05-04 23:06:37 -07:00
localtime.c Eliminate cyclic locks in runtime 2024-12-16 22:25:12 -08:00
lock.h Eliminate cyclic locks in runtime 2024-12-16 22:25:12 -08:00
private.h Implement proper time zone support 2024-05-04 23:06:37 -07:00
README.cosmo Implement proper time zone support 2024-05-04 23:06:37 -07:00
timezone.c Implement proper time zone support 2024-05-04 23:06:37 -07:00
tzdir.h Implement proper time zone support 2024-05-04 23:06:37 -07:00
tzfile.h Implement proper time zone support 2024-05-04 23:06:37 -07:00
tzname.c Implement proper time zone support 2024-05-04 23:06:37 -07:00
windows.py Update MODE=tiny time zone list (#1167) 2024-05-06 16:48:49 -07:00

DESCRIPTION

  tz is a library for handling time zones

LICENSE

  See LICENSE file

ORIGIN

  git@github.com:eggert/tz.git
  a75a6251d30b28a7badc1763296205adf67a5081
  Paul Eggert <eggert@cs.ucla.edu>

BUILD PROCESS

  make -j8 install BACKWARD= DESTDIR=stage REDO=posix_only

LOCAL CHANGES

  - Add aliases for legacy Cosmo timezone names.
  - Add yoinks for embedding time zones in binary.
  - Make localtime() posix thread cancelation safe.
  - Improve readabiilty with "localtime_" prefixes.
  - Automate the TZ environment variable on Windows.