platform/upstream/coreutils.git
21 years ago(print_factors):
Jim Meyering [Tue, 5 Nov 2002 20:17:28 +0000 (20:17 +0000)]
(print_factors):
Use primitives from inttostr.h, not human.h, to print large numbers simply.

21 years ago(print_stats, main):
Jim Meyering [Tue, 5 Nov 2002 20:16:31 +0000 (20:16 +0000)]
(print_stats, main):
Use primitives from inttostr.h, not human.h, to print large numbers simply.

21 years ago(handle_line_error, parse_patterns):
Jim Meyering [Tue, 5 Nov 2002 20:14:41 +0000 (20:14 +0000)]
(handle_line_error, parse_patterns):
Use primitives from inttostr.h, not human.h, to print large numbers simply.

21 years ago(cksum): Use primitives from inttostr.h, not
Jim Meyering [Tue, 5 Nov 2002 17:22:55 +0000 (17:22 +0000)]
(cksum): Use primitives from inttostr.h, not
human.h, to print large numbers simply.

21 years ago*** empty log message ***
Jim Meyering [Sat, 19 Oct 2002 16:34:37 +0000 (16:34 +0000)]
*** empty log message ***

21 years ago(cwrite): Change type of `bytes' parameter to size_t
Jim Meyering [Sat, 19 Oct 2002 16:34:25 +0000 (16:34 +0000)]
(cwrite): Change type of `bytes' parameter to size_t
Remove now-useless cast.
(stdread): Remove function.
(bytes_split): Use size_t instead of int.
Use safe_read, not stdread.
(lines_split): Likewise.
Use memchr rather than a `while' loop.
(line_bytes_split): Use size_t instead of int.
Use safe_read, not stdread.
(main): Add some FIXME comments to remind me to remove casts.

21 years ago*** empty log message ***
Jim Meyering [Sat, 19 Oct 2002 13:49:38 +0000 (13:49 +0000)]
*** empty log message ***

21 years agoRewrite to support locale-specific
Jim Meyering [Sat, 19 Oct 2002 13:48:04 +0000 (13:48 +0000)]
Rewrite to support locale-specific
notations like thousands separators.
Specify what includer of include.h must include beforehand.
(human_group_digits, human_suppress_point_zero, human_autoscale,
human_base_1024, human_SI, human_B): New enum values.
(human_readable): Rename from human_readable_inexact; put the
options before the sizes.  All uses changed.  The old human_readable
function has been removed; use inttostr.h instead.
(human_options): Renamed from human_block_size, with new signature
that allows block sizes up to UINTMAX_MAX.  All callers changed.

21 years ago*** empty log message ***
Jim Meyering [Sat, 19 Oct 2002 12:55:11 +0000 (12:55 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Sat, 19 Oct 2002 12:54:29 +0000 (12:54 +0000)]
*** empty log message ***

21 years ago(libfetish_a_SOURCES): Add imaxtostr.c, offtostr.c, umaxtostr.c.
Jim Meyering [Sat, 19 Oct 2002 12:54:23 +0000 (12:54 +0000)]
(libfetish_a_SOURCES): Add imaxtostr.c, offtostr.c, umaxtostr.c.
(EXTRA_DIST): Add inttostr.c.

21 years agoNew files. From GNU tar.
Jim Meyering [Sat, 19 Oct 2002 12:34:03 +0000 (12:34 +0000)]
New files.  From GNU tar.

21 years ago*** empty log message ***
Jim Meyering [Sat, 19 Oct 2002 07:58:09 +0000 (07:58 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Sat, 19 Oct 2002 07:57:08 +0000 (07:57 +0000)]
*** empty log message ***

21 years ago(print_heading): Align TTY and Name headings.
Jim Meyering [Sat, 19 Oct 2002 07:55:15 +0000 (07:55 +0000)]
(print_heading): Align TTY and Name headings.

21 years ago*** empty log message ***
Jim Meyering [Fri, 18 Oct 2002 06:49:24 +0000 (06:49 +0000)]
*** empty log message ***

21 years ago(ST_BLKSIZE): Correct comment describing how to
Jim Meyering [Fri, 18 Oct 2002 06:49:15 +0000 (06:49 +0000)]
(ST_BLKSIZE): Correct comment describing how to
reproduce HPUX-11 cat failure.

21 years ago*** empty log message ***
Jim Meyering [Thu, 17 Oct 2002 15:08:19 +0000 (15:08 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Thu, 17 Oct 2002 15:07:47 +0000 (15:07 +0000)]
*** empty log message ***

21 years agoFix a problem that could make cat misbehave on systems which
Jim Meyering [Thu, 17 Oct 2002 15:06:36 +0000 (15:06 +0000)]
Fix a problem that could make cat misbehave on systems which
give invalid (unreasonably large) values for stat.st_blksize.
(ST_BLKSIZE): Ensure that the result is in [1..4MB].

21 years agobump to 4.5.4
Jim Meyering [Tue, 15 Oct 2002 14:24:48 +0000 (14:24 +0000)]
bump to 4.5.4

21 years ago*** empty log message ***
Jim Meyering [Mon, 14 Oct 2002 08:30:56 +0000 (08:30 +0000)]
*** empty log message ***

21 years ago.
Jim Meyering [Mon, 14 Oct 2002 08:30:22 +0000 (08:30 +0000)]
.

21 years ago*** empty log message ***
Jim Meyering [Mon, 14 Oct 2002 08:29:50 +0000 (08:29 +0000)]
*** empty log message ***

21 years agoSpecifying a printf conversion specifer as nl's separator string
Jim Meyering [Mon, 14 Oct 2002 08:29:41 +0000 (08:29 +0000)]
Specifying a printf conversion specifer as nl's separator string
could cause nl to segfault.

(build_print_fmt): Don't include separator string
in the printf format; it might contain `%'.
Use a better bound on the length of the print_fmt buffer.
(print_lineno): Print the separator here instead.

