summary refs log tree commit diff
path: root/time
Commit message (Collapse)AuthorAgeFilesLines
* mktime: remove incorrect attempt at unusual arithmeticsPaul Eggert2012-05-231-9/+6
| | | | | | | | * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove. The code didn't really work on such machines anyway. (TYPE_MINIMUM): Assume two's complement. (twos_complement_arithmetic): Verify that long_int and time_t are two's complement (or unsigned, in the latter case).
* mktime: check signed shifts on long_int and time_t, tooPaul Eggert2012-05-231-3/+5
| | | | | | * time/mktime.c (SHR): Check that shifts work as desired on the types long_int and time_t too, as SHR is used on such types.
* mktime: do not assume 'long' is wide enoughPaul Eggert2012-05-231-12/+18
| | | | | | | | | * time/mktime.c (verify): Move decl up. (long_int): New type. (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it, to remove assumption in the code that 'long' is wide enough to store year values. This assumption is not true on x32 and on some non-glibc platforms.
* mktime: merge wrapv change from gnulibPaul Eggert2012-05-231-25/+90
| | | | | | | | * time/mktime.c (WRAPV): New macro. (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions. (guess_time_tm, __mktime_internal): Do not assume that signed integer overflow wraps around; modern compilers generate code where this assumption is no longer valid.
* Update copyright years for time/mktime.cH.J. Lu2012-05-221-1/+1
|
* mktime: merge comment-quoting-style change from gnulibPaul Eggert2012-05-221-3/+3
|
* time/mktime.c (compile-command): Add "-I."Paul Eggert2012-05-221-1/+1
|
* mktime: merge mktime-internal.h change from gnulibPaul Eggert2012-05-221-0/+1
|
* mktime: merge time_r change from gnulibPaul Eggert2012-05-221-2/+1
|
* mktime: merge DEBUG change from gnulibPaul Eggert2012-05-221-0/+1
|
* mktime: merge <sys/types.h> change from gnulibPaul Eggert2012-05-221-1/+0
|
* mktime: merge HAVE_CONFIG_H change from gnulibPaul Eggert2012-05-221-1/+1
|
* Fold copyright yearsH.J. Lu2012-05-161-1/+1
|
* BZ#10375: Configure magic to use -U_FORTIFY_SOURCE if needed.Roland McGrath2012-05-161-5/+1
|
* Remove __snseconds_tH.J. Lu2012-05-151-1/+1
|
* 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
|