platform/upstream/coreutils.git
21 years ago*** empty log message ***
Jim Meyering [Sun, 10 Nov 2002 20:15:59 +0000 (20:15 +0000)]
*** empty log message ***

21 years ago(sighandler): Handle SIGTSTP specially.
Jim Meyering [Sun, 10 Nov 2002 20:15:54 +0000 (20:15 +0000)]
(sighandler): Handle SIGTSTP specially.
Based on suggestions from Solar Designer and Dmitry V. Levin.
Add comments.

21 years ago*** empty log message ***
Jim Meyering [Sun, 10 Nov 2002 14:34:29 +0000 (14:34 +0000)]
*** empty log message ***

21 years ago(cvs_files): Define. From autoconf.
Jim Meyering [Sun, 10 Nov 2002 14:34:23 +0000 (14:34 +0000)]
(cvs_files): Define.  From autoconf.
(local_updates): Likewise.

21 years ago*** empty log message ***
Jim Meyering [Sun, 10 Nov 2002 13:33:04 +0000 (13:33 +0000)]
*** empty log message ***

21 years ago.
Jim Meyering [Sun, 10 Nov 2002 11:12:13 +0000 (11:12 +0000)]
.

21 years ago*** empty log message ***
Jim Meyering [Sun, 10 Nov 2002 11:11:39 +0000 (11:11 +0000)]
*** empty log message ***

21 years ago(restore_default_color_handler, sigtstp_handler): Remove functions.
Jim Meyering [Sun, 10 Nov 2002 11:11:34 +0000 (11:11 +0000)]
(restore_default_color_handler, sigtstp_handler): Remove functions.
(sighandler): New function, based on the one in sort.c.
(main): Use sigaction, if possible; otherwise signal.
Handle these signals:
SIGHUP, SIGINT, SIGPIPE, SIGQUIT, SIGTERM, SIGTSTP.
Don't register our handler if the signal is already being ignored.

21 years ago(main): Also declare `i' to be unsigned, not int.
Jim Meyering [Sun, 10 Nov 2002 10:23:41 +0000 (10:23 +0000)]
(main): Also declare `i' to be unsigned, not int.

21 years ago*** empty log message ***
Jim Meyering [Sun, 10 Nov 2002 09:56:28 +0000 (09:56 +0000)]
*** empty log message ***

