Age | Commit message (Collapse) | Author |
|
(copy_internal): Rename parameter, move_mode, to
command_line_arg, and adjust caller. Now, move_mode is a local
that is derived from command_line_arg.
Factor some involved code to produce something slightly more readable.
Use x->move_mode, not move_mode in determining which diagnostic
to give (`backing up %s would destroy source; %s not moved').
|
|
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.
|
|
(skip): Revert part of last change: use lseek, not fseek.
|
|
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.
|
|
-H now means --dereference-command-line.
|
|
to list the first one we're ignoring. Suggestion from Karl Berry.
|
|
help2man produces a better stty.1 man page.
|
|
From Michael Stone. http://bugs.debian.org/99272
|
|
|
|
does something, arrange to read the file containing checksum strings
in text mode. Based on a patch from Chris Faylor.
|
|
|
|
(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.
|
|
(copy_internal): Use UNWRITABLE.
|
|
--reply=... option.
|
|
Include argmatch.h.
(enum) [REPLY_OPTION]: Define.
(usage): Describe new option.
Split long usage string into smaller pieces.
(main): Handle new option.
|
|
|
|
Instead, add I_ALWAYS_YES, I_ALWAYS_NO, and I_ASK_USER.
|
|
Don't include "dirname.h" when no longer needed.
|
|
Don't include "dirname.h" when no longer needed.
|
|
Don't include "dirname.h" when no longer needed.
|
|
Don't include "dirname.h" when no longer needed.
|
|
Don't include "dirname.h" when no longer needed.
|
|
(fmt_paragraph): Test for sentinal directly, rather than
doing arithmetic with it's potentially large (INT_MAX) length.
|
|
for compatibility with FreeBSD and NetBSD versions of tail.
(usage): Describe new option.
(parse_options): Accept it.
|
|
[struct Word]: Declare members length, space, and
line_length to be of type `int', not short.
(MAXCOST): Define using TYPE_MAXIMUM.
|
|
From Jochen Hein.
|
|
if-block. This fixes a bug introduced by my 2001-08-06 change.
|
|
Remove list of options in comment, which wasn't
worth maintaining separately from usage().
(print_element): Move definition up, avoiding the need for
declaration and allowing inlining on some platforms.
Keep track of whether something has been printed; this is more
natural than modifying `toprint'.
(PRINT_KERNEL_NAME): Renamed from PRINT_SYSNAME.
(PRINT_KERNEL_RELEASE): Renamed from PRINT_RELEASE.
(PRINT_KERNEL_VERSION): Renamed from PRINT_VERSION.
(PRINT_HARDWARE_PLATFORM, PRINT_OPERATING_SYSTEM): New macros.
(toprint): Remove global var; now local in `main'.
(long_options, usage, main): Implement changes described in NEWS.
Reorder options to reflect output order.
(main): Use buffers one byte longer, for compatibility with Solaris 8.
Output newline at end. -a sets `toprint' to -1 now; this is simpler.
Do not bother invoking system calls like uname if the resulting
information does not need to be printed.
Do not fail if sysinfo fails; just print "unknown".
|
|
|
|
[HAVE_RESOLVEPATH], [!HAVE_RESOLVEPATH]: Use malloc, not alloca,
so that these two paths also produce `resolved' in malloc'd storage.
Free that memory when done with it.
|
|
|
|
(get_link_name): Don't use PATH_MAX.
Rewrite to use xreadlink.
|
|
(TRUE): Define to `true', not 1.
(FALSE): Define to `false', not 0.
|
|
|
|
|
|
|
|
|
|
|
|
(full_write): Remove decl; not needed.
|
|
|
|
(full_write): Remove decl; not needed.
(simple_cat, cat): Don't assume read and write size fits in int.
|
|
|
|
|
|
|
|
(full_write): Remove decl; not needed.
(open_fd): Don't assume read and write size fits in int.
|
|
(full_write): Remove decl; not needed.
(copy_reg): Don't assume read and write size fits in int.
|
|
* src/system.h: ...to here.
|
|
|
|
|
|
|