Jim Meyering
46554e300b
(dump): Use IF_LINT macro instead of #ifdef lint...
...
(main): Likewise.
1999-08-22 09:51:20 +00:00
Jim Meyering
8b5ed0399d
(paste_parallel): Use IF_LINT macro instead of #ifdef lint...
1999-08-22 09:50:56 +00:00
Jim Meyering
e11d70c362
(read_line): Use IF_LINT macro instead of #ifdef lint...
1999-08-22 09:50:31 +00:00
Jim Meyering
005c36b178
(checkfp): Use IF_LINT macro instead of #ifdef lint...
...
(mergefps): Likewise.
1999-08-22 09:50:05 +00:00
Jim Meyering
0e3b9af25b
(usage): Correct bug-reporting email address.
...
(tsort): Remove trailing `\n' in error format.
1999-08-22 09:45:52 +00:00
Jim Meyering
1ec1017a23
(IF_LINT): Define new macro.
1999-08-22 09:43:48 +00:00
Jim Meyering
bab0581788
(md5_check): Remove trailing `\n' in error format.
1999-08-22 09:43:25 +00:00
Jim Meyering
e23b334713
(SWAP_LINES): New macro.
...
(check_file): Use it here.
[really remove min macro, this time]
1999-08-22 08:57:37 +00:00
Jim Meyering
475a58337a
(writeline): Constify a char*.
1999-08-22 08:48:45 +00:00
Jim Meyering
1195909f5d
(cksum): Constify a char*.
1999-08-22 08:48:06 +00:00
Jim Meyering
138cf56fdb
(parse_integer): Add `const' to char* parameter and
...
add a separate `suffix' variable.
1999-08-22 08:46:33 +00:00
Jim Meyering
a711e8e132
(check_file): Move declarations of local variables
...
into the scopes where they're used.
(min): Remove macro definition.
(different): Use MIN, not min.
1999-08-22 08:16:34 +00:00
Jim Meyering
b4e8324ac2
(usage): Remove the ` [-v]' from the Usage: line.
1999-08-21 20:26:18 +00:00
Jim Meyering
82288821f0
(usage): Tweak --help output to make it more consistent with that of chgrp.
1999-08-20 08:58:34 +00:00
Jim Meyering
28c95e39c1
(usage): Tweak --help output to make it more consistent with that of chown.
1999-08-20 08:58:21 +00:00
Jim Meyering
4d22e13282
This change is nearly identical to the chown.c change of 1998-05-24
...
Accept new option, --dereference.
--no-dereference is now the default. Include lchown.h.
(enum Change_status) [CH_NOT_APPLIED]: New member.
(change_symlinks): Enable this by default, now.
(describe_change): Handle new case.
(change_file_group): Add new parameter: cmdline_arg. Update callers.
Reorganize to reflect changed semantics.
(LCHOWN): Remove definitions.
From Bruno Haible.
1999-08-16 21:21:39 +00:00
Jim Meyering
18607df151
(groupname): Declare to be `const'.
...
(change_dir_owner): Declare statp parameter to be `const'.
(usage): Make the output be more consistent with that from chgrp.
1999-08-16 21:20:44 +00:00
Jim Meyering
7228350401
(ENOSYS): Define to a bogus value if not already defined.
...
(parse_options): Warn if --pid=PID is used and kill()
returns ENOSYS (e.g. when compiled with DJGPP).
1999-08-15 12:56:00 +00:00
Jim Meyering
a26a44baba
(usage): Add ls --quoting-style=locale.
1999-08-10 11:00:58 +00:00
Jim Meyering
6591e754b2
(usage): Clarify description of --time=WORD.
1999-08-08 20:01:50 +00:00
Jim Meyering
8fd9cfdd3c
(count_entry): Remove cast of savedir arg.
1999-08-08 10:15:06 +00:00
Jim Meyering
ca2cd27d3c
(copy_dir): Remove cast of savedir arg.
1999-08-08 10:14:45 +00:00
Jim Meyering
8b2c09a944
(change_dir_owner): Remove cast of savedir arg.
1999-08-08 10:14:26 +00:00
Jim Meyering
41a7bbf8e0
(change_dir_mode): Remove cast of savedir arg.
1999-08-08 10:14:01 +00:00
Jim Meyering
08ae72e3a4
(change_dir_group): Remove cast of savedir arg.
1999-08-08 10:13:44 +00:00
Jim Meyering
505ee4c31c
(Follow_mode): Remove comma at end of enumerator list.
...
Reported by Kaveh Ghazi.
1999-08-06 19:21:05 +00:00
Jim Meyering
7cdcf3b47a
Honor --help and --version once again, though now
...
only if POSIXLY_CORRECT is set.
1999-08-06 10:14:52 +00:00
Jim Meyering
e4024a94f8
Include file name in `write error' diagnostics.
...
(write_bytes): Add output_file parameter and use it. Update callers.
(mergefps): Likewise.
(merge): Likewise.
(sort): Likewise.
Reported by John Summerfield.
1999-08-06 00:07:59 +00:00
Jim Meyering
707f9870ba
*** empty log message ***
1999-08-04 11:14:55 +00:00
Jim Meyering
3cc8a10875
(tail_forever): When following by name and calling recheck
...
because of exceeding max_n_consecutive_size_changes_between_opens,
`continue' so we don't fall through and (assuming the file finally grew)
get the erroneous `file truncated' message.
1999-08-03 07:43:42 +00:00
Jim Meyering
1a1a070926
(usage): Correct description of %S; (00..60, not 00..61).
...
From Ken Pizzini.
1999-08-01 11:02:28 +00:00
Jim Meyering
5d4eefe8d8
.
1999-07-31 17:44:02 +00:00
Jim Meyering
ca47081c5b
(tail_forever): Don't call kill if pid is 0.
...
Detect when `writer_is_dead' also when the writer is some other user.
From Karl Heuer.
(parse_options): Warn if --pid=PID is used without -f.
1999-07-31 09:21:32 +00:00
Jim Meyering
6e38ee2da0
Include signal.h for kill prototype.
1999-07-30 21:13:05 +00:00
Jim Meyering
4d70e59a85
New option: --pid=PID.
...
(pid): New global.
(long_options): Add `pid'.
(usage): Describe it.
(tail_forever): Implement it.
(parse_options): Handle the new option and required arg.
Suggestion and pseudo-code from Karl Heuer.
1999-07-30 20:42:39 +00:00
Jim Meyering
898a08f344
(PID_T_MAX): Define.
1999-07-30 19:29:53 +00:00
Jim Meyering
e246ae8765
(usage): Explain about default wrt --hide-control-chars and
...
--show-control-chars. Reported by Germano Leichsenring.
1999-07-30 16:01:44 +00:00
Jim Meyering
eb8c7c7924
(dd_copy): Free the right obuf.
1999-07-27 14:36:36 +00:00
Jim Meyering
bf94a704bc
more comments
1999-07-26 09:17:56 +00:00
Jim Meyering
e3a15bed3c
add comment
1999-07-26 09:03:15 +00:00
Jim Meyering
4dd5a9b806
(struct File_spec) [n_stat_calls]: Remove unused member.
1999-07-26 09:01:27 +00:00
Jim Meyering
8ddf290477
(tee): Convert from open/fds to using fopen/streams for
...
output, in preparation for addition of new compression option.
1999-07-26 07:11:27 +00:00
Jim Meyering
a2d3645e9c
(usage): Remove `NEWS'-style paragraph (sorry to have let that in, translators).
1999-07-25 09:30:35 +00:00
Jim Meyering
8082ce8f53
add to comment
1999-07-24 09:40:23 +00:00
Jim Meyering
7b5a5af07f
(PTR_ALIGN, ROUND_UP_OFFSET): New macros.
...
(dd_copy): Use those to page-align both the input and output buffers.
1999-07-24 09:36:29 +00:00
Jim Meyering
7387f60b85
(posixly_correct): Declare global.
...
(write_counts): Use it to select printf formats.
(main): Set posixly_correct from the POSIXLY_CORRECT envvar.
From Peter Moulder.
1999-07-20 07:56:59 +00:00
Jim Meyering
5db7818497
Include getpagesize.h.
...
(ROUND_UP_TO_MODULUS): Define.
(dd_copy): Page-align the input buffer.
Based on a patch from Scott Lurndal.
1999-07-15 12:06:18 +00:00
Jim Meyering
fae10f70e0
(mempcpy): Define only if not already defined.
...
Reported by Collin Rogowski.
1999-07-12 08:37:31 +00:00
Jim Meyering
3f622f08e5
(recheck): Use assert instead of unnecessary close_fd.
...
Remove a couple unnecessary FIXME comments.
1999-07-11 09:05:31 +00:00
Jim Meyering
54651dc73c
(struct File_spec) [tailable]: Rename from `missing' and
...
document. Change all uses and locals like was_missing to was_tailable.
Invert expressions as appropriate.
(reopen_inaccessible_files): Rename from allow_missing.
(sleep_interval): Describe.
(--allow-missing): Deprecate.
(--retry): New option, equivalent to --allow-missing.
(usage): Document name vs. descriptor differences.
Refer to manual for descriptions of --max-unchanged-stats=N
and --max-consecutive-size-changes=N.
(valid_file_spec): New function.
(recheck): Assert valid_file_spec.
Remove dead else-if block (suggestion from Eli Zaretskii).
Adjust stmts that set f->tailable -- unlike for `missing', tailable
doesn't depend on errno == ENOENT.
(parse_options): Give a warning if --retry is used when not following
by name.
1999-07-10 12:24:10 +00:00