summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
1998-05-13(copy_internal): Plug a small leak.Jim Meyering
1998-05-11(do_move): Remove lots of code that was duplicated inJim Meyering
copy.c (copy), now that copy() has better support for mv. This fixes a bug with cross-filesystem `mv -i' whereby you could get two prompts for the same destination file and eventually remove the destination file even though one of the responses was negative. Reported by Dirk Lattermann.
1998-05-11reflect additional parameter to copyJim Meyering
initialize new member: move_mode.
1998-05-11(copy_internal): Use new move_mode member.Jim Meyering
Add parameter. (copy): Add parameter.
1998-05-11Better support for mv:Jim Meyering
[struct cp_options] (move_mode): New member.
1998-05-10(cp_option_init): s/use_mode/set_mode/Jim Meyering
1998-05-10(cp_option_init): Likewise.Jim Meyering
(main): Set new preserve_* options.
1998-05-10(cp_option_init): Initialize new members.Jim Meyering
1998-05-10(new_nondir_mode): New function. Use where appropriate.Jim Meyering
Use more-specific preserve_* members in place of removed `preserve'. (copy_internal): Honor failed_unlink_is_fatal.
1998-05-10Support for install:Jim Meyering
[struct cp_options] (failed_unlink_is_fatal): New member. (preserve_owner_and_group): New member. (preserve_chmod_bits): New member. (preserve_timestamps): New member. (preserve): Remove member. (set_mode): New member. (mode): New member.
1998-05-10(main): Rewrite argv-handling to be clearer.Jim Meyering
(copy_file): Rewrite to use copy.c (copy). (change_attributes): Get rid of now-(with chown wrapper)-unnecessary `no_need_to_chown' parameter. Fix caller. (install_file_in_file): Remove now-unnecessary `to_created' parameter. (cp_option_init): New function. Update several functions to take new parameter specifying copy options.
1998-05-09Include safe-read.h.Jim Meyering
Don't declare safe_read.
1998-05-09Include safe-read.h.Jim Meyering
Don't declare safe_read.
1998-05-09(tac_seekable): Rename from tac_stream.Jim Meyering
Change `FILE *in' parameter to `int input_fd'. Adjust callers. Revert to using safe_read -- can't mix lseek and fread. And can't use fseek because it can't handle files larger than 2^32.
1998-05-07fix up compile warningsJim Meyering
1998-05-07Don't use safe_read. Use fread instead.Jim Meyering
Fix open and fdopen to agree that file is read/write: O_RDWR and "w+". This is required on at least solaris5.5.1.
1998-05-07add curliesJim Meyering
1998-05-07add some curly bracesJim Meyering
1998-05-07rename variableJim Meyering
1998-05-07(tac_stdin): Use STDIN_FILENO rather than literal `0' in fstat call.Jim Meyering
1998-05-04remove dcl of unused safe_readJim Meyering
1998-05-02(check_format): Use ISDIGIT, not isdigit.Jim Meyering
1998-04-28(parse_line): Use ISSPACE, not isspace.Jim Meyering
Use unsigned char * pointers, not potentially signed ones, to avoid sign extension.
1998-04-27Remove definition of _GNU_SOURCEJim Meyering
1998-04-27(keycompare): Don't return 0 from inside the keyspec-iterating loop.Jim Meyering
With this change, test 22a passes. Reported by Zvi Har'El.
1998-04-27(strncoll): Remove bogus assertion.Jim Meyering
1998-04-26Don't define NDEBUG.Jim Meyering
1998-04-26Don't define NDEBUG.Jim Meyering
1998-04-26Do not define _GNU_SOURCE and/or NDEBUGJim Meyering
1998-04-26[struct File_spec] (pretty_name): Remove member.Jim Meyering
(pretty_name): New function.
1998-04-26Remove usage-like comments near beginning of file.Jim Meyering
1998-04-26(xwrite): New function -- converted from macro.Jim Meyering
1998-04-26(close_fd): New function -- converted from macro.Jim Meyering
[struct File_spec] (n_stat_calls): New member. [struct File_spec] (n_unchanged_stats): New member. (max_n_unchanged_stats): New global. Initialize new members.
1998-04-26(md5_check): Declare local, `md5num' as _unsigned_ char*.Jim Meyering
(hex_digits): Declare parameter `s' as _unsigned_ char*. (split_3): Declare parameter `u' as _unsigned_ char**.
1998-04-26(print_nth_dir): Remove first (and always-true) part of conjunct in assertion.Jim Meyering
1998-04-17(xfields): Used unsigned char* pointers to avoidJim Meyering
1998-04-17(check_punctuation): Used unsigned char* pointers to avoidJim Meyering
1998-04-14Use STREQ in string equality tests, not strcmp.Jim Meyering
1998-04-12Include safe-read.h instead of merely declaring safe_read.Jim Meyering
1998-04-12Use STREQ rather than strcmpJim Meyering
1998-04-12(wc): Declare per-file counters and `linepos' to be of type uintmax_t.Jim Meyering
Declare bytes_read to be ssize_t.
1998-04-11Include safe-read.h instead of merely declaring safe_read.Jim Meyering
1998-04-11Include safe-read.h instead of merely declaring safe_read.Jim Meyering
1998-04-11[HAVE_INTTYPES_H]: Include inttypes.h.Jim Meyering
Declare counters to be of type uintmax_t. (write_counts): Use human_readable to format potentially-long-long numbers. Suggestion from Rogier Wolff.
1998-04-11*** empty log message ***Jim Meyering
1998-04-06(cph_hash_insert): Rename from now-conflicting hash_insert.Jim Meyering
Also declare to be static.
1998-04-06(hash_insert): Remove declaration.Jim Meyering
1998-04-06Change names/usage of hash-related functions to work with the above.Jim Meyering
1998-04-04Use "%s", not device_name, as the format string, in case theJim Meyering
latter contains `%'.
1998-04-04clean up commentsJim Meyering