summaryrefslogtreecommitdiff
path: root/src/od.c
AgeCommit message (Collapse)Author
1995-11-11(skip): Cast fseek's offset argument to `long'.Jim Meyering
Erik Bennett <bennett@cvo.oneworld.com> reported that this is necessary on BSDI systems. And if offset doesn't fit in a long, then try using lseek instead.
1995-11-11Add __P in dcl of format_address function.Jim Meyering
1995-10-19Indent cpp directives.Jim Meyering
1995-10-18Prootize.Jim Meyering
1995-09-27(decode_one_format): Remove spurious semicolon.Jim Meyering
1995-08-07Annotate localizable strings with _(...). From Franc,ois.Jim Meyering
1995-07-12(dump): Convert to use smaller -- but seemingly equivalent -- patch.Jim Meyering
1995-07-07(dump): Correct loop-termination criterion.Jim Meyering
Before, running `printf 1234| ./od --width=4 --read-bytes=4' printed output for 8 bytes -- the last four were garbage. This happened only when the dump limit, N, was specified (with --read-bytes=N) and N was a multiple of bytes_per_block (usually 16, but 4 in this example). From Andreas Schwab.
1995-06-18merge with 1.12Jim Meyering
1995-05-13(usage): Include one- or two-line synopsis in --help output.Jim Meyering
From Karl Berry.
1995-04-14(write_block): Declare index I as unsigned int, not int.Jim Meyering
(get_lcm): Likewise. (dump_strings): Likewise. (main): Likewise. (dump): Cast BYTES_PER_BLOCK to off_t in MIN expression. (dump_strings): Declare bufsize to be of type size_t, not int.
1995-03-16Detect when -N argument is too large to fit in an off_t.Jim Meyering
1995-03-09add 1995 to Copyright datesJim Meyering
1995-01-29(parse_old_offset): Use strchr, not index.Jim Meyering
1995-01-28(decode_format_string): Use memmove instead of bcopy.Jim Meyering
[EQUAL_BLOCKS]: Use memcmp, not bcmp. (dump): Use memset, not bzero.
1995-01-25Rename macros with FP_ prefix. Use FLOAT_ instead.Jim Meyering
AIX-2.2.1 declares a typedef, FP_DOUBLE, that conflicted. Be careful to use off_t instead of explicit `unsigned long'. Otherwise, systems like 4.4BSD lose on calls to fseek that expect off_t (which is long long on that system). (parse_old_offset): Use xstrtoul (main): Likewise.
1994-12-16(main): Use %lu, not %d for unsigned long.Jim Meyering
(my_strtoul, uint_fatal_error): Remove functions. Use xstrtoul and STRTOL_FATAL_ERROR instead.
1994-10-19merge with 1.9.1hJim Meyering
1994-10-19.Jim Meyering
1994-10-02.Jim Meyering
1994-04-13.Jim Meyering
1994-03-25.Jim Meyering
1993-11-15merge with 1.9.1Jim Meyering
1993-10-30merge with 1.8.1aJim Meyering
1993-10-24merge with 1.8hJim Meyering
1993-10-24merge with 1.8gJim Meyering
1993-10-23merge with 1.8d+Jim Meyering
1993-10-21merge with 1.8dJim Meyering
1993-10-05merge with 1.8aJim Meyering
1993-05-22merge with 1.5.2Jim Meyering
1993-05-07merge with 1.5Jim Meyering
1993-05-01merge with 1.4.2.Jim Meyering
1993-04-29add --version and --helpJim Meyering
1993-03-31(parse_old_offset): Allow `0X' as well as `0x' prefix to indicate hex.Jim Meyering
1993-03-30.Jim Meyering
1993-03-23New option: -C, --compatible.Jim Meyering
A few new small functions.
1993-02-26(print_s_char, print_s_short): Print signed chars and signed shorts withoutJim Meyering
resorting to casts involving `signed' keyword. (decode_one_format): Don't print leading zeroes for DECIMAL formats.
1993-02-25Reformat with GNU indent-1.7.Jim Meyering
1993-02-25(print_s_char, print_s_short): Fix printing of signed chars and signed shorts.Jim Meyering
1992-12-10Merge with pre-release 1.3.6.Jim Meyering
1992-12-07Remove inclusion of <ctype.h> and definitions of is* ctype macros to system.h.Jim Meyering
Change a few more uses of is* ctype macros to (protected) upper case versions.
1992-12-02Convert static declarations of struct option to use new macros fromJim Meyering
getopt.h: no_argument, required_argument, and optional_argument.
1992-11-24* (print_ascii, dump_strings): Use ISDIGIT and ISPRINTJim Meyering
macros like pr.c. Suggested by David J. MacKenzie.
1992-11-24* (print_ascii, dump_strings): Check for isascii before isprint.Jim Meyering
(dump_strings): Free malloc'd buffer before returning. (skip): Return non-zero if an error occurred, zero otherwise. Exit only if asked to skip beyond end of combined input. (check_and_close): New function. (skip, read_block, read_char): Call check_and_close when done processing the file associated with in_stream. (skip, read_block, read_char): Set have_read_stdin. (main): Close stdin (if it was ever read) and check for errors just before exiting. (write_block, dump_strings, dump): Don't test return value from functions that operate on streams. Rely on later ferror tests.
1992-11-19Merged in changes for 1.3.5.Jim Meyering
1992-11-08Declared lots of external functions and variables static.Jim Meyering
Made several statically-initialized arrays `const'
1992-11-08Initial revisionJim Meyering