21 years ago(sighandler): Use raise, rather than kill+getpid.
Jim Meyering [Sun, 10 Nov 2002 09:56:19 +0000 (09:56 +0000)]
(sighandler): Use raise, rather than kill+getpid.
(main): Declare `nsigs' to be unsigned, not int.

21 years ago(interrupt_handler): Use raise, rather than kill+getpid.
Jim Meyering [Sun, 10 Nov 2002 09:54:37 +0000 (09:54 +0000)]
(interrupt_handler): Use raise, rather than kill+getpid.

21 years ago(interrupt_handler): Use raise, rather than kill+getpid.
Jim Meyering [Sun, 10 Nov 2002 09:53:57 +0000 (09:53 +0000)]
(interrupt_handler): Use raise, rather than kill+getpid.

21 years agoUse a return stmt. This isn't Perl.
Jim Meyering [Sun, 10 Nov 2002 09:51:37 +0000 (09:51 +0000)]
Use a return stmt.  This isn't Perl.

21 years agoDuh. add missing semicolon
Jim Meyering [Sun, 10 Nov 2002 09:50:59 +0000 (09:50 +0000)]
Duh.  add missing semicolon
Include unistd.h.

21 years ago*** empty log message ***
Jim Meyering [Sun, 10 Nov 2002 09:46:14 +0000 (09:46 +0000)]
*** empty log message ***

21 years ago(jm_MACROS): Add AC_REPLACE_FUNCS(raise).
Jim Meyering [Sun, 10 Nov 2002 09:46:10 +0000 (09:46 +0000)]
(jm_MACROS): Add AC_REPLACE_FUNCS(raise).

21 years ago*** empty log message ***
Jim Meyering [Sun, 10 Nov 2002 09:44:05 +0000 (09:44 +0000)]
*** empty log message ***

21 years agocorrect indentation
Jim Meyering [Sat, 9 Nov 2002 22:36:58 +0000 (22:36 +0000)]
correct indentation

21 years agols --color: restore terminal state (color) upon signal.
Jim Meyering [Sat, 9 Nov 2002 22:27:27 +0000 (22:27 +0000)]
ls --color: restore terminal state (color) upon signal.

Include "full-write.h" and <signal.h>.
(restore_default_color, restore_default_color_handler): New functions.
(sigtstp_handler, put_indicator_direct): New functions.
(main) [print_with_color]: Register signal handlers.
Patch mostly by Solar Designer and Stanislav Ievlev.

21 years ago*** empty log message ***
Jim Meyering [Sat, 9 Nov 2002 22:21:31 +0000 (22:21 +0000)]
*** empty log message ***

21 years ago.
Jim Meyering [Sat, 9 Nov 2002 22:01:56 +0000 (22:01 +0000)]
.

21 years ago(human_readable): Revamp to avoid warning about unused
Jim Meyering [Sat, 9 Nov 2002 21:46:45 +0000 (21:46 +0000)]
(human_readable): Revamp to avoid warning about unused
variable 'amt'.  Unfortunately this means using some gotos.

21 years ago*** empty log message ***
Jim Meyering [Sat, 9 Nov 2002 19:53:46 +0000 (19:53 +0000)]
*** empty log message ***

21 years ago(What information is listed): Correct parts of --dired description.
Jim Meyering [Sat, 9 Nov 2002 19:53:25 +0000 (19:53 +0000)]
(What information is listed): Correct parts of --dired description.
Include a lot more description, with examples.

21 years ago*** empty log message ***
Jim Meyering [Sat, 9 Nov 2002 16:40:00 +0000 (16:40 +0000)]
*** empty log message ***

21 years ago(EXTRA_LOCALE_CATEGORIES): Add LC_TIME.
Jim Meyering [Sat, 9 Nov 2002 16:39:53 +0000 (16:39 +0000)]
(EXTRA_LOCALE_CATEGORIES): Add LC_TIME.
Patch by Tim Waugh for Red Hat bug #73669.

21 years ago*** empty log message ***
Jim Meyering [Sat, 9 Nov 2002 12:39:42 +0000 (12:39 +0000)]
*** empty log message ***

21 years agoMake it work even when names contain spaces or shell metachars.
Jim Meyering [Sat, 9 Nov 2002 12:39:34 +0000 (12:39 +0000)]
Make it work even when names contain spaces or shell metachars.

Write diagnostics to stderr, not stdout.
Normalize spacing in diagnostics: use one space (not two, and not a TAB)
after the leading `install:'.
Add double quotes around `$src' here: $doit $instcmd "$src" "$dsttmp"

21 years agoMerge in some changes from the version in automake.
Jim Meyering [Sat, 9 Nov 2002 12:34:27 +0000 (12:34 +0000)]
Merge in some changes from the version in automake.

Remove unnecessary quotes around `case' argument.
Use `[ cond1 ] || [ cond2 ]' rather than `[ cond1 -o cond2 ]'.
Use `:' rather than `true'.

21 years ago.
Jim Meyering [Sat, 9 Nov 2002 11:36:51 +0000 (11:36 +0000)]
.

21 years ago*** empty log message ***
Jim Meyering [Sat, 9 Nov 2002 11:34:57 +0000 (11:34 +0000)]
*** empty log message ***

21 years agoUpdate from autoconf.
Jim Meyering [Sat, 9 Nov 2002 11:34:42 +0000 (11:34 +0000)]
Update from autoconf.
(AMTAR): Remove definition.
(update, cvs-update, po-update, do-po-update): New rules.
(wget-update): Update (thus renaming to cvs-update).
(automake_repo): Use anoncvs@sources.redhat.com.

21 years ago.
Jim Meyering [Sat, 9 Nov 2002 00:34:25 +0000 (00:34 +0000)]
.

21 years ago*** empty log message ***
Jim Meyering [Sat, 9 Nov 2002 00:30:37 +0000 (00:30 +0000)]
*** empty log message ***

21 years ago(jm_FUNC_GETGROUPS):
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.

