platform/upstream/coreutils.git
23 years ago(usage): Deprecate --kilobytes. Document size suffixes.
Jim Meyering [Fri, 21 Dec 2001 11:36:35 +0000 (11:36 +0000)]
(usage): Deprecate --kilobytes.  Document size suffixes.

23 years ago(BLOCK_SIZE_OPTION): Remove; no longer needed now that we have 'B'.
Jim Meyering [Fri, 21 Dec 2001 11:35:54 +0000 (11:35 +0000)]
(BLOCK_SIZE_OPTION): Remove; no longer needed now that we have 'B'.
(long_options, usage, main): Add -B.
(usage): Deprecate --kilobytes, -m, --megabytes.
Document size suffixes.

(print_header, show_dev): Enlarge column widths for trailing "B".

23 years ago(BLOCK_SIZE_OPTION): Remove; no longer needed now that we have 'B'.
Jim Meyering [Fri, 21 Dec 2001 11:31:54 +0000 (11:31 +0000)]
(BLOCK_SIZE_OPTION): Remove; no longer needed now that we have 'B'.
(long_options, usage, main): Add -B.
(usage): Deprecate --kilobytes, -m, --megabytes.
Document size suffixes.

23 years ago(usage, parse_integer): Prefer K to k for 1024.
Jim Meyering [Fri, 21 Dec 2001 11:28:34 +0000 (11:28 +0000)]
(usage, parse_integer): Prefer K to k for 1024.

23 years ago*** empty log message ***
Jim Meyering [Thu, 20 Dec 2001 16:54:24 +0000 (16:54 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Thu, 20 Dec 2001 16:53:56 +0000 (16:53 +0000)]
*** empty log message ***

23 years ago(usage, specify_sort_size): Accept 'K' (which is
Jim Meyering [Thu, 20 Dec 2001 16:53:50 +0000 (16:53 +0000)]
(usage, specify_sort_size): Accept 'K' (which is
now preferred, as it connotes 1024) as well as 'k'.

23 years ago*** empty log message ***
Jim Meyering [Thu, 20 Dec 2001 10:01:41 +0000 (10:01 +0000)]
*** empty log message ***

23 years ago(close_stdout_status): If ferror (stdout), do
Jim Meyering [Thu, 20 Dec 2001 10:01:25 +0000 (10:01 +0000)]
(close_stdout_status): If ferror (stdout), do
not silently exit merely because the output buffer happens to
have nothing pending.

23 years ago*** empty log message ***
Jim Meyering [Wed, 19 Dec 2001 18:10:46 +0000 (18:10 +0000)]
*** empty log message ***

23 years agoAdd FSF copyright notice.
Jim Meyering [Wed, 19 Dec 2001 18:10:24 +0000 (18:10 +0000)]
Add FSF copyright notice.

23 years ago*** empty log message ***
Jim Meyering [Wed, 19 Dec 2001 15:07:13 +0000 (15:07 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Wed, 19 Dec 2001 15:05:38 +0000 (15:05 +0000)]
*** empty log message ***

23 years ago(suffixes): Prefer K to k for 1024.
Jim Meyering [Wed, 19 Dec 2001 15:05:33 +0000 (15:05 +0000)]
(suffixes): Prefer K to k for 1024.
(generate_suffix_backwards): New function.
(human_readable_inexact): Use it.

23 years ago(__xstrtol): If there is no number but there
Jim Meyering [Wed, 19 Dec 2001 10:41:27 +0000 (10:41 +0000)]
(__xstrtol): If there is no number but there
is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
Accept 'K' as well as 'k'.

23 years ago(xstrtoumax): If there is no number but there
Jim Meyering [Wed, 19 Dec 2001 10:35:39 +0000 (10:35 +0000)]
(xstrtoumax): If there is no number but there
is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
Accept 'K' as well as 'k'.

23 years ago*** empty log message ***
Jim Meyering [Mon, 17 Dec 2001 19:45:12 +0000 (19:45 +0000)]
*** empty log message ***

23 years ago(usage): Remove strap `)' in --help output.
Jim Meyering [Mon, 17 Dec 2001 19:45:03 +0000 (19:45 +0000)]
(usage): Remove strap `)' in --help output.

23 years ago*** empty log message ***
Jim Meyering [Mon, 17 Dec 2001 09:09:05 +0000 (09:09 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Mon, 17 Dec 2001 09:08:39 +0000 (09:08 +0000)]
*** empty log message ***

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

23 years ago(url_dir_list): Don't set define it here, but...
Jim Meyering [Mon, 17 Dec 2001 09:06:56 +0000 (09:06 +0000)]
(url_dir_list): Don't set define it here, but...

23 years ago(url_dir_list): ...define it here instead.
Jim Meyering [Mon, 17 Dec 2001 09:06:33 +0000 (09:06 +0000)]
(url_dir_list): ...define it here instead.
(hosts, a_host, b_host): Remove now-unused variables.
(alpha_subdir, a_url_dir, b_url_dir): Remove now-unused variables.

23 years ago(real_dir): Remove unused variable.
Jim Meyering [Mon, 17 Dec 2001 09:01:08 +0000 (09:01 +0000)]
(real_dir): Remove unused variable.

23 years agouse generated fs_name function FILEUTILS-4_1_4
Jim Meyering [Sun, 16 Dec 2001 22:59:07 +0000 (22:59 +0000)]
use generated fs_name function

23 years agoUse new macros, HELP_OPTION_DESCRIPTION and VERSION_OPTION_DESCRIPTION
Jim Meyering [Sat, 15 Dec 2001 20:46:30 +0000 (20:46 +0000)]
Use new macros, HELP_OPTION_DESCRIPTION and VERSION_OPTION_DESCRIPTION
instead of hard-coding --help and --version descriptions.
Split --help output into smaller pieces.
Use fputs, not printf.

23 years ago*** empty log message ***
Jim Meyering [Sat, 15 Dec 2001 20:46:00 +0000 (20:46 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Sat, 15 Dec 2001 16:59:00 +0000 (16:59 +0000)]
*** empty log message ***

23 years ago(STREQ): Define.
Jim Meyering [Sat, 15 Dec 2001 16:58:53 +0000 (16:58 +0000)]
(STREQ): Define.

23 years ago(__restrict_arr): Update from libc.
Jim Meyering [Sat, 15 Dec 2001 16:57:15 +0000 (16:57 +0000)]
(__restrict_arr): Update from libc.

23 years agofrom Marcus Brinkmann
Jim Meyering [Sat, 15 Dec 2001 16:45:38 +0000 (16:45 +0000)]
from Marcus Brinkmann

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

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

23 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 `//'.

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

23 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.

23 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.

23 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.

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

23 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.

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

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

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

23 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.

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

23 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/

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

23 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/

23 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/

23 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/

23 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/

23 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/

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

23 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.

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

23 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.

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

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

23 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'.

23 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'.

23 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.

23 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.

23 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.

23 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.

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

23 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.

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

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

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

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

23 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.

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

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

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

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

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

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

23 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.

23 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.

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

23 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.

23 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.

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

23 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 ***

23 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.

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

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

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

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

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

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

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

23 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.

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

23 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.

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

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

23 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.

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

23 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.