Jim Meyering
6ee4cfca07
(SSIZE_MAX): Define.
2002-10-01 07:58:03 +00:00
Jim Meyering
1ea1325068
Don't include stdlib.h here. It's already included via system.h.
2002-09-30 21:20:08 +00:00
Jim Meyering
8adddf55c0
(find_bracketed_repeat): Rearrange pointer/integer
...
expression to avoid warning from gcc.
2002-09-29 21:31:29 +00:00
Jim Meyering
7e1ff0b4f8
(simple_cat): Use a temporary to avoid bogus warnings.
...
(cat): Declare insize and outsize to be of type size_t, not int.
Rearrange pointer/integer expressions to avoid bogus warnings.
(main): Declare insize and outsize to be of type size_t, not int.
2002-09-29 21:25:03 +00:00
Jim Meyering
c791a382f8
(parse_options): Give a sensible diagnostic for
...
an invalid byte or line count. Reported by Mikko Tuumanen.
2002-09-29 18:06:02 +00:00
Jim Meyering
0863bbf447
(main): Split a long line.
2002-09-29 18:00:28 +00:00
Jim Meyering
a3b479c91f
.
2002-09-29 08:44:36 +00:00
Jim Meyering
6daabb7578
In move mode, always first try to rename. Before, upon failure to
...
rename a directory, this code would never attempt to rename any
other file in that directory, but would thenceforth always copy.
On some systems (NetApp version ??), renaming a directory may fail
with EXDEV, yet renaming files within that directory to a newly-
created destination directory succeeds.
(copy_internal): Remove local, move_mode;
use x->move_mode instead. Based on a patch from Tom Haynes.
2002-09-29 08:43:19 +00:00
Jim Meyering
fd5bc32835
(FAIL_ONLY_ONE_WAY): New macro. Factor out some duplication.
...
(main): Use it.
[case 'a']: Use strtoul rather than strtol to avoid compiler warnings.
2002-09-28 16:50:34 +00:00
Jim Meyering
16b4b4f861
(begfield, limfield): Rearrange comparisons to avoid compiler warnings.
...
(fillbuf, keycompare): Cast literal `-1' to size_t in comparisons,
to avoid compiler warnings.
2002-09-28 16:32:23 +00:00
Jim Meyering
1060257446
(dopass): Use a uintmax_t temporary to avoid bogus compiler warnings.
2002-09-28 16:29:25 +00:00
Jim Meyering
475574011d
(tail_bytes): Change type of bytes_remaining to off_t
...
to avoid overflow. Reported by Hans Lermen.
2002-09-28 09:21:17 +00:00
Jim Meyering
8c10d25fd0
Fix things so `mkdir -p' can create very deep directories, e.g.,
...
mkdir -p $(perl -e 'print "a/" x 40000') now works.
(main): For --parents (-p), call make_path with the
entire directory name, so we don't ever require that file operations
like stat or chmod be performed on the entire command line argument.
2002-09-28 07:51:17 +00:00
Jim Meyering
0327689de0
(get_ids): Use strtoul, not strtol. Remove some casts.
2002-09-26 08:39:20 +00:00
Jim Meyering
d50e1a86b7
add a FIXME comment
2002-09-26 08:25:44 +00:00
Jim Meyering
34ba862f93
(eaccess): Change type of local `euid' from int to uid_t
...
and add a cast, to avoid a warning about `signed and unsigned type in
conditional expression'.
2002-09-25 08:23:54 +00:00
Jim Meyering
cc0a6e14fc
fmt's -s, -t, -c options didn't work properly for long lines.
...
Since get_line may end up calling put_paragraph (for long lines),
be sure to set global, `other_indent', before it is used there.
(set_other_indent): New function, factored out of...
(get_paragraph): ... here. Call it.
(get_line): Call set_other_indent before calling flush_paragraph,
which calls fmt_paragraph, which in turn calls put_paragraph,
which uses other_indent.
2002-09-24 08:50:20 +00:00
Jim Meyering
68527271a5
Include "dirname.h", for declaration of strip_trailing_slashes.
2002-09-22 06:59:13 +00:00
Jim Meyering
fab46cb466
(PRIdMAX, PRIuMAX): Remove definitions.
...
Now they're defined through system.h.
2002-09-22 06:48:28 +00:00
Jim Meyering
003ab9a58d
Remove all inclusions of inttypes.h,
...
since it's already included from sys2.h via system.h.
2002-09-22 06:41:02 +00:00
Jim Meyering
709d79631a
Remove all inclusions of inttypes.h,
...
since it's already included from sys2.h via system.h.
2002-09-22 06:40:14 +00:00
Jim Meyering
7b355ee476
upgrade to automake-1.6f
2002-09-22 06:34:18 +00:00
Jim Meyering
575cb67bb2
(PERL): Remove duplicate definition.
2002-09-21 22:40:35 +00:00
Jim Meyering
c5c97ee23a
No longer include values.h.
...
It was required solely for now-removed reference to BITSPERBYTE.
2002-09-21 14:24:18 +00:00
Jim Meyering
7080cab46c
No longer include values.h.
...
It was required solely for now-removed reference to BITSPERBYTE.
2002-09-21 14:21:53 +00:00
Jim Meyering
f0693e040c
(remove_parents): Strip trailing slashes.
2002-09-20 08:41:02 +00:00
Jim Meyering
b8da58cdac
od -t x8' used the wrong (l'-prefixed) printf format.
...
Likewise for the o8 and u8 formats.
(ISPEC_TO_FORMAT): Define macro.
(decode_one_format): Use PRIdMAX, PRIoMAX, etc. for LONG_LONG.
Reported by Arun Sharma.
2002-09-17 22:06:21 +00:00
Jim Meyering
32af38ad7f
(PRIdMAX, PRIoMAX, PRIuMAX, PRIxMAX): Define if necessary.
...
From gettext's intl/loadmsgcat.c.
2002-09-17 14:41:43 +00:00
Jim Meyering
f4c8df3d37
(get_format_width): Add cast to avoid
...
warning about `signed and unsigned type in conditional expression'.
2002-09-15 07:23:08 +00:00
Jim Meyering
165e561cf5
(generate_all_output): Likewise.
2002-09-15 07:12:05 +00:00
Jim Meyering
3935842cb3
(main, skip): Add casts to avoid warnings about
...
`comparison between signed and unsigned'.
2002-09-14 09:12:13 +00:00
Jim Meyering
12b5bb320c
(print_user): Change type of local to size_t
...
to avoid warnings about `comparison between signed and unsigned'.
2002-09-14 07:47:38 +00:00
Jim Meyering
c81581d5c3
(print_full_info, print_group_list): Add casts to avoid
...
warnings about `signed and unsigned type in conditional expression'.
2002-09-14 07:45:53 +00:00
Jim Meyering
5ca2fe79d9
Change type of global, digest_hex_bytes, to size_t
...
to avoid warnings about `comparison between signed and unsigned'.
(split_3): Change parameter names to be readable and add comment.
Clean up the test for whether a line may be ignored.
2002-09-14 07:40:04 +00:00
Jim Meyering
6dfd1fe44a
.
2002-09-13 14:23:26 +00:00
Jim Meyering
5bd4fe2400
(main): Handle leading command line argument of `--'.
2002-09-13 09:50:23 +00:00
Jim Meyering
a59ff019de
(usage): Explain that %S's range of [0..60] is required --
...
rather than 0..59 -- to accommodate the occasional positive leap second.
2002-09-13 09:18:18 +00:00
Jim Meyering
5ecd38d97e
.
2002-09-12 13:16:43 +00:00
Jim Meyering
3087631793
(nanosec_libs): Define.
...
(sleep_LDADD, tail_LDADD): Use it here.
2002-09-12 13:16:20 +00:00
Jim Meyering
96bd9415dc
.
2002-09-12 13:15:07 +00:00
Jim Meyering
1e8f677ed4
Factor nanosleep-related code into ../lib/xnanosleep.c.
...
Include xnanosleep.h.
Factor out fenv.h-related code.
(timespec_subtract): Remove function.
(main): Remove code that deals with computing start and stop times
as well as the loop around nanosleep. Now that's in xnanosleep.c.
2002-09-12 12:01:02 +00:00
Jim Meyering
7a79266014
Include xnanosleep.h and xstrtod.h.
...
Move declaration of global variable, sleep_interval, to ...
(main): ...here.
(usage): Update description of --sleep-interval option.
(tail_forever): New parameter, sleep_interval. Update caller.
Use xnanosleep, rather than sleep.
(parse_options): New parameter, sleep_interval. Update caller.
Use xstrtod, now that we accept floating point values.
2002-09-12 11:38:47 +00:00
Jim Meyering
afef4e7e86
.
2002-09-06 20:58:23 +00:00
Jim Meyering
37f7bae4f0
(prompt): Change comment to give a better note to translators.
2002-09-06 08:00:30 +00:00
Jim Meyering
496f29fa8c
(NEED_PATHCONF_WRAPPER): Define.
...
(pathconf_wrapper): Define only if NEED_PATHCONF_WRAPPER is set.
2002-09-02 07:43:38 +00:00
Jim Meyering
0ea01d21a3
(skip): Add casts to avoid warning about comparison
...
between signed and unsigned. Also rearrange range-checking
comparisons to make them more readable.
2002-09-02 07:38:53 +00:00
Jim Meyering
2ebfe2fc9c
(print_table_row): Use an unsigned type for widths
...
to avoid warning about comparison between signed and unsigned.
(list_signals): Likewise.
2002-09-02 07:31:24 +00:00
Jim Meyering
680cd976cc
(skip): Add a cast to avoid warning about comparison
...
between signed and unsigned.
2002-09-02 07:23:09 +00:00
Jim Meyering
62808a7fb5
Symlinks were always reported as using 0 blocks.
...
(ST_NBLOCKS): Don't depend on file type.
This reverts the change of 2000-01-30.
Based on a report and patch from Neil Brown via Michael Stone.
2002-08-31 16:04:57 +00:00
Jim Meyering
4006f4e672
Change exit (0)' to exit (EXIT_SUCCESS)',
...
`exit (1)' to `exit (EXIT_FAILURE)', and
`usage (1)' to `usage (EXIT_FAILURE)'.
2002-08-31 08:52:10 +00:00