platform/upstream/coreutils.git
22 years ago(_): Honor the setting of ENABLE_NLS. Otherwise,
Jim Meyering [Sun, 21 Oct 2001 13:39:12 +0000 (13:39 +0000)]
(_): Honor the setting of ENABLE_NLS.  Otherwise,
this code would end up calling gettext even in packages built
with --disable-nls.

22 years ago*** empty log message ***
Jim Meyering [Sun, 21 Oct 2001 12:33:26 +0000 (12:33 +0000)]
*** empty log message ***

22 years ago(cp invocation): Describe --reply=...
Jim Meyering [Sun, 21 Oct 2001 12:33:21 +0000 (12:33 +0000)]
(cp invocation): Describe --reply=...

22 years ago*** empty log message ***
Jim Meyering [Sun, 21 Oct 2001 10:55:36 +0000 (10:55 +0000)]
*** empty log message ***

22 years ago(_): Honor the setting of ENABLE_NLS. Otherwise,
Jim Meyering [Sun, 21 Oct 2001 10:55:29 +0000 (10:55 +0000)]
(_): Honor the setting of ENABLE_NLS.  Otherwise,
this code would end up calling gettext even in packages built
with --disable-nls.

22 years ago*** empty log message ***
Jim Meyering [Sun, 21 Oct 2001 09:01:31 +0000 (09:01 +0000)]
*** empty log message ***

22 years ago(_): Honor the setting of ENABLE_NLS. Otherwise,
Jim Meyering [Sun, 21 Oct 2001 09:01:24 +0000 (09:01 +0000)]
(_): Honor the setting of ENABLE_NLS.  Otherwise,
this code would end up calling gettext even in packages built
with --disable-nls.

22 years ago*** empty log message ***
Jim Meyering [Sun, 21 Oct 2001 07:59:09 +0000 (07:59 +0000)]
*** empty log message ***

22 years ago(strerror_r): Do not declare unless !_LIBC.
Jim Meyering [Sun, 21 Oct 2001 07:59:04 +0000 (07:59 +0000)]
(strerror_r): Do not declare unless !_LIBC.
Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
Use strerror_r that is only a macro, even if it is not a function.
(strerror): Check for HAVE_DECL_STRERROR before declaring.
(private_strerror): Use prototypes, not old-style function definition.
(print_errno_message): New function.
Support the POSIX 'int'-flavored strerror_r, as well as the traditional
char*-flavored one.
(error_tail, error, error_at_line): Use it.

22 years ago*** empty log message ***
Jim Meyering [Sun, 21 Oct 2001 07:49:37 +0000 (07:49 +0000)]
*** empty log message ***

22 years ago(jm_PREREQ_ERROR):
Jim Meyering [Sun, 21 Oct 2001 07:49:27 +0000 (07:49 +0000)]
(jm_PREREQ_ERROR):
Do not invoke AC_CHECK_FUNCS with strerror_r, as
AC_FUNC_STRERROR_R does that.

