Jim Meyering
0654f3206d
Check for strtol. Mainly as a cue to cause automake to include
...
strtol.c -- that file is included by each of strtoul.c and strtoull.c.
Check for limits.h -- strtol.c needs it.
CPPI-1_8
2000-12-06 11:06:39 +00:00
Jim Meyering
67cf94a857
*** empty log message ***
2000-12-06 10:52:37 +00:00
Jim Meyering
69ed54e544
Check for declarations of strtoul and strtoull.
2000-12-06 10:52:28 +00:00
Jim Meyering
3dabe6b533
separate conditions for strtoul and strtoull
2000-12-06 10:26:51 +00:00
Jim Meyering
2845214164
*** empty log message ***
2000-12-06 09:55:03 +00:00
Jim Meyering
6b8102a180
*** empty log message ***
2000-12-06 09:35:48 +00:00
Jim Meyering
570074d6d1
(jm_AC_PREREQ_XSTRTOUMAX): If we need the replacement
...
strtoull, we may well need the replacement strtoul, too.
2000-12-06 09:35:40 +00:00
Jim Meyering
72a6d74ab2
.
2000-12-05 13:53:13 +00:00
Jim Meyering
cd6f0af0ea
(dir_name_r): Add `const' in a few local declarations.
2000-12-05 13:14:13 +00:00
Jim Meyering
2746cd50c3
*** empty log message ***
2000-12-04 09:41:28 +00:00
Jim Meyering
8a4261c7a5
*** empty log message ***
2000-12-04 09:37:40 +00:00
Jim Meyering
90799b6c68
Also include memory.h, stdlib.h, unistd.h if appropriate.
2000-12-04 09:37:33 +00:00
Jim Meyering
1c6320fe7c
*** empty log message ***
2000-12-04 09:15:54 +00:00
Jim Meyering
fecdd2bd2b
[!HAVE_DECL_MALLOC]: Declare malloc.
2000-12-04 09:15:49 +00:00
Jim Meyering
15691fb64f
*** empty log message ***
2000-12-03 22:40:40 +00:00
Jim Meyering
cb366955f3
(gobble_file) [USE_ACL]: Set have_acl member unconditionally
...
to avoid uninitialized memory reference via FILE_HAS_ACL.
2000-12-03 22:40:31 +00:00
Jim Meyering
82a6fbda1c
*** empty log message ***
2000-12-03 20:46:07 +00:00
Jim Meyering
177b2553e2
(TESTS): Add assert-2.
2000-12-03 20:43:51 +00:00
Jim Meyering
814e63e371
remove instrumentation
2000-12-03 20:37:55 +00:00
Jim Meyering
2eed25f2ed
add instrumentation to detect some UMRs
2000-12-03 20:37:18 +00:00
Jim Meyering
1be9e19c7d
*** empty log message ***
2000-12-03 20:36:29 +00:00
Jim Meyering
b7895d0d10
(tail_file): Initialize ignore, dev, and ino members,
...
when tailing forever and the open failed. Otherwise, we could get
uninitialized memory references of those fields in recheck.
2000-12-03 20:36:19 +00:00
Jim Meyering
8461820956
*** empty log message ***
2000-12-03 13:10:48 +00:00
Jim Meyering
86960ce221
*** empty log message ***
2000-12-03 12:46:55 +00:00
Jim Meyering
6670163eee
(alpha): Use rsync rather than scp, so the destination
...
file is created only after the successful completion of the copy.
2000-12-03 12:46:44 +00:00
Jim Meyering
437f8becaa
.
2000-12-03 12:31:59 +00:00
Jim Meyering
5233121102
use CHAR_BIT, not BITSPERBYTE
TEXTUTILS-2_0_9
2000-12-03 11:00:06 +00:00
Jim Meyering
25c2989d30
*** empty log message ***
2000-12-03 10:59:49 +00:00
Jim Meyering
4f96dfa43e
(CHAR_BIT): Define.
2000-12-03 10:59:44 +00:00
Jim Meyering
f559a4afa3
*** empty log message ***
2000-12-03 10:39:03 +00:00
Jim Meyering
b5d4b2c555
*** empty log message ***
2000-12-03 10:22:32 +00:00
Jim Meyering
d8a157a00e
*** empty log message ***
2000-12-03 10:21:34 +00:00
Jim Meyering
85a75d3a16
*** empty log message ***
2000-12-03 10:18:09 +00:00
Jim Meyering
d183ecddcd
Make od print valid addresses for offsets of 2^32 and larger. (cont'd)
...
(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-03 10:18:04 +00:00
Jim Meyering
e30c09b4cb
Add this:
...
AC_REQUIRE([AC_TYPE_OFF_T])
2000-12-03 10:04:30 +00:00
Jim Meyering
9d5d7f0d50
(OFF_T_MIN): Remove definition.
...
(OFF_T_MAX): Likewise.
2000-12-03 08:55:51 +00:00
Jim Meyering
caae4ed5a7
(OFF_T_MIN): Define.
...
(OFF_T_MAX): Define.
2000-12-03 08:54:37 +00:00
Jim Meyering
a1ca60f4e5
Make od print valid addresses for offsets of 2^32 and larger.
...
(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 08:44:12 +00:00
Jim Meyering
ce861b2cb3
(parse_options): Use xstrtoumax to parse the byte and line
...
offset. Give a better diagnostic when the requested offset is still
representable but larger than OFF_T_MAX.
2000-12-03 08:35:48 +00:00
Jim Meyering
67ec78d188
*** empty log message ***
2000-12-02 22:18:29 +00:00
Jim Meyering
d661be38ed
(valid_format): Move pre-increment to a separate statement to avoid a warning.
2000-12-02 22:18:21 +00:00
Jim Meyering
69e30c7f2a
Move dcls of globals used only in main...
...
(main): ...to here.
(usage): Clarify option descriptions.
2000-12-02 22:16:41 +00:00
Jim Meyering
8973e2b38c
whoops. rename the use, too -- not just the decl!!
2000-12-02 21:14:41 +00:00
Jim Meyering
df52f23ebf
*** empty log message ***
2000-12-02 21:14:09 +00:00
Jim Meyering
5edc91fc05
(checkfp): Rename local `buf' to avoid shadowing previous declaration.
2000-12-02 21:14:02 +00:00
Jim Meyering
8b4ac20908
(skip): Use lseek instead of worrying about fseeko or fseek.
...
This should be portable, as we seek before doing any I/O.
(fseeko): Remove; no longer used.
2000-12-02 21:08:01 +00:00
Jim Meyering
1a0d9ea086
add back the parens Paul removed :-)
2000-12-02 20:55:25 +00:00
Jim Meyering
e49511faef
(gobble_file): Do not fall back on lstat if stat
...
fails; POSIX.2 does not allow this. Invoke acl only on
non-symlinks, and only if lstat or stat succeeds.
2000-12-02 20:55:02 +00:00
Jim Meyering
e05c32a868
*** empty log message ***
2000-12-02 20:52:09 +00:00
Jim Meyering
c2f898236f
*** empty log message ***
2000-12-02 20:45:40 +00:00