Jim Meyering [Thu, 20 Sep 2001 14:46:55 +0000 (14:46 +0000)]
(strtoimax): Guard declaration with
`#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
have their own, conflicting declaration of strtoimax in sys/inttypes.h.
(strtoumax): Likewise, for completeness (it wasn't necessary).
Jim Meyering [Thu, 20 Sep 2001 14:41:51 +0000 (14:41 +0000)]
*** empty log message ***
Jim Meyering [Thu, 20 Sep 2001 14:41:43 +0000 (14:41 +0000)]
(jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of strtoumax.
Jim Meyering [Thu, 20 Sep 2001 14:41:26 +0000 (14:41 +0000)]
(jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of strtoumax.
Jim Meyering [Thu, 20 Sep 2001 08:44:22 +0000 (08:44 +0000)]
*** empty log message ***
Jim Meyering [Thu, 20 Sep 2001 08:44:12 +0000 (08:44 +0000)]
(MAX_ADDRESS_LENGTH, pseudo_offset, format_address,
n_bytes_to_skip, skip, format_address_none,
format_address_std, format_address_paren,
format_address_label, write_block, parse_old_offset, dump,
dump_strings, main):
Use uintmax_t, not off_t, for file addresses, so that we can
handle multiple large files even if the sum of their sizes
exceeds off_t limits.
(print_s_char, print_char, print_s_short, print_short,
print_int, print_long, print_long_long, print_float,
print_double, print_long_double, dump_hexl_mode_trailer,
print_named_ascii, print_ascii, decode_one_format):
Use size_t, not off_t, for in-memory byte counts.
(end_offset): New var.
(dump, dump_strings): Use it.
(main): Set it, but check for overflow while doing so.
(skip): Report an error if an in-range lseek fails on a
regular file, as something's seriously wrong. Check for
negative regular file sizes (possible with some broken NFS
implementations).
(parse_old_offset): Now all offsets are valid, so return a
success boolean and take a pointer to an offset as an argument.
All callers changed.
(dump_strings): Check for overflow when computing end_offset -
string_min.
(main): Remove OFF_T_MAX checks that are no longer needed.
Don't bother assigning through temporary when there's no size
limit to check.
Jim Meyering [Wed, 19 Sep 2001 11:30:58 +0000 (11:30 +0000)]
.
Jim Meyering [Wed, 19 Sep 2001 10:52:03 +0000 (10:52 +0000)]
*** empty log message ***
Jim Meyering [Wed, 19 Sep 2001 10:34:47 +0000 (10:34 +0000)]
*** empty log message ***
Jim Meyering [Wed, 19 Sep 2001 10:28:09 +0000 (10:28 +0000)]
(open_next_file): Use SETVBUF, not setbuf.
(skip): Revert part of last change: use lseek, not fseek.
Jim Meyering [Wed, 19 Sep 2001 10:19:19 +0000 (10:19 +0000)]
When --read-bytes=N (-N N) is used, disable input buffering in
the standard I/O library. Otherwise, od would read more input
than requested. This could have caused problems when reading
from pipes, character devices, and open file descriptors inherited
from a parent process.
* src/od.c (open_next_file): New function, factored out of...
(skip): Adapt to use open_next_file.
(read_char): Likewise.
(read_block): Likewise.
(main): Likewise.
(dump): Fix an off-by-one error that could have made od fail to
report a read error when reading from a named file (not stdin).
(check_and_close): Account for the fact that in_stream may now be NULL.
(usage): Correct descriptions of -j and -N options.
Patch by Ian Bruce.
Jim Meyering [Mon, 17 Sep 2001 21:44:03 +0000 (21:44 +0000)]
Use AC_DEFINE rather than AC_DEFINE_UNQUOTED, whenever the right hand side need not be expanded by the shell.
Jim Meyering [Mon, 17 Sep 2001 21:43:41 +0000 (21:43 +0000)]
.
Jim Meyering [Mon, 17 Sep 2001 19:32:52 +0000 (19:32 +0000)]
*** empty log message ***
Jim Meyering [Mon, 17 Sep 2001 19:32:45 +0000 (19:32 +0000)]
(jm_FUNC_FNMATCH): Remove test for GNU C
library. It's not correct, as some older glibcs are buggy.
fnmatch wasn't fixed until glibc 2.2.
Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
special shell magic here.
Jim Meyering [Mon, 17 Sep 2001 10:24:27 +0000 (10:24 +0000)]
*** empty log message ***
Jim Meyering [Mon, 17 Sep 2001 10:24:20 +0000 (10:24 +0000)]
(HAVE_LONG_LONG): Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
(strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
to work around bug in IBM C compiler.
Jim Meyering [Mon, 17 Sep 2001 10:21:08 +0000 (10:21 +0000)]
*** empty log message ***
Jim Meyering [Mon, 17 Sep 2001 10:20:50 +0000 (10:20 +0000)]
(usage): Fix typo in -g usage.
-H now means --dereference-command-line.
Jim Meyering [Mon, 17 Sep 2001 10:11:42 +0000 (10:11 +0000)]
*** empty log message ***
Jim Meyering [Mon, 17 Sep 2001 10:11:27 +0000 (10:11 +0000)]
(main): Change the `ignoring excess arguments' diagnostic
to list the first one we're ignoring. Suggestion from Karl Berry.
Jim Meyering [Sun, 16 Sep 2001 20:14:25 +0000 (20:14 +0000)]
*** empty log message ***
Jim Meyering [Sun, 16 Sep 2001 20:11:36 +0000 (20:11 +0000)]
*** empty log message ***
Jim Meyering [Sun, 16 Sep 2001 20:10:06 +0000 (20:10 +0000)]
(usage): Prefix each line with a space, so that
help2man produces a better stty.1 man page.
Jim Meyering [Sun, 16 Sep 2001 19:58:00 +0000 (19:58 +0000)]
(usage): Describe -h option.
From Michael Stone. http://bugs.debian.org/99272
Jim Meyering [Sun, 16 Sep 2001 19:55:07 +0000 (19:55 +0000)]
*** empty log message ***
Jim Meyering [Sun, 16 Sep 2001 19:54:53 +0000 (19:54 +0000)]
Add note to help people understand that this documentation
may not refer to the (shell built-in) command they're running.
Jim Meyering [Sun, 16 Sep 2001 19:54:29 +0000 (19:54 +0000)]
Add note to help people understand this documentation
may not refer to the (shell built-in) command they're running.
Jim Meyering [Sun, 16 Sep 2001 19:49:47 +0000 (19:49 +0000)]
*** empty log message ***
Jim Meyering [Sun, 16 Sep 2001 16:07:07 +0000 (16:07 +0000)]
tweak line in help output
Jim Meyering [Sun, 16 Sep 2001 15:52:41 +0000 (15:52 +0000)]
*** empty log message ***
Jim Meyering [Sun, 16 Sep 2001 15:52:04 +0000 (15:52 +0000)]
(mv invocation): Describe new option: --reply={yes,no,query}. Fix a few typos.
Jim Meyering [Sun, 16 Sep 2001 15:30:48 +0000 (15:30 +0000)]
*** empty log message ***
Jim Meyering [Sun, 16 Sep 2001 12:43:54 +0000 (12:43 +0000)]
.
Jim Meyering [Sun, 16 Sep 2001 12:43:33 +0000 (12:43 +0000)]
.
Jim Meyering [Sun, 16 Sep 2001 12:42:14 +0000 (12:42 +0000)]
*** empty log message ***
Jim Meyering [Sun, 16 Sep 2001 12:32:26 +0000 (12:32 +0000)]
.
Jim Meyering [Sun, 16 Sep 2001 12:32:12 +0000 (12:32 +0000)]
*** empty log message ***
Jim Meyering [Sun, 16 Sep 2001 12:32:07 +0000 (12:32 +0000)]
(UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
Jim Meyering [Sun, 16 Sep 2001 12:31:55 +0000 (12:31 +0000)]
(UTILS_FUNC_MKDIR_TRAILING_SLASH): Require it.
Jim Meyering [Sun, 16 Sep 2001 09:30:07 +0000 (09:30 +0000)]
.
Jim Meyering [Sun, 16 Sep 2001 09:28:42 +0000 (09:28 +0000)]
*** empty log message ***
Jim Meyering [Sun, 16 Sep 2001 09:28:34 +0000 (09:28 +0000)]
(digest_check): On systems for which setmode actually
does something, arrange to read the file containing checksum strings
in text mode. Based on a patch from Chris Faylor.
Jim Meyering [Sun, 16 Sep 2001 09:27:58 +0000 (09:27 +0000)]
(SET_MODE): Define.
Jim Meyering [Sun, 16 Sep 2001 09:26:10 +0000 (09:26 +0000)]
*** empty log message ***
Jim Meyering [Sun, 16 Sep 2001 09:23:42 +0000 (09:23 +0000)]
*** empty log message ***
Jim Meyering [Sun, 16 Sep 2001 07:02:38 +0000 (07:02 +0000)]
*** empty log message ***
Jim Meyering [Sun, 16 Sep 2001 07:02:26 +0000 (07:02 +0000)]
(uniq invocation): The input need not
be sorted. Try to clarify -d versus -D versus -u.
Jim Meyering [Sat, 15 Sep 2001 22:51:06 +0000 (22:51 +0000)]
.
Jim Meyering [Sat, 15 Sep 2001 22:50:05 +0000 (22:50 +0000)]
.
Jim Meyering [Sat, 15 Sep 2001 21:34:50 +0000 (21:34 +0000)]
*** empty log message ***
Jim Meyering [Sat, 15 Sep 2001 21:34:44 +0000 (21:34 +0000)]
Check for help2man.
Jim Meyering [Sat, 15 Sep 2001 21:31:09 +0000 (21:31 +0000)]
*** empty log message ***
Jim Meyering [Sat, 15 Sep 2001 18:46:23 +0000 (18:46 +0000)]
renamed from ginstall.x
Jim Meyering [Sat, 15 Sep 2001 17:08:27 +0000 (17:08 +0000)]
(TESTS): Add fail-diag.
Jim Meyering [Sat, 15 Sep 2001 17:07:54 +0000 (17:07 +0000)]
*** empty log message ***
Jim Meyering [Sat, 15 Sep 2001 17:07:24 +0000 (17:07 +0000)]
(EISDIR): Define to 0, if not already defined.
(touch): Give a better diagnostic for e.g., `touch /' by non-root.
Based on a patch from Michael Stone.
Reported by Jeff Sheinberg as Debian bug #101677.
Jim Meyering [Sat, 15 Sep 2001 12:53:11 +0000 (12:53 +0000)]
.
Jim Meyering [Sat, 15 Sep 2001 12:52:55 +0000 (12:52 +0000)]
*** empty log message ***
Jim Meyering [Sat, 15 Sep 2001 12:46:05 +0000 (12:46 +0000)]
(UNWRITABLE): Define (factored out of copy_internal).
(copy_internal): Use UNWRITABLE.
Jim Meyering [Sat, 15 Sep 2001 12:34:17 +0000 (12:34 +0000)]
(copy_internal) [move_mode]: Support the new
--reply=... option.
Jim Meyering [Sat, 15 Sep 2001 11:38:36 +0000 (11:38 +0000)]
Accept new option: --reply={yes,no,query}
Include argmatch.h.
(enum) [REPLY_OPTION]: Define.
(usage): Describe new option.
Split long usage string into smaller pieces.
(main): Handle new option.
Jim Meyering [Sat, 15 Sep 2001 11:21:23 +0000 (11:21 +0000)]
(main): Reflect renaming: s/I_ON/I_ASK_USER/.
Jim Meyering [Sat, 15 Sep 2001 11:20:47 +0000 (11:20 +0000)]
(enum Interactive): Remove members, I_OFF and I_ON.
Instead, add I_ALWAYS_YES, I_ALWAYS_NO, and I_ASK_USER.
Jim Meyering [Sat, 15 Sep 2001 11:18:51 +0000 (11:18 +0000)]
*** empty log message ***
Jim Meyering [Sat, 15 Sep 2001 11:18:40 +0000 (11:18 +0000)]
Clean up: use priv-check rather than open-coding it.
Jim Meyering [Sat, 15 Sep 2001 11:16:12 +0000 (11:16 +0000)]
*** empty log message ***
Jim Meyering [Sat, 15 Sep 2001 11:15:56 +0000 (11:15 +0000)]
(main): Don't strip trailing slashes; POSIX doesn't allow it here.
Don't include "dirname.h" when no longer needed.
Jim Meyering [Sat, 15 Sep 2001 11:14:49 +0000 (11:14 +0000)]
(main): Don't strip trailing slashes; POSIX doesn't allow it here.
Don't include "dirname.h" when no longer needed.
Jim Meyering [Sat, 15 Sep 2001 11:14:09 +0000 (11:14 +0000)]
(main): Don't strip trailing slashes; POSIX doesn't allow it here.
Don't include "dirname.h" when no longer needed.
Jim Meyering [Sat, 15 Sep 2001 10:32:36 +0000 (10:32 +0000)]
(main): Don't strip trailing slashes; POSIX doesn't allow it here.
Don't include "dirname.h" when no longer needed.
Jim Meyering [Sat, 15 Sep 2001 10:32:05 +0000 (10:32 +0000)]
(main): Don't strip trailing slashes; POSIX doesn't allow it here.
Don't include "dirname.h" when no longer needed.
Jim Meyering [Wed, 12 Sep 2001 09:07:40 +0000 (09:07 +0000)]
*** empty log message ***
Jim Meyering [Wed, 12 Sep 2001 09:07:35 +0000 (09:07 +0000)]
The command `echo a|./fmt -
2147483647' would cause fmt to segfault.
(fmt_paragraph): Test for sentinal directly, rather than
doing arithmetic with it's potentially large (INT_MAX) length.
Jim Meyering [Wed, 12 Sep 2001 09:05:27 +0000 (09:05 +0000)]
*** empty log message ***
Jim Meyering [Wed, 12 Sep 2001 09:04:52 +0000 (09:04 +0000)]
Add wide-1 and wide-2.
Jim Meyering [Wed, 12 Sep 2001 07:45:27 +0000 (07:45 +0000)]
*** empty log message ***
Jim Meyering [Wed, 12 Sep 2001 07:37:50 +0000 (07:37 +0000)]
*** empty log message ***
Jim Meyering [Wed, 12 Sep 2001 07:31:25 +0000 (07:31 +0000)]
*** empty log message ***
Jim Meyering [Wed, 12 Sep 2001 07:31:19 +0000 (07:31 +0000)]
(tail invocation): Document new option: -F.
From Herbert Xu.
Jim Meyering [Wed, 12 Sep 2001 07:30:29 +0000 (07:30 +0000)]
*** empty log message ***
Jim Meyering [Wed, 12 Sep 2001 07:28:06 +0000 (07:28 +0000)]
*** empty log message ***
Jim Meyering [Wed, 12 Sep 2001 07:27:29 +0000 (07:27 +0000)]
tail: accept new option: -F, equivalent to `--follow=name --retry',
for compatibility with FreeBSD and NetBSD versions of tail.
(usage): Describe new option.
(parse_options): Accept it.
Jim Meyering [Wed, 12 Sep 2001 06:41:01 +0000 (06:41 +0000)]
The command `echo foo| fmt -w 100000' would cause fmt to segfault.
[struct Word]: Declare members length, space, and
line_length to be of type `int', not short.
(MAXCOST): Define using TYPE_MAXIMUM.
Jim Meyering [Tue, 11 Sep 2001 20:12:26 +0000 (20:12 +0000)]
.
Jim Meyering [Tue, 11 Sep 2001 20:11:47 +0000 (20:11 +0000)]
.
Jim Meyering [Tue, 11 Sep 2001 20:11:37 +0000 (20:11 +0000)]
*** empty log message ***
Jim Meyering [Tue, 11 Sep 2001 20:11:30 +0000 (20:11 +0000)]
Require UTILS_HOST_OS.
Jim Meyering [Tue, 11 Sep 2001 20:11:04 +0000 (20:11 +0000)]
*** empty log message ***
Jim Meyering [Tue, 11 Sep 2001 20:10:44 +0000 (20:10 +0000)]
(UTILS_HOST_OS): New file/macro.
The body, by Paul Eggert, was moved here from configure.in.
Jim Meyering [Sun, 9 Sep 2001 18:40:45 +0000 (18:40 +0000)]
*** empty log message ***
Jim Meyering [Sun, 9 Sep 2001 18:40:24 +0000 (18:40 +0000)]
(binary_operator): Correct typo in diagnostic.
From Jochen Hein.
Jim Meyering [Sat, 8 Sep 2001 13:23:31 +0000 (13:23 +0000)]
*** empty log message ***
Jim Meyering [Sat, 8 Sep 2001 13:23:22 +0000 (13:23 +0000)]
(TESTS): Add i-4.
Jim Meyering [Sat, 8 Sep 2001 13:22:58 +0000 (13:22 +0000)]
*** empty log message ***
Jim Meyering [Sat, 8 Sep 2001 13:22:41 +0000 (13:22 +0000)]
(copy_internal): Add braces around now-multi-stmt
if-block. This fixes a bug introduced by my 2001-08-06 change.
Jim Meyering [Fri, 7 Sep 2001 09:47:46 +0000 (09:47 +0000)]
*** empty log message ***
Jim Meyering [Fri, 7 Sep 2001 09:47:10 +0000 (09:47 +0000)]
*** empty log message ***
Jim Meyering [Fri, 7 Sep 2001 09:46:49 +0000 (09:46 +0000)]
*** empty log message ***
Jim Meyering [Fri, 7 Sep 2001 09:44:07 +0000 (09:44 +0000)]
New 'uname' options -i or --hardware-platform,
and -o or --operating-system.
'uname -a' now outputs -i and -o information at the end.
New uname option --kernel-version is an alias for -v.
Uname option --release has been renamed to --kernel-release,
and --sysname has been renamed to --kernel-name;
the old options will work for a while, but are no longer documented.