Jim Meyering
26061de96f
(my_strftime_localtime_r): Include this function
...
definition in the `#if ! HAVE_TM_GMTOFF' block.
2001-12-09 21:02:43 +00:00
Jim Meyering
8b7078eada
(my_strftime):
...
Define to nstrftime if emacs, but only if my_strftime is not defined.
(extra_args, extra_args_spec, extra_args_spec_iso): Rename from
ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
Add one more extra argument: a nanoseconds value.
All uses changed.
(ns): New macro.
(my_strftime function): Add %N format.
(emacs_strftimeu): Renamed from emacs_strftime,
with extra ut argument.
2001-05-20 20:41:20 +00:00
Jim Meyering
787a2cf49f
update comments from libc
2001-02-17 16:50:27 +00:00
Jim Meyering
89c7458b53
Sync with glibc time/strftime.c 1.81.
2001-01-04 10:19:43 +00:00
Jim Meyering
d5b2ff2b99
(my_strftime): Do not invoke mbrlen with a
...
size of (size_t) -1; it's not portable.
2000-11-23 07:24:51 +00:00
Jim Meyering
49ac3c60d0
Update from libc.
2000-10-26 08:08:06 +00:00
Jim Meyering
048aa98ba8
Merge in changes from GNU libc.
2000-08-30 07:58:01 +00:00
Jim Meyering
d2caf6a98c
(my_strftime) [strftime]: Declare strftime here, since the definition
...
of it to rpl_strftime also defined-away the system's declaration.
2000-04-17 11:39:26 +00:00
Jim Meyering
dda6851673
(my_strftime): Make sure we call the system
...
strftime, not ourselves, when invoking the underlying strftime.
2000-04-03 07:09:38 +00:00
Jim Meyering
f8c6ea241d
Sync with the GNU C Library.
2000-01-06 21:31:48 +00:00
Jim Meyering
05fcf7df27
(my_strftime): Some old compilers object to
...
'\a', so don't bother optimizing for it.
2000-01-02 07:09:54 +00:00
Jim Meyering
44b1bde148
Remove useless parens in #if directive
1999-09-19 08:09:50 +00:00
Jim Meyering
2af4373a90
Update from master source in libc, removing %f.
1999-04-06 14:22:06 +00:00
Jim Meyering
7d60769bea
ansideclify
1998-12-07 03:12:10 +00:00
Jim Meyering
4fb556ee0e
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.
* strftime.c (__EXTENSIONS__): Remove.
(my_strftime_gmtime_r): Renamed from gmtime_r; all uses changed.
(my_strftime_localtime_r): Renamed from localtime_r; all uses changed.
Base them on localtime/gmtime if not _LIBC.
1998-10-18 14:09:48 +00:00
Jim Meyering
a71cb7cad1
Declare localtime_r if necessary.
1998-10-18 01:11:35 +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
fbb1fb519f
(my_strftime): Update from FSF.
1998-09-27 12:45:33 +00:00
Jim Meyering
a155c3d684
tweak from FSF
1998-04-28 12:19:53 +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
2e21152e49
Update from FSF.
1997-11-13 13:22:54 +00:00
Jim Meyering
394f851071
update from FSF
1997-10-22 14:06:16 +00:00
Jim Meyering
6edc738156
correct/normalize indentation in cpp directives
1997-05-28 12:19:28 +00:00
Jim Meyering
4f690a51e3
update from FSF
1997-05-28 12:01:33 +00:00
Jim Meyering
ef2b6836fd
revert last change
1997-01-23 02:23:44 +00:00
Jim Meyering
48569d6b98
[strftime]: Add parameters to macro definition. From Drepper.
1997-01-22 23:23:04 +00:00
Jim Meyering
d64cc3c1ef
(_strftime_copytm): New function, to work around Solaris 2.5 tzset bug.
...
From Paul Eggert.
1997-01-22 22:43:15 +00:00
Jim Meyering
fec6a430da
update from GNU libc
1996-12-21 13:51:26 +00:00
Jim Meyering
4a2b289e7c
Update from GNU libc.
1996-12-21 01:40:43 +00:00
Jim Meyering
ae5ee331f1
run cpp-indent
1996-12-18 16:56:46 +00:00
Jim Meyering
954c7bc4cc
another new version ...
1996-12-18 16:54:48 +00:00
Jim Meyering
3c7e9fec08
Update from GNU libc.
1996-12-18 00:21:38 +00:00
Jim Meyering
17fe725ebb
add a space
1996-12-10 03:17:01 +00:00
Jim Meyering
c02f8ed500
revert last change.
1996-12-10 03:16:36 +00:00
Jim Meyering
e155f4bf01
[HAVE_TZNAME || defined __LIBC]: Declare tzname.
1996-12-10 02:46:42 +00:00
Jim Meyering
4fb3a6f765
[HAVE_TZNAME]: Declare tzname.
...
Patch from Karl Heuer.
1996-12-09 13:02:21 +00:00
Jim Meyering
b1cc662215
(strftime): Remove " %Z" part of format for %c. Suggestion from Paul Eggert.
1996-12-07 18:52:54 +00:00
Jim Meyering
0aa0b007b0
Update from GNU libc.
1996-12-01 04:08:17 +00:00
Jim Meyering
25a9b70b2e
Fix copyright.
1996-11-05 04:23:22 +00:00
Jim Meyering
e5e9f3ee5d
(strftime): Accommodate the broken C compiler
...
that comes with SunOS -- don't initialize aggregates in decls of
automatic variables. Reported by Kaveh Ghazi.
1996-10-10 02:56:10 +00:00
Jim Meyering
4b29186f72
(strftime): New version, from GNU libc.
1996-09-17 04:13:22 +00:00
Jim Meyering
f709048a82
revert last change
1996-09-06 03:18:46 +00:00
Jim Meyering
d3900b79bc
New version from glibc.
1996-09-06 03:12:04 +00:00
Jim Meyering
32f7fc5503
Update from GNU libc -- this adds back %z and %s
...
formats and reverts to old behavior where unrecognized format like
%E is treated as eqivalent to `E'.
1996-08-17 05:15:44 +00:00
Jim Meyering
9ba877cf28
Update from GNU libc master.
1996-07-30 05:33:30 +00:00
Jim Meyering
ed48dc8cae
Use `;' instead of (void)0.
1996-07-17 05:29:47 +00:00
Jim Meyering
e0ac832842
Use `(void)0' as second arg to add macro.
...
Omitting that second arg made some HPUX C compiler report an error.
From Kaveh R. Ghazi.
1996-07-16 05:08:29 +00:00
Jim Meyering
ff1fc50954
Update from FSF.
1996-07-16 04:58:04 +00:00
Jim Meyering
19bff1c02d
indent cpp-directives
1996-07-15 03:56:06 +00:00
Jim Meyering
32e36bd888
Update from GNU libc.
1996-05-07 03:41:17 +00:00