platform/upstream/coreutils.git
23 years ago(struct cp_options) [failed_unlink_is_fatal]: Remove unused member.
Jim Meyering [Sat, 13 Oct 2001 19:12:06 +0000 (19:12 +0000)]
(struct cp_options) [failed_unlink_is_fatal]: Remove unused member.

23 years ago*** empty log message ***
Jim Meyering [Sat, 13 Oct 2001 17:25:17 +0000 (17:25 +0000)]
*** empty log message ***

23 years ago* src/copy.h (struct cp_options): Rename members:
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.

23 years ago* src/copy.h (struct cp_options): Rename members:
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.

23 years ago(struct cp_options): Rename members:
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/.

23 years ago*** empty log message ***
Jim Meyering [Sat, 13 Oct 2001 16:54:18 +0000 (16:54 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Sat, 13 Oct 2001 16:51:09 +0000 (16:51 +0000)]
*** empty log message ***

23 years agoFix typo: s/Sh/SH/ before OPTIONS.
Jim Meyering [Sat, 13 Oct 2001 16:50:59 +0000 (16:50 +0000)]
Fix typo: s/Sh/SH/ before OPTIONS.

23 years agodon't use diff
Jim Meyering [Fri, 12 Oct 2001 21:47:06 +0000 (21:47 +0000)]
don't use diff

23 years ago*** empty log message ***
Jim Meyering [Fri, 12 Oct 2001 07:03:12 +0000 (07:03 +0000)]
*** empty log message ***

23 years ago(TESTS): Add infloop.
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).

23 years ago*** empty log message ***
Jim Meyering [Fri, 12 Oct 2001 06:33:55 +0000 (06:33 +0000)]
*** empty log message ***

23 years ago(main): Tell what's wrong with `mknod c zero 1 5' rather
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.'.

23 years ago*** empty log message ***
Jim Meyering [Thu, 11 Oct 2001 15:52:22 +0000 (15:52 +0000)]
*** empty log message ***

