platform/upstream/coreutils.git
22 years ago(slash_aware_lstat): Correct a misleading comment.
Jim Meyering [Mon, 5 Nov 2001 11:20:02 +0000 (11:20 +0000)]
(slash_aware_lstat): Correct a misleading comment.

22 years ago*** empty log message ***
Jim Meyering [Mon, 5 Nov 2001 10:13:34 +0000 (10:13 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Mon, 5 Nov 2001 10:12:06 +0000 (10:12 +0000)]
*** empty log message ***

22 years ago(sort invocation): Recommend setting LC_ALL=C,
Jim Meyering [Mon, 5 Nov 2001 10:12:00 +0000 (10:12 +0000)]
(sort invocation): Recommend setting LC_ALL=C,
not LC_COLLATE=C.  Explain how the latter can cause problems.
Based on a message from Paul Eggert.
(ls invocation): Recommend setting LC_ALL=C, not LC_COLLATE=C.

22 years ago(usage): Don't recommend setting LC_COLLATE=C.
Jim Meyering [Mon, 5 Nov 2001 10:09:25 +0000 (10:09 +0000)]
(usage): Don't recommend setting LC_COLLATE=C.
That can cause problems (now documented in coreutils.texi).

22 years ago*** empty log message ***
Jim Meyering [Sun, 4 Nov 2001 09:46:30 +0000 (09:46 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Sun, 4 Nov 2001 09:46:11 +0000 (09:46 +0000)]
*** empty log message ***

22 years ago(usage): Say that
Jim Meyering [Sun, 4 Nov 2001 09:43:16 +0000 (09:43 +0000)]
(usage): Say that
``Mandatory arguments to long options are mandatory for short options too.\n\''

22 years ago(usage): Add one-line description.
Jim Meyering [Sun, 4 Nov 2001 09:03:15 +0000 (09:03 +0000)]
(usage): Add one-line description.

22 years ago*** empty log message *** FILEUTILS-4_1_1
Jim Meyering [Sun, 4 Nov 2001 07:16:06 +0000 (07:16 +0000)]
*** empty log message ***

22 years agoRemove unused cruft that saved, set, and restored $DEFS.
Jim Meyering [Sun, 4 Nov 2001 07:15:57 +0000 (07:15 +0000)]
Remove unused cruft that saved, set, and restored $DEFS.

22 years ago*** empty log message ***
Jim Meyering [Sat, 3 Nov 2001 22:22:50 +0000 (22:22 +0000)]
*** empty log message ***

22 years ago(jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg of AC_DEFUN.
Jim Meyering [Sat, 3 Nov 2001 22:22:41 +0000 (22:22 +0000)]
(jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg of AC_DEFUN.

22 years ago*** empty log message ***
Jim Meyering [Sat, 3 Nov 2001 21:46:35 +0000 (21:46 +0000)]
*** empty log message ***

22 years ago(ARGMATCH_TO_ARGUMENT): Remove casts of first two args
Jim Meyering [Sat, 3 Nov 2001 21:46:29 +0000 (21:46 +0000)]
(ARGMATCH_TO_ARGUMENT): Remove casts of first two args
in argmatch_to_argument call.

22 years ago*** empty log message ***
Jim Meyering [Sat, 3 Nov 2001 21:44:36 +0000 (21:44 +0000)]
*** empty log message ***

22 years ago.
Jim Meyering [Sat, 3 Nov 2001 21:44:00 +0000 (21:44 +0000)]
.

22 years agoit's CFLAGS, not DEFS
Jim Meyering [Sat, 3 Nov 2001 20:07:10 +0000 (20:07 +0000)]
it's CFLAGS, not DEFS

22 years agofix indentation of cpp `#'s
Jim Meyering [Sat, 3 Nov 2001 20:00:36 +0000 (20:00 +0000)]
fix indentation of cpp `#'s

22 years ago.
Jim Meyering [Sat, 3 Nov 2001 18:51:46 +0000 (18:51 +0000)]
.

22 years ago*** empty log message ***
Jim Meyering [Sat, 3 Nov 2001 18:51:38 +0000 (18:51 +0000)]
*** empty log message ***

22 years ago(dirfd): Reflect the fact that DIR_TO_FD now takes an argument.
Jim Meyering [Sat, 3 Nov 2001 18:50:53 +0000 (18:50 +0000)]
(dirfd): Reflect the fact that DIR_TO_FD now takes an argument.

22 years ago(UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
Jim Meyering [Sat, 3 Nov 2001 18:49:27 +0000 (18:49 +0000)]
(UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
know the name of the variable in the macro definition.

22 years ago*** empty log message ***
Jim Meyering [Sat, 3 Nov 2001 08:24:27 +0000 (08:24 +0000)]
*** empty log message ***

22 years ago(hash_clear): Fix a bug that could lead to an infloop or
Jim Meyering [Sat, 3 Nov 2001 08:23:54 +0000 (08:23 +0000)]
(hash_clear): Fix a bug that could lead to an infloop or
e.g., a fault due to an attempt to free a NULL pointer.

22 years ago*** empty log message ***
Jim Meyering [Sat, 3 Nov 2001 07:33:41 +0000 (07:33 +0000)]
*** empty log message ***

22 years ago(DEV_INO_PUSH): Avoid unnecessary copies.
Jim Meyering [Sat, 3 Nov 2001 07:33:32 +0000 (07:33 +0000)]
(DEV_INO_PUSH): Avoid unnecessary copies.
(dev_ino_pop): Likewise.

22 years ago*** empty log message ***
Jim Meyering [Fri, 2 Nov 2001 13:19:11 +0000 (13:19 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Fri, 2 Nov 2001 13:16:21 +0000 (13:16 +0000)]
*** empty log message ***

22 years ago(dev_ino_pop): Cast 2nd arg of obstack_blank to `int'
Jim Meyering [Fri, 2 Nov 2001 13:16:10 +0000 (13:16 +0000)]
(dev_ino_pop): Cast 2nd arg of obstack_blank to `int'
before negating to avoid warning from gcc on systems with 64-bit size_t.

Rename global: s/trace_dirs/recursive/.
(extract_dirs_from_files): Rename parameter:
s/recursive/ignore_dot_and_dot_dot/.

22 years ago*** empty log message ***
Jim Meyering [Fri, 2 Nov 2001 11:10:25 +0000 (11:10 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Fri, 2 Nov 2001 08:25:43 +0000 (08:25 +0000)]
*** empty log message ***

22 years agoUse XREALLOC. It's cleaner.
Jim Meyering [Fri, 2 Nov 2001 08:04:37 +0000 (08:04 +0000)]
Use XREALLOC.  It's cleaner.

22 years agoUse XMALLOC in a several places. It's cleaner.
Jim Meyering [Fri, 2 Nov 2001 07:38:56 +0000 (07:38 +0000)]
Use XMALLOC in a several places.  It's cleaner.

22 years agoput `const' back, now that the .m4 test works
Jim Meyering [Fri, 2 Nov 2001 07:37:19 +0000 (07:37 +0000)]
put `const' back, now that the .m4 test works

22 years agoUse the replacement only if we have neither the function
Jim Meyering [Fri, 2 Nov 2001 07:36:35 +0000 (07:36 +0000)]
Use the replacement only if we have neither the function
nor a declaration.

22 years agoremove const
Jim Meyering [Thu, 1 Nov 2001 22:16:43 +0000 (22:16 +0000)]
remove const

22 years agowhoops
Jim Meyering [Thu, 1 Nov 2001 22:14:26 +0000 (22:14 +0000)]
whoops

22 years ago*** empty log message ***
Jim Meyering [Thu, 1 Nov 2001 21:40:07 +0000 (21:40 +0000)]
*** empty log message ***

22 years agoInclude dirfd.h.
Jim Meyering [Thu, 1 Nov 2001 21:40:01 +0000 (21:40 +0000)]
Include dirfd.h.
(print_dir): If dirfd fails, resort to using stat.

22 years ago.
Jim Meyering [Thu, 1 Nov 2001 17:58:23 +0000 (17:58 +0000)]
.

22 years ago*** empty log message ***
Jim Meyering [Thu, 1 Nov 2001 17:58:09 +0000 (17:58 +0000)]
*** empty log message ***

22 years ago(libfetish_a_SOURCES): Add dirfd.h.
Jim Meyering [Thu, 1 Nov 2001 17:57:56 +0000 (17:57 +0000)]
(libfetish_a_SOURCES): Add dirfd.h.

22 years ago.
Jim Meyering [Thu, 1 Nov 2001 17:57:09 +0000 (17:57 +0000)]
.

22 years ago*** empty log message ***
Jim Meyering [Thu, 1 Nov 2001 17:44:43 +0000 (17:44 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Thu, 1 Nov 2001 16:57:18 +0000 (16:57 +0000)]
*** empty log message ***

22 years agouse AC_HEADER_DIRECT and all the associated cruft
Jim Meyering [Thu, 1 Nov 2001 16:55:16 +0000 (16:55 +0000)]
use AC_HEADER_DIRECT and all the associated cruft

22 years agodon't indent the #include directive
Jim Meyering [Thu, 1 Nov 2001 16:47:00 +0000 (16:47 +0000)]
don't indent the #include directive

22 years agocheck for decl, too
Jim Meyering [Thu, 1 Nov 2001 16:46:06 +0000 (16:46 +0000)]
check for decl, too

22 years ago*** empty log message ***
Jim Meyering [Thu, 1 Nov 2001 16:43:02 +0000 (16:43 +0000)]
*** empty log message ***

22 years ago(jm_MACROS): Require UTILS_FUNC_DIRFD.
Jim Meyering [Thu, 1 Nov 2001 16:42:53 +0000 (16:42 +0000)]
(jm_MACROS): Require UTILS_FUNC_DIRFD.

22 years ago(UTILS_FUNC_DIRFD): New macro.
Jim Meyering [Thu, 1 Nov 2001 16:41:57 +0000 (16:41 +0000)]
(UTILS_FUNC_DIRFD): New macro.

22 years ago*** empty log message ***
Jim Meyering [Thu, 1 Nov 2001 15:55:59 +0000 (15:55 +0000)]
*** empty log message ***

22 years ago(hash_print) [TESTING]: Clean up.
Jim Meyering [Thu, 1 Nov 2001 15:55:53 +0000 (15:55 +0000)]
(hash_print) [TESTING]: Clean up.

22 years agoRedirect cmp's stderr to /dev/null.
Jim Meyering [Thu, 1 Nov 2001 15:54:36 +0000 (15:54 +0000)]
Redirect cmp's stderr to /dev/null.

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

22 years ago(struct pending) [st_ino, st_dev]: Remove just-added members.
Jim Meyering [Thu, 1 Nov 2001 15:51:53 +0000 (15:51 +0000)]
(struct pending) [st_ino, st_dev]: Remove just-added members.
(queue_directory): Remove just-added 3rd parameter
and associated code, and update callers.
(print_dir): Get dev/inode pair via `fstat (dirfd (reading), ...',
and call visit_dir to detect cycles here.
Push the dev/inode pair onto the new stack.
(dev_ino_obstack): New global.
(DEV_INO_PUSH): New macro.
(dev_ino_pop): New function.
(ASSERT_MATCHING_DEV_INO): New macro.
(visit_dir): Take two parameters (dev,ino), not one `pending'.
(main): Initialized the dev_ino_obstack.
Don't call visit_dir here.
Get the dev/ino pair from the new stack, not from the pending entry.

22 years ago*** empty log message ***
Jim Meyering [Thu, 1 Nov 2001 11:31:26 +0000 (11:31 +0000)]
*** empty log message ***

22 years agoMake ls -R detect directory cycles.
Jim Meyering [Thu, 1 Nov 2001 11:31:19 +0000 (11:31 +0000)]
Make ls -R detect directory cycles.

Include hash.h, same.h, and xalloc.h.
(INITIAL_TABLE_SIZE, LOOP_DETECT): Define.
(active_dir_set): New global.
(struct dev_ino): Declare.
(dev_ino_hash, dev_ino_compare, dev_ino_free): New functions.
(visit_dir, free_pending_ent): New functions.
(main): Initialize the active_dir_set hash table, if necessary.
Don't confuse a marker entry with a real one.
Detect loops.
Manage the set of active directories.
Free the hash table.
(queue_directory): Add a new parameter.
Ensure that we set the new dev/ino members for each enqueued directory.
Update all callers.
(print_dir): Don't confuse a marker entry with a real one.
(extract_dirs_from_files): Insert a marker entry before inserting
the entries for subdirectories.

22 years ago*** empty log message ***
Jim Meyering [Thu, 1 Nov 2001 10:56:41 +0000 (10:56 +0000)]
*** empty log message ***

22 years ago(TESTS): Add dired.
Jim Meyering [Thu, 1 Nov 2001 10:56:25 +0000 (10:56 +0000)]
(TESTS): Add dired.

22 years agoDon't try to print a NULL pointer.
Jim Meyering [Thu, 1 Nov 2001 10:43:23 +0000 (10:43 +0000)]
Don't try to print a NULL pointer.
(main): Don't use ARGMATCH_TO_ARGUMENT.
This reverts part of the 1998-12-31 change.

22 years agoupdate copyright year
Jim Meyering [Sun, 28 Oct 2001 10:01:07 +0000 (10:01 +0000)]
update copyright year

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

22 years ago.
Jim Meyering [Sun, 28 Oct 2001 09:40:25 +0000 (09:40 +0000)]
.

22 years agotest Paul's fix
Jim Meyering [Sun, 28 Oct 2001 09:39:52 +0000 (09:39 +0000)]
test Paul's fix

22 years ago(TESTS): Add sysv.
Jim Meyering [Sun, 28 Oct 2001 09:39:26 +0000 (09:39 +0000)]
(TESTS): Add sysv.

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

22 years agoInclude human.h.
Jim Meyering [Sun, 28 Oct 2001 08:31:08 +0000 (08:31 +0000)]
Include human.h.
(ROTATE_RIGHT): Remove; it was slow and the comment was
misleading anyway.
(bsd_sum_file): Avoid unsigned and long when they're not needed.
Compute total input bytes as uintmax_t, not long, so that the
code works even with files whose size does not fit in 'long'.
(sysv_sum_file): Likewise.
(sysv_sum_file): Do not reduce checksum until the end; this is
what System V does.

22 years ago*** empty log message ***
Jim Meyering [Sun, 28 Oct 2001 08:26:53 +0000 (08:26 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Sun, 28 Oct 2001 08:20:01 +0000 (08:20 +0000)]
*** empty log message ***

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

22 years ago*** empty log message ***
Jim Meyering [Sat, 27 Oct 2001 14:24:56 +0000 (14:24 +0000)]
*** empty log message ***

22 years agoGive an accurate diagnostic when `head --bytes=30M' fails.
Jim Meyering [Sat, 27 Oct 2001 14:24:42 +0000 (14:24 +0000)]
Give an accurate diagnostic when `head --bytes=30M' fails.
(string_to_integer): Check explicitly for overflow,
and lump everything else together as `invalid'.

22 years agoRemove as many instances of 'unsigned' as
Jim Meyering [Wed, 24 Oct 2001 10:38:53 +0000 (10:38 +0000)]
Remove as many instances of 'unsigned' as
possible, as some of them were not conforming to ANSI C, and
they made the code hard to read.  Avoiding 'unsigned' cuts
down on the number of casts.

(newline_character, space_character, save_char):
Now char, not unsigned char.
(obuf): Now char *, not unsigned char *.
(ascii_to_ebcdic, ascii_to_ibm, ebcdic_to_ascii):
Now char[], not unsigned char[].
(translate_charset, translate_buffer, swab_buffer, skip, copy_simple,
copy_with_block, copy_with_unblock):
Arg now points to char, not unsigned char.
All callers changed.
(translate_charset, parse_conversion, apply_translations):
Use int index, not unsigned int.
(bit_count): Arg is now int, not unsigned int.
Callers not changed, as they already assumed this.
(translate_buffer): Cast char to unsigned char before using
it as a subscript.
(swab_buffer): Returns char *, not unsigned char *.
(dd_copy): Use char, not unsigned char, for buffers.
Use size_t for possibly-large index, not unsigned int.

22 years ago*** empty log message ***
Jim Meyering [Wed, 24 Oct 2001 07:38:33 +0000 (07:38 +0000)]
*** empty log message ***

22 years ago(main): Free hash table storage.
Jim Meyering [Wed, 24 Oct 2001 07:38:26 +0000 (07:38 +0000)]
(main): Free hash table storage.

22 years ago(forget_all): Use hash_free, not hash_clear.
Jim Meyering [Wed, 24 Oct 2001 07:36:53 +0000 (07:36 +0000)]
(forget_all): Use hash_free, not hash_clear.

22 years ago.
Jim Meyering [Mon, 22 Oct 2001 08:02:38 +0000 (08:02 +0000)]
.

22 years ago*** empty log message ***
Jim Meyering [Mon, 22 Oct 2001 08:02:09 +0000 (08:02 +0000)]
*** empty log message ***

22 years ago(alloca): Define to __builtin_alloca if __GNUC__,
Jim Meyering [Mon, 22 Oct 2001 08:01:43 +0000 (08:01 +0000)]
(alloca): Define to __builtin_alloca if __GNUC__,
to avoid a warning if -Wall.

22 years ago(alloca): Define to __builtin_alloca if __GNUC__,
Jim Meyering [Mon, 22 Oct 2001 08:01:22 +0000 (08:01 +0000)]
(alloca): Define to __builtin_alloca if __GNUC__,
to avoid a warning if -Wall.

22 years ago*** empty log message ***
Jim Meyering [Mon, 22 Oct 2001 06:56:44 +0000 (06:56 +0000)]
*** empty log message ***

22 years ago(uintptr_t): Remove macro and decl; it's config.h's job.
Jim Meyering [Mon, 22 Oct 2001 06:56:31 +0000 (06:56 +0000)]
(uintptr_t): Remove macro and decl; it's config.h's job.

22 years ago.
Jim Meyering [Sun, 21 Oct 2001 21:46:09 +0000 (21:46 +0000)]
.

22 years ago(isaac_seed_machdep): Handle SIGSEGV, too. Ick.
Jim Meyering [Sun, 21 Oct 2001 19:52:12 +0000 (19:52 +0000)]
(isaac_seed_machdep): Handle SIGSEGV, too.  Ick.

22 years agoyikes. put the preserve_metadata assignment *after* declarations.
Jim Meyering [Sun, 21 Oct 2001 18:50:16 +0000 (18:50 +0000)]
yikes.  put the preserve_metadata assignment *after* declarations.
gcc-3.0 didn't complain.

22 years ago.
Jim Meyering [Sun, 21 Oct 2001 17:06:36 +0000 (17:06 +0000)]
.

22 years ago*** empty log message ***
Jim Meyering [Sun, 21 Oct 2001 17:03:50 +0000 (17:03 +0000)]
*** empty log message ***

22 years ago(TESTS): Remove i-3. It's not portable.
Jim Meyering [Sun, 21 Oct 2001 17:03:31 +0000 (17:03 +0000)]
(TESTS): Remove i-3.  It's not portable.

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

22 years agoInclude xreadlink.h.
Jim Meyering [Sun, 21 Oct 2001 15:21:28 +0000 (15:21 +0000)]
Include xreadlink.h.
(copy_internal): Don't use PATH_MAX.
Rewrite the symlink-copying code to use xreadlink.

22 years agowhoops! fix comment on first line :-)
Jim Meyering [Sun, 21 Oct 2001 15:12:39 +0000 (15:12 +0000)]
whoops!  fix comment on first line :-)

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

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