platform/upstream/coreutils.git
27 years agoRevert last change. With obstack, dcl of free is *required*.
Jim Meyering [Sun, 26 Jan 1997 05:55:02 +0000 (05:55 +0000)]
Revert last change.  With obstack, dcl of free is *required*.

27 years ago. TEXTUTILS-1_21a
Jim Meyering [Sun, 26 Jan 1997 05:13:26 +0000 (05:13 +0000)]
.

27 years ago.
Jim Meyering [Sun, 26 Jan 1997 05:08:56 +0000 (05:08 +0000)]
.

27 years ago(count_entry): Fix blatant bug (typo?) that made
Jim Meyering [Sun, 26 Jan 1997 05:05:06 +0000 (05:05 +0000)]
(count_entry): Fix blatant bug (typo?) that made
--megabytes report numbers in units of kilobytes.
Reported by Galen Hazelwood.

27 years ago.
Jim Meyering [Sun, 26 Jan 1997 05:04:35 +0000 (05:04 +0000)]
.

27 years ago.
Jim Meyering [Sun, 26 Jan 1997 04:52:42 +0000 (04:52 +0000)]
.

27 years ago(print_factors): Reflect changes to xstrtoul interface.
Jim Meyering [Sun, 26 Jan 1997 04:52:32 +0000 (04:52 +0000)]
(print_factors): Reflect changes to xstrtoul interface.

27 years ago.
Jim Meyering [Sun, 26 Jan 1997 04:48:39 +0000 (04:48 +0000)]
.

27 years ago(parse_options): Remove unnecessary goto and label.
Jim Meyering [Sun, 26 Jan 1997 04:48:29 +0000 (04:48 +0000)]
(parse_options): Remove unnecessary goto and label.

27 years ago.
Jim Meyering [Sun, 26 Jan 1997 04:44:03 +0000 (04:44 +0000)]
.

27 years ago(parse_obsolescent_option): Comment.
Jim Meyering [Sun, 26 Jan 1997 04:43:42 +0000 (04:43 +0000)]
(parse_obsolescent_option): Comment.

27 years ago.
Jim Meyering [Sun, 26 Jan 1997 04:30:49 +0000 (04:30 +0000)]
.

27 years ago(is_ancestor): Add it.
Jim Meyering [Sun, 26 Jan 1997 04:30:39 +0000 (04:30 +0000)]
(is_ancestor): Add it.

27 years ago.
Jim Meyering [Sun, 26 Jan 1997 04:14:26 +0000 (04:14 +0000)]
.

27 years ago.
Jim Meyering [Sun, 26 Jan 1997 04:13:46 +0000 (04:13 +0000)]
.

27 years ago.
Jim Meyering [Sun, 26 Jan 1997 04:12:46 +0000 (04:12 +0000)]
.

27 years ago.
Jim Meyering [Sun, 26 Jan 1997 04:12:20 +0000 (04:12 +0000)]
.

27 years agoInterpret `input arg is a hash
Jim Meyering [Sun, 26 Jan 1997 03:12:41 +0000 (03:12 +0000)]
Interpret `input arg is a hash
reference' as meaning that the tested program will read no input.
Most of the tests for the date program use this feature.
Also for date, the generated script now reflects specification
(in Test.pm) of default and per-test environment settings.

27 years ago.
Jim Meyering [Sun, 26 Jan 1997 03:01:01 +0000 (03:01 +0000)]
.

27 years ago.
Jim Meyering [Sun, 26 Jan 1997 02:59:50 +0000 (02:59 +0000)]
.

27 years agoremove trailing blanks
Jim Meyering [Sat, 25 Jan 1997 13:50:24 +0000 (13:50 +0000)]
remove trailing blanks

27 years agoremove now-spurious junk
Jim Meyering [Sat, 25 Jan 1997 13:45:55 +0000 (13:45 +0000)]
remove now-spurious junk

27 years ago.
Jim Meyering [Sat, 25 Jan 1997 13:38:54 +0000 (13:38 +0000)]
.

27 years ago(noinst_HEADERS): Add getdate.h.
Jim Meyering [Sat, 25 Jan 1997 13:38:49 +0000 (13:38 +0000)]
(noinst_HEADERS): Add getdate.h.

27 years ago.
Jim Meyering [Sat, 25 Jan 1997 06:59:56 +0000 (06:59 +0000)]
.

