Joseph Myers
60d2f8f3c7
Use (void) in no-arguments function definitions.
2013-06-08 00:22:23 +00:00
Joseph Myers
2e09a79ada
Avoid use of "register" as optimization hint.
2013-06-07 22:24:35 +00:00
Andreas Schwab
840e2943e8
Properly handle %W in strptime
2013-06-05 10:33:02 +02:00
Ryan S. Arnold
e054f49430
Add #include <stdint.h> for uint[32|64]_t usage (except installed headers).
2013-05-16 11:32:54 -05:00
Siddhesh Poyarekar
ff491d14a2
Consistently use ISSPACE to check for whitespace
...
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-23 15:32:42 +05:30
Siddhesh Poyarekar
abe7f530bf
Accept leading and trailing spaces in getdate input string
...
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-04-10 11:31:46 +05:30
Andreas Jaeger
f238fd190b
Sort Versions files
2013-02-17 16:34:04 +01:00
Roland McGrath
f1d70dad53
Remove lots of inline keywords.
2013-02-07 14:44:18 -08:00
Maxim Kuvyrkov
3b60b421b5
* time/tzfile.c: Include stdint.h for SIZE_MAX.
2013-01-26 14:56:21 +13:00
Joseph Myers
568035b787
Update copyright notices with scripts/update-copyrights.
2013-01-02 19:05:09 +00:00
Joseph Myers
f4cf5f2d8b
Add script to update copyright notices and reformat some to facilitate its use.
2013-01-01 16:29:10 +00:00
Jeff Law
4b7634a5e0
* time/sys/time.h (settimeofday): Do not mark TV argument
...
as __nonnull.
2012-12-03 12:15:17 -07:00
Thomas Schwinge
b830319d49
[BZ #157 ] Remove include/stub-tag.h for good.
2012-11-04 19:59:40 +01:00
Marek Polacek
1f529f7d84
Fix some typos in comments.
2012-08-25 18:32:23 +02:00
Roland McGrath
d6c33fda03
Switch gettimeofday from INTUSE to libc_hidden_proto.
2012-05-24 13:12:34 -07:00
Paul Eggert
f8591f8049
mktime: avoid signed integer overflow
...
* time/mktime.c (__mktime_internal): Do not mishandle the case
where diff == INT_MIN.
2012-05-23 14:36:25 -07:00
Paul Eggert
94c7d826c9
mktime: simplify computation of average
...
* time/mktime.c (ranged_convert): Use new time_t_avg function
instead of rolling our own (probably-slower) code.
2012-05-23 14:36:25 -07:00
Paul Eggert
ce73d68397
mktime: do not assume signed right shift propagates sign bit
...
* 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-23 14:36:24 -07:00
Paul Eggert
72a22e596c
mktime: merge another wrapv change from gnulib
...
* time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
from some compilers.
2012-05-23 14:36:24 -07:00
Paul Eggert
6860543348
mktime: remove incorrect attempt at unusual arithmetics
...
* 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-23 14:36:24 -07:00
Paul Eggert
03cf7fe31b
mktime: check signed shifts on long_int and time_t, too
...
* 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-23 14:36:24 -07:00
Paul Eggert
f04dfbc244
mktime: do not assume 'long' is wide enough
...
* 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-23 14:36:24 -07:00
Paul Eggert
62bdf9a683
mktime: merge wrapv change from gnulib
...
* 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-23 14:36:24 -07:00
H.J. Lu
98a61bcbca
Update copyright years for time/mktime.c
2012-05-22 06:31:00 -07:00
Paul Eggert
6226efbda1
mktime: merge comment-quoting-style change from gnulib
2012-05-22 06:14:01 -07:00
Paul Eggert
b99e4f783c
time/mktime.c (compile-command): Add "-I."
2012-05-22 06:13:01 -07:00
Paul Eggert
643e01e6cb
mktime: merge mktime-internal.h change from gnulib
2012-05-22 06:11:29 -07:00
Paul Eggert
2554247d83
mktime: merge time_r change from gnulib
2012-05-22 06:10:34 -07:00
Paul Eggert
826dd0abdf
mktime: merge DEBUG change from gnulib
2012-05-22 06:09:01 -07:00
Paul Eggert
bd83aabe5a
mktime: merge <sys/types.h> change from gnulib
2012-05-22 06:07:58 -07:00
Paul Eggert
95770f140b
mktime: merge HAVE_CONFIG_H change from gnulib
2012-05-22 06:05:37 -07:00
H.J. Lu
48970aba30
Fold copyright years
2012-05-16 20:02:44 -07:00
Roland McGrath
61653dfb81
BZ#10375: Configure magic to use -U_FORTIFY_SOURCE if needed.
2012-05-16 16:20:59 -07:00
H.J. Lu
a46f2169d3
Remove __snseconds_t
2012-05-15 18:05:26 -07:00
Ian Wienand
b9f1922d7e
Fix daylight time change for the US
...
[BZ #14080 ]
* time/tzset.c (__tzset_parse_tz): Update default rules for
daylight time changes in the Energy Policy Act of 2005.
2012-05-09 06:15:56 +02:00
H.J. Lu
4be2b57003
Add __snseconds_t and __SNSECONDS_T_TYPE
2012-04-11 11:02:59 -07:00
Thomas Schwinge
302cadd343
Testsuite #include fixes.
2012-04-02 22:31:32 +02:00
H.J. Lu
f196c7f7af
Use time_t on ays, rem, y and yg in __offtime
2012-03-16 09:10:12 -07:00
Ulrich Drepper
a4300c7a4d
Remove distribute variable from Makefiles
2012-03-07 05:17:13 -05:00
Ulrich Drepper
7a270350a9
Fix ISO C11 definitions in time.h
2012-02-25 21:28:27 -05:00
Paul Eggert
59ba27a63a
Replace FSF snail mail address with URLs.
2012-02-09 23:18:22 +00:00
Joseph Myers
c8a89e7dd5
Remove miscellaneous __STDC__ conditionals.
2012-01-30 21:20:32 +00:00
Ulrich Drepper
a784e50247
Remove pre-ISO C support
...
No more __const.
2012-01-07 23:57:22 -05:00
Ulrich Drepper
74033a2507
Implement timespec_get
2012-01-01 07:17:21 -05:00
Ulrich Drepper
8fa26d571d
Fix one typo
2011-12-21 18:57:18 -05:00
Ulrich Drepper
97ac2654b2
Check values from TZ file header
2011-12-17 20:18:42 -05:00
Ulrich Drepper
312be3f9f5
Clean up internal fopen uses
...
No need to ever not use c and e.
2011-11-15 04:24:42 -05:00
Ulrich Drepper
82af0fa8de
Use O_CLOEXEC in tzfile handling
2011-11-14 18:46:46 -05:00
Jim Meyering
ded5b9b7c7
Remove doubled words.
2011-04-22 21:34:32 -04:00
Ulrich Drepper
4c1423edfb
Fix typos in comments.
2011-04-01 10:39:30 -04:00