Commit Graph
11607 Commits
Author SHA1 Message Date
Jim Meyering 9ffb6b8bb6 *** empty log message *** 2001-09-23 07:36:53 +00:00
Jim Meyering ee32712334 *** empty log message *** 2001-09-23 06:59:57 +00:00
Jim Meyering b4c4729c8f . 2001-09-22 20:11:33 +00:00
Jim Meyering f4ab08b5ca *** empty log message *** 2001-09-22 20:10:44 +00:00
Jim Meyering 4cedb82f6e Update from gettext cvs repository. 2001-09-22 19:19:44 +00:00
Jim Meyering 9917b0be5a *** empty log message *** 2001-09-22 19:15:53 +00:00
Jim Meyering 363a391db4 *** empty log message *** 2001-09-22 16:45:36 +00:00
Jim Meyering 0d784f664b . 2001-09-22 16:45:28 +00:00
Jim Meyering 0265852ab2 . 2001-09-22 16:41:44 +00:00
Jim Meyering d377c5bd7f *** empty log message *** 2001-09-22 16:40:25 +00:00
Jim Meyering 77678307a5 . 2001-09-22 16:40:17 +00:00
Jim Meyering b7b37133ac . 2001-09-22 16:39:57 +00:00
Jim Meyering f13c461cf7 Upgrade to gettext-0.10.40. 2001-09-22 16:38:35 +00:00
Jim Meyering 2d1b13b6d0 Sync with gettext -- this changes only comments. 2001-09-22 16:34:51 +00:00
Jim Meyering 556a834d33 Sync with gettext -- this changes only comments. 2001-09-22 16:34:30 +00:00
Jim Meyering cbed45a540 decrement serial number to sync with gettext 2001-09-22 15:18:47 +00:00
Jim Meyering bfcb6bacf8 decrement serial number to sync with gettext 2001-09-22 15:18:03 +00:00
Jim Meyering 9e82f23de4 . 2001-09-22 15:17:26 +00:00
Jim Meyering 20925d812d Upgrade to gettext 0.10.39. 2001-09-22 15:15:41 +00:00
Jim Meyering e8d79c1502 *** empty log message *** 2001-09-22 15:08:51 +00:00
Jim Meyering 8d45c22c3c Update from latest gettext. 2001-09-22 15:08:35 +00:00
Jim Meyering 16aef05416 . 2001-09-22 13:27:04 +00:00
Jim Meyering 8000bd993e . 2001-09-22 13:18:57 +00:00
Jim Meyering 8751c5fc27 . 2001-09-22 13:18:19 +00:00
Jim Meyering 29955c54b8 *** empty log message *** 2001-09-22 13:18:04 +00:00
Jim Meyering 5d461b6c45 *** empty log message *** 2001-09-22 13:16:48 +00:00
Jim Meyering 62471a036d *** empty log message *** 2001-09-22 13:16:21 +00:00
Jim Meyering 0ed1711755 *** empty log message *** 2001-09-22 08:27:36 +00:00
Jim Meyering 3939790637 Mostly clean-up (modulo the better diagnostic).
(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-22 08:27:27 +00:00
Jim Meyering 483977a347 *** empty log message *** 2001-09-20 15:04:07 +00:00
Jim Meyering b5fd786410 (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).
2001-09-20 14:46:55 +00:00
Jim Meyering 95ce12946b *** empty log message *** 2001-09-20 14:41:51 +00:00
Jim Meyering 0ec82af940 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of strtoumax. 2001-09-20 14:41:43 +00:00
Jim Meyering c2f01a209e (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of strtoumax. 2001-09-20 14:41:26 +00:00
Jim Meyering 7b9a35951b *** empty log message *** 2001-09-20 08:44:22 +00:00
Jim Meyering b6baea64d1 (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.
2001-09-20 08:44:12 +00:00
Jim Meyering 447637fb37 . 2001-09-19 11:30:58 +00:00
Jim Meyering 2b21f12d85 *** empty log message *** 2001-09-19 10:52:03 +00:00
Jim Meyering 5a0dcd18c4 *** empty log message *** 2001-09-19 10:34:47 +00:00
Jim Meyering f3eff573fc (open_next_file): Use SETVBUF, not setbuf.
(skip): Revert part of last change: use lseek, not fseek.
2001-09-19 10:28:09 +00:00
Jim Meyering 18b2abbf6c 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.
2001-09-19 10:19:19 +00:00
Jim Meyering 7a33a02755 Use AC_DEFINE rather than AC_DEFINE_UNQUOTED, whenever the right hand side need not be expanded by the shell. 2001-09-17 21:44:03 +00:00
Jim Meyering 3aafbfb626 . 2001-09-17 21:43:41 +00:00
Jim Meyering 0283d73512 *** empty log message *** 2001-09-17 19:32:52 +00:00
Jim Meyering ebc79b0b6d (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.
2001-09-17 19:32:45 +00:00
Jim Meyering b6f0933da1 *** empty log message *** 2001-09-17 10:24:27 +00:00
Jim Meyering d6e1aff5e6 (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.
2001-09-17 10:24:20 +00:00
Jim Meyering 81c488fe62 *** empty log message *** 2001-09-17 10:21:08 +00:00
Jim Meyering b6e61f0f18 (usage): Fix typo in -g usage.
-H now means --dereference-command-line.
2001-09-17 10:20:50 +00:00
Jim Meyering f04d7b8252 *** empty log message *** 2001-09-17 10:11:42 +00:00