summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2001-09-22Mostly clean-up (modulo the better diagnostic).Jim Meyering
(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').
2001-09-20(MAX_ADDRESS_LENGTH, pseudo_offset, format_address,Jim Meyering
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.
2001-09-19(open_next_file): Use SETVBUF, not setbuf.Jim Meyering
(skip): Revert part of last change: use lseek, not fseek.
2001-09-19When --read-bytes=N (-N N) is used, disable input buffering inJim Meyering
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.
2001-09-17(usage): Fix typo in -g usage.Jim Meyering
-H now means --dereference-command-line.
2001-09-17(main): Change the `ignoring excess arguments' diagnosticJim Meyering
to list the first one we're ignoring. Suggestion from Karl Berry.
2001-09-16(usage): Prefix each line with a space, so thatJim Meyering
help2man produces a better stty.1 man page.
2001-09-16(usage): Describe -h option.Jim Meyering
From Michael Stone. http://bugs.debian.org/99272
2001-09-16tweak line in help outputJim Meyering
2001-09-16(digest_check): On systems for which setmode actuallyJim Meyering
does something, arrange to read the file containing checksum strings in text mode. Based on a patch from Chris Faylor.
2001-09-16(SET_MODE): Define.Jim Meyering
2001-09-15(EISDIR): Define to 0, if not already defined.Jim Meyering
(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.
2001-09-15(UNWRITABLE): Define (factored out of copy_internal).Jim Meyering
(copy_internal): Use UNWRITABLE.
2001-09-15(copy_internal) [move_mode]: Support the newJim Meyering
--reply=... option.
2001-09-15Accept new option: --reply={yes,no,query}Jim Meyering
Include argmatch.h. (enum) [REPLY_OPTION]: Define. (usage): Describe new option. Split long usage string into smaller pieces. (main): Handle new option.
2001-09-15(main): Reflect renaming: s/I_ON/I_ASK_USER/.Jim Meyering
2001-09-15(enum Interactive): Remove members, I_OFF and I_ON.Jim Meyering
Instead, add I_ALWAYS_YES, I_ALWAYS_NO, and I_ASK_USER.
2001-09-15(main): Don't strip trailing slashes; POSIX doesn't allow it here.Jim Meyering
Don't include "dirname.h" when no longer needed.
2001-09-15(main): Don't strip trailing slashes; POSIX doesn't allow it here.Jim Meyering
Don't include "dirname.h" when no longer needed.
2001-09-15(main): Don't strip trailing slashes; POSIX doesn't allow it here.Jim Meyering
Don't include "dirname.h" when no longer needed.
2001-09-15(main): Don't strip trailing slashes; POSIX doesn't allow it here.Jim Meyering
Don't include "dirname.h" when no longer needed.
2001-09-15(main): Don't strip trailing slashes; POSIX doesn't allow it here.Jim Meyering
Don't include "dirname.h" when no longer needed.
2001-09-12The command `echo a|./fmt -2147483647' would cause fmt to segfault.Jim Meyering
(fmt_paragraph): Test for sentinal directly, rather than doing arithmetic with it's potentially large (INT_MAX) length.
2001-09-12tail: accept new option: -F, equivalent to `--follow=name --retry',Jim Meyering
for compatibility with FreeBSD and NetBSD versions of tail. (usage): Describe new option. (parse_options): Accept it.
2001-09-12The command `echo foo| fmt -w 100000' would cause fmt to segfault.Jim Meyering
[struct Word]: Declare members length, space, and line_length to be of type `int', not short. (MAXCOST): Define using TYPE_MAXIMUM.
2001-09-09(binary_operator): Correct typo in diagnostic.Jim Meyering
From Jochen Hein.
2001-09-08(copy_internal): Add braces around now-multi-stmtJim Meyering
if-block. This fixes a bug introduced by my 2001-08-06 change.
2001-09-07Correct copyright notice as per latest coding standards.Jim Meyering
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".
2001-09-04(get_link_name): Update use of xreadlink.Jim Meyering
2001-09-01(show_point): Use canonicalize_file_name, if possible.Jim Meyering
[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.
2001-09-01(get_link_name): Restore error-handling that was removed by preceding delta.Jim Meyering
2001-09-01Include "xreadlink.h".Jim Meyering
(get_link_name): Don't use PATH_MAX. Rewrite to use xreadlink.
2001-08-31(bool): Remove typedef, now that it's in system.h.Jim Meyering
(TRUE): Define to `true', not 1. (FALSE): Define to `false', not 0.
2001-08-31(copy_dir): Remove st_size argument.Jim Meyering
2001-08-31(count_entry): Remove st_size argument.Jim Meyering
2001-08-31(change_dir_mode): Remove statp arg; no longer needed.Jim Meyering
2001-08-31(change_dir_owner): Remove statp arg; no longer needed.Jim Meyering
2001-08-31Do not include savedir.h; not used.Jim Meyering
2001-08-31Include full-write.h.Jim Meyering
(full_write): Remove decl; not needed.
2001-08-31copyrightJim Meyering
2001-08-31Include full-write.h.Jim Meyering
(full_write): Remove decl; not needed. (simple_cat, cat): Don't assume read and write size fits in int.
2001-08-31(full_write): Remove decl; not needed.Jim Meyering
2001-08-31(full_write): Remove decl; not needed.Jim Meyering
2001-08-31(full_write): Remove decl; not needed.Jim Meyering
2001-08-31Include full-write.h.Jim Meyering
(full_write): Remove decl; not needed. (open_fd): Don't assume read and write size fits in int.
2001-08-31Include full-write.h.Jim Meyering
(full_write): Remove decl; not needed. (copy_reg): Don't assume read and write size fits in int.
2001-08-31* src/remove.c: Move true/false definitions and include from here...Jim Meyering
* src/system.h: ...to here.
2001-08-31copyrightJim Meyering
2001-08-31(count_entry, main): Reflect changes to the exclude functions.Jim Meyering
2001-08-28(main): Diagnose an invalid width option.Jim Meyering