summaryrefslogtreecommitdiff
path: root/libc/stdtime/localtime.c
Commit message (Collapse)AuthorAgeFilesLines
* Vendor import of tzcode2010n:vendor/tzcode/tzcode2010nvendor/tzcodeEdwin Groothuis2010-10-261-2/+5
| | | | | | | | | | | | | | | | | | | | | | | * Makefile Change LOCALTIME default from "Factory" to "GMT"; do not compile "factory" file (but keep it in the distribution). * Theory Remove reference to "Factory" zone. * localtime.c Initialize ttinfo structures filled by tzparse (thanks to Ravindra for reporting a valgrind warning). * zic.c Fix generation of POSIX strings for zones with rules using "weekday<=n" forms of dates (thanks to Lei Liu for finding the problem). Also, limit output for non-POSIX-specificable zones defined to follow the same rules every year. (Note that no zones of either of the above types appear in the distribution; these changes cater to add-on zones). Obtained from: ftp://elsie.nci.nih.gov/pub/ Notes: svn path=/vendor/tzcode/dist/; revision=214400 svn path=/vendor/tzcode/tzcode2010n/; revision=214403; tag=vendor/tzcode/tzcode2010n
* Vendor import of tzcode2010lvendor/tzcode/tzcode2010lEdwin Groothuis2010-09-091-16/+10
| | | | | Notes: svn path=/vendor/tzcode/dist/; revision=212353 svn path=/vendor/tzcode/tzcode2010l/; revision=212354; tag=vendor/tzcode/tzcode2010l
* Import of tzcode2010c:vendor/tzcode/tzcode2010cEdwin Groothuis2010-03-021-5/+5
| | | | | | | | localtime.c - more core dump avoidance work Notes: svn path=/vendor/tzcode/dist/; revision=204570 svn path=/vendor/tzcode/tzcode2010c/; revision=204571; tag=vendor/tzcode/tzcode2010c
* Vendor import of tzcode2010a:vendor/tzcode/tzcode2010aEdwin Groothuis2010-02-171-4/+11
| | | | | | | | | | | | | | | | | | | | * asctime.c - Set errno to EINVAL and return "??? ??? ?? ??:??:?? ????\n" if asctime_r is called with a NULL struct tm pointer. (Note that asctime_r is called by ctime_r and asctime; asctime is called by ctime.) * localtime.c - Set errno to EINVAL and return WRONG if time1 is called with a NULL struct tm pointer; avoid dereference if a NULL struct tm pointer is passed to timelocal, timegm, or timeoff. (Note that time1 is called by mktime, timegm, and timeoff; mktime is called by timelocal.) Obtained from: ftp://elsie.nci.nih.gov/pub/ Notes: svn path=/vendor/tzcode/dist/; revision=204001 svn path=/vendor/tzcode/tzcode2010a/; revision=204002; tag=vendor/tzcode/tzcode2010a
* Vendor import of tzcode2009e.vendor/tzcode/tzcode2009eEdwin Groothuis2009-05-201-218/+591
| | | | | | | | Obtained from: ftp://elsie.nci.nih.gov/pub/ Notes: svn path=/vendor/tzcode/dist/; revision=192437 svn path=/vendor/tzcode/tzcode2009e/; revision=192438; tag=vendor/tzcode/tzcode2009e
* Flatten the dist tree of vendor/tzcodeEdwin Groothuis2008-09-271-0/+1707
Notes: svn path=/vendor/tzcode/dist/; revision=183400