Jim Meyering [Sat, 9 Nov 2002 00:30:33 +0000 (00:30 +0000)]
(jm_FUNC_GETGROUPS):
Fix typo: cv_func_getgroups_works -> ac_cv_func_getgroups_works.
Jim Meyering [Fri, 8 Nov 2002 23:20:38 +0000 (23:20 +0000)]
*** empty log message ***
Jim Meyering [Fri, 8 Nov 2002 22:59:57 +0000 (22:59 +0000)]
*** empty log message ***
Jim Meyering [Fri, 8 Nov 2002 22:59:53 +0000 (22:59 +0000)]
(jm_PREREQ_HUMAN): Check for locale.h, localeconv,
AC_HEADER_STDBOOL. No need to check for limits.h since it's in
freestanding C89. No need to check for stdlib.h or string.h since
autoconf does this now.
Jim Meyering [Fri, 8 Nov 2002 17:13:51 +0000 (17:13 +0000)]
use only my permanent address
Jim Meyering [Fri, 8 Nov 2002 17:12:51 +0000 (17:12 +0000)]
use only my permanent address
Jim Meyering [Fri, 8 Nov 2002 17:12:27 +0000 (17:12 +0000)]
Use only my permanent address.
Jim Meyering [Fri, 8 Nov 2002 15:33:58 +0000 (15:33 +0000)]
*** empty log message ***
Jim Meyering [Fri, 8 Nov 2002 15:33:30 +0000 (15:33 +0000)]
(human_readable): Avoid warnings from gcc -Wshadow.
Jim Meyering [Fri, 8 Nov 2002 09:41:37 +0000 (09:41 +0000)]
(human_output_opts): New var.
(output_block_size): Now uintmax_t, not int, to handle larger
block sizes. All uses changed.
Jim Meyering [Fri, 8 Nov 2002 09:39:36 +0000 (09:39 +0000)]
(print_header): Use primitives from inttostr.h, not
human.h, to print large numbers simply.
(human_output_opts): New var.
(output_block_size): Now uintmax_t, not int, to handle larger
block sizes. All uses changed.
(print_header): In the header line, prefer SI to human
representation if it's shorter; if neither is shorter, try to
intuit what the user would prefer.
Jim Meyering [Thu, 7 Nov 2002 00:29:24 +0000 (00:29 +0000)]
update from master
Jim Meyering [Thu, 7 Nov 2002 00:28:52 +0000 (00:28 +0000)]
update from master
Jim Meyering [Wed, 6 Nov 2002 16:27:45 +0000 (16:27 +0000)]
*** empty log message ***
Jim Meyering [Wed, 6 Nov 2002 16:27:39 +0000 (16:27 +0000)]
(automake_repo): Use anoncvs@subversions.gnu.org.
Jim Meyering [Wed, 6 Nov 2002 11:37:47 +0000 (11:37 +0000)]
.
Jim Meyering [Wed, 6 Nov 2002 11:37:15 +0000 (11:37 +0000)]
*** empty log message ***
Jim Meyering [Wed, 6 Nov 2002 11:37:11 +0000 (11:37 +0000)]
(EXTRA_DIST): Add inttostr.h.
Jim Meyering [Wed, 6 Nov 2002 11:02:56 +0000 (11:02 +0000)]
(print_long_format, print_file_name_and_frills):
Use primitives from inttostr.h, not
human.h, to print large numbers simply.
(human_output_opts): New var.
(output_block_size): Now uintmax_t, not int, to handle larger
block sizes. All uses changed.
(file_output_block_size): New var, to distinguish
file sizes from other sizes.
(decode_switches): Set it.
Jim Meyering [Wed, 6 Nov 2002 10:37:29 +0000 (10:37 +0000)]
*** empty log message ***
Jim Meyering [Wed, 6 Nov 2002 10:37:24 +0000 (10:37 +0000)]
(printf invocation): Fix typo in index: change \0x prefix to \x.
Change \xhhh to \xhh.
Jim Meyering [Wed, 6 Nov 2002 10:32:46 +0000 (10:32 +0000)]
*** empty log message ***
Jim Meyering [Wed, 6 Nov 2002 10:32:41 +0000 (10:32 +0000)]
Add support for locale-specific size indications (e.g.,
thousands-separators) and for explicit size suffixes on output.
(Block size): Say that:
This affects display format as well as block size.
Fractional block counts are rounded up.
ls file size blocksize defaults to 1.
A block size spec preceded by ' generates thousands separators.
A suffix without a preceding integer generates suffixes.
(tail invocation): 32k -> 32 KiB.
(What information is listed): ls -h is now equivalent to
ls --block-size=human, and ls -H is now equivalent to
ls --block-size=si. Displayed file size is now always affected by
--block-size.
Jim Meyering [Wed, 6 Nov 2002 10:28:11 +0000 (10:28 +0000)]
*** empty log message ***
Jim Meyering [Wed, 6 Nov 2002 10:28:02 +0000 (10:28 +0000)]
(usage): Update description.
Jim Meyering [Wed, 6 Nov 2002 09:23:55 +0000 (09:23 +0000)]
*** empty log message ***
Jim Meyering [Wed, 6 Nov 2002 09:23:50 +0000 (09:23 +0000)]
(TESTS): Add printf-hex.
Jim Meyering [Wed, 6 Nov 2002 09:23:33 +0000 (09:23 +0000)]
*** empty log message ***
Jim Meyering [Wed, 6 Nov 2002 09:23:23 +0000 (09:23 +0000)]
Be careful to test the code in this package, not the shell built-in function.
Jim Meyering [Wed, 6 Nov 2002 09:21:59 +0000 (09:21 +0000)]
*** empty log message ***
Jim Meyering [Wed, 6 Nov 2002 09:19:50 +0000 (09:19 +0000)]
Make sure that only two of the `H's in \xHHH are consumed
as part of the \x escape sequence.
Jim Meyering [Wed, 6 Nov 2002 09:04:50 +0000 (09:04 +0000)]
(print_esc): Hexadecimal \xhh escapes may have
at most two hex. digits, not three.
Jim Meyering [Tue, 5 Nov 2002 20:37:20 +0000 (20:37 +0000)]
(inttostr): Remove; use new imaxtostr library function instead.
Jim Meyering [Tue, 5 Nov 2002 20:34:00 +0000 (20:34 +0000)]
(checkfp): Use primitives from inttostr.h, not human.h,
to print large numbers simply.
Jim Meyering [Tue, 5 Nov 2002 20:33:35 +0000 (20:33 +0000)]
(bsd_sum_file, sysv_sym_file):
Use primitives from inttostr.h, not human.h, to print large numbers simply.
Jim Meyering [Tue, 5 Nov 2002 20:32:55 +0000 (20:32 +0000)]
(xlseek):
Use primitives from inttostr.h, not human.h, to print large numbers simply.
Jim Meyering [Tue, 5 Nov 2002 20:30:43 +0000 (20:30 +0000)]
(write_counts, wc):
Use primitives from inttostr.h, not human.h, to print large numbers simply.
Jim Meyering [Tue, 5 Nov 2002 20:28:36 +0000 (20:28 +0000)]
(dopass):
Use primitives from inttostr.h, not human.h, to print large numbers simply.
(OUTPUT_BLOCK_SIZE): remove.
(dopass): When printing progress, use floor for what has been done
so far (since we should be conservative there), and ceiling for
what needs to be done (since that's what other programs use).
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.
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.
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.
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.
Jim Meyering [Sat, 19 Oct 2002 16:34:37 +0000 (16:34 +0000)]
*** empty log message ***
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.
Jim Meyering [Sat, 19 Oct 2002 13:49:38 +0000 (13:49 +0000)]
*** empty log message ***
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.
Jim Meyering [Sat, 19 Oct 2002 12:55:11 +0000 (12:55 +0000)]
*** empty log message ***
Jim Meyering [Sat, 19 Oct 2002 12:54:29 +0000 (12:54 +0000)]
*** empty log message ***
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.
Jim Meyering [Sat, 19 Oct 2002 12:34:03 +0000 (12:34 +0000)]
New files. From GNU tar.
Jim Meyering [Sat, 19 Oct 2002 07:58:09 +0000 (07:58 +0000)]
*** empty log message ***
Jim Meyering [Sat, 19 Oct 2002 07:57:08 +0000 (07:57 +0000)]
*** empty log message ***
Jim Meyering [Sat, 19 Oct 2002 07:55:15 +0000 (07:55 +0000)]
(print_heading): Align TTY and Name headings.
Jim Meyering [Fri, 18 Oct 2002 06:49:24 +0000 (06:49 +0000)]
*** empty log message ***
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.
Jim Meyering [Thu, 17 Oct 2002 15:08:19 +0000 (15:08 +0000)]
*** empty log message ***
Jim Meyering [Thu, 17 Oct 2002 15:07:47 +0000 (15:07 +0000)]
*** empty log message ***
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].
Jim Meyering [Tue, 15 Oct 2002 14:24:48 +0000 (14:24 +0000)]
bump to 4.5.4
Jim Meyering [Mon, 14 Oct 2002 08:30:56 +0000 (08:30 +0000)]
*** empty log message ***
Jim Meyering [Mon, 14 Oct 2002 08:30:22 +0000 (08:30 +0000)]
.
Jim Meyering [Mon, 14 Oct 2002 08:29:50 +0000 (08:29 +0000)]
*** empty log message ***
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.
Jim Meyering [Mon, 14 Oct 2002 08:29:22 +0000 (08:29 +0000)]
*** empty log message ***
Jim Meyering [Mon, 14 Oct 2002 08:29:17 +0000 (08:29 +0000)]
*** empty log message ***
Jim Meyering [Mon, 14 Oct 2002 08:19:31 +0000 (08:19 +0000)]
(TESTS): Add nl.
Jim Meyering [Mon, 14 Oct 2002 08:19:13 +0000 (08:19 +0000)]
*** empty log message ***
Jim Meyering [Sun, 13 Oct 2002 22:11:44 +0000 (22:11 +0000)]
*** empty log message ***
Jim Meyering [Sun, 13 Oct 2002 22:11:13 +0000 (22:11 +0000)]
New test, to make sure `split --lines=N' works.
Jim Meyering [Sun, 13 Oct 2002 22:10:58 +0000 (22:10 +0000)]
*** empty log message ***
Jim Meyering [Sun, 13 Oct 2002 22:10:20 +0000 (22:10 +0000)]
(TESTS): Add split-l.
Jim Meyering [Sun, 13 Oct 2002 20:01:59 +0000 (20:01 +0000)]
*** empty log message ***
Jim Meyering [Sun, 13 Oct 2002 18:30:13 +0000 (18:30 +0000)]
.
Jim Meyering [Sun, 13 Oct 2002 17:38:42 +0000 (17:38 +0000)]
.
Jim Meyering [Sun, 13 Oct 2002 14:02:50 +0000 (14:02 +0000)]
*** empty log message ***
Jim Meyering [Sun, 13 Oct 2002 14:02:42 +0000 (14:02 +0000)]
(usage): Tweak description of --dereference-args/-D.
Jim Meyering [Sun, 13 Oct 2002 14:01:59 +0000 (14:01 +0000)]
*** empty log message ***
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.
Jim Meyering [Sun, 13 Oct 2002 13:33:05 +0000 (13:33 +0000)]
whoops
Jim Meyering [Sun, 13 Oct 2002 12:23:29 +0000 (12:23 +0000)]
*** empty log message ***
Jim Meyering [Sun, 13 Oct 2002 12:23:25 +0000 (12:23 +0000)]
(initialized): Remove declaration now that it's unused.
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.
Jim Meyering [Sun, 13 Oct 2002 12:20:44 +0000 (12:20 +0000)]
*** empty log message ***
Jim Meyering [Sun, 13 Oct 2002 12:20:35 +0000 (12:20 +0000)]
(jm_CHECK_ALL_HEADERS): Remove fenv.h.
Jim Meyering [Sun, 13 Oct 2002 06:50:11 +0000 (06:50 +0000)]
update comment
Jim Meyering [Sun, 13 Oct 2002 06:48:42 +0000 (06:48 +0000)]
(../AUTHORS): Make it read-only.
Jim Meyering [Sun, 13 Oct 2002 06:47:23 +0000 (06:47 +0000)]
.
Jim Meyering [Sun, 13 Oct 2002 06:47:13 +0000 (06:47 +0000)]
*** empty log message ***
Jim Meyering [Sun, 13 Oct 2002 06:47:07 +0000 (06:47 +0000)]
(../AUTHORS): New target/rule.
Jim Meyering [Sun, 13 Oct 2002 06:04:38 +0000 (06:04 +0000)]
.
Jim Meyering [Sun, 13 Oct 2002 06:04:27 +0000 (06:04 +0000)]
*** empty log message ***
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.
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.
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.
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.
Jim Meyering [Sat, 12 Oct 2002 08:42:38 +0000 (08:42 +0000)]
*** empty log message ***
Jim Meyering [Sat, 12 Oct 2002 08:39:34 +0000 (08:39 +0000)]
*** empty log message ***
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.
Jim Meyering [Fri, 11 Oct 2002 20:03:44 +0000 (20:03 +0000)]
*** empty log message ***
Jim Meyering [Fri, 11 Oct 2002 20:02:21 +0000 (20:02 +0000)]
*** empty log message ***