platform/upstream/coreutils.git
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.

27 years agoAdd struct dir_list and is_ancestor.
Jim Meyering [Wed, 15 Jan 1997 04:35:01 +0000 (04:35 +0000)]
Add struct dir_list and is_ancestor.

27 years ago.
Jim Meyering [Mon, 13 Jan 1997 04:23:05 +0000 (04:23 +0000)]
.

27 years agoRegenerated to reflect renamed tests.
Jim Meyering [Mon, 13 Jan 1997 04:21:30 +0000 (04:21 +0000)]
Regenerated to reflect renamed tests.

27 years agoRename tests so that the associated files
Jim Meyering [Mon, 13 Jan 1997 04:20:54 +0000 (04:20 +0000)]
Rename tests so that the associated files
have names that are distinct even on filesystems on which file
names are case insensitive.

27 years ago.
Jim Meyering [Mon, 13 Jan 1997 04:17:16 +0000 (04:17 +0000)]
.

27 years agoRegenerated to reflect renamed tests.
Jim Meyering [Mon, 13 Jan 1997 04:16:57 +0000 (04:16 +0000)]
Regenerated to reflect renamed tests.

27 years agoRename tests so that the associated files
Jim Meyering [Mon, 13 Jan 1997 04:16:16 +0000 (04:16 +0000)]
Rename tests so that the associated files
have names that are distinct even on filesystems on which file
names are case insensitive.

27 years ago.
Jim Meyering [Sat, 11 Jan 1997 22:35:42 +0000 (22:35 +0000)]
.

27 years ago.
Jim Meyering [Sat, 11 Jan 1997 04:23:46 +0000 (04:23 +0000)]
.

27 years ago.
Jim Meyering [Sat, 11 Jan 1997 04:21:29 +0000 (04:21 +0000)]
.

27 years ago.
Jim Meyering [Thu, 9 Jan 1997 12:38:53 +0000 (12:38 +0000)]
.

27 years agoRemove AC_ISC_POSIX.
Jim Meyering [Thu, 9 Jan 1997 12:24:51 +0000 (12:24 +0000)]
Remove AC_ISC_POSIX.

27 years ago. SH-UTILS-1_15
Jim Meyering [Thu, 9 Jan 1997 02:35:52 +0000 (02:35 +0000)]
.

27 years ago. TEXTUTILS-1_21
Jim Meyering [Thu, 9 Jan 1997 02:35:30 +0000 (02:35 +0000)]
.

27 years ago. FILEUTILS-3_15
Jim Meyering [Thu, 9 Jan 1997 02:34:14 +0000 (02:34 +0000)]
.

27 years ago(print_long_format): Cast alloca return value to char*.
Jim Meyering [Thu, 9 Jan 1997 02:33:44 +0000 (02:33 +0000)]
(print_long_format): Cast alloca return value to char*.

27 years ago.
Jim Meyering [Thu, 9 Jan 1997 00:09:17 +0000 (00:09 +0000)]
.

27 years ago.
Jim Meyering [Wed, 8 Jan 1997 22:40:47 +0000 (22:40 +0000)]
.

27 years ago(_getopt_internal): Use `_', rather than the (sometimes-)expansion `gettext'.
Jim Meyering [Wed, 8 Jan 1997 22:40:00 +0000 (22:40 +0000)]
(_getopt_internal): Use `_', rather than the (sometimes-)expansion `gettext'.

27 years ago.
Jim Meyering [Wed, 8 Jan 1997 12:29:57 +0000 (12:29 +0000)]
.

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

27 years ago.
Jim Meyering [Wed, 8 Jan 1997 04:57:06 +0000 (04:57 +0000)]
.

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

27 years ago.
Jim Meyering [Wed, 8 Jan 1997 04:52:41 +0000 (04:52 +0000)]
.

27 years ago[_]: Define to gettext also if ENABLE_NLS is defined.
Jim Meyering [Wed, 8 Jan 1997 04:52:00 +0000 (04:52 +0000)]
[_]: Define to gettext also if ENABLE_NLS is defined.

27 years ago.
Jim Meyering [Wed, 8 Jan 1997 04:50:29 +0000 (04:50 +0000)]
.

27 years ago.
Jim Meyering [Wed, 8 Jan 1997 04:49:33 +0000 (04:49 +0000)]
.

27 years ago(main): Work around failures induced by new version of
Jim Meyering [Wed, 8 Jan 1997 04:47:56 +0000 (04:47 +0000)]
(main): Work around failures induced by new version of
getopt.c by not modifying optind before the first getopt_long call
in main.  With suggestions from Ulrich Drepper.

27 years agoNew (more POSIX compliant) version from GNU libc.
Jim Meyering [Wed, 8 Jan 1997 04:11:29 +0000 (04:11 +0000)]
New (more POSIX compliant) version from GNU libc.

27 years ago.
Jim Meyering [Mon, 6 Jan 1997 04:24:52 +0000 (04:24 +0000)]
.

