summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2000-12-07(FILESYSTEM_PREFIX_LEN): Define.Jim Meyering
(dir_name_r): Declare this function as static. [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd manifest itself on a name containing a mix of slashes and backslashes. Make this function work with names starting with a DOS-style drive letter and colon prefix. (dir_name): Append `.' if necessary. Based mostly on patches from Prashant TR and Eli Zaretskii.
2000-12-07(dir_name_r): Remove prototype.Jim Meyering
2000-12-07*** empty log message ***Jim Meyering
2000-12-07(address_base): Declare to be static.Jim Meyering
2000-12-07(address_base, address_pad_len): New var.Jim Meyering
(output_address_fmt_string, address_fmt_buffer, address_pad): Remove. (flag_pseudo_start): Now int, not long int. (pseudo_offset): Now off_t, not long int. (n_specs, n_specs_allocated): Now size_t, not unsigned int. (format_address, format_address_none, format_address_std, format_address_label): Now accepts an extra char argument (an extra char to print if nonzero), and prints instead of returning a string. All callers changed. (bytes_per_block): Now size_t, not int. (format_address_none): Do not even print the extra char argument. This simplifies the callers. (format_address_std, format_address_label): Print off_t ourself instead of trying to use autoconfigured format. This is faster and more portable. (format_address_paren): New function. (dump): Remove unnecessary cast. (expand_address_fmt): Remove. (main): Use size_t, off_t, etc. instead of builtin types where this is advisable. Adjust to above changes. Remove unnecessary cast.
2000-12-06*** empty log message ***Jim Meyering
2000-12-06Check for strtol. Mainly as a cue to cause automake to includeJim Meyering
strtol.c -- that file is included by each of strtoul.c and strtoull.c. Check for limits.h -- strtol.c needs it.
2000-12-06*** empty log message ***Jim Meyering
2000-12-06Check for declarations of strtoul and strtoull.Jim Meyering
2000-12-06separate conditions for strtoul and strtoullJim Meyering
2000-12-06*** empty log message ***Jim Meyering
2000-12-06*** empty log message ***Jim Meyering
2000-12-06(jm_AC_PREREQ_XSTRTOUMAX): If we need the replacementJim Meyering
strtoull, we may well need the replacement strtoul, too.
2000-12-05.Jim Meyering
2000-12-05(dir_name_r): Add `const' in a few local declarations.Jim Meyering
2000-12-04*** empty log message ***Jim Meyering
2000-12-04*** empty log message ***Jim Meyering
2000-12-04Also include memory.h, stdlib.h, unistd.h if appropriate.Jim Meyering
2000-12-04*** empty log message ***Jim Meyering
2000-12-04[!HAVE_DECL_MALLOC]: Declare malloc.Jim Meyering
2000-12-03*** empty log message ***Jim Meyering
2000-12-03(gobble_file) [USE_ACL]: Set have_acl member unconditionallyJim Meyering
to avoid uninitialized memory reference via FILE_HAS_ACL.
2000-12-03*** empty log message ***Jim Meyering
2000-12-03(TESTS): Add assert-2.Jim Meyering
2000-12-03remove instrumentationJim Meyering
2000-12-03add instrumentation to detect some UMRsJim Meyering
2000-12-03*** empty log message ***Jim Meyering
2000-12-03(tail_file): Initialize ignore, dev, and ino members,Jim Meyering
when tailing forever and the open failed. Otherwise, we could get uninitialized memory references of those fields in recheck.
2000-12-03*** empty log message ***Jim Meyering
2000-12-03*** empty log message ***Jim Meyering
2000-12-03(alpha): Use rsync rather than scp, so the destinationJim Meyering
file is created only after the successful completion of the copy.
2000-12-03.Jim Meyering
2000-12-03use CHAR_BIT, not BITSPERBYTEJim Meyering
2000-12-03*** empty log message ***Jim Meyering
2000-12-03(CHAR_BIT): Define.Jim Meyering
2000-12-03*** empty log message ***Jim Meyering
2000-12-03*** empty log message ***Jim Meyering
2000-12-03*** empty log message ***Jim Meyering
2000-12-03*** empty log message ***Jim Meyering
2000-12-03Make od print valid addresses for offsets of 2^32 and larger. (cont'd)Jim Meyering
(MAX_ADDRESS_LENGTH): Don't hard-code as a literal. Rather, define in terms of the type, off_t. (string_min): Declare to be of type size_t. (flag_dump_strings): Declare to be of type int. (print_s_char): Declare the n_bytes parameter and the local, `i', to be of type off_t. (print_char): Likewise. (print_s_short): Likewise. (print_short): Likewise. (print_int): Likewise. (print_long): Likewise. (print_long_long): Likewise. (print_float): Likewise. (print_double): Likewise. (print_long_double): Likewise. (dump_hexl_mode_trailer): Likewise. (print_named_ascii): Likewise. (print_ascii): Likewise. (write_block): Likewise. (print_ascii): Declare local, `print_function' with a prototype. Change a few `>' comparisons to the equivalent `<' form. (parse_options): Declare `tmp' to be of type uintmax_t. Use xstrtoumax, not xstrtoul. Fail if the specified offset if larger than OFF_T_MAX. (dump_strings): Declare local `i' to be of type size_t. Remove the now-unnecessary cast-to-off_t. (main) [IF_LINT]: Initialize desired_width to avoid a warning. Declare `tmp' to be of type uintmax_t. Use xstrtoumax, not xstrtoul. Fail if minimum string length is larger than SIZE_MAX. Fail if specified width is larger than ULONG_MAX.
2000-12-03Add this:Jim Meyering
AC_REQUIRE([AC_TYPE_OFF_T])
2000-12-03(OFF_T_MIN): Remove definition.Jim Meyering
(OFF_T_MAX): Likewise.
2000-12-03(OFF_T_MIN): Define.Jim Meyering
(OFF_T_MAX): Define.
2000-12-03Make od print valid addresses for offsets of 2^32 and larger.Jim Meyering
(format_address): Use off_t, not long unsigned_int as the parameter type. (format_address_none): Likewise. Mark parameter as unused. (format_address_std): Likewise. (format_address_label): Likewise. (print_ascii): Mark format string parameter as unused. (write_block): Use off_t, not long unsigned_int as offset type. (expand_address_fmt): New function. (main): Use it to expand each address format string template. Reported by Mark Nudelman, via Andreas Jaeger.
2000-12-03(parse_options): Use xstrtoumax to parse the byte and lineJim Meyering
offset. Give a better diagnostic when the requested offset is still representable but larger than OFF_T_MAX.
2000-12-02*** empty log message ***Jim Meyering
2000-12-02(valid_format): Move pre-increment to a separate statement to avoid a warning.Jim Meyering
2000-12-02Move dcls of globals used only in main...Jim Meyering
(main): ...to here. (usage): Clarify option descriptions.
2000-12-02whoops. rename the use, too -- not just the decl!!Jim Meyering
2000-12-02*** empty log message ***Jim Meyering