Commit Graph
14506 Commits
Author SHA1 Message Date
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
Jim Meyering f8e40348be reindent 1997-01-18 13:44:49 +00:00
Jim Meyering be8f2b0de2 . 1997-01-17 03:01:15 +00:00
Jim Meyering 279f065a06 (AM_FUNC_GETLOADAVG): Check for pstat_getdynamic. 1997-01-17 03:00:45 +00:00
Jim Meyering c7837e95d2 Fix up indentation a little. 1997-01-15 04:59:07 +00:00
Jim Meyering 9130f4b9d2 Indent cpp-directives to reflect nesting. 1997-01-15 04:55:39 +00:00
Jim Meyering 5aa14aeef0 [!STDC_HEADERS]: Remove unnecessary declaration of free. 1997-01-15 04:42:05 +00:00
Jim Meyering 61976fe88d [!STDC_HEADERS]: Remove unnecessary declaration of free. 1997-01-15 04:41:12 +00:00
Jim Meyering 0868a7d0bd Add struct dir_list and is_ancestor. 1997-01-15 04:35:01 +00:00
Jim Meyering 48be557ad6 . 1997-01-13 04:23:05 +00:00
Jim Meyering 371f45401c Regenerated to reflect renamed tests. 1997-01-13 04:21:30 +00:00
Jim Meyering 9b9213f122 Rename tests so that the associated files
have names that are distinct even on filesystems on which file
names are case insensitive.
1997-01-13 04:20:54 +00:00
Jim Meyering 4c3d7d6a8b . 1997-01-13 04:17:16 +00:00
Jim Meyering 720d1c1c5e Regenerated to reflect renamed tests. 1997-01-13 04:16:57 +00:00