27 years ago.
Jim Meyering [Sat, 25 Jan 1997 06:54:19 +0000 (06:54 +0000)]
.

27 years ago.
Jim Meyering [Sat, 25 Jan 1997 06:52:50 +0000 (06:52 +0000)]
.

27 years ago.
Jim Meyering [Sat, 25 Jan 1997 06:46:53 +0000 (06:46 +0000)]
.

27 years ago.
Jim Meyering [Sat, 25 Jan 1997 06:46:33 +0000 (06:46 +0000)]
.

27 years ago.
Jim Meyering [Sat, 25 Jan 1997 06:45:38 +0000 (06:45 +0000)]
.

27 years agoMove the code from configure.in into
Jim Meyering [Sat, 25 Jan 1997 06:45:32 +0000 (06:45 +0000)]
Move the code from configure.in into
this macro that resorts to looking for getgroups in -lbsd.
Set new shell variable, GETGROUPS_LIB (that callers should check),
if it is found there.

27 years ago.
Jim Meyering [Sat, 25 Jan 1997 06:43:47 +0000 (06:43 +0000)]
.

27 years ago.
Jim Meyering [Sat, 25 Jan 1997 06:43:16 +0000 (06:43 +0000)]
.

27 years ago.
Jim Meyering [Sat, 25 Jan 1997 06:37:40 +0000 (06:37 +0000)]
.

27 years agoupdate for changed xstrtou?l
Jim Meyering [Sat, 25 Jan 1997 06:21:24 +0000 (06:21 +0000)]
update for changed xstrtou?l

27 years ago.
Jim Meyering [Sat, 25 Jan 1997 06:17:20 +0000 (06:17 +0000)]
.

27 years ago(XSTRTOL_H): Undefine it.
Jim Meyering [Sat, 25 Jan 1997 06:17:13 +0000 (06:17 +0000)]
(XSTRTOL_H): Undefine it.

27 years ago.
Jim Meyering [Sat, 25 Jan 1997 06:15:49 +0000 (06:15 +0000)]
.

27 years ago[!_STRTOL_ERROR]: Define the type `enum strtol_error'
Jim Meyering [Sat, 25 Jan 1997 06:15:18 +0000 (06:15 +0000)]
[!_STRTOL_ERROR]: Define the type `enum strtol_error'
only if it hasn't already been defined.

27 years ago(__xstrtol): Change interpretation of
Jim Meyering [Sat, 25 Jan 1997 06:13:46 +0000 (06:13 +0000)]
(__xstrtol): Change interpretation of
VALID_SUFFIXES == NULL vs VALID_SUFFIXES == "".  Use the former
when any suffix is valid, the later when no suffix is allowed.

27 years agofix copyright filling
Jim Meyering [Sat, 25 Jan 1997 06:11:48 +0000 (06:11 +0000)]
fix copyright filling

27 years agofix copyright filling
Jim Meyering [Sat, 25 Jan 1997 06:11:22 +0000 (06:11 +0000)]
fix copyright filling

27 years ago.
Jim Meyering [Sat, 25 Jan 1997 05:58:58 +0000 (05:58 +0000)]
.

27 years ago.
Jim Meyering [Sat, 25 Jan 1997 05:56:52 +0000 (05:56 +0000)]
.

