aboutsummaryrefslogtreecommitdiff
path: root/time
AgeCommit message (Collapse)Author
2013-06-08Use (void) in no-arguments function definitions.Joseph Myers
2013-06-07Avoid use of "register" as optimization hint.Joseph Myers
2013-06-05Properly handle %W in strptimeAndreas Schwab
2013-05-16Add #include <stdint.h> for uint[32|64]_t usage (except installed headers).Ryan S. Arnold
2013-04-23Consistently use ISSPACE to check for whitespaceSiddhesh Poyarekar
Resolves #14888. This only really manifests itself when there are no spaces between format specifiers, which is not allowed by POSIX, but is allowed by the glibc implementation.
2013-04-10Accept leading and trailing spaces in getdate input stringSiddhesh Poyarekar
Fixes #15346. The POSIX description of getdate allows for extra spaces in the getdate input string. __getdate_r uses strptime internally, which works fine with extra spaces between format strings (and hence within an input string) but not with leading and trailing spaces. So we trim off the leading and trailing spaces before we pass it on to strptime.
2013-02-17Sort Versions filesAndreas Jaeger
2013-02-07Remove lots of inline keywords.Roland McGrath
2013-01-26 * time/tzfile.c: Include stdint.h for SIZE_MAX.Maxim Kuvyrkov
2013-01-02Update copyright notices with scripts/update-copyrights.Joseph Myers
2013-01-01Add script to update copyright notices and reformat some to facilitate its use.Joseph Myers
2012-12-03 * time/sys/time.h (settimeofday): Do not mark TV argumentJeff Law
as __nonnull.
2012-11-04[BZ #157] Remove include/stub-tag.h for good.Thomas Schwinge
2012-08-25Fix some typos in comments.Marek Polacek
2012-05-24Switch gettimeofday from INTUSE to libc_hidden_proto.Roland McGrath
2012-05-23mktime: avoid signed integer overflowPaul Eggert
* time/mktime.c (__mktime_internal): Do not mishandle the case where diff == INT_MIN.
2012-05-23mktime: simplify computation of averagePaul Eggert
* time/mktime.c (ranged_convert): Use new time_t_avg function instead of rolling our own (probably-slower) code.
2012-05-23mktime: do not assume signed right shift propagates sign bitPaul Eggert
* time/mktime.c (isdst_differ): New static function. (__mktime_internal): No need to normalize tm_isdst now. (__mktime_internal, not_equal_tm): Use isdst_differ to compare tm_isdst values.
2012-05-23mktime: merge another wrapv change from gnulibPaul Eggert
* time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics from some compilers.
2012-05-23mktime: remove incorrect attempt at unusual arithmeticsPaul Eggert
* 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).
2012-05-23mktime: check signed shifts on long_int and time_t, tooPaul Eggert
* 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.
2012-05-23mktime: do not assume 'long' is wide enoughPaul Eggert
* 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.
2012-05-23mktime: merge wrapv change from gnulibPaul Eggert
* 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.
2012-05-22Update copyright years for time/mktime.cH.J. Lu
2012-05-22mktime: merge comment-quoting-style change from gnulibPaul Eggert
2012-05-22time/mktime.c (compile-command): Add "-I."Paul Eggert
2012-05-22mktime: merge mktime-internal.h change from gnulibPaul Eggert
2012-05-22mktime: merge time_r change from gnulibPaul Eggert
2012-05-22mktime: merge DEBUG change from gnulibPaul Eggert
2012-05-22mktime: merge <sys/types.h> change from gnulibPaul Eggert
2012-05-22mktime: merge HAVE_CONFIG_H change from gnulibPaul Eggert
2012-05-16Fold copyright yearsH.J. Lu
2012-05-16BZ#10375: Configure magic to use -U_FORTIFY_SOURCE if needed.Roland McGrath
2012-05-15Remove __snseconds_tH.J. Lu
2012-05-09Fix daylight time change for the USIan Wienand
[BZ #14080] * time/tzset.c (__tzset_parse_tz): Update default rules for daylight time changes in the Energy Policy Act of 2005.
2012-04-11Add __snseconds_t and __SNSECONDS_T_TYPEH.J. Lu
2012-04-02Testsuite #include fixes.Thomas Schwinge
2012-03-16Use time_t on ays, rem, y and yg in __offtimeH.J. Lu
2012-03-07Remove distribute variable from MakefilesUlrich Drepper
2012-02-25Fix ISO C11 definitions in time.hUlrich Drepper
2012-02-09Replace FSF snail mail address with URLs.Paul Eggert
2012-01-30Remove miscellaneous __STDC__ conditionals.Joseph Myers
2012-01-07Remove pre-ISO C supportUlrich Drepper
No more __const.
2012-01-01Implement timespec_getUlrich Drepper
2011-12-21Fix one typoUlrich Drepper
2011-12-17Check values from TZ file headerUlrich Drepper
2011-11-15Clean up internal fopen usesUlrich Drepper
No need to ever not use c and e.
2011-11-14Use O_CLOEXEC in tzfile handlingUlrich Drepper
2011-04-22Remove doubled words.Jim Meyering
2011-04-01Fix typos in comments.Ulrich Drepper