platform/upstream/coreutils.git
21 years ago(line_bytes_split): Arg is of type size_t, since
Jim Meyering [Wed, 9 Apr 2003 20:48:29 +0000 (20:48 +0000)]
(line_bytes_split): Arg is of type size_t, since
that's all that is supported for now.
(main): Check for overflow in obsolescent line count option.

21 years agoEnsure that split --lines=N and --bytes=N work for N=2^32.
Jim Meyering [Wed, 9 Apr 2003 14:57:32 +0000 (14:57 +0000)]
Ensure that split --lines=N and --bytes=N work for N=2^32.
Currently (coreutils-5.0.1) split --line-bytes=M fails
with `invalid number of bytes' for M=2^32 or larger.  Test it.

21 years ago*** empty log message ***
Jim Meyering [Wed, 9 Apr 2003 14:45:12 +0000 (14:45 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Wed, 9 Apr 2003 14:43:33 +0000 (14:43 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Wed, 9 Apr 2003 14:40:10 +0000 (14:40 +0000)]
*** empty log message ***

21 years ago(bytes_split): Use size_t temporary (rather than
Jim Meyering [Wed, 9 Apr 2003 14:40:05 +0000 (14:40 +0000)]
(bytes_split): Use size_t temporary (rather than
uintmax_t original) in remaining computations.  From Paul Eggert.

21 years agoHandle command line option arguments larger than 2^31.
Jim Meyering [Wed, 9 Apr 2003 14:37:47 +0000 (14:37 +0000)]
Handle command line option arguments larger than 2^31.
This allows e.g., splitting into files of size 2GB and larger,
and running split --lines=N with N=2^31 or more.
But for --line-bytes=N, the restriction that N <= SIZE_MAX
remains (for now), due to the way it is implemented.

Include "inttostr.h".
(bytes_split, lines_split, line_bytes_split, main):
Use uintmax_t, not size_t, for file sizes.
(main): Give a better diagnostic for option arguments == 0.
Use umaxtostr to print file sizes.

21 years agotweak white-space to make backslashes line up
Jim Meyering [Wed, 9 Apr 2003 13:38:39 +0000 (13:38 +0000)]
tweak white-space to make backslashes line up

21 years ago(lines_split): Rename local, nlines -> n_lines.
Jim Meyering [Wed, 9 Apr 2003 13:25:48 +0000 (13:25 +0000)]
(lines_split): Rename local, nlines -> n_lines.

21 years agoalso check obsolete option -0
Jim Meyering [Wed, 9 Apr 2003 12:21:13 +0000 (12:21 +0000)]
also check obsolete option -0

21 years ago*** empty log message ***
Jim Meyering [Tue, 8 Apr 2003 12:53:58 +0000 (12:53 +0000)]
*** empty log message ***

21 years ago(usage): Mention that --directory (-d) works only on some systems.
Jim Meyering [Tue, 8 Apr 2003 12:53:53 +0000 (12:53 +0000)]
(usage): Mention that --directory (-d) works only on some systems.

21 years ago*** empty log message ***
Jim Meyering [Tue, 8 Apr 2003 12:53:26 +0000 (12:53 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Tue, 8 Apr 2003 11:50:23 +0000 (11:50 +0000)]
*** empty log message ***

21 years ago(main): Use STDIN_FILENO, not literal `0'.
Jim Meyering [Tue, 8 Apr 2003 11:49:57 +0000 (11:49 +0000)]
(main): Use STDIN_FILENO, not literal `0'.

21 years ago*** empty log message ***
Jim Meyering [Tue, 8 Apr 2003 11:46:05 +0000 (11:46 +0000)]
*** empty log message ***

21 years ago(TESTS): Add split-fail.
Jim Meyering [Tue, 8 Apr 2003 11:45:58 +0000 (11:45 +0000)]
(TESTS): Add split-fail.

21 years ago*** empty log message ***
Jim Meyering [Tue, 8 Apr 2003 11:45:44 +0000 (11:45 +0000)]
*** empty log message ***

21 years agoRun $PERL to see if it is available, rather than testing its value.
Jim Meyering [Tue, 8 Apr 2003 10:55:01 +0000 (10:55 +0000)]
Run $PERL to see if it is available, rather than testing its value.

21 years ago.
Jim Meyering [Tue, 8 Apr 2003 10:54:09 +0000 (10:54 +0000)]
.

21 years ago*** empty log message ***
Jim Meyering [Tue, 8 Apr 2003 10:14:19 +0000 (10:14 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Tue, 8 Apr 2003 09:51:57 +0000 (09:51 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Tue, 8 Apr 2003 09:51:17 +0000 (09:51 +0000)]
*** empty log message ***

21 years ago(main): Rename local variable: s/accum/n_units/.
Jim Meyering [Tue, 8 Apr 2003 09:50:50 +0000 (09:50 +0000)]
(main): Rename local variable: s/accum/n_units/.

21 years agoalso change NCHARS, in comments, to N_BYTES
Jim Meyering [Tue, 8 Apr 2003 09:39:08 +0000 (09:39 +0000)]
also change NCHARS, in comments, to N_BYTES

21 years agoRename local variables: nchars -> n_bytes.
Jim Meyering [Tue, 8 Apr 2003 09:30:09 +0000 (09:30 +0000)]
Rename local variables: nchars -> n_bytes.

21 years agoRemove note about Ultrix compilation failure.
Jim Meyering [Tue, 8 Apr 2003 09:23:09 +0000 (09:23 +0000)]
Remove note about Ultrix compilation failure.

21 years ago*** empty log message ***
Jim Meyering [Mon, 7 Apr 2003 18:12:37 +0000 (18:12 +0000)]
*** empty log message ***

21 years ago(jm_PREREQ_STAT): Add prerequisites and #includes for Ultrix 4.4.
Jim Meyering [Mon, 7 Apr 2003 18:12:31 +0000 (18:12 +0000)]
(jm_PREREQ_STAT): Add prerequisites and #includes for Ultrix 4.4.

21 years ago*** empty log message ***
Jim Meyering [Mon, 7 Apr 2003 18:11:47 +0000 (18:11 +0000)]
*** empty log message ***

21 years agoAdd #include directives for Ultrix 4.4.
Jim Meyering [Mon, 7 Apr 2003 18:11:39 +0000 (18:11 +0000)]
Add #include directives for Ultrix 4.4.
Based on a suggested change from Bert Deknuydt.

21 years ago*** empty log message ***
Jim Meyering [Mon, 7 Apr 2003 18:02:29 +0000 (18:02 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Sun, 6 Apr 2003 19:06:37 +0000 (19:06 +0000)]
*** empty log message ***

21 years ago(makefile-check): New rule.
Jim Meyering [Sun, 6 Apr 2003 19:06:26 +0000 (19:06 +0000)]
(makefile-check): New rule.
(local-check): Add it.

21 years ago.
Jim Meyering [Sat, 5 Apr 2003 18:04:06 +0000 (18:04 +0000)]
.

21 years ago*** empty log message ***
Jim Meyering [Sat, 5 Apr 2003 18:03:47 +0000 (18:03 +0000)]
*** empty log message ***

21 years agoUse $(VAR) rather than @VAR@, now that we can rely on automake to
Jim Meyering [Sat, 5 Apr 2003 18:03:39 +0000 (18:03 +0000)]
Use $(VAR) rather than @VAR@, now that we can rely on automake to
emit a definition for each substituted variable.

21 years ago*** empty log message ***
Jim Meyering [Sat, 5 Apr 2003 16:53:03 +0000 (16:53 +0000)]
*** empty log message ***

21 years ago(DEFS): Use += notation rather than `DEFS = ... @DEFS@'.
Jim Meyering [Sat, 5 Apr 2003 16:52:48 +0000 (16:52 +0000)]
(DEFS): Use += notation rather than `DEFS = ... @DEFS@'.
Use $(VAR) rather than @VAR@, now that we can rely on automake to
emit a definition for each substituted variable.

21 years ago*** empty log message ***
Jim Meyering [Sat, 5 Apr 2003 16:21:28 +0000 (16:21 +0000)]
*** empty log message ***

21 years agoAdd a comment explaining why this test fails when using Tru64's broken sed.
Jim Meyering [Sat, 5 Apr 2003 16:21:23 +0000 (16:21 +0000)]
Add a comment explaining why this test fails when using Tru64's broken sed.

21 years agoAdd a comment explaining why this test fails when using Tru64's broken sed.
Jim Meyering [Sat, 5 Apr 2003 16:20:41 +0000 (16:20 +0000)]
Add a comment explaining why this test fails when using Tru64's broken sed.

21 years ago*** empty log message ***
Jim Meyering [Sat, 5 Apr 2003 16:13:55 +0000 (16:13 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Sat, 5 Apr 2003 16:12:33 +0000 (16:12 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Sat, 5 Apr 2003 15:51:42 +0000 (15:51 +0000)]
*** empty log message ***

21 years agoMake `kill -t' output signal descriptions (not `?') on Tru64.
Jim Meyering [Sat, 5 Apr 2003 15:49:46 +0000 (15:49 +0000)]
Make `kill -t' output signal descriptions (not `?') on Tru64.
(sys_siglist): Also check for __sys_siglist.

