Jim Meyering [Sat, 13 Oct 2001 19:12:06 +0000 (19:12 +0000)]
(struct cp_options) [failed_unlink_is_fatal]: Remove unused member.
Jim Meyering [Sat, 13 Oct 2001 17:25:17 +0000 (17:25 +0000)]
*** empty log message ***
Jim Meyering [Sat, 13 Oct 2001 17:24:38 +0000 (17:24 +0000)]
* src/copy.h (struct cp_options): Rename members:
s/preserve_owner_and_group/preserve_ownership/, and
s/preserve_chmod_bits/preserve_mode/.
* src/copy.c, src/cp.c, src/install.c, src/mv.c: Update all uses.
Jim Meyering [Sat, 13 Oct 2001 17:24:09 +0000 (17:24 +0000)]
* src/copy.h (struct cp_options): Rename members:
s/preserve_owner_and_group/preserve_ownership/, and
s/preserve_chmod_bits/preserve_mode/.
* src/copy.c, src/cp.c, src/install.c, src/mv.c: Update all uses.
Jim Meyering [Sat, 13 Oct 2001 17:23:44 +0000 (17:23 +0000)]
(struct cp_options): Rename members:
s/preserve_owner_and_group/preserve_ownership/, and
s/preserve_chmod_bits/preserve_mode/.
Jim Meyering [Sat, 13 Oct 2001 16:54:18 +0000 (16:54 +0000)]
*** empty log message ***
Jim Meyering [Sat, 13 Oct 2001 16:51:09 +0000 (16:51 +0000)]
*** empty log message ***
Jim Meyering [Sat, 13 Oct 2001 16:50:59 +0000 (16:50 +0000)]
Fix typo: s/Sh/SH/ before OPTIONS.
Jim Meyering [Fri, 12 Oct 2001 21:47:06 +0000 (21:47 +0000)]
don't use diff
Jim Meyering [Fri, 12 Oct 2001 07:03:12 +0000 (07:03 +0000)]
*** empty log message ***
Jim Meyering [Fri, 12 Oct 2001 07:03:04 +0000 (07:03 +0000)]
(TESTS): Add infloop.
(XFAIL_TESTS): Mark it as a test that we expect to fail (temporarily).
Jim Meyering [Fri, 12 Oct 2001 06:33:55 +0000 (06:33 +0000)]
*** empty log message ***
Jim Meyering [Fri, 12 Oct 2001 06:32:13 +0000 (06:32 +0000)]
(main): Tell what's wrong with `mknod c zero 1 5' rather
than saying just `Try `./mknod --help' for more information.'.
Jim Meyering [Thu, 11 Oct 2001 15:52:22 +0000 (15:52 +0000)]
*** empty log message ***
Jim Meyering [Thu, 11 Oct 2001 15:52:17 +0000 (15:52 +0000)]
(argmatch_invalid): Use quotearg_n_style (0, ...
and quote_n (1, ... to avoid clobbering a buffer.
Jim Meyering [Sun, 7 Oct 2001 09:39:35 +0000 (09:39 +0000)]
*** empty log message ***
Jim Meyering [Sun, 7 Oct 2001 09:39:09 +0000 (09:39 +0000)]
*** empty log message ***
Jim Meyering [Sun, 7 Oct 2001 08:41:23 +0000 (08:41 +0000)]
*** empty log message ***
Jim Meyering [Sun, 7 Oct 2001 08:41:03 +0000 (08:41 +0000)]
(remember_copied): Make a local copy of the file name.
(src_to_dest_free): New function (to free the above).
(hash_init): Register src_to_dest_free.
Jim Meyering [Sun, 7 Oct 2001 08:40:00 +0000 (08:40 +0000)]
(copy_dir): Now that remember_copied copies the
file name, free the temporary `dst_path' allocated here.
Jim Meyering [Sun, 7 Oct 2001 08:39:43 +0000 (08:39 +0000)]
(do_copy): Don't clear the hash table after processing
each command line argument.
Jim Meyering [Sun, 7 Oct 2001 07:52:40 +0000 (07:52 +0000)]
whoops. use cp's -a option
Jim Meyering [Sun, 7 Oct 2001 07:47:41 +0000 (07:47 +0000)]
(TESTS): Add link-preserve.
Jim Meyering [Sun, 7 Oct 2001 07:47:29 +0000 (07:47 +0000)]
*** empty log message ***
Jim Meyering [Sat, 6 Oct 2001 21:31:57 +0000 (21:31 +0000)]
*** empty log message ***
Jim Meyering [Sat, 6 Oct 2001 21:29:19 +0000 (21:29 +0000)]
Convert du.c to use the functions in lib/hash.c, not private,
slightly-modified copies of those that used to be in cp-hash.c.
(struct entry) [coll_link]: Remove member.
(struct htab): Remove.
(hash_reset, hash_init, hash_insert2, hash_insert): Remove functions.
Include hash.h and same.h.
(htab): Change type of global to `struct hash';
(entry_hash, entry_compare, hash_ins): New functions.
(count_entry): Use hash_ins instead of hash_insert.
Jim Meyering [Sat, 6 Oct 2001 21:25:08 +0000 (21:25 +0000)]
(hash_init): Die if hash_initialize fails.
Jim Meyering [Sat, 6 Oct 2001 17:25:12 +0000 (17:25 +0000)]
*** empty log message ***
Jim Meyering [Sat, 6 Oct 2001 17:24:58 +0000 (17:24 +0000)]
Update prototype for hash_init.
Jim Meyering [Sat, 6 Oct 2001 17:24:10 +0000 (17:24 +0000)]
Rewrite to use the functions in lib/hash.c.
Jim Meyering [Sat, 6 Oct 2001 17:07:15 +0000 (17:07 +0000)]
(record_dest): Fix test for whether to free `ent'.
Thank heavens for regression tests.
Jim Meyering [Sat, 6 Oct 2001 16:46:27 +0000 (16:46 +0000)]
*** empty log message ***
Jim Meyering [Sat, 6 Oct 2001 16:46:06 +0000 (16:46 +0000)]
(main): Reflect that hash_init now takes no arguments.
Jim Meyering [Sat, 6 Oct 2001 16:45:53 +0000 (16:45 +0000)]
(do_move): Reflect that hash_init now takes no arguments.
Jim Meyering [Sat, 6 Oct 2001 16:43:07 +0000 (16:43 +0000)]
(record_dest): Avoid a small leak.
(copy_internal): Call remember_copied only for if the source file
has 1 < st_nlink, or if it's a directory.
Now that EARLIER_FILE is set conditionally, initialize it to NULL.
Jim Meyering [Sat, 6 Oct 2001 10:43:07 +0000 (10:43 +0000)]
Redirect stderr.
Jim Meyering [Fri, 5 Oct 2001 11:47:15 +0000 (11:47 +0000)]
*** empty log message ***
Jim Meyering [Fri, 5 Oct 2001 11:46:57 +0000 (11:46 +0000)]
Include hash-pjw.h and remove definition of hash_pjw.
Jim Meyering [Fri, 5 Oct 2001 11:45:36 +0000 (11:45 +0000)]
.
Jim Meyering [Fri, 5 Oct 2001 11:45:25 +0000 (11:45 +0000)]
(libfetish_a_SOURCES): Add hash-pjw.c and hash-pjw.h.
Jim Meyering [Fri, 5 Oct 2001 11:44:30 +0000 (11:44 +0000)]
*** empty log message ***
Jim Meyering [Thu, 4 Oct 2001 07:52:44 +0000 (07:52 +0000)]
*** empty log message ***
Jim Meyering [Thu, 4 Oct 2001 07:50:09 +0000 (07:50 +0000)]
adjust to use new option-arg name
Jim Meyering [Thu, 4 Oct 2001 07:49:19 +0000 (07:49 +0000)]
*** empty log message ***
Jim Meyering [Thu, 4 Oct 2001 07:49:10 +0000 (07:49 +0000)]
Rename --all-repeated argument `precede' to `prepend'.
* src/uniq.c (enum delimit_method): s/DM_PRECEDE/DM_PREPEND/
and change all uses.
(delimit_method_string): s/precede/prepend/
Patch by Padraig Brady.
* src/uniq.c (usage): Correct typo in description of --all-repeated.
Patch by Padraig Brady.
Jim Meyering [Sun, 30 Sep 2001 21:39:54 +0000 (21:39 +0000)]
*** empty log message ***
Jim Meyering [Sun, 30 Sep 2001 21:39:51 +0000 (21:39 +0000)]
(jm_LIST_MOUNTED_FILESYSTEMS): See if
`struct fsstat' has the `f_fstypename' member.
Use that to define FS_TYPE, which is now used to make
the getfsstat link test tighter.
Jim Meyering [Sun, 30 Sep 2001 21:28:26 +0000 (21:28 +0000)]
*** empty log message ***
Jim Meyering [Sun, 30 Sep 2001 21:28:15 +0000 (21:28 +0000)]
[MOUNTED_GETFSSTAT]:
Include <sys/ucred.h>, for Apple Darwin.
Include sys/mount.h and sys/fs_types.h only if available.
(FS_TYPE): Define.
(read_filesystem_list): Use FS_TYPE.
Jim Meyering [Sun, 30 Sep 2001 15:38:23 +0000 (15:38 +0000)]
*** empty log message ***
Jim Meyering [Sun, 30 Sep 2001 11:33:04 +0000 (11:33 +0000)]
*** empty log message ***
Jim Meyering [Sun, 30 Sep 2001 11:32:58 +0000 (11:32 +0000)]
tail -F would segfault
(parse_options): Add missing `break;' from last change.
Jim Meyering [Sun, 30 Sep 2001 06:26:57 +0000 (06:26 +0000)]
*** empty log message ***
Jim Meyering [Sun, 30 Sep 2001 06:26:46 +0000 (06:26 +0000)]
(excluded_filename): 0 -> false, since it's a boolean context.
Jim Meyering [Sat, 29 Sep 2001 10:30:41 +0000 (10:30 +0000)]
*** empty log message ***
Jim Meyering [Sat, 29 Sep 2001 10:29:25 +0000 (10:29 +0000)]
*** empty log message ***
Jim Meyering [Sat, 29 Sep 2001 10:27:35 +0000 (10:27 +0000)]
*** empty log message ***
Jim Meyering [Sat, 29 Sep 2001 10:27:28 +0000 (10:27 +0000)]
(jm_LIST_MOUNTED_FILESYSTEMS)
Check for these headers: sys/param.h sys/ucred.h sys/mount.h
sys/fs_types.h, and make the link-test for getfsstat guard #include
directives with appropriate #if HAVE_*_H tests so that we can
detect getfsstat on Apple Darwin1.3.7 systems.
Also fix harmless typo in cache variable name: s/getsstat/getfsstat/.
Jim Meyering [Sat, 29 Sep 2001 09:37:13 +0000 (09:37 +0000)]
*** empty log message ***
Jim Meyering [Sat, 29 Sep 2001 09:35:01 +0000 (09:35 +0000)]
(copy_internal): Call record_dest for all types of
files (for which this makes sense), not just regular ones.
Jim Meyering [Sat, 29 Sep 2001 08:13:26 +0000 (08:13 +0000)]
*** empty log message ***
Jim Meyering [Sat, 29 Sep 2001 08:13:18 +0000 (08:13 +0000)]
(jm_LIST_MOUNTED_FILESYSTEMS)
[one-argument getmntent function]): Include stdio.h before mntent.h.
SunOS4.1.x needs it for the declaration of `FILE'.
Patch by Volker Borchert.
Jim Meyering [Sat, 29 Sep 2001 06:49:35 +0000 (06:49 +0000)]
*** empty log message ***
Jim Meyering [Sat, 29 Sep 2001 06:49:25 +0000 (06:49 +0000)]
(wget-update): Add mkinstalldirs.
Jim Meyering [Fri, 28 Sep 2001 19:58:37 +0000 (19:58 +0000)]
*** empty log message ***
Jim Meyering [Fri, 28 Sep 2001 19:55:51 +0000 (19:55 +0000)]
*** empty log message ***
Jim Meyering [Fri, 28 Sep 2001 19:55:06 +0000 (19:55 +0000)]
(main): Call dest_info_init if necessary.
Jim Meyering [Fri, 28 Sep 2001 19:53:21 +0000 (19:53 +0000)]
(main): Call dest_info_init if necessary.
Jim Meyering [Fri, 28 Sep 2001 19:52:34 +0000 (19:52 +0000)]
(do_copy): Call dest_info_init if necessary.
Jim Meyering [Fri, 28 Sep 2001 19:52:01 +0000 (19:52 +0000)]
(dest_info_init): Declare.
Jim Meyering [Fri, 28 Sep 2001 19:51:19 +0000 (19:51 +0000)]
Include "hash.h" and "same.h".
(struct Dest_info): Define.
(dest_info): Declare global.
(DEST_INFO_INITIAL_CAPACITY): Define.
(hash_pjw): New function.
(dest_info_hash): Likewise.
(dest_info_compare): Likewise.
(dest_info_init): Likewise.
(seen_dest): Likewise.
(record_dest): Likewise.
(copy_internal): If the destination exists, fail if it's in the set
of files that have already been created as part of this mv or cp.
(copy_internal) [move_mode]: Record the destination dev/ino/filename.
(copy_internal) [!move_mode, regular file]: Likewise.
Jim Meyering [Fri, 28 Sep 2001 19:43:17 +0000 (19:43 +0000)]
Accept new option: --reply={yes,no,query}
(enum) [REPLY_OPTION]: Define.
(usage): Describe new option.
Split long usage string into smaller pieces.
(main): Handle new option.
Jim Meyering [Fri, 28 Sep 2001 19:37:57 +0000 (19:37 +0000)]
*** empty log message ***
Jim Meyering [Fri, 28 Sep 2001 19:37:38 +0000 (19:37 +0000)]
* xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
Check for strtoul and strtoumax,
as those declarations are made even in the signed case.
* xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
Likewise, for strtol and strtoimax.
Jim Meyering [Fri, 28 Sep 2001 19:35:42 +0000 (19:35 +0000)]
*** empty log message ***
Jim Meyering [Fri, 28 Sep 2001 19:35:01 +0000 (19:35 +0000)]
*** empty log message ***
Jim Meyering [Fri, 28 Sep 2001 19:34:31 +0000 (19:34 +0000)]
(strtol): Do not declare if HAVE_DECL_STRTOL.
(strtoul): Do not declare if HAVE_DECL_STRTOUL.
(strtoimax, strtoumax): Do not declare if already defined as a macro.
Jim Meyering [Fri, 28 Sep 2001 08:14:35 +0000 (08:14 +0000)]
.
Jim Meyering [Fri, 28 Sep 2001 08:08:41 +0000 (08:08 +0000)]
*** empty log message ***
Jim Meyering [Fri, 28 Sep 2001 08:06:04 +0000 (08:06 +0000)]
.
Jim Meyering [Fri, 28 Sep 2001 06:45:25 +0000 (06:45 +0000)]
*** empty log message ***
Jim Meyering [Wed, 26 Sep 2001 08:51:53 +0000 (08:51 +0000)]
*** empty log message ***
Jim Meyering [Wed, 26 Sep 2001 08:51:24 +0000 (08:51 +0000)]
*** empty log message ***
Jim Meyering [Wed, 26 Sep 2001 08:33:14 +0000 (08:33 +0000)]
*** empty log message ***
Jim Meyering [Wed, 26 Sep 2001 08:27:49 +0000 (08:27 +0000)]
*** empty log message ***
Jim Meyering [Wed, 26 Sep 2001 08:27:42 +0000 (08:27 +0000)]
(USE_UNLOCKED_IO): Define to 1 if not already defined.
Jim Meyering [Wed, 26 Sep 2001 08:22:37 +0000 (08:22 +0000)]
.
Jim Meyering [Wed, 26 Sep 2001 08:21:55 +0000 (08:21 +0000)]
*** empty log message ***
Jim Meyering [Wed, 26 Sep 2001 08:21:06 +0000 (08:21 +0000)]
remove now-unused tmp/trap junk
Jim Meyering [Wed, 26 Sep 2001 08:20:38 +0000 (08:20 +0000)]
exit from only one place: the end
Jim Meyering [Wed, 26 Sep 2001 08:19:17 +0000 (08:19 +0000)]
portability tweaks
Jim Meyering [Wed, 26 Sep 2001 08:13:41 +0000 (08:13 +0000)]
*** empty log message ***
Jim Meyering [Wed, 26 Sep 2001 08:13:27 +0000 (08:13 +0000)]
(unlocked-io.h): Use $(SHELL).
Jim Meyering [Wed, 26 Sep 2001 08:11:20 +0000 (08:11 +0000)]
.
Jim Meyering [Wed, 26 Sep 2001 08:11:01 +0000 (08:11 +0000)]
(unlocked-io.h): Rewrite to use a separate script,
rather than trying to embed it here.
(EXTRA_DIST): Add gen-uio. Remove unlocked-io.hin
Jim Meyering [Wed, 26 Sep 2001 07:55:04 +0000 (07:55 +0000)]
.
Jim Meyering [Wed, 26 Sep 2001 07:53:18 +0000 (07:53 +0000)]
*** empty log message ***
Jim Meyering [Wed, 26 Sep 2001 07:52:57 +0000 (07:52 +0000)]
*** empty log message ***
Jim Meyering [Wed, 26 Sep 2001 07:44:23 +0000 (07:44 +0000)]
Update to autoconf 2.50 version.
Jim Meyering [Tue, 25 Sep 2001 13:01:36 +0000 (13:01 +0000)]
*** empty log message ***