Paul Eggert
2d0c5eefd0
Sync from gnulib.
2005-09-22 06:05:39 +00:00
Paul Eggert
8834b57877
Include <string.h> even if !DEBUG. (From glibc.)
...
(ranged_convert): Don't save conversion in a temporary struct.
This causes a warning with GCC 4.0.0, and anyway in the typical
case it's not worth the extra 100 bytes or so of code.
(ranged_convert, __mktime_internal): When calling a function via a
pointer P, use P () rather than (*P) (), as we now assume C89 or better.
2005-06-22 19:07:41 +00:00
Jim Meyering
116e6fb244
Update FSF postal mail address.
2005-05-14 07:58:06 +00:00
Paul Eggert
5bb064a261
Propagate intprops.h comment fixes to mktime.c and strftime.c.
2005-03-26 18:08:24 +00:00
Paul Eggert
53d430be4e
Sync mktime.c and strtol.c macros from intprops.h.
2005-03-15 00:40:17 +00:00
Paul Eggert
5fd82cbf0d
(TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
...
for consistency with intprops.h.
(time_t_is_integer, twos_complement_arithmetic): Use them.
2005-03-09 19:23:05 +00:00
Paul Eggert
f125837030
Import from gnulib.
2004-12-03 07:10:19 +00:00
Paul Eggert
d2b4386d29
Sync from gnulib.
2004-11-11 05:02:14 +00:00
Paul Eggert
a4a87ad5bb
Sync from gnulib.
2004-10-29 23:43:34 +00:00
Paul Eggert
c707d3acbe
(leapyear): Arg is long int, not int. Change imported from gnulib.
2004-10-24 23:24:47 +00:00
Jim Meyering
096e4b3a92
tweak comment: from Paul Eggert
2004-01-21 22:10:23 +00:00
Jim Meyering
7589bf42ac
(__mktime_internal) [!_LIBC]: Define to mktime_internal
...
so as not to conflict with a different-sized __mktime_internal
function in GNU libc.
2004-01-21 20:42:20 +00:00
Jim Meyering
a05e8213a3
(my_mktime_localtime_r): Remove; all uses changed to __localtime_r.
...
(__localtime_r) [!defined _LIBC]: New macro. Include <time_r.h>.
(__mktime_internal) [!defined _LIBC]: Now extern, not static.
2003-09-13 17:59:53 +00:00
Jim Meyering
820c8fc670
(STDC_HEADERS): Remove.
...
Include <stdlib.h>, <string.h> unconditionally.
2003-09-10 09:05:16 +00:00
Jim Meyering
3bfb395872
Update from gnulib.
2003-07-09 17:54:54 +00:00
Jim Meyering
75edcde81a
Assume freestanding C89 or better.
...
(HAVE_LIMITS_H): Remove. Assume it's 1.
(__P): Remove; not used.
(CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
(mktime, not_equal_tm, print_tm, check_result,
main): Use prototypes. Use const * where appropriate.
(main): Fix typo in testing code that uncovered by above changes.
(Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
2003-06-05 21:55:47 +00:00
Jim Meyering
bfa07fbaaa
update from gnulib again
2003-05-30 16:05:56 +00:00
Jim Meyering
fadd323677
Update from gnulib.
2003-05-30 16:01:04 +00:00
Jim Meyering
015aa7dfc4
Merge from gnulib/libc, for a slightly uglier solution.
2002-11-28 09:48:40 +00:00
Jim Meyering
2dc7779bce
(STATIC): Remvoe definitions.
2002-11-28 09:37:58 +00:00
Jim Meyering
66943316b4
Avoid a link-time failure on some Linux systems.
...
(STATIC): Define to be empty (_LIBC) or `static' (otherwise).
(__mon_yday): Declare with the STATIC attribute.
(__mktime_internal): Likewise.
Based on a report from Greg Schafer.
2002-11-19 08:05:29 +00:00
Jim Meyering
174a1f057c
Update from GNU libc.
2002-08-31 16:46:40 +00:00
Jim Meyering
51b6b653a2
back out Copyright date changes for files with no changes year
2000-08-07 15:48:18 +00:00
Jim Meyering
fde850f7ad
update copyright date
2000-07-09 07:22:43 +00:00
Jim Meyering
37f353eb26
tweak comment
1999-02-17 14:58:41 +00:00
Jim Meyering
a4758241e7
new version from Uli
1999-02-16 21:35:48 +00:00
Jim Meyering
cdc04ccc0e
(__mktime_internal): Adopt the traditional (and
...
problematic) notion of what to do when tm_isdst doesn't match.
From Paul Eggert.
1999-01-19 04:47:24 +00:00
Jim Meyering
7d60769bea
ansideclify
1998-12-07 03:12:10 +00:00
Jim Meyering
c850393032
Don't invoke localtime_r or gmtime_r unless it's the GNU C
...
library's localtime_r and gmtime_r; there are too many buggy
implementations of localtime_r and gmtime_r out there, and
it's not worth keeping track of all the different bugs.
* mktime.c (__EXTENSIONS__, HAVE_LOCALTIME_R): Remove.
(my_mktime_localtime_r): Renamed from localtime_r; all uses changed.
Base it on localtime unless _LIBC.
1998-10-18 14:08:35 +00:00
Jim Meyering
e2d1b297e7
Declare localtime_r if necessary.
1998-10-18 01:10:21 +00:00
Jim Meyering
2e29b32116
Some systems require <unistd.h> to be included before <time.h> for
...
localtime_r to be declared properly.
1998-10-17 12:39:30 +00:00
Jim Meyering
761ed79f4d
(_REENTRANT): Define again -- linux-2.0.33 needs it.
1998-10-12 02:00:59 +00:00
Jim Meyering
061a10d1ff
(__mktime_internal): When the requested time falls
...
in a spring-forward gap of size DT, return a time that is DT
away from the requested time, preferring a time whose tm_isdst
differs from the requested value. Bump the max number of
probes from 4 to 6 to account for the extra probes needed to
discover a spring-forward gap in the worst case.
1998-10-11 23:03:41 +00:00
Jim Meyering
37c289ea31
(my_mktime_localtime_r): Renamed from localtime_r.
...
Define also if HAVE_LOCALTIME_R && defined (localtime_r), with
a body that merely expands localtime_r; this works around a
bug in Digital Unix 4.0A and 4.0D.
1998-10-08 12:19:48 +00:00
Jim Meyering
69a3ee0b49
.
1998-04-12 15:16:37 +00:00
Jim Meyering
8ed3137f52
(TYPE_MAXIMUM): Update from system.h.
1998-04-12 09:39:30 +00:00
Jim Meyering
0f5ca22215
add comment
1998-02-24 23:19:13 +00:00
Jim Meyering
2a1a1843b7
(__mktime_internal): Work around bug in Irix4.0.5's
...
C compiler. From Kaveh Ghazi.
(TYPE_MINIMUM): Define.
(TYPE_MAXIMUM): Define.
(TIME_T_MIN): Use TYPE_MINIMUM.
(TIME_T_MAX): Use TYPE_MAXIMUM.
1998-01-23 22:02:54 +00:00
Jim Meyering
9ed80c0140
(_REENTRANT): #define, as some hosts need this to declare localtime_r properly.
...
From Paul Eggert.
1997-11-18 03:32:00 +00:00
Jim Meyering
690342eae7
Update from FSF.
1997-11-13 13:23:16 +00:00
Jim Meyering
ddc44210a4
update from FSF .../copies
1997-09-17 12:46:45 +00:00
Jim Meyering
effc683cfc
(TIME_T_MIN): Work around a bug in Cray C 5.0.3.0.
1997-03-14 03:28:09 +00:00
Jim Meyering
4b0e6d0a33
update from FSF
1997-02-21 02:19:48 +00:00
Jim Meyering
45bf8ec9d0
Fix copyright.
1996-11-05 04:22:40 +00:00
Jim Meyering
e5e6e34ead
update FSF address in copyright
1996-07-15 03:38:07 +00:00
Jim Meyering
5b804afa6a
New version from glibc.
1995-11-03 19:56:08 +00:00
Jim Meyering
0a0800fe25
merge with 1.10n2
1994-09-27 22:02:00 +00:00
Jim Meyering
8a5d6318e7
merge with 1.10g
1994-08-19 22:42:22 +00:00
Jim Meyering
2e3cc9b7b9
merge with 1.10f
1994-07-26 04:06:18 +00:00
Jim Meyering
9935449e9d
merge with 1.9.2i
1994-02-12 17:23:44 +00:00