platform/upstream/coreutils.git
21 years agorenamed from ftw.h
Jim Meyering [Mon, 20 Jan 2003 16:27:35 +0000 (16:27 +0000)]
renamed from ftw.h

21 years agodefine ftw to rpl_ftw
Jim Meyering [Mon, 20 Jan 2003 16:19:28 +0000 (16:19 +0000)]
define ftw to rpl_ftw

21 years ago*** empty log message ***
Jim Meyering [Mon, 20 Jan 2003 15:45:57 +0000 (15:45 +0000)]
*** empty log message ***

21 years ago(obstack_object_size): Declare temporary, __o, to be const.
Jim Meyering [Mon, 20 Jan 2003 15:45:53 +0000 (15:45 +0000)]
(obstack_object_size): Declare temporary, __o, to be const.
(obstack_room): Likewise.
(obstack_empty_p): Likewise.

21 years agoRename type: DS -> Dirstack_state.
Jim Meyering [Mon, 20 Jan 2003 15:43:03 +0000 (15:43 +0000)]
Rename type: DS -> Dirstack_state.

21 years agoRemove some unnecessary parentheses.
Jim Meyering [Mon, 20 Jan 2003 15:40:25 +0000 (15:40 +0000)]
Remove some unnecessary parentheses.

21 years ago*** empty log message ***
Jim Meyering [Mon, 20 Jan 2003 15:06:38 +0000 (15:06 +0000)]
*** empty log message ***

21 years ago(mail_gpg_sign_cookie): Remove now-unused definition.
Jim Meyering [Mon, 20 Jan 2003 15:06:28 +0000 (15:06 +0000)]
(mail_gpg_sign_cookie): Remove now-unused definition.

21 years ago*** empty log message ***
Jim Meyering [Mon, 20 Jan 2003 15:04:56 +0000 (15:04 +0000)]
*** empty log message ***

21 years agoFrom GNU libc.
Jim Meyering [Mon, 20 Jan 2003 15:04:51 +0000 (15:04 +0000)]
From GNU libc.

(my_strftime): Handle very large width
specifications for numeric values correctly.  Improve checks for
overflow.

21 years ago*** empty log message ***
Jim Meyering [Mon, 20 Jan 2003 15:03:12 +0000 (15:03 +0000)]
*** empty log message ***

21 years agoMerge in changes from libc
Jim Meyering [Mon, 20 Jan 2003 15:03:04 +0000 (15:03 +0000)]
Merge in changes from libc

