platform/upstream/coreutils.git
22 years agofrom Marcus Brinkmann
Jim Meyering [Sat, 15 Dec 2001 16:45:38 +0000 (16:45 +0000)]
from Marcus Brinkmann

22 years ago*** empty log message ***
Jim Meyering [Sat, 15 Dec 2001 10:38:55 +0000 (10:38 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Sat, 15 Dec 2001 10:37:11 +0000 (10:37 +0000)]
*** empty log message ***

22 years ago(ME_REMOTE): Recognize file systems of type smbfs
Jim Meyering [Sat, 15 Dec 2001 10:36:58 +0000 (10:36 +0000)]
(ME_REMOTE): Recognize file systems of type smbfs
as `remote' if the name starts with `//'.

22 years ago*** empty log message ***
Jim Meyering [Sat, 15 Dec 2001 09:29:14 +0000 (09:29 +0000)]
*** empty log message ***

22 years agoAlso accept SunOS4's `Not owner' diagnostic.
Jim Meyering [Sat, 15 Dec 2001 09:28:50 +0000 (09:28 +0000)]
Also accept SunOS4's `Not owner' diagnostic.

22 years agoRun each --help and --version test with a few different settings
Jim Meyering [Sat, 15 Dec 2001 09:14:21 +0000 (09:14 +0000)]
Run each --help and --version test with a few different settings
of LC_MESSAGES.

22 years agoFail also if ./$i --version fails.
Jim Meyering [Sat, 15 Dec 2001 09:07:18 +0000 (09:07 +0000)]
Fail also if ./$i --version fails.

22 years ago*** empty log message ***
Jim Meyering [Fri, 14 Dec 2001 11:21:13 +0000 (11:21 +0000)]
*** empty log message ***

22 years ago(jm_MACROS): Check for iswspace.
Jim Meyering [Fri, 14 Dec 2001 11:21:04 +0000 (11:21 +0000)]
(jm_MACROS): Check for iswspace.
Suggestion from Bruno Haible.

22 years ago*** empty log message ***
Jim Meyering [Thu, 13 Dec 2001 11:17:49 +0000 (11:17 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Thu, 13 Dec 2001 11:12:35 +0000 (11:12 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Thu, 13 Dec 2001 11:12:23 +0000 (11:12 +0000)]
*** empty log message ***

22 years ago(wc): Use ISSPACE and iswspace in addition to hard-coding
Jim Meyering [Thu, 13 Dec 2001 11:12:18 +0000 (11:12 +0000)]
(wc): Use ISSPACE and iswspace in addition to hard-coding
the ASCII space character.

22 years ago*** empty log message ***
Jim Meyering [Tue, 11 Dec 2001 11:51:17 +0000 (11:51 +0000)]
*** empty log message ***

22 years ago(main):
Jim Meyering [Tue, 11 Dec 2001 11:49:36 +0000 (11:49 +0000)]
(main):
Include the word `fail' in some diagnostics to make it clearer
that they indicate a failure.
s/getting attributes/failed to get attributes/

22 years agosplit long line
Jim Meyering [Tue, 11 Dec 2001 11:49:14 +0000 (11:49 +0000)]
split long line

22 years ago(change_file_mode, main):
Jim Meyering [Tue, 11 Dec 2001 11:48:54 +0000 (11:48 +0000)]
(change_file_mode, main):
Include the word `fail' in some diagnostics to make it clearer
that they indicate a failure.
s/getting attributes/failed to get attributes/

22 years ago(change_file_owner):
Jim Meyering [Tue, 11 Dec 2001 11:48:21 +0000 (11:48 +0000)]
(change_file_owner):
Include the word `fail' in some diagnostics to make it clearer
that they indicate a failure.
s/getting attributes/failed to get attributes/

22 years ago(main):
Jim Meyering [Tue, 11 Dec 2001 11:47:54 +0000 (11:47 +0000)]
(main):
Include the word `fail' in some diagnostics to make it clearer
that they indicate a failure.
s/getting attributes/failed to get attributes/

22 years ago(re_protect):
Jim Meyering [Tue, 11 Dec 2001 11:47:25 +0000 (11:47 +0000)]
(re_protect):
Include the word `fail' in some diagnostics to make it clearer
that they indicate a failure.
s/getting attributes/failed to get attributes/

22 years agoInclude the word `fail' in some diagnostics to make it clearer
Jim Meyering [Tue, 11 Dec 2001 11:46:49 +0000 (11:46 +0000)]
Include the word `fail' in some diagnostics to make it clearer
that they indicate a failure.
s/getting attributes/failed to get attributes/

22 years ago*** empty log message ***
Jim Meyering [Tue, 11 Dec 2001 11:41:15 +0000 (11:41 +0000)]
*** empty log message ***

22 years ago(buggy_lseek_support): Remove function.
Jim Meyering [Tue, 11 Dec 2001 11:40:50 +0000 (11:40 +0000)]
(buggy_lseek_support): Remove function.
(skip_via_lseek) [__linux__]: New function.
(skip): Use skip_via_lseek, not buggy_lseek_support.

22 years ago. TEXTUTILS-2_0_19
Jim Meyering [Mon, 10 Dec 2001 00:17:05 +0000 (00:17 +0000)]
.

22 years agoRemove explicit declarations of xmalloc and xrealloc,
Jim Meyering [Mon, 10 Dec 2001 00:13:36 +0000 (00:13 +0000)]
Remove explicit declarations of xmalloc and xrealloc,
Instead, include "xalloc.h".
(initbuffer): Don't cast xmalloc return value to char*.
(readline): Reword comment.
Don't cast xrealloc return value to char*
Return NULL, not 0.

22 years ago*** empty log message ***
Jim Meyering [Sun, 9 Dec 2001 22:57:15 +0000 (22:57 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Sun, 9 Dec 2001 22:56:52 +0000 (22:56 +0000)]
*** empty log message ***

22 years ago(posix_time_parse): Add cast to avoid warning about
Jim Meyering [Sun, 9 Dec 2001 22:56:16 +0000 (22:56 +0000)]
(posix_time_parse): Add cast to avoid warning about
`signed and unsigned type in conditional expression'.

22 years ago(mode_compile): Add cast to avoid warning about
Jim Meyering [Sun, 9 Dec 2001 22:54:19 +0000 (22:54 +0000)]
(mode_compile): Add cast to avoid warning about
`signed and unsigned type in conditional expression'.

22 years ago(xreadlink): Add cast to avoid a warning.
Jim Meyering [Sun, 9 Dec 2001 22:46:53 +0000 (22:46 +0000)]
(xreadlink): Add cast to avoid a warning.

22 years ago(readtoken): Declare an index to be of type unsigned
Jim Meyering [Sun, 9 Dec 2001 22:39:02 +0000 (22:39 +0000)]
(readtoken): Declare an index to be of type unsigned
to avoid a pedantic warning.

22 years agoDon't include assert.h.
Jim Meyering [Sun, 9 Dec 2001 22:08:19 +0000 (22:08 +0000)]
Don't include assert.h.
(getstr): Remove warning-evoking assertions.
Return -1 if offset parameter is out of bounds.
Change the type of a local from int to size_t.

22 years ago(my_strftime_localtime_r): Include this function
Jim Meyering [Sun, 9 Dec 2001 21:02:43 +0000 (21:02 +0000)]
(my_strftime_localtime_r): Include this function
definition in the `#if ! HAVE_TM_GMTOFF' block.

22 years ago*** empty log message ***
Jim Meyering [Sun, 9 Dec 2001 21:01:23 +0000 (21:01 +0000)]
*** empty log message ***

22 years agoRemove declarations of xmalloc and xrealloc.
Jim Meyering [Sun, 9 Dec 2001 21:01:15 +0000 (21:01 +0000)]
Remove declarations of xmalloc and xrealloc.
Include xalloc.h instead.

22 years ago*** empty log message ***
Jim Meyering [Sun, 9 Dec 2001 10:27:44 +0000 (10:27 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Sat, 8 Dec 2001 20:44:05 +0000 (20:44 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Sat, 8 Dec 2001 20:42:13 +0000 (20:42 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Sat, 8 Dec 2001 20:41:53 +0000 (20:41 +0000)]
*** empty log message ***

22 years ago(wget_files): Remove ansi2knr.c, since it's
Jim Meyering [Sat, 8 Dec 2001 20:41:46 +0000 (20:41 +0000)]
(wget_files): Remove ansi2knr.c, since it's
no longer available at that location.

22 years ago*** empty log message ***
Jim Meyering [Sat, 8 Dec 2001 19:19:19 +0000 (19:19 +0000)]
*** empty log message ***

22 years agotweak to align with libc
Jim Meyering [Sat, 8 Dec 2001 06:57:58 +0000 (06:57 +0000)]
tweak to align with libc

22 years ago(join invocation): tweak wording
Jim Meyering [Wed, 5 Dec 2001 14:14:43 +0000 (14:14 +0000)]
(join invocation): tweak wording

22 years ago*** empty log message ***
Jim Meyering [Tue, 4 Dec 2001 21:38:54 +0000 (21:38 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Tue, 4 Dec 2001 21:37:37 +0000 (21:37 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Tue, 4 Dec 2001 17:55:12 +0000 (17:55 +0000)]
*** empty log message ***

22 years agoDon't use diff's -u option. It's not portable.
Jim Meyering [Tue, 4 Dec 2001 17:55:08 +0000 (17:55 +0000)]
Don't use diff's -u option.  It's not portable.
Besides, with GNU diff one can use the DIFF_OPTIONS envvar.

22 years ago(usage): Don't split translatable strings in the middle of a sentence.
Jim Meyering [Mon, 3 Dec 2001 16:07:50 +0000 (16:07 +0000)]
(usage): Don't split translatable strings in the middle of a sentence.

22 years ago*** empty log message ***
Jim Meyering [Mon, 3 Dec 2001 16:07:23 +0000 (16:07 +0000)]
*** empty log message ***

22 years ago(usage): Merge lone "\n" into adjacent string.
Jim Meyering [Mon, 3 Dec 2001 15:56:48 +0000 (15:56 +0000)]
(usage): Merge lone "\n" into adjacent string.

22 years ago(usage): Merge lone "\n" into adjacent string.
Jim Meyering [Mon, 3 Dec 2001 15:56:24 +0000 (15:56 +0000)]
(usage): Merge lone "\n" into adjacent string.

22 years ago*** empty log message ***
Jim Meyering [Sun, 2 Dec 2001 22:47:09 +0000 (22:47 +0000)]
*** empty log message ***

22 years ago*** empty log message *** FILEUTILS-4_1_3
Jim Meyering [Sun, 2 Dec 2001 22:27:01 +0000 (22:27 +0000)]
*** empty log message ***

22 years agoUse new macros, HELP_OPTION_DESCRIPTION and VERSION_OPTION_DESCRIPTION
Jim Meyering [Sun, 2 Dec 2001 22:26:57 +0000 (22:26 +0000)]
Use new macros, HELP_OPTION_DESCRIPTION and VERSION_OPTION_DESCRIPTION
instead of hard-coding --help and --version descriptions.

22 years ago*** empty log message ***
Jim Meyering [Sun, 2 Dec 2001 20:18:43 +0000 (20:18 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Sun, 2 Dec 2001 20:16:28 +0000 (20:16 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Sun, 2 Dec 2001 20:10:31 +0000 (20:10 +0000)]
*** empty log message ***

22 years ago(TESTS): Add recursive.
Jim Meyering [Sun, 2 Dec 2001 20:10:25 +0000 (20:10 +0000)]
(TESTS): Add recursive.

22 years agouse diff -u
Jim Meyering [Sun, 2 Dec 2001 20:09:27 +0000 (20:09 +0000)]
use diff -u

22 years ago*** empty log message ***
Jim Meyering [Sun, 2 Dec 2001 20:08:14 +0000 (20:08 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Sun, 2 Dec 2001 20:05:56 +0000 (20:05 +0000)]
*** empty log message ***

22 years ago(touch): Extend the change of 2001-09-15 to work on
Jim Meyering [Sun, 2 Dec 2001 20:05:33 +0000 (20:05 +0000)]
(touch): Extend the change of 2001-09-15 to work on
systems for which errno is set to EPERM in that case.  Thus, e.g.,
`touch /' by non-root gives a better diagnostic on systems like SunOS4.

22 years ago*** empty log message ***
Jim Meyering [Sun, 2 Dec 2001 19:59:49 +0000 (19:59 +0000)]
*** empty log message ***

22 years agoDon't declare getenv, thus reverting the change of 2001-11-18.
Jim Meyering [Sun, 2 Dec 2001 19:59:39 +0000 (19:59 +0000)]
Don't declare getenv, thus reverting the change of 2001-11-18.
It's no longer necessary, now that stdlib.h is always included.

22 years ago*** empty log message ***
Jim Meyering [Sun, 2 Dec 2001 17:47:34 +0000 (17:47 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Sun, 2 Dec 2001 17:47:01 +0000 (17:47 +0000)]
*** empty log message ***

22 years ago[!__BOUNDED_POINTERS__]: Define away __bounded, __unbounded, and __ptrvalue.
Jim Meyering [Sun, 2 Dec 2001 17:46:54 +0000 (17:46 +0000)]
[!__BOUNDED_POINTERS__]: Define away __bounded, __unbounded, and __ptrvalue.

22 years ago*** empty log message ***
Jim Meyering [Sun, 2 Dec 2001 07:50:04 +0000 (07:50 +0000)]
*** empty log message ***

22 years agoDon't emulate dd's skip=N for *all* character devices; lseek works
Jim Meyering [Sun, 2 Dec 2001 07:49:46 +0000 (07:49 +0000)]
Don't emulate dd's skip=N for *all* character devices;  lseek works
just fine on non-tape character devices like /dev/mem and /dev/kmem.

(buggy_lseek_support) [__linux__]: Emulate `skip=N'
behavior using reads, not lseek for Linux tape devices (major == 9).
Kernel lseek support for tapes is broken, up to and including
linux-2.4.16.  Reported by Herbert Xu.

22 years ago(emit-upload-commands): Fix typo: s/distdir/PACKAGE/.
Jim Meyering [Sun, 2 Dec 2001 06:49:33 +0000 (06:49 +0000)]
(emit-upload-commands): Fix typo: s/distdir/PACKAGE/.

22 years ago. TEXTUTILS-2_0_18
Jim Meyering [Sat, 1 Dec 2001 19:52:31 +0000 (19:52 +0000)]
.

22 years ago(po-check): Check for uses of _() not just in .c files, but also in .h files.
Jim Meyering [Sat, 1 Dec 2001 17:56:23 +0000 (17:56 +0000)]
(po-check): Check for uses of _() not just in .c files, but also in .h files.

22 years ago*** empty log message ***
Jim Meyering [Sat, 1 Dec 2001 17:54:34 +0000 (17:54 +0000)]
*** empty log message ***

22 years agoReflect renaming to, and new usage of these macros:
Jim Meyering [Sat, 1 Dec 2001 17:41:25 +0000 (17:41 +0000)]
Reflect renaming to, and new usage of these macros:
HELP_OPTION_DESCRIPTION and VERSION_OPTION_DESCRIPTION.

22 years ago*** empty log message ***
Jim Meyering [Sat, 1 Dec 2001 17:40:17 +0000 (17:40 +0000)]
*** empty log message ***

22 years agoRename just-added macros. Here are the new names:
Jim Meyering [Sat, 1 Dec 2001 17:31:09 +0000 (17:31 +0000)]
Rename just-added macros.  Here are the new names:
  HELP_OPTION_DESCRIPTION
  VERSION_OPTION_DESCRIPTION

22 years ago*** empty log message ***
Jim Meyering [Sat, 1 Dec 2001 17:22:02 +0000 (17:22 +0000)]
*** empty log message ***

22 years ago(EMIT_HELP_DESCRIPTION): New macro.
Jim Meyering [Sat, 1 Dec 2001 17:21:57 +0000 (17:21 +0000)]
(EMIT_HELP_DESCRIPTION): New macro.
(EMIT_VERSION_DESCRIPTION): New macro.

22 years ago(usage): Use new macros, EMIT_HELP_DESCRIPTION and EMIT_VERSION_DESCRIPTION
Jim Meyering [Sat, 1 Dec 2001 17:21:56 +0000 (17:21 +0000)]
(usage): Use new macros, EMIT_HELP_DESCRIPTION and EMIT_VERSION_DESCRIPTION
instead of hard-coding --help and --version descriptions.

22 years ago.
Jim Meyering [Sat, 1 Dec 2001 15:41:16 +0000 (15:41 +0000)]
.

22 years ago*** empty log message ***
Jim Meyering [Fri, 30 Nov 2001 14:51:13 +0000 (14:51 +0000)]
*** empty log message ***

22 years agoInclude xalloc.h, so that xstrdup is declared before being defined.
Jim Meyering [Fri, 30 Nov 2001 14:32:22 +0000 (14:32 +0000)]
Include xalloc.h, so that xstrdup is declared before being defined.

22 years ago.
Jim Meyering [Wed, 28 Nov 2001 14:05:29 +0000 (14:05 +0000)]
.

22 years ago*** empty log message ***
Jim Meyering [Wed, 28 Nov 2001 06:57:33 +0000 (06:57 +0000)]
*** empty log message ***

22 years ago(quotearg_n, quotearg_n_style):
Jim Meyering [Wed, 28 Nov 2001 06:57:25 +0000 (06:57 +0000)]
(quotearg_n, quotearg_n_style):
First arg is int, not unsigned.

22 years ago(quotearg_n, quotearg_n_style): Likewise.
Jim Meyering [Wed, 28 Nov 2001 06:57:02 +0000 (06:57 +0000)]
(quotearg_n, quotearg_n_style): Likewise.
(SIZE_MAX, UINT_MAX): New macros.
(quotearg_n_options): Abort if N is negative.
Avoid overflow check on hosts where size_t is 64 bits and int
is 32 bits, as overflow is impossible there.
Fix off-by-one typo that caused unnecessary reallocation.

22 years agoMerge with version from libc.
Jim Meyering [Tue, 27 Nov 2001 21:34:15 +0000 (21:34 +0000)]
Merge with version from libc.

22 years ago*** empty log message ***
Jim Meyering [Tue, 27 Nov 2001 20:49:52 +0000 (20:49 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Tue, 27 Nov 2001 12:56:20 +0000 (12:56 +0000)]
*** empty log message ***

22 years agoInclude stdlib.h unconditionally. On some old systems for which
Jim Meyering [Tue, 27 Nov 2001 12:55:16 +0000 (12:55 +0000)]
Include stdlib.h unconditionally.  On some old systems for which
STDC_HEADERS is 0, it was not included, resulting in a warning
about an integer-to-pointer conversion problem with getenv.

22 years agoMerge with version from libc.
Jim Meyering [Tue, 27 Nov 2001 12:54:58 +0000 (12:54 +0000)]
Merge with version from libc.

22 years ago(libfetish_a_SOURCES): Remove gtod.h.
Jim Meyering [Tue, 27 Nov 2001 10:25:52 +0000 (10:25 +0000)]
(libfetish_a_SOURCES): Remove gtod.h.

22 years ago*** empty log message ***
Jim Meyering [Tue, 27 Nov 2001 10:22:43 +0000 (10:22 +0000)]
*** empty log message ***

22 years agoCompare all lines of output.
Jim Meyering [Tue, 27 Nov 2001 10:22:28 +0000 (10:22 +0000)]
Compare all lines of output.
Update code to use `trap' and more up to date infrastructure.

22 years ago*** empty log message ***
Jim Meyering [Tue, 27 Nov 2001 10:19:30 +0000 (10:19 +0000)]
*** empty log message ***

22 years agoThe change of 2001-11-01 introduced a bug whereby some recursive
Jim Meyering [Tue, 27 Nov 2001 10:19:24 +0000 (10:19 +0000)]
The change of 2001-11-01 introduced a bug whereby some recursive
listings didn't have a blank line between per-directory groups of files.

(print_dir): Print a newline before each directory name
except the first one, rather than after each except the last, since
now (after the changes of 2001-11-01) detecting whether a `pending*'
is the last would involve more work.  Reported by Andreas Schwab.

This change has no net effect.
(main): Remove always-true conjunct and add a comment.

22 years ago*** empty log message ***
Jim Meyering [Tue, 27 Nov 2001 10:16:18 +0000 (10:16 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Tue, 27 Nov 2001 07:50:35 +0000 (07:50 +0000)]
*** empty log message ***

22 years ago(SET_MODE) [O_BINARY]: Call setmode, not set_mode.
Jim Meyering [Tue, 27 Nov 2001 07:48:47 +0000 (07:48 +0000)]
(SET_MODE) [O_BINARY]: Call setmode, not set_mode.