21 years ago*** empty log message ***
Jim Meyering [Sat, 5 Apr 2003 15:46:01 +0000 (15:46 +0000)]
*** empty log message ***

21 years agoAlso check for declaration of __sys_siglist.
Jim Meyering [Sat, 5 Apr 2003 15:45:55 +0000 (15:45 +0000)]
Also check for declaration of __sys_siglist.
Required for Tru64 4.0D, 4.0F, and 5.1.

21 years agobump to 5.0.1
Jim Meyering [Sat, 5 Apr 2003 15:44:29 +0000 (15:44 +0000)]
bump to 5.0.1

21 years agofixed Ed Avis' mv bug
Jim Meyering [Fri, 4 Apr 2003 21:58:05 +0000 (21:58 +0000)]
fixed Ed Avis' mv bug

21 years ago*** empty log message ***
Jim Meyering [Fri, 4 Apr 2003 21:55:29 +0000 (21:55 +0000)]
*** empty log message ***

21 years ago(PERL): Remove unnecessary definition.
Jim Meyering [Fri, 4 Apr 2003 21:54:30 +0000 (21:54 +0000)]
(PERL): Remove unnecessary definition.

21 years agoBecause of inappropriate (but POSIX-mandated) behavior of rename,
Jim Meyering [Fri, 4 Apr 2003 21:53:27 +0000 (21:53 +0000)]
Because of inappropriate (but POSIX-mandated) behavior of rename,
`mv a b' would not remove `a' in some unusual cases.  Work around
this by unlinking `a' when necessary.

(same_file_ok): Add an output parameter.
Set it in the offending case.
(copy_internal): When necessary, unlink SRC_PATH and inform caller.

21 years ago*** empty log message ***
Jim Meyering [Fri, 4 Apr 2003 21:47:26 +0000 (21:47 +0000)]
*** empty log message ***

21 years ago(TESTS): Add hard-4.
Jim Meyering [Fri, 4 Apr 2003 21:45:20 +0000 (21:45 +0000)]
(TESTS): Add hard-4.

21 years ago*** empty log message ***
Jim Meyering [Fri, 4 Apr 2003 19:35:57 +0000 (19:35 +0000)]
*** empty log message ***

21 years ago[TEST_DIRNAME]: Update build instructions for test.
Jim Meyering [Fri, 4 Apr 2003 19:35:54 +0000 (19:35 +0000)]
[TEST_DIRNAME]: Update build instructions for test.
Add test-cases for DOS filenames. Declare program_name.
(main): Set up program_name.

21 years agoClean up rules for automatically generated sources:
Jim Meyering [Fri, 4 Apr 2003 16:03:50 +0000 (16:03 +0000)]
Clean up rules for automatically generated sources:

(dircolors.h, wheel-size.h, wheel.h, false.c):
Make each generated file be read-only.
Add each file name to BUILT_SOURCES separately.
(MAINTAINERCLEANFILES): Set to $(BUILT_SOURCES).

21 years ago*** empty log message ***
Jim Meyering [Fri, 4 Apr 2003 15:50:08 +0000 (15:50 +0000)]
*** empty log message ***

21 years agoPut LOCALEDIR macro definition in new file: localedir.h.
Jim Meyering [Fri, 4 Apr 2003 15:50:05 +0000 (15:50 +0000)]
Put LOCALEDIR macro definition in new file: localedir.h.

(DEFS): Remove definition.
(localedir.h): New rule.
(BUILT_SOURCES, DISTCLEANFILES): Add localedir.h.

21 years agoInclude "localedir.h".
Jim Meyering [Fri, 4 Apr 2003 15:49:48 +0000 (15:49 +0000)]
Include "localedir.h".

21 years ago*** empty log message ***
Jim Meyering [Fri, 4 Apr 2003 15:22:28 +0000 (15:22 +0000)]
*** empty log message ***

21 years ago(constants.texi): Rename target (thus enabling it),
Jim Meyering [Fri, 4 Apr 2003 15:22:05 +0000 (15:22 +0000)]
(constants.texi): Rename target (thus enabling it),
now that fileutils, textutils, and sh-utils have been merged.
(MAINTAINERCLEANFILES): Define.

21 years ago*** empty log message ***
Jim Meyering [Thu, 3 Apr 2003 13:11:05 +0000 (13:11 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Thu, 3 Apr 2003 13:09:50 +0000 (13:09 +0000)]
*** empty log message ***

21 years ago.
Jim Meyering [Wed, 2 Apr 2003 21:26:58 +0000 (21:26 +0000)]
.

21 years ago*** empty log message *** COREUTILS-5_0 v5.0
Jim Meyering [Wed, 2 Apr 2003 21:10:23 +0000 (21:10 +0000)]
*** empty log message ***

21 years ago.
Jim Meyering [Wed, 2 Apr 2003 21:09:04 +0000 (21:09 +0000)]
.

21 years agore-add it for 5.0
Jim Meyering [Wed, 2 Apr 2003 21:08:54 +0000 (21:08 +0000)]
re-add it for 5.0

21 years ago*** empty log message ***
Jim Meyering [Wed, 2 Apr 2003 18:45:14 +0000 (18:45 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Wed, 2 Apr 2003 18:42:12 +0000 (18:42 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Wed, 2 Apr 2003 18:22:14 +0000 (18:22 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Wed, 2 Apr 2003 18:19:56 +0000 (18:19 +0000)]
*** empty log message ***

21 years ago(false invocation): Note that false exits
Jim Meyering [Wed, 2 Apr 2003 18:19:53 +0000 (18:19 +0000)]
(false invocation): Note that false exits
unsuccessfully even with --help and --version.

21 years agoadd lost log entry:
Jim Meyering [Wed, 2 Apr 2003 18:14:04 +0000 (18:14 +0000)]
add lost log entry:

  2002-07-20  Jim Meyering  <jim@meyering.net>

  * Makefile.am (false.c): Convert only the final EXIT_SUCCESS
  into EXIT_FAILURE.  Otherwise, false --help and false --version
  would fail.

21 years ago*** empty log message ***
Jim Meyering [Wed, 2 Apr 2003 18:06:39 +0000 (18:06 +0000)]
*** empty log message ***

21 years ago(TESTS): Add false.
Jim Meyering [Wed, 2 Apr 2003 18:06:15 +0000 (18:06 +0000)]
(TESTS): Add false.

21 years ago.
Jim Meyering [Wed, 2 Apr 2003 14:46:13 +0000 (14:46 +0000)]
.

21 years agoRedirect stderr to /dev/null for initial perl invocation.
Jim Meyering [Wed, 2 Apr 2003 14:45:21 +0000 (14:45 +0000)]
Redirect stderr to /dev/null for initial perl invocation.

21 years ago*** empty log message ***
Jim Meyering [Wed, 2 Apr 2003 14:43:48 +0000 (14:43 +0000)]
*** empty log message ***

21 years ago(jm_PERL): Use $am_missing_run, not undefined $missing_dir.
Jim Meyering [Wed, 2 Apr 2003 14:43:41 +0000 (14:43 +0000)]
(jm_PERL): Use $am_missing_run, not undefined $missing_dir.

21 years ago.
Jim Meyering [Wed, 2 Apr 2003 10:20:58 +0000 (10:20 +0000)]
.

21 years ago*** empty log message ***
Jim Meyering [Wed, 2 Apr 2003 10:11:09 +0000 (10:11 +0000)]
*** empty log message ***

21 years ago(TMPDIR): Make sure it's defined.
Jim Meyering [Wed, 2 Apr 2003 10:10:58 +0000 (10:10 +0000)]
(TMPDIR): Make sure it's defined.
(my-distcheck): Build in $(TMPDIR), not `.'.