27 years ago(parse_long_options): Reset optind to zero
Jim Meyering [Sat, 25 Jan 1997 05:37:15 +0000 (05:37 +0000)]
(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.

27 years ago(parse_obsolescent_option): Recognize and fail for
Jim Meyering [Fri, 24 Jan 1997 02:11:52 +0000 (02:11 +0000)]
(parse_obsolescent_option): Recognize and fail for
more malformed obsolescent options.  Makes for better diagnostics.

27 years ago.
Jim Meyering [Fri, 24 Jan 1997 01:16:39 +0000 (01:16 +0000)]
.

27 years ago.
Jim Meyering [Thu, 23 Jan 1997 05:15:14 +0000 (05:15 +0000)]
.

27 years ago.
Jim Meyering [Thu, 23 Jan 1997 04:12:43 +0000 (04:12 +0000)]
.

27 years ago.
Jim Meyering [Thu, 23 Jan 1997 04:03:50 +0000 (04:03 +0000)]
.

27 years ago.
Jim Meyering [Thu, 23 Jan 1997 04:01:58 +0000 (04:01 +0000)]
.

27 years ago.
Jim Meyering [Thu, 23 Jan 1997 04:00:19 +0000 (04:00 +0000)]
.

27 years ago.
Jim Meyering [Thu, 23 Jan 1997 03:55:50 +0000 (03:55 +0000)]
.

27 years ago.
Jim Meyering [Thu, 23 Jan 1997 03:47:20 +0000 (03:47 +0000)]
.

27 years ago(parse_options): New function.
Jim Meyering [Thu, 23 Jan 1997 03:38:23 +0000 (03:38 +0000)]
(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.

27 years ago.
Jim Meyering [Thu, 23 Jan 1997 03:22:16 +0000 (03:22 +0000)]
.

27 years ago.
Jim Meyering [Thu, 23 Jan 1997 03:02:56 +0000 (03:02 +0000)]
.

27 years ago.
Jim Meyering [Thu, 23 Jan 1997 03:02:17 +0000 (03:02 +0000)]
.

27 years ago.
Jim Meyering [Thu, 23 Jan 1997 02:45:08 +0000 (02:45 +0000)]
.

27 years agoUpdate from GNU via Uli
Jim Meyering [Thu, 23 Jan 1997 02:45:02 +0000 (02:45 +0000)]
Update from GNU via Uli

27 years ago.
Jim Meyering [Thu, 23 Jan 1997 02:25:26 +0000 (02:25 +0000)]
.

27 years agorevert last change
Jim Meyering [Thu, 23 Jan 1997 02:23:44 +0000 (02:23 +0000)]
revert last change

27 years ago.
Jim Meyering [Thu, 23 Jan 1997 02:21:03 +0000 (02:21 +0000)]
.

27 years ago.
Jim Meyering [Thu, 23 Jan 1997 02:18:00 +0000 (02:18 +0000)]
.

27 years ago.
Jim Meyering [Thu, 23 Jan 1997 02:16:55 +0000 (02:16 +0000)]
.

27 years ago(AM_FUNC_MKTIME): Run tests for each of a few values
Jim Meyering [Thu, 23 Jan 1997 02:16:20 +0000 (02:16 +0000)]
(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.

27 years agoincrement serial number
Jim Meyering [Thu, 23 Jan 1997 00:39:19 +0000 (00:39 +0000)]
increment serial number

27 years ago[strftime]: Add parameters to macro definition. From Drepper.
Jim Meyering [Wed, 22 Jan 1997 23:23:04 +0000 (23:23 +0000)]
[strftime]: Add parameters to macro definition.  From Drepper.

27 years ago(main): Use TZ=GMT0, not TZ=GMT, since only GMT0 is specified by Posix.1.
Jim Meyering [Wed, 22 Jan 1997 22:45:47 +0000 (22:45 +0000)]
(main): Use TZ=GMT0, not TZ=GMT, since only GMT0 is specified by Posix.1.

27 years ago.
Jim Meyering [Wed, 22 Jan 1997 22:43:41 +0000 (22:43 +0000)]
.

27 years ago(_strftime_copytm): New function, to work around Solaris 2.5 tzset bug.
Jim Meyering [Wed, 22 Jan 1997 22:43:15 +0000 (22:43 +0000)]
(_strftime_copytm): New function, to work around Solaris 2.5 tzset bug.
From Paul Eggert.

27 years ago.
Jim Meyering [Wed, 22 Jan 1997 22:39:41 +0000 (22:39 +0000)]
.

27 years ago(AM_FUNC_MKTIME): Fix bug in mktime test -- don't
Jim Meyering [Wed, 22 Jan 1997 22:38:37 +0000 (22:38 +0000)]
(AM_FUNC_MKTIME): Fix bug in mktime test -- don't
test now, test a couple of thousand times.

27 years ago.
Jim Meyering [Wed, 22 Jan 1997 04:56:25 +0000 (04:56 +0000)]
.

27 years ago.
Jim Meyering [Wed, 22 Jan 1997 04:55:59 +0000 (04:55 +0000)]
.

27 years ago.
Jim Meyering [Wed, 22 Jan 1997 04:53:59 +0000 (04:53 +0000)]
.

27 years ago(main): Properly handle what the POSIX spec calls
Jim Meyering [Wed, 22 Jan 1997 04:53:52 +0000 (04:53 +0000)]
(main): Properly handle what the POSIX spec calls
the `obsolescent' usage (e.g., tail +2c).  It didn't work.
Reported by Karl Heuer.

27 years ago.
Jim Meyering [Wed, 22 Jan 1997 04:48:32 +0000 (04:48 +0000)]
.

27 years ago.
Jim Meyering [Tue, 21 Jan 1997 04:21:48 +0000 (04:21 +0000)]
.

27 years ago.
Jim Meyering [Sun, 19 Jan 1997 15:24:40 +0000 (15:24 +0000)]
.

27 years ago.
Jim Meyering [Sun, 19 Jan 1997 13:18:30 +0000 (13:18 +0000)]
.

27 years ago.
Jim Meyering [Sun, 19 Jan 1997 13:11:40 +0000 (13:11 +0000)]
.

27 years agoIndent with GNU indent.
Jim Meyering [Sat, 18 Jan 1997 20:17:39 +0000 (20:17 +0000)]
Indent with GNU indent.

27 years agoIndent 2 more cpp-directives to reflect nesting.
Jim Meyering [Sat, 18 Jan 1997 20:12:10 +0000 (20:12 +0000)]
Indent 2 more cpp-directives to reflect nesting.

27 years ago(get_date): Change prototype to reflect const'ness of parameters.
Jim Meyering [Sat, 18 Jan 1997 20:11:05 +0000 (20:11 +0000)]
(get_date): Change prototype to reflect const'ness of parameters.
Indent cpp-directives to reflect nesting.

27 years ago.
Jim Meyering [Sat, 18 Jan 1997 20:08:05 +0000 (20:08 +0000)]
.

27 years agoInclude getdate.h.
Jim Meyering [Sat, 18 Jan 1997 20:06:50 +0000 (20:06 +0000)]
Include getdate.h.
(<time.h>, <sys/time.h>): Don't include -- now getdate.h does it.

27 years ago.
Jim Meyering [Sat, 18 Jan 1997 16:58:30 +0000 (16:58 +0000)]
.

27 years ago.
Jim Meyering [Sat, 18 Jan 1997 16:57:45 +0000 (16:57 +0000)]
.

27 years ago.
Jim Meyering [Sat, 18 Jan 1997 15:46:09 +0000 (15:46 +0000)]
.

27 years ago.
Jim Meyering [Sat, 18 Jan 1997 15:32:52 +0000 (15:32 +0000)]
.

27 years ago1997-01-06 Paul Eggert <eggert@twinsun.com>
Jim Meyering [Sat, 18 Jan 1997 15:32:16 +0000 (15:32 +0000)]
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.

27 years agoAdd comment re HAVE_PSTAT_GETDYNAMIC.
Jim Meyering [Sat, 18 Jan 1997 15:07:16 +0000 (15:07 +0000)]
Add comment re HAVE_PSTAT_GETDYNAMIC.

27 years agoreindent
Jim Meyering [Sat, 18 Jan 1997 13:44:49 +0000 (13:44 +0000)]
reindent

27 years ago.
Jim Meyering [Fri, 17 Jan 1997 03:01:15 +0000 (03:01 +0000)]
.

27 years ago(AM_FUNC_GETLOADAVG): Check for pstat_getdynamic.
Jim Meyering [Fri, 17 Jan 1997 03:00:45 +0000 (03:00 +0000)]
(AM_FUNC_GETLOADAVG): Check for pstat_getdynamic.

27 years agoFix up indentation a little.
Jim Meyering [Wed, 15 Jan 1997 04:59:07 +0000 (04:59 +0000)]
Fix up indentation a little.

27 years agoIndent cpp-directives to reflect nesting.
Jim Meyering [Wed, 15 Jan 1997 04:55:39 +0000 (04:55 +0000)]
Indent cpp-directives to reflect nesting.

27 years ago[!STDC_HEADERS]: Remove unnecessary declaration of free.
Jim Meyering [Wed, 15 Jan 1997 04:42:05 +0000 (04:42 +0000)]
[!STDC_HEADERS]: Remove unnecessary declaration of free.

27 years ago[!STDC_HEADERS]: Remove unnecessary declaration of free.
Jim Meyering [Wed, 15 Jan 1997 04:41:12 +0000 (04:41 +0000)]
[!STDC_HEADERS]: Remove unnecessary declaration of free.