summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2001-09-22.Jim Meyering
2001-09-22.Jim Meyering
2001-09-22*** empty log message ***Jim Meyering
2001-09-22*** empty log message ***Jim Meyering
2001-09-22*** empty log message ***Jim Meyering
2001-09-22*** empty log message ***Jim Meyering
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*** empty log message ***Jim Meyering
2001-09-20(strtoimax): Guard declaration withJim Meyering
`#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).
2001-09-20*** empty log message ***Jim Meyering
2001-09-20(jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of strtoumax.Jim Meyering
2001-09-20(jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of strtoumax.Jim Meyering
2001-09-20*** empty log message ***Jim Meyering
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.Jim Meyering
2001-09-19*** empty log message ***Jim Meyering
2001-09-19*** empty log message ***Jim Meyering
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-17Use AC_DEFINE rather than AC_DEFINE_UNQUOTED, whenever the right hand side ↵Jim Meyering
need not be expanded by the shell.
2001-09-17.Jim Meyering
2001-09-17*** empty log message ***Jim Meyering
2001-09-17(jm_FUNC_FNMATCH): Remove test for GNU CJim Meyering
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.
2001-09-17*** empty log message ***Jim Meyering
2001-09-17(HAVE_LONG_LONG): Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.Jim Meyering
(strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base), to work around bug in IBM C compiler.
2001-09-17*** empty log message ***Jim Meyering
2001-09-17(usage): Fix typo in -g usage.Jim Meyering
-H now means --dereference-command-line.
2001-09-17*** empty log message ***Jim Meyering
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*** empty log message ***Jim Meyering
2001-09-16*** empty log message ***Jim Meyering
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-16*** empty log message ***Jim Meyering
2001-09-16Add note to help people understand that this documentationJim Meyering
may not refer to the (shell built-in) command they're running.
2001-09-16Add note to help people understand this documentationJim Meyering
may not refer to the (shell built-in) command they're running.
2001-09-16*** empty log message ***Jim Meyering
2001-09-16tweak line in help outputJim Meyering
2001-09-16*** empty log message ***Jim Meyering
2001-09-16(mv invocation): Describe new option: --reply={yes,no,query}. Fix a few typos.Jim Meyering
2001-09-16*** empty log message ***Jim Meyering
2001-09-16.Jim Meyering
2001-09-16.Jim Meyering
2001-09-16*** empty log message ***Jim Meyering
2001-09-16.Jim Meyering
2001-09-16*** empty log message ***Jim Meyering
2001-09-16(UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.Jim Meyering
2001-09-16(UTILS_FUNC_MKDIR_TRAILING_SLASH): Require it.Jim Meyering
2001-09-16.Jim Meyering
2001-09-16*** empty log message ***Jim Meyering