about summary refs log tree commit diff
path: root/time
Commit message (Collapse)AuthorAgeFilesLines
* Fix daylight time change for the USIan Wienand2012-05-091-6/+12
| | | | | | [BZ #14080] * time/tzset.c (__tzset_parse_tz): Update default rules for daylight time changes in the Energy Policy Act of 2005.
* Add __snseconds_t and __SNSECONDS_T_TYPEH.J. Lu2012-04-111-1/+1
|
* Testsuite #include fixes.Thomas Schwinge2012-04-021-0/+2
|
* Use time_t on ays, rem, y and yg in __offtimeH.J. Lu2012-03-161-2/+2
|
* Remove distribute variable from MakefilesUlrich Drepper2012-03-071-2/+1
|
* Fix ISO C11 definitions in time.hUlrich Drepper2012-02-251-11/+8
|
* Replace FSF snail mail address with URLs.Paul Eggert2012-02-0939-117/+78
|
* Remove miscellaneous __STDC__ conditionals.Joseph Myers2012-01-301-6/+2
|
* Remove pre-ISO C supportUlrich Drepper2012-01-072-40/+40
| | | | No more __const.
* Implement timespec_getUlrich Drepper2012-01-014-15/+76
|
* Fix one typoUlrich Drepper2011-12-211-1/+1
|
* Check values from TZ file headerUlrich Drepper2011-12-171-9/+44
|
* Clean up internal fopen usesUlrich Drepper2011-11-151-3/+3
| | | | No need to ever not use c and e.
* Use O_CLOEXEC in tzfile handlingUlrich Drepper2011-11-141-3/+3
|
* Remove doubled words.Jim Meyering2011-04-221-2/+2
|
* Fix typos in comments.Ulrich Drepper2011-04-011-3/+3
|
* Add support for XPG7 testing.Ulrich Drepper2010-01-096-20/+20
| | | | | The header conformance testing code needed extending for XPG7. This exposed a few bugs in the headers. There are more changes to come.
* Implement Burmese language locale for Myanmar.Keith Stribley2009-10-301-3/+1
|
* Handle empty TZ strings at the end of new-style timzeone files correctly.Andreas Schwab2009-06-231-0/+4
|
* Fix computation of tzspec_len.Ulrich Drepper2009-06-151-1/+1
| | | | | | Without this it should never have worked that we can use the embedded envvar in the timezone data files for dates after the last matching rule.
* Handle leap seconds even if no DST rule exists.Akinori Hattori2009-06-151-4/+3
| | | | This fixes BZ #10211.
* Remove redundant .gitignore files.Andreas Schwab2009-05-161-6/+0
|
* rename each .cvsignore file to .gitignoreJim Meyering2009-05-151-0/+0
|
* * time/tzset.c: Optimize a bit for size. cvs/fedora-glibc-20090310T1925Ulrich Drepper2009-03-101-53/+41
|
* * time/tzset.c (__tzset_parse_tz): Use correct string when parsingUlrich Drepper2009-03-102-12/+39
| | | | | DST name. * time/tst-posixtz.c: Add tests for quoted timezone names.
* * wctype/wctype.h: The *_l functions are in POSIX 2008.Ulrich Drepper2009-02-261-3/+4
| | | | | | | | | | | | | | | | | | | | * wcsmbs/wchar.h: mbsnrtowcs, open_wmemstream, wcpcpy, wcpncpy, wcscasecmp, wcsdup, wcsncasecmp, wcsnlen, wcsnrtombs, wcscasecmp_l, wcsncasecmp_l, wcscoll_l, and wcsxfrm_l. * sysdeps/mach/hurd/bits/posix_opt.h: Reset value of macros from 200112L to 200809L. * sysdeps/unix/sysv/linux/bits/posix_opt.h: Likewise. * posix/getconf.c (vars): Add _SC_THREAD_ROBUST_PRIO_INHERIT and _SC_THREAD_ROBUST_PRIO_PROTECT entries. * bits/confname.h: Add _SC_THREAD_ROBUST_PRIO_INHERIT and _SC_THREAD_ROBUST_PRIO_PROTECT. * posix/unistd.h: fexecve is in POSIX 2008. * time/time.h: strftime_l is in POSIX 2008. * io/sys/stat.h: futimens is in POSIX 2008. * string/strings.h: strcasecmp_l and strncasecmp_l are in POSIX 2008. * string/string.h: stpcpy, stpncpy, strndup, strnlen, strsignal, strcoll_l, strerror_l, and strxfrm_l are in POSIX 2008. * stdlib/stdlib.h: mkdtemp is in POSIX 2008.
* * include/features.h: Define macros for XPG7/POSIX 2008.Ulrich Drepper2009-02-261-2/+2
| | | | | | | | | | | | | | * sysdeps/unix/sysv/linux/bits/stat.h: Protect UTIME_NOW and UTIME_OMIT only with __USE_ATFILE. * sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise. * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise. * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise. * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise. * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise. * io/sys/stat.h: Move mknodat definition into same conditional as mknod. * time/sys/time.h: futimesat is not among the functions accepted into the POSIX standard.
* * time/tzset.c (tzset_internal): Correct parsing of TZ envvar.Ulrich Drepper2009-02-241-9/+39
|
* * time/tzset.c (__tzset_parse_tz): DST offset must also allow hourUlrich Drepper2009-02-051-2/+2
| | | | value of 24.
* (__mktime_internal): Normalize tp->tm_isdst value.Ulrich Drepper2008-07-061-2/+4
|
* Remove use of __P.Ulrich Drepper2008-06-271-10/+1
|
* [BZ #6657]Ulrich Drepper2008-06-271-2/+1
| | | | | | | | 2008-06-27 Ulrich Drepper <drepper@redhat.com> [BZ #6657] * time/strptime_l.c: Don't clear s.era_cnt after successful match of %EY. Patch by Petr Baudis.
* [BZ #6612] cvs/fedora-glibc-20080613T1601Ulrich Drepper2008-06-131-15/+28
| | | | | | | | | | * time/strftime.c: Pass reference to tzset_called around to handle recursive calls. [BZ #6612] * time/strftime.c (__strftime_internal): Call tzset() only when printing timezone-dependent values. Based on a patch by Petr Baudis <pasky@suse.cz>.
* [BZ #5443]Ulrich Drepper2008-04-112-12/+12
| | | | | | | | 2008-04-11 Jakub Jelinek <jakub@redhat.com> [BZ #5443] * time/era.c: Transform __libc_setlocale_lock into rwlock. * time/alt_digit.c: Likewise. * wcsmbs/wcsmbsload.c: Likewise.
* Remove useless "if" before "free".Ulrich Drepper2008-03-192-8/+4
|
* * time/bug-getdate1.c (do_test): Don't use century values whichUlrich Drepper2007-12-122-5/+5
| | | | aren't valid on 32-bit systems.
* [BZ #5424, BZ #5428, BZ #5451]Ulrich Drepper2007-12-103-10/+161
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-12-08 Ulrich Drepper <drepper@redhat.com> [BZ #5424] * stdio-common/vfprintf.c: Do not overflow when adding to done. * stdio-common/Makefile (tests): Add bug22. * stdio-common/bug22.c: New file. [BZ #5451] * time/getdate.c: Fix filling in default values. * time/bug-getdate1.c: New file. * time/Makefile: Add rules to build and run bug-getdate1. * iconvdata/ebcdic-is-friss.c: Use 8bit-gap instead of 8bit-generic. * iconvdata/ebcdic-es.c: Likewise. * iconvdata/ebcdic-es-a.c: Likewise. * iconvdata/ebcdic-uk.c: Likewise. * iconvdata/iso8859-16.c: Likewise. * iconvdata/viscii.c: Likewise. * iconvdata/iso8859-9e.c: Likewise. * iconvdata/Makefile: Adjust appropriately. [BZ #5428] * wcsmbs/wchar.h: Unconditionally undefine __need_mbstate and __need_wint_t. * iconvdata/gconv-modules: Likewise.
* * time/tzfile.c (__tzfile_read): Fix check for version 0 data files.Ulrich Drepper2007-11-061-1/+1
| | | | Patch by Szymon Siwek <sls@poczta.wp.pl>.
* [BZ #5186]Ulrich Drepper2007-10-171-4/+3
| | | | | | * time/tzset.c (__tz_convert): Don't force testing for a change of TZ if not called from localtime. But then also see whether the file changed, in case __use_tzfile is set.
* (__tzfile_read): Read POSIX TZ string if available even when time_t is ↵Ulrich Drepper2007-10-171-6/+57
| | | | 32-bit. (__tzfile_compute): Override POSIX TZ string STD/DST zone names if timezone data read by __tzfile_default. Ensure __tzname[0] is always set after the search.
* Help the compiler recognize unreachable code on 32-bit machines.Ulrich Drepper2007-10-161-3/+3
| | | | | | | 2007-10-16 Ulrich Drepper <drepper@redhat.com> * time/tzfile.c (__tzfile_read): Help the compiler recognize unreachable code on 32-bit machines.
* [BZ #5184]Ulrich Drepper2007-10-161-30/+40
| | | | | | | | | | | | | Include stdbool.h. (my_strftime): New wrapper, old function renamed to... (__strftime_internal): ... new function. Add tzset_called argument, pass it down to recursive calls, don't call tzset () if already true, set to true after call to tzset (). 2007-10-16 Jakub Jelinek <jakub@redhat.com> [BZ #5184] * time/strftime_l.c: Include stdbool.h. (my_strftime): New wrapper, old function renamed to... (__strftime_internal): ... new function. Add tzset_called argument, pass it down to recursive calls, don't call tzset () if already true, set to true after call to tzset ().
* (__tzfile_read): Take extra memory requested by caller into account when ↵Ulrich Drepper2007-10-161-1/+1
| | | | | | | | | copying TZ string. 2007-10-16 Ulrich Drepper <drepper@redhat.com> * time/tzfile.c (__tzfile_read): Take extra memory requested by caller into account when copying TZ string.
* (__tzfile_compute): For use_last case set i to num_transition rather than ↵Ulrich Drepper2007-10-161-2/+3
| | | | num_transitions - 1.
* * include/time.h: Declare __tzset_parse_tz and __tzset_compute.Ulrich Drepper2007-10-142-223/+266
| | | | | | | | | | | | | | | | | | | * time/tzset.c (tzset_internal): Break TZ string parsing out into __tzset_parse_tz and updating of daylight, timezone, tzname into update_vars. (__tz_compute): Renamed from tz_compute. Take additional parameters. (__tz_convert): Updating of tm_isdst, tm_zone, and tm_gmtoff now happens in __tz_compute. * time/tzfile.c (__tzfile_read): Also read TZ string. (find_transition): Fold into __tzfile_compute. (__tzfile_compute): For times beyond the last transition try to use the TZ string. * timezone/tst-timezone.c: Information in daylight and tzname does change for Asia/Tokyo timezone with more concrete information. Remove the test. * include/stdio.h: Add libc_hidden_proto for ftello. * libio/ftello.c: Add libc_hidden_def.
* [BZ #1140]Ulrich Drepper2007-10-141-20/+50
| | | | | | | | | | 2007-10-14 Ulrich Drepper <drepper@redhat.com> [BZ #1140] * time/tzfile.c (__tzfile_compute): Compute tzname[] values based on the specified time and not the last entries in the file. Move code to determine tzname[] to... (find_transition): ...here. Add ugly guess for times before the first transition.
* [BZ #4772]Ulrich Drepper2007-07-281-0/+12
| | | | | * time/strptime_l.c (__strptime_internal): Silently ignore strftime modifiers and field width in recursive calls.
* * include/time.h (enum ptime_locale_status): Remove.Ulrich Drepper2007-07-282-201/+219
| | | | | | | | | | | | | | (__strptime_internal): Remove decided and era_cnt arguments, add statep argument. * time/strptime_l.c (__strptime_internal): Remove decided and era_cnt arguments, add statep argument. Don't recompute any fields in recursive calls, only update caller's tm and state, if recursive call fails, don't change tm nor any state. (get_alt_number): Adjust. (recursive): Adjust caller. (strptime): Likewise. * time/strptime.c (strptime): Likewise.
* [BZ #4773]Ulrich Drepper2007-07-101-29/+68
| | | | | | | 2007-07-10 Ulrich Drepper <drepper@redhat.com> [BZ #4773] * time/strptime_l.c (__strptime_internal): Implement greedy matching of weekday and month names.
* * elf/dl-open.c (dl_open_worker): Declare l in 2 different cvs/fedora-glibc-20070317T2130Ulrich Drepper2007-03-171-2/+3
| | | | | | | | | | | | | | | | | smaller scopes. * elf/dl-dst.h (DL_DST_REQ_STATIC): Add l as macro argument. (DL_DST_REQUIRED): Adjust user. * include/dlfcn.h (struct link_map): New forward decl. * inet/getnameinfo.c: Include stddef.h. (getnameinfo): Use offsetof. * time/tst-mktime2.c (do_test): Don't rely on signed wrap. * stdio-common/vfprintf.c (_itoa): Undef before redefining. * string/strerror_l.c: Include stdlib.h.