21 years ago*** empty log message ***
Jim Meyering [Mon, 14 Oct 2002 08:29:22 +0000 (08:29 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Mon, 14 Oct 2002 08:29:17 +0000 (08:29 +0000)]
*** empty log message ***

21 years ago(TESTS): Add nl.
Jim Meyering [Mon, 14 Oct 2002 08:19:31 +0000 (08:19 +0000)]
(TESTS): Add nl.

21 years ago*** empty log message ***
Jim Meyering [Mon, 14 Oct 2002 08:19:13 +0000 (08:19 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Sun, 13 Oct 2002 22:11:44 +0000 (22:11 +0000)]
*** empty log message ***

21 years agoNew test, to make sure `split --lines=N' works.
Jim Meyering [Sun, 13 Oct 2002 22:11:13 +0000 (22:11 +0000)]
New test, to make sure `split --lines=N' works.

21 years ago*** empty log message ***
Jim Meyering [Sun, 13 Oct 2002 22:10:58 +0000 (22:10 +0000)]
*** empty log message ***

21 years ago(TESTS): Add split-l.
Jim Meyering [Sun, 13 Oct 2002 22:10:20 +0000 (22:10 +0000)]
(TESTS): Add split-l.

21 years ago*** empty log message ***
Jim Meyering [Sun, 13 Oct 2002 20:01:59 +0000 (20:01 +0000)]
*** empty log message ***

21 years ago.
Jim Meyering [Sun, 13 Oct 2002 18:30:13 +0000 (18:30 +0000)]
.

21 years ago. COREUTILS-4_5_3 v4.5.3
Jim Meyering [Sun, 13 Oct 2002 17:38:42 +0000 (17:38 +0000)]
.

21 years ago*** empty log message ***
Jim Meyering [Sun, 13 Oct 2002 14:02:50 +0000 (14:02 +0000)]
*** empty log message ***

21 years ago(usage): Tweak description of --dereference-args/-D.
Jim Meyering [Sun, 13 Oct 2002 14:02:42 +0000 (14:02 +0000)]
(usage): Tweak description of --dereference-args/-D.

21 years ago*** empty log message ***
Jim Meyering [Sun, 13 Oct 2002 14:01:59 +0000 (14:01 +0000)]
*** empty log message ***

21 years ago(count_entry): Also save cwd when dereferencing (via --dereference-args, -D)
Jim Meyering [Sun, 13 Oct 2002 13:59:25 +0000 (13:59 +0000)]
(count_entry): Also save cwd when dereferencing (via --dereference-args, -D)
a command-line argument.
Reported by Michal Svec.  Based on a patch by Andreas Schwab.

21 years agowhoops
Jim Meyering [Sun, 13 Oct 2002 13:33:05 +0000 (13:33 +0000)]
whoops

21 years ago*** empty log message ***
Jim Meyering [Sun, 13 Oct 2002 12:23:29 +0000 (12:23 +0000)]
*** empty log message ***

21 years ago(initialized): Remove declaration now that it's unused.
Jim Meyering [Sun, 13 Oct 2002 12:23:25 +0000 (12:23 +0000)]
(initialized): Remove declaration now that it's unused.

21 years agoThere's no need to futz with the rounding mode,
Jim Meyering [Sun, 13 Oct 2002 12:22:26 +0000 (12:22 +0000)]
There's no need to futz with the rounding mode,
since the code should work properly even in the default rounding mode.
(<fenv.h>): Do not include.
(#pragma STDC FENV_ACCESS ON): Remove.
(xnanosleep): Don't futz with rounding state.

21 years ago*** empty log message ***
Jim Meyering [Sun, 13 Oct 2002 12:20:44 +0000 (12:20 +0000)]
*** empty log message ***

21 years ago(jm_CHECK_ALL_HEADERS): Remove fenv.h.
Jim Meyering [Sun, 13 Oct 2002 12:20:35 +0000 (12:20 +0000)]
(jm_CHECK_ALL_HEADERS): Remove fenv.h.

21 years agoupdate comment
Jim Meyering [Sun, 13 Oct 2002 06:50:11 +0000 (06:50 +0000)]
update comment

21 years ago(../AUTHORS): Make it read-only.
Jim Meyering [Sun, 13 Oct 2002 06:48:42 +0000 (06:48 +0000)]
(../AUTHORS): Make it read-only.

21 years ago.
Jim Meyering [Sun, 13 Oct 2002 06:47:23 +0000 (06:47 +0000)]
.

21 years ago*** empty log message ***
Jim Meyering [Sun, 13 Oct 2002 06:47:13 +0000 (06:47 +0000)]
*** empty log message ***

21 years ago(../AUTHORS): New target/rule.
Jim Meyering [Sun, 13 Oct 2002 06:47:07 +0000 (06:47 +0000)]
(../AUTHORS): New target/rule.

21 years ago.
Jim Meyering [Sun, 13 Oct 2002 06:04:38 +0000 (06:04 +0000)]
.

21 years ago*** empty log message ***
Jim Meyering [Sun, 13 Oct 2002 06:04:27 +0000 (06:04 +0000)]
*** empty log message ***

21 years ago(paste_parallel): Declare local var, `delims_saved', to be
Jim Meyering [Sat, 12 Oct 2002 10:19:17 +0000 (10:19 +0000)]
(paste_parallel): Declare local var, `delims_saved', to be
of type size_t, since that's the way it's used and avoids a warning.

21 years ago(struct cstring) [len]: Declare to be unsigned int,
Jim Meyering [Sat, 12 Oct 2002 09:44:06 +0000 (09:44 +0000)]
(struct cstring) [len]: Declare to be unsigned int,
since that's how it's always used and avoids a new warning from gcc.
(read_input): Adapt to new safe_read ABI.

21 years ago(cut_fields): Add a temporary size_t variable, n_bytes, to avoid warnings.
Jim Meyering [Sat, 12 Oct 2002 09:40:02 +0000 (09:40 +0000)]
(cut_fields): Add a temporary size_t variable, n_bytes, to avoid warnings.

21 years ago(print_long_entry): fread returns size_t.
Jim Meyering [Sat, 12 Oct 2002 09:33:34 +0000 (09:33 +0000)]
(print_long_entry): fread returns size_t.
Declare local `bytes' accordingly, to avoid warning.

21 years ago*** empty log message ***
Jim Meyering [Sat, 12 Oct 2002 08:42:38 +0000 (08:42 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Sat, 12 Oct 2002 08:39:34 +0000 (08:39 +0000)]
*** empty log message ***

21 years agotail -c +N would perform an extra read after encountering EOF
Jim Meyering [Sat, 12 Oct 2002 08:39:12 +0000 (08:39 +0000)]
tail -c +N would perform an extra read after encountering EOF
[this change is analogous (bytes vs. lines) to the one of 2002-01-27]

(start_bytes): Detect EOF, inform caller.
(tail_bytes): Upon EOF in start_bytes, return immediately.
(file_lines): Reorganize to use memrchr rather than an explicit loop.
Adapt to new safe_read ABI.

21 years ago*** empty log message ***
Jim Meyering [Fri, 11 Oct 2002 20:03:44 +0000 (20:03 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Fri, 11 Oct 2002 20:02:21 +0000 (20:02 +0000)]
*** empty log message ***

21 years ago(TESTS): Add deref.
Jim Meyering [Fri, 11 Oct 2002 19:59:31 +0000 (19:59 +0000)]
(TESTS): Add deref.

21 years ago*** empty log message ***
Jim Meyering [Fri, 11 Oct 2002 19:58:32 +0000 (19:58 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Fri, 11 Oct 2002 19:56:56 +0000 (19:56 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Thu, 10 Oct 2002 15:48:53 +0000 (15:48 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Thu, 10 Oct 2002 08:32:43 +0000 (08:32 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Thu, 10 Oct 2002 08:32:14 +0000 (08:32 +0000)]
*** empty log message ***

21 years agoNew file/test, for the fix on 2002-10-08.
Jim Meyering [Thu, 10 Oct 2002 08:31:29 +0000 (08:31 +0000)]
New file/test, for the fix on 2002-10-08.

21 years ago(TESTS): Add target-1.
Jim Meyering [Thu, 10 Oct 2002 08:31:02 +0000 (08:31 +0000)]
(TESTS): Add target-1.

21 years ago*** empty log message ***
Jim Meyering [Thu, 10 Oct 2002 07:57:35 +0000 (07:57 +0000)]
*** empty log message ***

21 years ago.
Jim Meyering [Thu, 10 Oct 2002 07:27:18 +0000 (07:27 +0000)]
.

21 years ago(wc): Adapt to new safe_read ABI.
Jim Meyering [Wed, 9 Oct 2002 15:07:52 +0000 (15:07 +0000)]
(wc): Adapt to new safe_read ABI.

21 years ago*** empty log message ***
Jim Meyering [Wed, 9 Oct 2002 13:28:55 +0000 (13:28 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Wed, 9 Oct 2002 08:10:03 +0000 (08:10 +0000)]
*** empty log message ***

21 years agoEnsure that certain environment variables
Jim Meyering [Wed, 9 Oct 2002 08:09:57 +0000 (08:09 +0000)]
Ensure that certain environment variables
are not set (e.g., SIMPLA_BACKUP_SUFFIX).

21 years ago*** empty log message ***
Jim Meyering [Wed, 9 Oct 2002 08:09:35 +0000 (08:09 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Wed, 9 Oct 2002 07:28:19 +0000 (07:28 +0000)]
*** empty log message ***

21 years agoMark this as an expensive test; it would
Jim Meyering [Wed, 9 Oct 2002 07:28:11 +0000 (07:28 +0000)]
Mark this as an expensive test; it would
consume 4GB of disk space on systems without support for sparse files.
Fix a logic error that'd make it `cat err' even though dd didn't fail.

21 years ago*** empty log message ***
Jim Meyering [Wed, 9 Oct 2002 07:16:17 +0000 (07:16 +0000)]
*** empty log message ***

21 years ago(.jar): Fix typo: s/01;3/01;31/.
Jim Meyering [Wed, 9 Oct 2002 07:11:44 +0000 (07:11 +0000)]
(.jar): Fix typo: s/01;3/01;31/.

21 years ago*** empty log message ***
Jim Meyering [Wed, 9 Oct 2002 07:00:27 +0000 (07:00 +0000)]
*** empty log message ***

21 years agoEnsure that ls produces English messages.
Jim Meyering [Wed, 9 Oct 2002 07:00:14 +0000 (07:00 +0000)]
Ensure that ls produces English messages.

21 years ago*** empty log message ***
Jim Meyering [Wed, 9 Oct 2002 06:59:54 +0000 (06:59 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Tue, 8 Oct 2002 14:26:19 +0000 (14:26 +0000)]
*** empty log message ***

21 years ago(main): Fix target_directory parsing when n_files == 1.
Jim Meyering [Tue, 8 Oct 2002 14:25:49 +0000 (14:25 +0000)]
(main): Fix target_directory parsing when n_files == 1.
Patch by Dmitry V. Levin.

21 years agoFix syntax in test: use =, not ==.
Jim Meyering [Tue, 8 Oct 2002 09:25:34 +0000 (09:25 +0000)]
Fix syntax in test: use =, not ==.

21 years ago*** empty log message ***
Jim Meyering [Tue, 8 Oct 2002 09:22:25 +0000 (09:22 +0000)]
*** empty log message ***

21 years agoUse double quotes around diagnostic.
Jim Meyering [Tue, 8 Oct 2002 09:21:08 +0000 (09:21 +0000)]
Use double quotes around diagnostic.

21 years agoUse double quotes around diagnostic.
Jim Meyering [Tue, 8 Oct 2002 09:18:12 +0000 (09:18 +0000)]
Use double quotes around diagnostic.

21 years ago(save_stdin, tac_stdin_to_mem): Adapt to new safe_read ABI.
Jim Meyering [Tue, 8 Oct 2002 07:20:28 +0000 (07:20 +0000)]
(save_stdin, tac_stdin_to_mem): Adapt to new safe_read ABI.

21 years agoRename local variable: chars_read -> bytes_read
Jim Meyering [Tue, 8 Oct 2002 07:14:48 +0000 (07:14 +0000)]
Rename local variable: chars_read -> bytes_read

21 years ago(squeeze_filter, read_and_delete, read_and_xlate): Adapt to new safe_read ABI.
Jim Meyering [Tue, 8 Oct 2002 07:13:56 +0000 (07:13 +0000)]
(squeeze_filter, read_and_delete, read_and_xlate): Adapt to new safe_read ABI.

21 years ago(sysv_sum_file): Adapt to new safe_read ABI.
Jim Meyering [Tue, 8 Oct 2002 07:11:03 +0000 (07:11 +0000)]
(sysv_sum_file): Adapt to new safe_read ABI.

21 years ago*** empty log message ***
Jim Meyering [Tue, 8 Oct 2002 06:21:55 +0000 (06:21 +0000)]
*** empty log message ***

21 years ago(cat): Don't advance the write pointer past the end of the write buffer.
Jim Meyering [Tue, 8 Oct 2002 06:21:31 +0000 (06:21 +0000)]
(cat): Don't advance the write pointer past the end of the write buffer.

21 years ago(begfield, limfield): Don't advance the write pointer past the
Jim Meyering [Tue, 8 Oct 2002 06:19:00 +0000 (06:19 +0000)]
(begfield, limfield): Don't advance the write pointer past the
end of the write buffer.

21 years ago(head_bytes, head_lines): Adapt to new safe_read ABI.
Jim Meyering [Mon, 7 Oct 2002 05:13:59 +0000 (05:13 +0000)]
(head_bytes, head_lines): Adapt to new safe_read ABI.

21 years ago*** empty log message ***
Jim Meyering [Mon, 7 Oct 2002 05:13:34 +0000 (05:13 +0000)]
*** empty log message ***

21 years ago(scanargs): Ensure that specified block sizes (specified
Jim Meyering [Sun, 6 Oct 2002 16:17:56 +0000 (16:17 +0000)]
(scanargs): Ensure that specified block sizes (specified
via ibs=N, obs=N, and bs=N) are no larger than SSIZE_MAX.
(skip, dd_copy): Adapt to new safe_read ABI.