Jim Meyering
8471372f24
(wc): Use ISSPACE and iswspace in addition to hard-coding
...
the ASCII space character.
2001-12-13 11:12:18 +00:00
Jim Meyering
098bfeea80
(main):
...
Include the word `fail' in some diagnostics to make it clearer
that they indicate a failure.
s/getting attributes/failed to get attributes/
2001-12-11 11:49:36 +00:00
Jim Meyering
0ef9bacdc7
split long line
2001-12-11 11:49:14 +00:00
Jim Meyering
879adb17cc
(change_file_mode, main):
...
Include the word `fail' in some diagnostics to make it clearer
that they indicate a failure.
s/getting attributes/failed to get attributes/
2001-12-11 11:48:54 +00:00
Jim Meyering
92c8fc20fb
(change_file_owner):
...
Include the word `fail' in some diagnostics to make it clearer
that they indicate a failure.
s/getting attributes/failed to get attributes/
2001-12-11 11:48:21 +00:00
Jim Meyering
47a2e7569c
(main):
...
Include the word `fail' in some diagnostics to make it clearer
that they indicate a failure.
s/getting attributes/failed to get attributes/
2001-12-11 11:47:54 +00:00
Jim Meyering
d5654c49bd
(re_protect):
...
Include the word `fail' in some diagnostics to make it clearer
that they indicate a failure.
s/getting attributes/failed to get attributes/
2001-12-11 11:47:25 +00:00
Jim Meyering
a6a92722ff
Include the word `fail' in some diagnostics to make it clearer
...
that they indicate a failure.
s/getting attributes/failed to get attributes/
2001-12-11 11:46:49 +00:00
Jim Meyering
24d1484e1c
(buggy_lseek_support): Remove function.
...
(skip_via_lseek) [__linux__]: New function.
(skip): Use skip_via_lseek, not buggy_lseek_support.
2001-12-11 11:40:50 +00:00
Jim Meyering
8f730b8a46
(usage): Don't split translatable strings in the middle of a sentence.
2001-12-03 16:07:50 +00:00
Jim Meyering
99fbca4eba
(usage): Merge lone "\n" into adjacent string.
2001-12-03 15:56:48 +00:00
Jim Meyering
f05581b361
(usage): Merge lone "\n" into adjacent string.
2001-12-03 15:56:24 +00:00
Jim Meyering
f3ac2e7839
Use new macros, HELP_OPTION_DESCRIPTION and VERSION_OPTION_DESCRIPTION
...
instead of hard-coding --help and --version descriptions.
2001-12-02 22:26:57 +00:00
Jim Meyering
3e947ade15
*** empty log message ***
2001-12-02 20:08:14 +00:00
Jim Meyering
7afc9d1829
(touch): Extend the change of 2001-09-15 to work on
...
systems for which errno is set to EPERM in that case. Thus, e.g.,
`touch /' by non-root gives a better diagnostic on systems like SunOS4.
2001-12-02 20:05:33 +00:00
Jim Meyering
e03be48b10
Don't emulate dd's skip=N for *all* character devices; lseek works
...
just fine on non-tape character devices like /dev/mem and /dev/kmem.
(buggy_lseek_support) [__linux__]: Emulate `skip=N'
behavior using reads, not lseek for Linux tape devices (major == 9).
Kernel lseek support for tapes is broken, up to and including
linux-2.4.16. Reported by Herbert Xu.
2001-12-02 07:49:46 +00:00
Jim Meyering
3a0a028c8c
Reflect renaming to, and new usage of these macros:
...
HELP_OPTION_DESCRIPTION and VERSION_OPTION_DESCRIPTION.
2001-12-01 17:41:25 +00:00
Jim Meyering
52f3031b24
Rename just-added macros. Here are the new names:
...
HELP_OPTION_DESCRIPTION
VERSION_OPTION_DESCRIPTION
2001-12-01 17:31:09 +00:00
Jim Meyering
a34483b143
(EMIT_HELP_DESCRIPTION): New macro.
...
(EMIT_VERSION_DESCRIPTION): New macro.
2001-12-01 17:21:57 +00:00
Jim Meyering
afa12bc912
(usage): Use new macros, EMIT_HELP_DESCRIPTION and EMIT_VERSION_DESCRIPTION
...
instead of hard-coding --help and --version descriptions.
2001-12-01 17:21:56 +00:00
Jim Meyering
df4c89a556
The change of 2001-11-01 introduced a bug whereby some recursive
...
listings didn't have a blank line between per-directory groups of files.
(print_dir): Print a newline before each directory name
except the first one, rather than after each except the last, since
now (after the changes of 2001-11-01) detecting whether a `pending*'
is the last would involve more work. Reported by Andreas Schwab.
This change has no net effect.
(main): Remove always-true conjunct and add a comment.
2001-11-27 10:19:24 +00:00
Jim Meyering
0d1ddb59de
(SET_MODE) [O_BINARY]: Call setmode, not set_mode.
2001-11-27 07:48:47 +00:00
Jim Meyering
022e60027b
Don't include "gtod.h"
...
(main): Don't `call' GETTIMEOFDAY_INIT.
2001-11-26 16:46:20 +00:00
Jim Meyering
8087128c07
(cat): Don't test whether the full_write return value (of type size_t)
...
is less than 0. Reported by Nelson H. F. Beebe,
as a warning from Irix 6.5's C compiler.
2001-11-26 12:16:48 +00:00
Jim Meyering
a927d9b0ae
*** empty log message ***
2001-11-26 11:04:49 +00:00
Jim Meyering
9e1b4e382a
(usage): Indent --help and --version strings to start in the 7th column.
2001-11-25 14:46:05 +00:00
Jim Meyering
79d3f45d37
(usage): Indent --help and --version strings to start in the 7th column.
2001-11-25 14:37:18 +00:00
Jim Meyering
b15c6a222b
(usage): Make --help and --version strings start in column 7.
2001-11-24 08:01:39 +00:00
Jim Meyering
072b27d4d2
(usage): Note that ``Mandatory arguments to long options are mandatory
...
for short options too.''
2001-11-23 20:29:56 +00:00
Jim Meyering
44fc00b79c
(usage): Use output', not print' in description of
...
the --version option, so this message is consistent with all the rest.
2001-11-23 20:11:34 +00:00
Jim Meyering
b78de3e724
Split usage strings so that --help and --version
...
descriptions are alone in their own string.
2001-11-23 20:10:25 +00:00
Jim Meyering
909dc8c01d
Factor out some common strings to make translation easier.
...
Split usage strings so that --help and --version descriptions are alone
in their own string.
Likewise for the one that says:
Mandatory arguments to long options are mandatory for short options too.
2001-11-23 19:58:23 +00:00
Jim Meyering
6f468fedb4
(main): Don't split string in the middle of sentence.
2001-11-23 18:45:32 +00:00
Jim Meyering
a5f1ced62a
(usage): Split --help output into smaller pieces.
...
Use fputs, not printf.
2001-11-23 15:41:16 +00:00
Jim Meyering
4d13e6fa55
Use opaque type, Hash_table, not `struct hash_table'.
2001-11-23 08:10:49 +00:00
Jim Meyering
669102ec61
(cp_option_init): Likewise.
...
(do_copy): Call src_info_init.
2001-11-22 19:49:01 +00:00
Jim Meyering
a2e185c904
(cp_option_init): Initialize new member.
2001-11-22 19:48:17 +00:00
Jim Meyering
039ff08371
(struct cp_options) [src_info]: New member.
...
(src_info_init): Declare.
2001-11-22 19:47:58 +00:00
Jim Meyering
507e4c7e69
(triple_hash_no_name): New function.
...
(src_info_init): New function.
(copy_internal): Warn and return early for the second and subsequent
occurrences of the same source file named on the command line.
2001-11-22 19:45:27 +00:00
Jim Meyering
7a0fd15ee7
(seen_file): Change type of `stats' parameter to pointer.
...
(copy_internal): Update caller.
2001-11-22 12:25:09 +00:00
Jim Meyering
31bfafc32e
(struct F_triple): Rename from dest_info.
...
(seen_file): Rename from seen_dest. Rename parameters accordingly.
(record_file): Rename from record_dest. Rename parameters accordingly.
(triple_hash): Rename from dest_info_hash.
(triple_compare): Rename from dest_info_compare.
(triple_free): Rename from dest_info_free.
2001-11-22 12:22:46 +00:00
Jim Meyering
988d9b05dd
(main): Add a literal format string to suppress
...
a warning from gcc's -Wformat-security.
2001-11-22 10:57:27 +00:00
Jim Meyering
c5ad355677
(cp_option_init): Initialize new member.
...
(do_copy): Remove const attribute from declaration of parameter, x.
dest_info_init now takes a parameter.
2001-11-22 10:55:40 +00:00
Jim Meyering
42ad428793
(cp_option_init): Initialize new member.
...
(main): dest_info_init now takes a parameter.
2001-11-22 10:54:31 +00:00
Jim Meyering
8cd4321b8b
(cp_option_init): Initialize new member.
...
(main): dest_info_init now takes a parameter.
2001-11-22 10:54:05 +00:00
Jim Meyering
6b5ddbc2c9
Include hash.h.
...
(struct cp_options) [dest_info]: New member.
2001-11-22 10:52:40 +00:00
Jim Meyering
6f1ebf7e68
copy.c shouldn't maintain static state.
...
(dest_info): Remove declaration of file-scoped global.
(dest_info_init): Require a parameter.
Update all callers.
(seen_dest): Require a hash table parameter. Update callers.
(record_dest): Likewise.
2001-11-22 10:52:15 +00:00
Jim Meyering
c36eeadd49
csplit could get a failed assertion: printf 'a\n\n'|csplit - '/^$/' 2
...
No longer include assert.h.
(process_line_count): Remove invalid assertion.
2001-11-22 09:01:39 +00:00
Jim Meyering
df6f3a4998
remove FIXME comment about duplicate code
2001-11-20 09:53:33 +00:00
Jim Meyering
a71d24334e
(xlseek): New function.
...
Call it instead of lseek, in most cases, so any failure is reported.
2001-11-19 10:59:56 +00:00