summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2001-12-11Include the word `fail' in some diagnostics to make it clearerJim Meyering
that they indicate a failure. s/getting attributes/failed to get attributes/
2001-12-11(buggy_lseek_support): Remove function.Jim Meyering
(skip_via_lseek) [__linux__]: New function. (skip): Use skip_via_lseek, not buggy_lseek_support.
2001-12-03(usage): Don't split translatable strings in the middle of a sentence.Jim Meyering
2001-12-03(usage): Merge lone "\n" into adjacent string.Jim Meyering
2001-12-03(usage): Merge lone "\n" into adjacent string.Jim Meyering
2001-12-02Use new macros, HELP_OPTION_DESCRIPTION and VERSION_OPTION_DESCRIPTIONJim Meyering
instead of hard-coding --help and --version descriptions.
2001-12-02*** empty log message ***Jim Meyering
2001-12-02(touch): Extend the change of 2001-09-15 to work onJim Meyering
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-02Don't emulate dd's skip=N for *all* character devices; lseek worksJim Meyering
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-01Reflect renaming to, and new usage of these macros:Jim Meyering
HELP_OPTION_DESCRIPTION and VERSION_OPTION_DESCRIPTION.
2001-12-01Rename just-added macros. Here are the new names:Jim Meyering
HELP_OPTION_DESCRIPTION VERSION_OPTION_DESCRIPTION
2001-12-01(EMIT_HELP_DESCRIPTION): New macro.Jim Meyering
(EMIT_VERSION_DESCRIPTION): New macro.
2001-12-01(usage): Use new macros, EMIT_HELP_DESCRIPTION and EMIT_VERSION_DESCRIPTIONJim Meyering
instead of hard-coding --help and --version descriptions.
2001-11-27The change of 2001-11-01 introduced a bug whereby some recursiveJim Meyering
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(SET_MODE) [O_BINARY]: Call setmode, not set_mode.Jim Meyering
2001-11-26Don't include "gtod.h"Jim Meyering
(main): Don't `call' GETTIMEOFDAY_INIT.
2001-11-26(cat): Don't test whether the full_write return value (of type size_t)Jim Meyering
is less than 0. Reported by Nelson H. F. Beebe, as a warning from Irix 6.5's C compiler.
2001-11-26*** empty log message ***Jim Meyering
2001-11-25(usage): Indent --help and --version strings to start in the 7th column.Jim Meyering
2001-11-25(usage): Indent --help and --version strings to start in the 7th column.Jim Meyering
2001-11-24(usage): Make --help and --version strings start in column 7.Jim Meyering
2001-11-23(usage): Note that ``Mandatory arguments to long options are mandatoryJim Meyering
for short options too.''
2001-11-23(usage): Use `output', not `print' in description ofJim Meyering
the --version option, so this message is consistent with all the rest.
2001-11-23Split usage strings so that --help and --versionJim Meyering
descriptions are alone in their own string.
2001-11-23Factor out some common strings to make translation easier.Jim Meyering
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(main): Don't split string in the middle of sentence.Jim Meyering
2001-11-23(usage): Split --help output into smaller pieces.Jim Meyering
Use fputs, not printf.
2001-11-23Use opaque type, Hash_table, not `struct hash_table'.Jim Meyering
2001-11-22(cp_option_init): Likewise.Jim Meyering
(do_copy): Call src_info_init.
2001-11-22(cp_option_init): Initialize new member.Jim Meyering
2001-11-22(struct cp_options) [src_info]: New member.Jim Meyering
(src_info_init): Declare.
2001-11-22(triple_hash_no_name): New function.Jim Meyering
(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(seen_file): Change type of `stats' parameter to pointer.Jim Meyering
(copy_internal): Update caller.
2001-11-22(struct F_triple): Rename from dest_info.Jim Meyering
(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(main): Add a literal format string to suppressJim Meyering
a warning from gcc's -Wformat-security.
2001-11-22(cp_option_init): Initialize new member.Jim Meyering
(do_copy): Remove const attribute from declaration of parameter, x. dest_info_init now takes a parameter.
2001-11-22(cp_option_init): Initialize new member.Jim Meyering
(main): dest_info_init now takes a parameter.
2001-11-22(cp_option_init): Initialize new member.Jim Meyering
(main): dest_info_init now takes a parameter.
2001-11-22Include hash.h.Jim Meyering
(struct cp_options) [dest_info]: New member.
2001-11-22copy.c shouldn't maintain static state.Jim Meyering
(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-22csplit could get a failed assertion: printf 'a\n\n'|csplit - '/^$/' 2Jim Meyering
No longer include assert.h. (process_line_count): Remove invalid assertion.
2001-11-20remove FIXME comment about duplicate codeJim Meyering
2001-11-19(xlseek): New function.Jim Meyering
Call it instead of lseek, in most cases, so any failure is reported.
2001-11-17(tail_forever): Add a cast.Jim Meyering
2001-11-17Remove `unsigned' attribute from type of global `prefix'.Jim Meyering
(copy_rest): Cast to (unsigned char *) before dereferencing. (get_prefix): Likewise.
2001-11-14(file_lines): Remove unnecessary cast.Jim Meyering
(tail_lines): Could have called file_lines even though the first lseek failed. Fix that.
2001-11-13split a line that was too longJim Meyering
2001-11-13(file_lines): Add a parameter, start_pos.Jim Meyering
Work properly even when the read pointer is not at beginning of file. (tail_lines): Call file_lines for any regular file, as long as lseek can be used to seek to its end, not just when the initial read pointer is at beginning of file.
2001-11-13(tail_lines): Move declaration of local `length' into scope where it's used.Jim Meyering
(tail_file): Likewise for local `stats'.
2001-11-13`tail /proc/ksyms' would segfault on Linux.Jim Meyering
(tail_lines): Use status of lseek (...SEEK_END) call in deciding whether to call file_lines or pipe_lines. From Herbert Xu.