23 years ago(argmatch_invalid): Use quotearg_n_style (0, ...
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.

23 years ago*** empty log message ***
Jim Meyering [Sun, 7 Oct 2001 09:39:35 +0000 (09:39 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Sun, 7 Oct 2001 09:39:09 +0000 (09:39 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Sun, 7 Oct 2001 08:41:23 +0000 (08:41 +0000)]
*** empty log message ***

23 years ago(remember_copied): Make a local copy of the file name.
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.

23 years ago(copy_dir): Now that remember_copied copies the
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.

23 years ago(do_copy): Don't clear the hash table after processing
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.

23 years agowhoops. use cp's -a option
Jim Meyering [Sun, 7 Oct 2001 07:52:40 +0000 (07:52 +0000)]
whoops.  use cp's -a option

23 years ago(TESTS): Add link-preserve.
Jim Meyering [Sun, 7 Oct 2001 07:47:41 +0000 (07:47 +0000)]
(TESTS): Add link-preserve.

23 years ago*** empty log message ***
Jim Meyering [Sun, 7 Oct 2001 07:47:29 +0000 (07:47 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Sat, 6 Oct 2001 21:31:57 +0000 (21:31 +0000)]
*** empty log message ***

23 years agoConvert du.c to use the functions in lib/hash.c, not private,
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.

23 years ago(hash_init): Die if hash_initialize fails.
Jim Meyering [Sat, 6 Oct 2001 21:25:08 +0000 (21:25 +0000)]
(hash_init): Die if hash_initialize fails.

23 years ago*** empty log message ***
Jim Meyering [Sat, 6 Oct 2001 17:25:12 +0000 (17:25 +0000)]
*** empty log message ***

23 years agoUpdate prototype for hash_init.
Jim Meyering [Sat, 6 Oct 2001 17:24:58 +0000 (17:24 +0000)]
Update prototype for hash_init.

23 years agoRewrite to use the functions in lib/hash.c.
Jim Meyering [Sat, 6 Oct 2001 17:24:10 +0000 (17:24 +0000)]
Rewrite to use the functions in lib/hash.c.

23 years ago(record_dest): Fix test for whether to free `ent'.
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.

23 years ago*** empty log message ***
Jim Meyering [Sat, 6 Oct 2001 16:46:27 +0000 (16:46 +0000)]
*** empty log message ***

23 years ago(main): Reflect that hash_init now takes no arguments.
Jim Meyering [Sat, 6 Oct 2001 16:46:06 +0000 (16:46 +0000)]
(main): Reflect that hash_init now takes no arguments.

23 years ago(do_move): 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.

23 years ago(record_dest): Avoid a small leak.
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.

23 years agoRedirect stderr.
Jim Meyering [Sat, 6 Oct 2001 10:43:07 +0000 (10:43 +0000)]
Redirect stderr.

23 years ago*** empty log message ***
Jim Meyering [Fri, 5 Oct 2001 11:47:15 +0000 (11:47 +0000)]
*** empty log message ***

23 years agoInclude hash-pjw.h and remove definition of hash_pjw.
Jim Meyering [Fri, 5 Oct 2001 11:46:57 +0000 (11:46 +0000)]
Include hash-pjw.h and remove definition of hash_pjw.

23 years ago.
Jim Meyering [Fri, 5 Oct 2001 11:45:36 +0000 (11:45 +0000)]
.

23 years ago(libfetish_a_SOURCES): Add hash-pjw.c and hash-pjw.h.
Jim Meyering [Fri, 5 Oct 2001 11:45:25 +0000 (11:45 +0000)]
(libfetish_a_SOURCES): Add hash-pjw.c and hash-pjw.h.

23 years ago*** empty log message ***
Jim Meyering [Fri, 5 Oct 2001 11:44:30 +0000 (11:44 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Thu, 4 Oct 2001 07:52:44 +0000 (07:52 +0000)]
*** empty log message ***

23 years agoadjust to use new option-arg name
Jim Meyering [Thu, 4 Oct 2001 07:50:09 +0000 (07:50 +0000)]
adjust to use new option-arg name

23 years ago*** empty log message ***
Jim Meyering [Thu, 4 Oct 2001 07:49:19 +0000 (07:49 +0000)]
*** empty log message ***

23 years agoRename --all-repeated argument `precede' to `prepend'.
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.

23 years ago*** empty log message *** TEXTUTILS-2_0_16
Jim Meyering [Sun, 30 Sep 2001 21:39:54 +0000 (21:39 +0000)]
*** empty log message ***

23 years ago(jm_LIST_MOUNTED_FILESYSTEMS): See if
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.

23 years ago*** empty log message ***
Jim Meyering [Sun, 30 Sep 2001 21:28:26 +0000 (21:28 +0000)]
*** empty log message ***

23 years ago[MOUNTED_GETFSSTAT]:
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.

23 years ago*** empty log message ***
Jim Meyering [Sun, 30 Sep 2001 15:38:23 +0000 (15:38 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Sun, 30 Sep 2001 11:33:04 +0000 (11:33 +0000)]
*** empty log message ***

23 years agotail -F would segfault
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.

23 years ago*** empty log message ***
Jim Meyering [Sun, 30 Sep 2001 06:26:57 +0000 (06:26 +0000)]
*** empty log message ***

23 years ago(excluded_filename): 0 -> false, since it's a boolean context.
Jim Meyering [Sun, 30 Sep 2001 06:26:46 +0000 (06:26 +0000)]
(excluded_filename): 0 -> false, since it's a boolean context.

23 years ago*** empty log message ***
Jim Meyering [Sat, 29 Sep 2001 10:30:41 +0000 (10:30 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Sat, 29 Sep 2001 10:29:25 +0000 (10:29 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Sat, 29 Sep 2001 10:27:35 +0000 (10:27 +0000)]
*** empty log message ***

23 years ago(jm_LIST_MOUNTED_FILESYSTEMS)
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/.

23 years ago*** empty log message ***
Jim Meyering [Sat, 29 Sep 2001 09:37:13 +0000 (09:37 +0000)]
*** empty log message ***

23 years ago(copy_internal): Call record_dest for all types of
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.

23 years ago*** empty log message ***
Jim Meyering [Sat, 29 Sep 2001 08:13:26 +0000 (08:13 +0000)]
*** empty log message ***

23 years ago(jm_LIST_MOUNTED_FILESYSTEMS)
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.

23 years ago*** empty log message ***
Jim Meyering [Sat, 29 Sep 2001 06:49:35 +0000 (06:49 +0000)]
*** empty log message ***

23 years ago(wget-update): Add mkinstalldirs.
Jim Meyering [Sat, 29 Sep 2001 06:49:25 +0000 (06:49 +0000)]
(wget-update): Add mkinstalldirs.

23 years ago*** empty log message ***
Jim Meyering [Fri, 28 Sep 2001 19:58:37 +0000 (19:58 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Fri, 28 Sep 2001 19:55:51 +0000 (19:55 +0000)]
*** empty log message ***

23 years ago(main): Call dest_info_init if necessary.
Jim Meyering [Fri, 28 Sep 2001 19:55:06 +0000 (19:55 +0000)]
(main): Call dest_info_init if necessary.

23 years ago(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.

23 years ago(do_copy): 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.

23 years ago(dest_info_init): Declare.
Jim Meyering [Fri, 28 Sep 2001 19:52:01 +0000 (19:52 +0000)]
(dest_info_init): Declare.

23 years agoInclude "hash.h" and "same.h".
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.

23 years agoAccept new option: --reply={yes,no,query}
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.

23 years ago*** empty log message ***
Jim Meyering [Fri, 28 Sep 2001 19:37:57 +0000 (19:37 +0000)]
*** empty log message ***

23 years ago* xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
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.

23 years ago*** empty log message ***
Jim Meyering [Fri, 28 Sep 2001 19:35:42 +0000 (19:35 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Fri, 28 Sep 2001 19:35:01 +0000 (19:35 +0000)]
*** empty log message ***

23 years ago(strtol): Do not declare if HAVE_DECL_STRTOL.
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.

23 years ago.
Jim Meyering [Fri, 28 Sep 2001 08:14:35 +0000 (08:14 +0000)]
.

23 years ago*** empty log message ***
Jim Meyering [Fri, 28 Sep 2001 08:08:41 +0000 (08:08 +0000)]
*** empty log message ***

23 years ago.
Jim Meyering [Fri, 28 Sep 2001 08:06:04 +0000 (08:06 +0000)]
.

23 years ago*** empty log message ***
Jim Meyering [Fri, 28 Sep 2001 06:45:25 +0000 (06:45 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Wed, 26 Sep 2001 08:51:53 +0000 (08:51 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Wed, 26 Sep 2001 08:51:24 +0000 (08:51 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Wed, 26 Sep 2001 08:33:14 +0000 (08:33 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Wed, 26 Sep 2001 08:27:49 +0000 (08:27 +0000)]
*** empty log message ***

23 years ago(USE_UNLOCKED_IO): Define to 1 if not already defined.
Jim Meyering [Wed, 26 Sep 2001 08:27:42 +0000 (08:27 +0000)]
(USE_UNLOCKED_IO): Define to 1 if not already defined.

23 years ago.
Jim Meyering [Wed, 26 Sep 2001 08:22:37 +0000 (08:22 +0000)]
.

23 years ago*** empty log message ***
Jim Meyering [Wed, 26 Sep 2001 08:21:55 +0000 (08:21 +0000)]
*** empty log message ***

23 years agoremove now-unused tmp/trap junk
Jim Meyering [Wed, 26 Sep 2001 08:21:06 +0000 (08:21 +0000)]
remove now-unused tmp/trap junk

23 years agoexit from only one place: the end
Jim Meyering [Wed, 26 Sep 2001 08:20:38 +0000 (08:20 +0000)]
exit from only one place: the end

23 years agoportability tweaks
Jim Meyering [Wed, 26 Sep 2001 08:19:17 +0000 (08:19 +0000)]
portability tweaks

23 years ago*** empty log message ***
Jim Meyering [Wed, 26 Sep 2001 08:13:41 +0000 (08:13 +0000)]
*** empty log message ***

23 years ago(unlocked-io.h): Use $(SHELL).
Jim Meyering [Wed, 26 Sep 2001 08:13:27 +0000 (08:13 +0000)]
(unlocked-io.h): Use $(SHELL).

23 years ago.
Jim Meyering [Wed, 26 Sep 2001 08:11:20 +0000 (08:11 +0000)]
.

23 years ago(unlocked-io.h): Rewrite to use a separate script,
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

23 years ago.
Jim Meyering [Wed, 26 Sep 2001 07:55:04 +0000 (07:55 +0000)]
.

23 years ago*** empty log message ***
Jim Meyering [Wed, 26 Sep 2001 07:53:18 +0000 (07:53 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Wed, 26 Sep 2001 07:52:57 +0000 (07:52 +0000)]
*** empty log message ***

23 years agoUpdate to autoconf 2.50 version.
Jim Meyering [Wed, 26 Sep 2001 07:44:23 +0000 (07:44 +0000)]
Update to autoconf 2.50 version.

23 years ago*** empty log message ***
Jim Meyering [Tue, 25 Sep 2001 13:01:36 +0000 (13:01 +0000)]
*** empty log message ***