Eliminate many `#ifdef USE_IN_LIBIO' conditionals.

21 years agoInclude config.h.
Jim Meyering [Sun, 19 Jan 2003 16:42:45 +0000 (16:42 +0000)]
Include config.h.
Add copyright.

21 years ago*** empty log message ***
Jim Meyering [Sun, 19 Jan 2003 16:14:47 +0000 (16:14 +0000)]
*** empty log message ***

21 years agoInclude "canonicalize.h".
Jim Meyering [Sun, 19 Jan 2003 16:14:41 +0000 (16:14 +0000)]
Include "canonicalize.h".

21 years agoduh. fix typo
Jim Meyering [Sun, 19 Jan 2003 16:06:13 +0000 (16:06 +0000)]
duh. fix typo

21 years ago(widen) [COMPILE_WIDE]: Merge nearly-identical definitions.
Jim Meyering [Sun, 19 Jan 2003 13:01:35 +0000 (13:01 +0000)]
(widen) [COMPILE_WIDE]: Merge nearly-identical definitions.
(nl_get_alt_digit) [! defined my_strftime]: Define.
(my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
_nl_get_alt_digit and _nl_get_walt_digit.

21 years ago(my_strftime): Merge in locale-related changes from libc.
Jim Meyering [Sun, 19 Jan 2003 11:51:32 +0000 (11:51 +0000)]
(my_strftime): Merge in locale-related changes from libc.
These changes have no effect outside of _LIBC.

21 years ago*** empty log message ***
Jim Meyering [Sun, 19 Jan 2003 08:52:25 +0000 (08:52 +0000)]
*** empty log message ***

21 years ago(Which files are listed): Document new option:
Jim Meyering [Sun, 19 Jan 2003 08:52:20 +0000 (08:52 +0000)]
(Which files are listed): Document new option:
--dereference-command-line-symlink-to-dir.

21 years ago*** empty log message ***
Jim Meyering [Sat, 18 Jan 2003 18:36:17 +0000 (18:36 +0000)]
*** empty log message ***

21 years ago(Dereference_symlink) [DEREF_COMMAND_LINE_SYMLINK_TO_DIR]: New member.
Jim Meyering [Sat, 18 Jan 2003 18:36:13 +0000 (18:36 +0000)]
(Dereference_symlink) [DEREF_COMMAND_LINE_SYMLINK_TO_DIR]: New member.
(enum) [DEREFERENCE_COMMAND_LINE_SYMLINK_TO_DIR_OPTION]: New member.
(long_options): Add option --dereference-command-line-symlink-to-dir.
(main): Make DEREF_COMMAND_LINE_SYMLINK_TO_DIR be the default,
rather than DEREF_COMMAND_LINE_ARGUMENTS, when none of the
-d, -F, -l options is specified.
(decode_switches): Handle --dereference-command-line-symlink-to-dir.
(gobble_file): Honor DEREF_COMMAND_LINE_SYMLINK_TO_DIR.
Change --dereference-command-line (-H) to dereference *all*
command line arguments, including broken symlinks.

21 years agoreflect change in how ls -H works
Jim Meyering [Sat, 18 Jan 2003 18:06:38 +0000 (18:06 +0000)]
reflect change in how ls -H works

21 years agoChange ls -H back to the way it was yesterday, since this is
Jim Meyering [Sat, 18 Jan 2003 18:01:51 +0000 (18:01 +0000)]
Change ls -H back to the way it was yesterday, since this is
compatible with FreeBSD and the POSIX spec is confusing
and somewhat contradictory.

(DEREF_COMMAND_LINE_ARGUMENTS): Change name back
from DEREF_COMMAND_LINE_SYMLINK_TO_DIR, updating all uses.
(long_options): Change the long option name back.
(usage): Change the usage back.
(gobble_file): When -H is specified, dereference a top-level
arg even if it points to a non-directory.

21 years agols [4.1.1]: Mention that --dereference-command-line (-H) is now the default,
Jim Meyering [Sat, 18 Jan 2003 08:41:06 +0000 (08:41 +0000)]
ls [4.1.1]: Mention that --dereference-command-line (-H) is now the default,
unless one of the -d, -F, or -l options are given.
From Paul Eggert

21 years ago.
Jim Meyering [Fri, 17 Jan 2003 15:14:21 +0000 (15:14 +0000)]
.

21 years agoupdate from automake/lib
Jim Meyering [Fri, 17 Jan 2003 14:53:19 +0000 (14:53 +0000)]
update from automake/lib

21 years ago.
Jim Meyering [Thu, 16 Jan 2003 22:28:13 +0000 (22:28 +0000)]
.

21 years ago*** empty log message ***
Jim Meyering [Thu, 16 Jan 2003 19:03:42 +0000 (19:03 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Thu, 16 Jan 2003 19:02:49 +0000 (19:02 +0000)]
*** empty log message ***

21 years ago(Which files are listed, General output formatting): Undo last change.
Jim Meyering [Thu, 16 Jan 2003 19:01:56 +0000 (19:01 +0000)]
(Which files are listed, General output formatting): Undo last change.

21 years agomove prerequisites to precede AC_CACHE_CHECK
Jim Meyering [Thu, 16 Jan 2003 18:23:18 +0000 (18:23 +0000)]
move prerequisites to precede AC_CACHE_CHECK

21 years ago*** empty log message ***
Jim Meyering [Thu, 16 Jan 2003 17:34:04 +0000 (17:34 +0000)]
*** empty log message ***

21 years agoThe `regex' struct is both input and output.
Jim Meyering [Thu, 16 Jan 2003 17:33:52 +0000 (17:33 +0000)]
The `regex' struct is both input and output.
Initialize it before each use.  Patch by Tim Waugh.

21 years agorename variable
Jim Meyering [Wed, 15 Jan 2003 21:12:19 +0000 (21:12 +0000)]
rename variable

21 years agoAdd tsearch.o IFF we have to use the replacement ftw.c.
Jim Meyering [Wed, 15 Jan 2003 21:11:27 +0000 (21:11 +0000)]
Add tsearch.o IFF we have to use the replacement ftw.c.

21 years agoCheck for declaration of stpcpy.
Jim Meyering [Wed, 15 Jan 2003 17:32:13 +0000 (17:32 +0000)]
Check for declaration of stpcpy.

21 years ago*** empty log message ***
Jim Meyering [Wed, 15 Jan 2003 13:11:31 +0000 (13:11 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Wed, 15 Jan 2003 13:09:04 +0000 (13:09 +0000)]
*** empty log message ***

21 years ago(General output formatting): Reflect option name change:
Jim Meyering [Wed, 15 Jan 2003 13:09:00 +0000 (13:09 +0000)]
(General output formatting): Reflect option name change:
s/--dereference-command-line/--dereference-command-line-symlink-to-dir/.
Say that this option changes how ls treats only symlinks to directories
specified on the command line.

21 years ago*** empty log message ***
Jim Meyering [Wed, 15 Jan 2003 12:24:54 +0000 (12:24 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Wed, 15 Jan 2003 12:24:04 +0000 (12:24 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Wed, 15 Jan 2003 12:23:34 +0000 (12:23 +0000)]
*** empty log message ***

21 years ago.
Jim Meyering [Wed, 15 Jan 2003 12:14:38 +0000 (12:14 +0000)]
.

21 years agoRequire AC_FUNC_FTW.
Jim Meyering [Wed, 15 Jan 2003 12:14:29 +0000 (12:14 +0000)]
Require AC_FUNC_FTW.

21 years ago.
Jim Meyering [Wed, 15 Jan 2003 12:13:34 +0000 (12:13 +0000)]
.

21 years ago(gobble_file): Fall back on using lstat when required:
Jim Meyering [Wed, 15 Jan 2003 11:59:07 +0000 (11:59 +0000)]
(gobble_file): Fall back on using lstat when required:
when --dereference (-L) is not specified, and
- when operating on a dangling symlink
- when operating on command-line-symlink-to-directories
This fixes numerous problems.  Here are examples:
- `ls dangling-symlink' would fail with `no such file...'
Now it prints `dangling-symlink'.
- `ls -i symlink' would mistakenly print the inode of the referent.
Now it prints the inode of the symlink.  Likewise for --size (-s).
Based on a patch from Michael Stone.
Reported by Deepak Goel as Debian bug #173793.