21 years ago*** empty log message ***
Jim Meyering [Fri, 8 Nov 2002 23:20:38 +0000 (23:20 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Fri, 8 Nov 2002 22:59:57 +0000 (22:59 +0000)]
*** empty log message ***

21 years ago(jm_PREREQ_HUMAN): Check for locale.h, localeconv,
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.

21 years agouse only my permanent address
Jim Meyering [Fri, 8 Nov 2002 17:13:51 +0000 (17:13 +0000)]
use only my permanent address

21 years agouse only my permanent address
Jim Meyering [Fri, 8 Nov 2002 17:12:51 +0000 (17:12 +0000)]
use only my permanent address

21 years agoUse only my permanent address.
Jim Meyering [Fri, 8 Nov 2002 17:12:27 +0000 (17:12 +0000)]
Use only my permanent address.

21 years ago*** empty log message ***
Jim Meyering [Fri, 8 Nov 2002 15:33:58 +0000 (15:33 +0000)]
*** empty log message ***

21 years ago(human_readable): Avoid warnings from gcc -Wshadow.
Jim Meyering [Fri, 8 Nov 2002 15:33:30 +0000 (15:33 +0000)]
(human_readable): Avoid warnings from gcc -Wshadow.

21 years ago(human_output_opts): New var.
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.

21 years ago(print_header): Use primitives from inttostr.h, not
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.

21 years agoupdate from master
Jim Meyering [Thu, 7 Nov 2002 00:29:24 +0000 (00:29 +0000)]
update from master

21 years agoupdate from master
Jim Meyering [Thu, 7 Nov 2002 00:28:52 +0000 (00:28 +0000)]
update from master

21 years ago*** empty log message ***
Jim Meyering [Wed, 6 Nov 2002 16:27:45 +0000 (16:27 +0000)]
*** empty log message ***

21 years ago(automake_repo): Use anoncvs@subversions.gnu.org.
Jim Meyering [Wed, 6 Nov 2002 16:27:39 +0000 (16:27 +0000)]
(automake_repo): Use anoncvs@subversions.gnu.org.

21 years ago.
Jim Meyering [Wed, 6 Nov 2002 11:37:47 +0000 (11:37 +0000)]
.

21 years ago*** empty log message ***
Jim Meyering [Wed, 6 Nov 2002 11:37:15 +0000 (11:37 +0000)]
*** empty log message ***

21 years ago(EXTRA_DIST): Add inttostr.h.
Jim Meyering [Wed, 6 Nov 2002 11:37:11 +0000 (11:37 +0000)]
(EXTRA_DIST): Add inttostr.h.

21 years ago(print_long_format, print_file_name_and_frills):
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.

21 years ago*** empty log message ***
Jim Meyering [Wed, 6 Nov 2002 10:37:29 +0000 (10:37 +0000)]
*** empty log message ***

21 years ago(printf invocation): Fix typo in index: change \0x prefix to \x.
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.

21 years ago*** empty log message ***
Jim Meyering [Wed, 6 Nov 2002 10:32:46 +0000 (10:32 +0000)]
*** empty log message ***

21 years agoAdd support for locale-specific size indications (e.g.,
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.

21 years ago*** empty log message ***
Jim Meyering [Wed, 6 Nov 2002 10:28:11 +0000 (10:28 +0000)]
*** empty log message ***

21 years ago(usage): Update description.
Jim Meyering [Wed, 6 Nov 2002 10:28:02 +0000 (10:28 +0000)]
(usage): Update description.

21 years ago*** empty log message ***
Jim Meyering [Wed, 6 Nov 2002 09:23:55 +0000 (09:23 +0000)]
*** empty log message ***

21 years ago(TESTS): Add printf-hex.
Jim Meyering [Wed, 6 Nov 2002 09:23:50 +0000 (09:23 +0000)]
(TESTS): Add printf-hex.

21 years ago*** empty log message ***
Jim Meyering [Wed, 6 Nov 2002 09:23:33 +0000 (09:23 +0000)]
*** empty log message ***

21 years agoBe careful to test the code in this package, not the shell built-in function.
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.

21 years ago*** empty log message ***
Jim Meyering [Wed, 6 Nov 2002 09:21:59 +0000 (09:21 +0000)]
*** empty log message ***

21 years agoMake sure that only two of the `H's in \xHHH are consumed
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.

21 years ago(print_esc): Hexadecimal \xhh escapes may have
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.

21 years ago(inttostr): Remove; use new imaxtostr library function instead.
Jim Meyering [Tue, 5 Nov 2002 20:37:20 +0000 (20:37 +0000)]
(inttostr): Remove; use new imaxtostr library function instead.

21 years ago(checkfp): Use primitives from inttostr.h, not human.h,
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.

21 years ago(bsd_sum_file, sysv_sym_file):
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.

21 years ago(xlseek):
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.

21 years ago(write_counts, wc):
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.

21 years ago(dopass):
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).

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