27 years ago.
Jim Meyering [Mon, 6 Jan 1997 04:19:50 +0000 (04:19 +0000)]
.

27 years ago.
Jim Meyering [Mon, 6 Jan 1997 03:31:03 +0000 (03:31 +0000)]
.

27 years ago.
Jim Meyering [Mon, 6 Jan 1997 03:23:19 +0000 (03:23 +0000)]
.

27 years ago.
Jim Meyering [Mon, 6 Jan 1997 03:21:55 +0000 (03:21 +0000)]
.

27 years ago.
Jim Meyering [Sun, 5 Jan 1997 20:32:57 +0000 (20:32 +0000)]
.

27 years ago(print_long_format): Detect and handle strftime failure
Jim Meyering [Sun, 5 Jan 1997 20:32:49 +0000 (20:32 +0000)]
(print_long_format): Detect and handle strftime failure
due to pathologically long strings in locale tables. Patch from Paul Eggert.
(print_long_format): Change references to BIGBUF in use of FPUT macro
to references to BUF.
Use 11 (not 20) bytes for mode string buffer.

27 years ago(print_long_format): NUL-terminate line of output.
Jim Meyering [Sun, 5 Jan 1997 15:39:27 +0000 (15:39 +0000)]
(print_long_format): NUL-terminate line of output.

27 years ago(print_long_format): First patch from Paul Eggert.
Jim Meyering [Sun, 5 Jan 1997 15:33:44 +0000 (15:33 +0000)]
(print_long_format): First patch from Paul Eggert.

27 years ago.
Jim Meyering [Sun, 5 Jan 1997 03:32:28 +0000 (03:32 +0000)]
.

27 years ago.
Jim Meyering [Sun, 5 Jan 1997 03:24:32 +0000 (03:24 +0000)]
.

27 years ago.
Jim Meyering [Sun, 5 Jan 1997 03:19:46 +0000 (03:19 +0000)]
.

27 years ago(print_long_format): Clean up vestiges of legacy
Jim Meyering [Sun, 5 Jan 1997 03:18:49 +0000 (03:18 +0000)]
(print_long_format): Clean up vestiges of legacy
ctime-oriented code.  With internationalization and strftime,
you can't presume that %a expands to a 3-byte string.
Reported by Ross Ridge.

27 years ago.
Jim Meyering [Sat, 4 Jan 1997 03:09:44 +0000 (03:09 +0000)]
.

27 years agoFix typo. TEXTUTILS-1_20b
Jim Meyering [Fri, 3 Jan 1997 05:10:19 +0000 (05:10 +0000)]
Fix typo.

27 years ago. FILEUTILS-3_14b
Jim Meyering [Fri, 3 Jan 1997 05:05:45 +0000 (05:05 +0000)]
.

27 years ago.
Jim Meyering [Fri, 3 Jan 1997 03:24:22 +0000 (03:24 +0000)]
.

27 years ago.
Jim Meyering [Fri, 3 Jan 1997 03:20:24 +0000 (03:20 +0000)]
.

27 years ago(init_fps): Initialize lines_stored field in three places.
Jim Meyering [Fri, 3 Jan 1997 03:20:14 +0000 (03:20 +0000)]
(init_fps): Initialize lines_stored field in three places.
This avoids uninitialized memory reads in close_file.

27 years ago.
Jim Meyering [Fri, 3 Jan 1997 03:16:59 +0000 (03:16 +0000)]
.

27 years ago(EXTRA_DIST): Add getgroups.c.
Jim Meyering [Fri, 3 Jan 1997 03:16:29 +0000 (03:16 +0000)]
(EXTRA_DIST): Add getgroups.c.

27 years ago.
Jim Meyering [Thu, 2 Jan 1997 03:13:49 +0000 (03:13 +0000)]
.

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

27 years ago.
Jim Meyering [Wed, 1 Jan 1997 23:35:31 +0000 (23:35 +0000)]
.

27 years ago. SH-UTILS-1_14b
Jim Meyering [Tue, 31 Dec 1996 16:18:06 +0000 (16:18 +0000)]
.

27 years ago.
Jim Meyering [Mon, 30 Dec 1996 05:45:23 +0000 (05:45 +0000)]
.

27 years ago(init_header): Plug a small memory leak by using stack
Jim Meyering [Mon, 30 Dec 1996 05:43:58 +0000 (05:43 +0000)]
(init_header): Plug a small memory leak by using stack
rather than heap for a 15-byte temporary buffer.

27 years ago.
Jim Meyering [Mon, 30 Dec 1996 04:11:13 +0000 (04:11 +0000)]
.

27 years ago.
Jim Meyering [Sun, 29 Dec 1996 20:34:21 +0000 (20:34 +0000)]
.

27 years ago.
Jim Meyering [Sun, 29 Dec 1996 03:47:51 +0000 (03:47 +0000)]
.