21 years agoBump version to 5.0.
Jim Meyering [Wed, 2 Apr 2003 10:09:25 +0000 (10:09 +0000)]
Bump version to 5.0.

21 years ago*** empty log message ***
Jim Meyering [Wed, 2 Apr 2003 07:21:46 +0000 (07:21 +0000)]
*** empty log message ***

21 years ago(false.c): Change all occurrences of `(EXIT_SUCCESS)' to `(EXIT_FAILURE)'.
Jim Meyering [Wed, 2 Apr 2003 07:21:40 +0000 (07:21 +0000)]
(false.c): Change all occurrences of `(EXIT_SUCCESS)' to `(EXIT_FAILURE)'.
Reported by Paul Jarc,

21 years ago*** empty log message ***
Jim Meyering [Wed, 2 Apr 2003 07:19:35 +0000 (07:19 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Tue, 1 Apr 2003 22:16:15 +0000 (22:16 +0000)]
*** empty log message ***

21 years ago(check-texinfo): Don't fail if perl is missing.
Jim Meyering [Tue, 1 Apr 2003 22:16:10 +0000 (22:16 +0000)]
(check-texinfo): Don't fail if perl is missing.

21 years ago.
Jim Meyering [Mon, 31 Mar 2003 19:29:25 +0000 (19:29 +0000)]
.

21 years ago*** empty log message ***
Jim Meyering [Mon, 31 Mar 2003 10:59:40 +0000 (10:59 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Sun, 30 Mar 2003 17:48:04 +0000 (17:48 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Sun, 30 Mar 2003 17:47:38 +0000 (17:47 +0000)]
*** empty log message ***

21 years agoNote the location of older NEWS files.
Jim Meyering [Sun, 30 Mar 2003 17:47:26 +0000 (17:47 +0000)]
Note the location of older NEWS files.

21 years ago*** empty log message ***
Jim Meyering [Sun, 30 Mar 2003 15:02:59 +0000 (15:02 +0000)]
*** empty log message ***

21 years ago(is_empty_dir): Don't let a failing closedir
Jim Meyering [Sun, 30 Mar 2003 15:02:55 +0000 (15:02 +0000)]
(is_empty_dir): Don't let a failing closedir
clobber errno.  Spotted by Arnold Robbins.

21 years ago*** empty log message ***
Jim Meyering [Sun, 30 Mar 2003 14:04:19 +0000 (14:04 +0000)]
*** empty log message ***

21 years agoFix typo in comment.
Jim Meyering [Sun, 30 Mar 2003 12:11:50 +0000 (12:11 +0000)]
Fix typo in comment.

21 years ago.
Jim Meyering [Sun, 30 Mar 2003 08:41:39 +0000 (08:41 +0000)]
.