21 years ago*** empty log message ***
Jim Meyering [Wed, 15 Jan 2003 11:58:26 +0000 (11:58 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Wed, 15 Jan 2003 11:58:02 +0000 (11:58 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Wed, 15 Jan 2003 11:32:59 +0000 (11:32 +0000)]
*** empty log message ***

21 years agoRename ls's --dereference-command-line (-H)
Jim Meyering [Wed, 15 Jan 2003 11:32:47 +0000 (11:32 +0000)]
Rename ls's --dereference-command-line (-H)
option to   --dereference-command-line-symlink-to-dir.

[enum Dereference_symlink]
(DEREF_COMMAND_LINE_SYMLINK_TO_DIR): Rename from
DEREF_COMMAND_LINE_ARGUMENTS.  Update all uses.
(long_options): Rename the option.
(usage): Say that --dereference-... changes how ls treats
only symlinks to directories specified on the command line.

21 years ago*** empty log message ***
Jim Meyering [Tue, 14 Jan 2003 21:10:26 +0000 (21:10 +0000)]
*** empty log message ***

21 years ago(TESTS): Add dangle and inode.
Jim Meyering [Tue, 14 Jan 2003 21:10:12 +0000 (21:10 +0000)]
(TESTS): Add dangle and inode.

21 years ago*** empty log message ***
Jim Meyering [Tue, 14 Jan 2003 20:51:25 +0000 (20:51 +0000)]
*** empty log message ***

21 years agoremove diff's -u
Jim Meyering [Tue, 14 Jan 2003 19:04:28 +0000 (19:04 +0000)]
remove diff's -u

21 years ago*** empty log message ***
Jim Meyering [Tue, 14 Jan 2003 19:03:00 +0000 (19:03 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Tue, 14 Jan 2003 16:23:03 +0000 (16:23 +0000)]
*** empty log message ***

21 years ago(gobble_file): Fix a bug introduced in 4.5.4 that made it
Jim Meyering [Tue, 14 Jan 2003 16:22:55 +0000 (16:22 +0000)]
(gobble_file): Fix a bug introduced in 4.5.4 that made it
so that ls --color would no longer highlight the names of files with
the execute bit set when not specified on the command line.
Patch by Michael Stone.  Reported by Stephen Depooter as
Debian bug 175135.

21 years ago*** empty log message ***
Jim Meyering [Tue, 14 Jan 2003 16:20:54 +0000 (16:20 +0000)]
*** empty log message ***

21 years agofactor a little
Jim Meyering [Tue, 14 Jan 2003 16:19:09 +0000 (16:19 +0000)]
factor a little

21 years agoduh: close file handle
Jim Meyering [Tue, 14 Jan 2003 15:50:18 +0000 (15:50 +0000)]
duh: close file handle

21 years ago(color-exe): New test, for the above fix.
Jim Meyering [Tue, 14 Jan 2003 15:38:23 +0000 (15:38 +0000)]
(color-exe): New test, for the above fix.

21 years agofix typo in comment
Jim Meyering [Tue, 14 Jan 2003 15:10:41 +0000 (15:10 +0000)]
fix typo in comment

21 years ago*** empty log message ***
Jim Meyering [Tue, 14 Jan 2003 15:09:00 +0000 (15:09 +0000)]
*** empty log message ***

21 years ago(same_name): Declare *_basename locals to be `const'.
Jim Meyering [Tue, 14 Jan 2003 15:07:24 +0000 (15:07 +0000)]
(same_name): Declare *_basename locals to be `const'.
Consolidate declarations and initializations of *_base* locals.

21 years ago*** empty log message ***
Jim Meyering [Tue, 14 Jan 2003 14:44:33 +0000 (14:44 +0000)]
*** empty log message ***

21 years ago(same_name): Reorder tests so as to avoid calling stat()
Jim Meyering [Tue, 14 Jan 2003 14:44:29 +0000 (14:44 +0000)]
(same_name): Reorder tests so as to avoid calling stat()
when a string comparison is sufficient.

21 years ago*** empty log message ***
Jim Meyering [Tue, 14 Jan 2003 14:15:44 +0000 (14:15 +0000)]
*** empty log message ***

21 years ago(readtoken): Cast character to 'unsigned char', not 'unsigned int'.
Jim Meyering [Tue, 14 Jan 2003 14:15:37 +0000 (14:15 +0000)]
(readtoken): Cast character to 'unsigned char', not 'unsigned int'.

21 years ago*** empty log message ***
Jim Meyering [Tue, 14 Jan 2003 12:58:27 +0000 (12:58 +0000)]
*** empty log message ***

21 years agoMerge in Ulrich's and my changes from libc.
Jim Meyering [Tue, 14 Jan 2003 12:58:22 +0000 (12:58 +0000)]
Merge in Ulrich's and my changes from libc.

21 years ago*** empty log message ***
Jim Meyering [Mon, 13 Jan 2003 15:33:43 +0000 (15:33 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Mon, 13 Jan 2003 15:33:17 +0000 (15:33 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Mon, 13 Jan 2003 15:27:08 +0000 (15:27 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Mon, 13 Jan 2003 13:44:14 +0000 (13:44 +0000)]
*** empty log message ***

21 years agoAlso test for just fixed bug with --zero.
Jim Meyering [Mon, 13 Jan 2003 13:44:11 +0000 (13:44 +0000)]
Also test for just fixed bug with --zero.

21 years ago*** empty log message ***
Jim Meyering [Mon, 13 Jan 2003 13:40:04 +0000 (13:40 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Mon, 13 Jan 2003 13:39:44 +0000 (13:39 +0000)]
*** empty log message ***

21 years ago(long_opts): --zero does not require an argument.
Jim Meyering [Mon, 13 Jan 2003 13:35:17 +0000 (13:35 +0000)]
(long_opts): --zero does not require an argument.
Patch by Michael Stone.

21 years ago*** empty log message ***
Jim Meyering [Sun, 12 Jan 2003 18:29:54 +0000 (18:29 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Sun, 12 Jan 2003 18:29:32 +0000 (18:29 +0000)]
*** empty log message ***

21 years agotweak comments
Jim Meyering [Sun, 12 Jan 2003 18:16:31 +0000 (18:16 +0000)]
tweak comments

21 years ago*** empty log message ***
Jim Meyering [Sun, 12 Jan 2003 18:03:52 +0000 (18:03 +0000)]
*** empty log message ***

21 years agoAlso work on systems that have `struct direct', using autoconf's AC_HEADER_DIRENT.
Jim Meyering [Sun, 12 Jan 2003 18:03:48 +0000 (18:03 +0000)]
Also work on systems that have `struct direct', using autoconf's AC_HEADER_DIRENT.

21 years ago*** empty log message ***
Jim Meyering [Sun, 12 Jan 2003 17:01:53 +0000 (17:01 +0000)]
*** empty log message ***

21 years ago(ftw_startup): Rename local-shadowing local to pacify gcc.
Jim Meyering [Sun, 12 Jan 2003 17:01:48 +0000 (17:01 +0000)]
(ftw_startup): Rename local-shadowing local to pacify gcc.

21 years agoNew file, from glibc/io.
Jim Meyering [Sun, 12 Jan 2003 16:48:56 +0000 (16:48 +0000)]
New file, from glibc/io.

21 years agoNew file, from glibc/io.
Jim Meyering [Sun, 12 Jan 2003 16:48:31 +0000 (16:48 +0000)]
New file, from glibc/io.

21 years ago(libfetish_a_SOURCES): Add ftw.h.
Jim Meyering [Sun, 12 Jan 2003 16:47:20 +0000 (16:47 +0000)]
(libfetish_a_SOURCES): Add ftw.h.

21 years agoexit nonzero for any failure
Jim Meyering [Sun, 12 Jan 2003 13:18:16 +0000 (13:18 +0000)]
exit nonzero for any failure

21 years ago*** empty log message ***
Jim Meyering [Sun, 12 Jan 2003 13:17:29 +0000 (13:17 +0000)]
*** empty log message ***

21 years ago(cvs-update): Skip any file with local modifications.
Jim Meyering [Sun, 12 Jan 2003 13:11:14 +0000 (13:11 +0000)]
(cvs-update): Skip any file with local modifications.

21 years ago*** empty log message ***
Jim Meyering [Sun, 12 Jan 2003 11:52:38 +0000 (11:52 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Sun, 12 Jan 2003 11:51:43 +0000 (11:51 +0000)]
*** empty log message ***

21 years agoLots of syntactic clean-up, mostly from Karl Berry.
Jim Meyering [Sun, 12 Jan 2003 11:51:36 +0000 (11:51 +0000)]
Lots of syntactic clean-up, mostly from Karl Berry.

Use consistent indentation, two spaces per level.
(scriptversion): New variable.
Change initializations like `variable=""' to `variable='.
(usage): New variable.
Use `test', not `['.
Use `test -n "$var"', not `[ x"$var" = x ]'.
Use `test -z "$var"', not `[ x"$var" != x ]'.
Alphabetize case entries.
Accept --help and --version options.
Remove unnecessary `else :' clauses.
Add a `Local variables' eval block to help emacs users update
the time-stamp variable added above.

21 years ago*** empty log message ***
Jim Meyering [Sun, 12 Jan 2003 09:04:16 +0000 (09:04 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Sun, 12 Jan 2003 08:59:19 +0000 (08:59 +0000)]
*** empty log message ***

21 years ago(usage): Document --first-only and mention that --tabs=N (-t) enables --all (-a).
Jim Meyering [Sun, 12 Jan 2003 08:59:00 +0000 (08:59 +0000)]
(usage): Document --first-only and mention that --tabs=N (-t) enables --all (-a).

21 years ago(libfetish_a_SOURCES): Add canonicalize.h.
Jim Meyering [Sun, 12 Jan 2003 08:57:11 +0000 (08:57 +0000)]
(libfetish_a_SOURCES): Add canonicalize.h.

21 years ago*** empty log message ***
Jim Meyering [Sat, 11 Jan 2003 09:44:28 +0000 (09:44 +0000)]
*** empty log message ***