27 years agoTwo problems fixed by these changes from Joakim Rosqvist.
Jim Meyering [Sun, 29 Dec 1996 03:47:34 +0000 (03:47 +0000)]
Two problems fixed by these changes from Joakim Rosqvist.
Quoting Joakim:
1) The "total" number and the size of the first file as
output from 'ls --color -s' did not get colorized according
to the "no"-argument in LS_COLORS. Fixed by adding a function
prep_non_filename_text which prints the C_LEFT C_NORM C_RIGHT
strings (or C_END). It is called from main before any text is
output, and from print_name_with_quoting after having output a
colorized filename.
2) If the "no"-argument of LS_COLORS is set, the terminal will be
set to print in that color after ls exits. The man-pages suggests
setting "no" and "fi" to the terminals default colors to avoid
the problem, but that would mean I can't use anything but the
default color for regular files and non-filename text. Fixed by
outputting C_LEFT immediately followed by C_RIGHT right before
exit, which restores the default color.

27 years ago.
Jim Meyering [Sun, 29 Dec 1996 01:48:20 +0000 (01:48 +0000)]
.

27 years agoCorrect obsolete comment referring to macro that is now ls_mode.
Jim Meyering [Sat, 28 Dec 1996 20:32:39 +0000 (20:32 +0000)]
Correct obsolete comment referring to macro that is now ls_mode.

27 years ago.
Jim Meyering [Sat, 28 Dec 1996 16:04:01 +0000 (16:04 +0000)]
.

27 years ago.
Jim Meyering [Sat, 28 Dec 1996 13:30:51 +0000 (13:30 +0000)]
.

27 years ago.
Jim Meyering [Sat, 28 Dec 1996 06:27:35 +0000 (06:27 +0000)]
.

27 years ago.
Jim Meyering [Sat, 28 Dec 1996 06:07:39 +0000 (06:07 +0000)]
.

27 years ago.
Jim Meyering [Sat, 28 Dec 1996 06:06:51 +0000 (06:06 +0000)]
.

27 years ago.
Jim Meyering [Sat, 28 Dec 1996 06:05:51 +0000 (06:05 +0000)]
.

27 years ago(TAB_WIDTH): Cleaned up definition and renamed from tab_width.
Jim Meyering [Sat, 28 Dec 1996 06:04:36 +0000 (06:04 +0000)]
(TAB_WIDTH): Cleaned up definition and renamed from tab_width.
(POS_AFTER_TAB): Cleaned up definition and renamed from pos_after_tab.

27 years ago.
Jim Meyering [Sat, 28 Dec 1996 05:34:01 +0000 (05:34 +0000)]
.

27 years agoFix a couple of thinkos and typos.
Jim Meyering [Sat, 28 Dec 1996 05:30:46 +0000 (05:30 +0000)]
Fix a couple of thinkos and typos.
Now it works with pr's tests, too.

27 years ago.
Jim Meyering [Sat, 28 Dec 1996 05:27:53 +0000 (05:27 +0000)]
.

27 years agoRegenerate list of explicit files, this time with duplicates removed.
Jim Meyering [Sat, 28 Dec 1996 05:27:25 +0000 (05:27 +0000)]
Regenerate list of explicit files, this time with duplicates removed.

27 years ago.
Jim Meyering [Sat, 28 Dec 1996 05:15:56 +0000 (05:15 +0000)]
.

27 years ago.
Jim Meyering [Sat, 28 Dec 1996 05:14:37 +0000 (05:14 +0000)]
.

27 years ago.
Jim Meyering [Sat, 28 Dec 1996 05:12:09 +0000 (05:12 +0000)]
.

27 years ago.
Jim Meyering [Sat, 28 Dec 1996 04:58:34 +0000 (04:58 +0000)]
.

27 years agoIndent cpp directives.
Jim Meyering [Sat, 28 Dec 1996 04:58:26 +0000 (04:58 +0000)]
Indent cpp directives.

27 years ago[!WTMP_FILE]: Provide default path.
Jim Meyering [Sat, 28 Dec 1996 04:44:35 +0000 (04:44 +0000)]
[!WTMP_FILE]: Provide default path.
(UTMP_FILE) [UTMPX_FILE]: Use UTMPX_FILE in favor of UTMP_FILE.
Patch from Kaveh R. Ghazi.

27 years agoRewrite the test so that systems lacking
Jim Meyering [Sat, 28 Dec 1996 02:59:25 +0000 (02:59 +0000)]
Rewrite the test so that systems lacking
getgroups don't try to use the supplied replacement function --
that depends on the existence of such a function.

27 years ago(usage): Break long string literal into two separate
Jim Meyering [Sat, 28 Dec 1996 02:28:56 +0000 (02:28 +0000)]
(usage): Break long string literal into two separate
printf statements to accomodate default maximum of 2048 characters
for Irix-4.0.5.  Reported by Kaveh Ghazi.

27 years ago.
Jim Meyering [Sat, 28 Dec 1996 00:22:01 +0000 (00:22 +0000)]
.

27 years agoMake 'em arrays of references, not arrays of arrays.
Jim Meyering [Sat, 28 Dec 1996 00:19:56 +0000 (00:19 +0000)]
Make 'em arrays of references, not arrays of arrays.