Jim Meyering
562eb3d16d
.
1997-01-25 05:56:52 +00:00
Jim Meyering
175fb661e0
(parse_long_options): Reset optind to zero
...
before just returning so that getopt internals get initialized from
the probably-new parameters when/if getopt is called later.
1997-01-25 05:37:15 +00:00
Jim Meyering
50c04a9d3e
(parse_obsolescent_option): Recognize and fail for
...
more malformed obsolescent options. Makes for better diagnostics.
1997-01-24 02:11:52 +00:00
Jim Meyering
8a66d0dd57
.
1997-01-24 01:16:39 +00:00
Jim Meyering
1f678023d5
.
1997-01-23 05:15:14 +00:00
Jim Meyering
b66a30133f
.
1997-01-23 04:12:43 +00:00
Jim Meyering
598a7bda46
.
1997-01-23 04:03:50 +00:00
Jim Meyering
0800b55642
.
1997-01-23 04:01:58 +00:00
Jim Meyering
5ac433d292
.
1997-01-23 04:00:19 +00:00
Jim Meyering
b22469537b
.
1997-01-23 03:55:50 +00:00
Jim Meyering
591844b387
.
1997-01-23 03:47:20 +00:00
Jim Meyering
2611844743
(parse_options): New function.
...
(parse_obsolescent_option): New function.
(main): Use the new functions instead of open-coding them.
This better fixes the bug in handling obsolescent `+Nc' options.
General cleanup.
1997-01-23 03:38:23 +00:00
Jim Meyering
c04fc60484
.
1997-01-23 03:22:16 +00:00
Jim Meyering
ffb626613a
.
1997-01-23 03:02:56 +00:00
Jim Meyering
3452006a53
.
1997-01-23 03:02:17 +00:00
Jim Meyering
161422b9b2
.
1997-01-23 02:45:08 +00:00
Jim Meyering
2091adbbb1
Update from GNU via Uli
1997-01-23 02:45:02 +00:00
Jim Meyering
ccbf5f37f1
.
1997-01-23 02:25:26 +00:00
Jim Meyering
ef2b6836fd
revert last change
1997-01-23 02:23:44 +00:00
Jim Meyering
44386ac6ff
.
1997-01-23 02:21:03 +00:00
Jim Meyering
5c7e1b6bee
.
1997-01-23 02:18:00 +00:00
Jim Meyering
3266134b2a
.
1997-01-23 02:16:55 +00:00
Jim Meyering
63571532a2
(AM_FUNC_MKTIME): Run tests for each of a few values
...
for the TZ environment variable. Andre Novaes Cunha provided the
hairy TZ setting that exercized the Solaris tzset bug.
1997-01-23 02:16:20 +00:00
Jim Meyering
82b01ee905
increment serial number
1997-01-23 00:39:19 +00:00
Jim Meyering
48569d6b98
[strftime]: Add parameters to macro definition. From Drepper.
1997-01-22 23:23:04 +00:00
Jim Meyering
211fe36692
(main): Use TZ=GMT0, not TZ=GMT, since only GMT0 is specified by Posix.1.
1997-01-22 22:45:47 +00:00
Jim Meyering
8dd8bb78b1
.
1997-01-22 22:43:41 +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
db7201835d
.
1997-01-22 22:39:41 +00:00
Jim Meyering
74cb2ee314
(AM_FUNC_MKTIME): Fix bug in mktime test -- don't
...
test now, test a couple of thousand times.
1997-01-22 22:38:37 +00:00
Jim Meyering
6d24eee926
.
1997-01-22 04:56:25 +00:00
Jim Meyering
aeb7c0bc47
.
1997-01-22 04:55:59 +00:00
Jim Meyering
940f23f4a4
.
1997-01-22 04:53:59 +00:00
Jim Meyering
f3f1cae097
(main): Properly handle what the POSIX spec calls
...
the `obsolescent' usage (e.g., tail +2c). It didn't work.
Reported by Karl Heuer.
1997-01-22 04:53:52 +00:00
Jim Meyering
fbe50426e2
.
1997-01-22 04:48:32 +00:00
Jim Meyering
8011a147de
.
1997-01-21 04:21:48 +00:00
Jim Meyering
3cca257a3b
.
1997-01-19 15:24:40 +00:00
Jim Meyering
de96d28c57
.
1997-01-19 13:18:30 +00:00
Jim Meyering
783fb6b2a6
.
1997-01-19 13:11:40 +00:00
Jim Meyering
b969dad022
Indent with GNU indent.
1997-01-18 20:17:39 +00:00
Jim Meyering
c1db691c12
Indent 2 more cpp-directives to reflect nesting.
1997-01-18 20:12:10 +00:00
Jim Meyering
5f9c33edfe
(get_date): Change prototype to reflect const'ness of parameters.
...
Indent cpp-directives to reflect nesting.
1997-01-18 20:11:05 +00:00
Jim Meyering
10d7644859
.
1997-01-18 20:08:05 +00:00
Jim Meyering
6cb5a99aa7
Include getdate.h.
...
(<time.h>, <sys/time.h>): Don't include -- now getdate.h does it.
1997-01-18 20:06:50 +00:00
Jim Meyering
f696bb6737
.
1997-01-18 16:58:30 +00:00
Jim Meyering
8a9acec293
.
1997-01-18 16:57:45 +00:00
Jim Meyering
7eeedf8385
.
1997-01-18 15:46:09 +00:00
Jim Meyering
4c066c3552
.
1997-01-18 15:32:52 +00:00
Jim Meyering
6e5149f0ab
1997-01-06 Paul Eggert <eggert@twinsun.com>
...
* getdate.y: Rewrite to use mktime.
<sys/timeb.h>: Don't include.
(mktime): Declare.
(struct timeb, timezone, DOOMSDAY, SECSPERDAY, DSTMODE, yyDSTmode,
ToSeconds, Convert, DSTcorrect, RelativeDate, RelativeMonth): Remove.
(ToHour): New function (part of the old ToSeconds fn).
(ToYear): New function (part of the old Convert fn).
(TABLE.value, yyDayOrdinal, yyDayNumber, yyTimezone, yyDay, yyHour,
yyMinutes, yyMonth, yySeconds, yyYear, yyRelMonth, yyRelSeconds,
Number): Now int instead of time_t.
(HOUR): Don't cast to time_t.
(tDAY_UNIT, tHOUR_UNIT, tYEAR_UNIT): New %tokens.
(UnitsTable): Use new units that are closer to the keywords.
(yyRelDay, yyRelHour, yyRelMinutes, yyRelYear): New variables.
(rel, relunit, get_date): Add support for them.
(time): Fix timezone calculations for negative half-hour offsets
when integer division truncates towards minus infinity.
(zone): Incorporiate DST calculation directly.
(get_date): 2nd arg is now time_t *, not struct timeb *.
Use mktime to do most of the work, instead of computing it ourselves.
Guard against falsely reporting errors near the time_t boundaries
when parsing times in other time zones.
1997-01-18 15:32:16 +00:00
Jim Meyering
af12dd6260
Add comment re HAVE_PSTAT_GETDYNAMIC.
1997-01-18 15:07:16 +00:00