22 years agoAdd copyright notice, as nontrivial m4 files
Jim Meyering [Sun, 21 Oct 2001 07:49:13 +0000 (07:49 +0000)]
Add copyright notice, as nontrivial m4 files
are supposed to have them these days.
(AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
Merge changes from latest Autoconf CVS.
Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
POSIX decided to standardize on the int flavor of strerror_r.

22 years ago*** empty log message ***
Jim Meyering [Sat, 20 Oct 2001 19:13:41 +0000 (19:13 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Sat, 20 Oct 2001 14:59:07 +0000 (14:59 +0000)]
*** empty log message ***

22 years ago(usage): Improve the description of --dereference (-L).
Jim Meyering [Sat, 20 Oct 2001 14:58:59 +0000 (14:58 +0000)]
(usage): Improve the description of --dereference (-L).

22 years agoDeclare some local variables to be `const', where appropriate.
Jim Meyering [Sat, 20 Oct 2001 14:57:39 +0000 (14:57 +0000)]
Declare some local variables to be `const', where appropriate.

22 years ago*** empty log message ***
Jim Meyering [Sat, 20 Oct 2001 14:54:07 +0000 (14:54 +0000)]
*** empty log message ***

22 years ago(usage): Clarify description of --directory (-d).
Jim Meyering [Sat, 20 Oct 2001 14:53:45 +0000 (14:53 +0000)]
(usage): Clarify description of --directory (-d).
Based on a patch from Michael Stone.

22 years ago*** empty log message ***
Jim Meyering [Sat, 20 Oct 2001 14:41:31 +0000 (14:41 +0000)]
*** empty log message ***

22 years agotweak
Jim Meyering [Sat, 20 Oct 2001 14:41:23 +0000 (14:41 +0000)]
tweak

22 years agoDescribe sticky files and directories.
Jim Meyering [Sat, 20 Oct 2001 14:40:12 +0000 (14:40 +0000)]
Describe sticky files and directories.

22 years ago*** empty log message ***
Jim Meyering [Sat, 20 Oct 2001 14:01:33 +0000 (14:01 +0000)]
*** empty log message ***

22 years agoDon't use a umask that removes owner read/write.
Jim Meyering [Sat, 20 Oct 2001 14:01:23 +0000 (14:01 +0000)]
Don't use a umask that removes owner read/write.
Use a stricter test for permissions.

22 years agoDon't use a umask that removes owner
Jim Meyering [Sat, 20 Oct 2001 13:59:57 +0000 (13:59 +0000)]
Don't use a umask that removes owner
read/write.  That induces spurious failures in a probably-old
version of purify.

22 years agosplit a long line into two
Jim Meyering [Thu, 18 Oct 2001 20:29:57 +0000 (20:29 +0000)]
split a long line into two

22 years ago*** empty log message ***
Jim Meyering [Thu, 18 Oct 2001 08:14:45 +0000 (08:14 +0000)]
*** empty log message ***

22 years ago(movefile): Now that remember_copied xstrdup's the file name, free `new_dest'.
Jim Meyering [Thu, 18 Oct 2001 08:13:28 +0000 (08:13 +0000)]
(movefile): Now that remember_copied xstrdup's the file name, free `new_dest'.

22 years ago*** empty log message ***
Jim Meyering [Thu, 18 Oct 2001 07:45:00 +0000 (07:45 +0000)]
*** empty log message ***

22 years agoPlug a leak.
Jim Meyering [Thu, 18 Oct 2001 07:44:41 +0000 (07:44 +0000)]
Plug a leak.
(remember_copied): Use src_to_dest_free to free the entry we couldn't insert.

22 years ago(dest_info_free): New function.
Jim Meyering [Thu, 18 Oct 2001 07:42:11 +0000 (07:42 +0000)]
(dest_info_free): New function.
(dest_info_init): Make the hash table code use it.
(record_dest): Store each DEST in malloc'd  memory.  Hence the above.
Use dest_info_free to free the `ent' we couldn't insert.

22 years ago*** empty log message ***
Jim Meyering [Wed, 17 Oct 2001 10:24:13 +0000 (10:24 +0000)]
*** empty log message ***

22 years ago(cp invocation): `cp --no-dereference' is
Jim Meyering [Wed, 17 Oct 2001 10:24:07 +0000 (10:24 +0000)]
(cp invocation): `cp --no-dereference' is
no longer equivalent to `cp -d'.
`cp -d' is equivalent to `--no-dereference --preserve=links'.
cp's -P option means --no-dereference, not --parents.
Describe new optional argument to --preserve.
Describe new option: --no-preserve=ATTRIBUTE_LIST.

22 years ago*** empty log message ***
Jim Meyering [Wed, 17 Oct 2001 10:14:28 +0000 (10:14 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Wed, 17 Oct 2001 10:11:52 +0000 (10:11 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Sun, 14 Oct 2001 20:55:02 +0000 (20:55 +0000)]
*** empty log message ***

22 years agoNow, -P is the same as --no-dereference, per POSIX.
Jim Meyering [Sun, 14 Oct 2001 20:54:44 +0000 (20:54 +0000)]
Now, -P is the same as --no-dereference, per POSIX.
Use --parents to get the old meaning.

(enum) [NO_DEREFERENCE_OPTION]: Remove member.
(long_opts): Associate --no-dereference with `-P'.
(usage): Update description of -P.
(main): Remove local, used_P_option, and code to warn
that the meaning of -P would be changing.

22 years ago.
Jim Meyering [Sat, 13 Oct 2001 21:42:16 +0000 (21:42 +0000)]
.

22 years ago*** empty log message ***
Jim Meyering [Sat, 13 Oct 2001 20:53:41 +0000 (20:53 +0000)]
*** empty log message ***

22 years ago(copy_internal): Tighten up and add comments
Jim Meyering [Sat, 13 Oct 2001 20:53:36 +0000 (20:53 +0000)]
(copy_internal): Tighten up and add comments
describing the test for when to record (via remember_copied)
a <dst_path, source_dev, source_ino> triple.
Relax the test that guards the hard-linked-dir check and
the hard-link-preserving code.

22 years agoadd tests for some of the recent changes to cp
Jim Meyering [Sat, 13 Oct 2001 20:44:59 +0000 (20:44 +0000)]
add tests for some of the recent changes to cp

22 years ago*** empty log message ***
Jim Meyering [Sat, 13 Oct 2001 19:58:41 +0000 (19:58 +0000)]
*** empty log message ***

22 years ago(enum) [NO_DEREFERENCE_OPTION]: New member.
Jim Meyering [Sat, 13 Oct 2001 19:57:08 +0000 (19:57 +0000)]
(enum) [NO_DEREFERENCE_OPTION]: New member.
(enum) [NO_PRESERVE_ATTRIBUTES_OPTION]: New member.
(enum) [PRESERVE_ATTRIBUTES_OPTION]: New member.
(long_opts): Separate -d and --no-dereference options.
Add `no-preserve'.
Separate -p and --preserve options.
The long-named --preserve now accepts optional arguments; -p doesn't.
(usage): Describe additions and changes.
(cp_option_init): Initialize new member, preserve_links, to 0.
(decode_preserve_arg): New function.
(main) [case 'a']: Set preserve_links to 1.
[case 'd']: Set preserve_links to 1.
Add `case' for long-named --no-dereference.
Handle long-named --no-preserve and --preserve.

22 years ago(cp_option_init): Initialize new member to 1.
Jim Meyering [Sat, 13 Oct 2001 19:41:17 +0000 (19:41 +0000)]
(cp_option_init): Initialize new member to 1.

22 years ago(cp_option_init): Initialize new member, preserve_links.
Jim Meyering [Sat, 13 Oct 2001 19:40:31 +0000 (19:40 +0000)]
(cp_option_init): Initialize new member, preserve_links.

22 years ago(enum Dereference_symlink): Add comments.
Jim Meyering [Sat, 13 Oct 2001 19:36:26 +0000 (19:36 +0000)]
(enum Dereference_symlink): Add comments.
(struct cp_options) [preserve_links]: New member.

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

22 years ago(cp_option_init): Don't set it.
Jim Meyering [Sat, 13 Oct 2001 19:12:52 +0000 (19:12 +0000)]
(cp_option_init): Don't set it.

22 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.

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

22 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.

22 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.

22 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/.

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

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

22 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.

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

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

22 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).

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

22 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.'.

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

22 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.

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

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

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

22 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.

22 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.

22 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.

22 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

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

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

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

22 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.

22 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.

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

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

22 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.

22 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.

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

22 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.

22 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.

22 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.

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

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

22 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.

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

22 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.

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

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

22 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

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

22 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.

22 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 ***

22 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.

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

22 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.

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

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

22 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.

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