platform/upstream/coreutils.git
22 years ago*** empty log message ***
Jim Meyering [Sun, 14 Apr 2002 12:53:00 +0000 (12:53 +0000)]
*** empty log message ***

22 years ago(statfs_secure): Define.
Jim Meyering [Sun, 14 Apr 2002 12:52:48 +0000 (12:52 +0000)]
(statfs_secure): Define.
(print_stat): Remove another #ifdef.
(do_statfs): Likewise.
(print_statfs): Prefer/use fputs over printf.
(print_stat): Likewise.

22 years agofilter through GNU indent
Jim Meyering [Sun, 14 Apr 2002 08:20:15 +0000 (08:20 +0000)]
filter through GNU indent

22 years agoSplit some long lines.
Jim Meyering [Sun, 14 Apr 2002 08:18:49 +0000 (08:18 +0000)]
Split some long lines.
(verbose_usage): Remove function.

22 years ago*** empty log message ***
Jim Meyering [Sun, 14 Apr 2002 08:15:22 +0000 (08:15 +0000)]
*** empty log message ***

22 years agoremove parens in #if directives
Jim Meyering [Sun, 14 Apr 2002 08:14:37 +0000 (08:14 +0000)]
remove parens in #if directives

22 years agofix TABs
Jim Meyering [Sun, 14 Apr 2002 08:14:15 +0000 (08:14 +0000)]
fix TABs

22 years ago*** empty log message ***
Jim Meyering [Sun, 14 Apr 2002 08:13:50 +0000 (08:13 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Sun, 14 Apr 2002 07:50:19 +0000 (07:50 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Sun, 14 Apr 2002 07:49:20 +0000 (07:49 +0000)]
*** empty log message ***

22 years ago(verbose_usage): Remove function. Move contents into usage.
Jim Meyering [Sun, 14 Apr 2002 07:47:44 +0000 (07:47 +0000)]
(verbose_usage): Remove function.  Move contents into usage.
Remove lots of #if directives involving FLASK_LINUX
[!FLASK_LINUX] (is_flask_enabled): Define.
(stat_secure, lstat_secure): Define.
(print_statfs): Remove lots of nested #if directives.
Instead, rely on support fo %llu and %lld printf formats --
but that is only temporary, since it's not porable enough.
(main): Hoist is_flask_enabled test to be done here, rather
than in each of do_stat and do_statfs for every argument.

22 years ago[HAVE_SYS_VFS_H]: Guard incluion of sys/vfs.h.
Jim Meyering [Sun, 14 Apr 2002 06:55:13 +0000 (06:55 +0000)]
[HAVE_SYS_VFS_H]: Guard incluion of sys/vfs.h.
Constify many parameters.
(print_statfs): Fix typo: Use %u (to match %lu) for namelen, not %d.

22 years agoalphabetize entries in a menu
Jim Meyering [Sun, 14 Apr 2002 06:27:10 +0000 (06:27 +0000)]
alphabetize entries in a menu
In xref, use libc instead of library.

22 years ago.
Jim Meyering [Sat, 13 Apr 2002 17:10:57 +0000 (17:10 +0000)]
.

22 years agoadd a couple `const'
Jim Meyering [Sat, 13 Apr 2002 14:35:46 +0000 (14:35 +0000)]
add a couple `const'

22 years ago(print_human_fstype): Revamp in a similar fashion. Don't use strdup.
Jim Meyering [Sat, 13 Apr 2002 14:34:58 +0000 (14:34 +0000)]
(print_human_fstype): Revamp in a similar fashion.  Don't use strdup.

22 years ago(print_human_type): Call fputs once rather than calling printf many times.
Jim Meyering [Sat, 13 Apr 2002 14:23:00 +0000 (14:23 +0000)]
(print_human_type): Call fputs once rather than calling printf many times.
Declare most functions to be `static'.

22 years agoInclude system.h, error.h, and many other headers.
Jim Meyering [Sat, 13 Apr 2002 14:11:44 +0000 (14:11 +0000)]
Include system.h, error.h, and many other headers.
[HAVE_SYS_SYSMACROS_H]: Guard inclusion of sys/sysmacros.h.
(PROGRAM_NAME, AUTHORS): Define.
(long_options): Declare/define.
(print_human_access): Rewrite to use mode_string.
(usage): Rewrite.
(main): Use getopt_long.

22 years agoDirect from Debian's stat_3.3-1, modulo trailing blanks (removed)
Jim Meyering [Sat, 13 Apr 2002 13:47:14 +0000 (13:47 +0000)]
Direct from Debian's stat_3.3-1, modulo trailing blanks (removed)
and cpp directive (indented via cppi).

22 years ago*** empty log message ***
Jim Meyering [Sat, 13 Apr 2002 12:40:43 +0000 (12:40 +0000)]
*** empty log message ***

22 years agoDocument link and unlink.
Jim Meyering [Sat, 13 Apr 2002 12:40:36 +0000 (12:40 +0000)]
Document link and unlink.

22 years ago*** empty log message ***
Jim Meyering [Fri, 12 Apr 2002 21:03:34 +0000 (21:03 +0000)]
*** empty log message ***

22 years ago(dirfd): Elide prototype if dirfd is a macro.
Jim Meyering [Fri, 12 Apr 2002 21:03:28 +0000 (21:03 +0000)]
(dirfd): Elide prototype if dirfd is a macro.

22 years ago*** empty log message ***
Jim Meyering [Fri, 12 Apr 2002 20:51:01 +0000 (20:51 +0000)]
*** empty log message ***

22 years ago(checking for getmntinfo function...): Remove now-bogus
Jim Meyering [Fri, 12 Apr 2002 20:50:53 +0000 (20:50 +0000)]
(checking for getmntinfo function...): Remove now-bogus
check for f_type in sys/mount.h.  Instead, just test for the existence
of the getmntinfo function.  Needed for Darwin 5.3.

22 years ago*** empty log message ***
Jim Meyering [Fri, 12 Apr 2002 20:48:36 +0000 (20:48 +0000)]
*** empty log message ***

22 years ago(UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
Jim Meyering [Fri, 12 Apr 2002 20:48:29 +0000 (20:48 +0000)]
(UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
This is necessary at least on Darwin 5.3.

22 years ago*** empty log message ***
Jim Meyering [Fri, 12 Apr 2002 11:04:02 +0000 (11:04 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Fri, 12 Apr 2002 11:03:13 +0000 (11:03 +0000)]
*** empty log message ***

22 years agoDon't AC_REPLACE(strnlen), now that we use
Jim Meyering [Fri, 12 Apr 2002 11:02:59 +0000 (11:02 +0000)]
Don't AC_REPLACE(strnlen), now that we use
AC_FUNC_STRNLEN.  That would end up putting two copies of strnlen.o
in the library, and that makes some versions of ranlib object.

22 years ago*** empty log message ***
Jim Meyering [Fri, 12 Apr 2002 10:47:18 +0000 (10:47 +0000)]
*** empty log message ***

22 years ago.
Jim Meyering [Fri, 12 Apr 2002 10:46:55 +0000 (10:46 +0000)]
.

22 years agoInclude long-options.h.
Jim Meyering [Fri, 12 Apr 2002 10:41:54 +0000 (10:41 +0000)]
Include long-options.h.
[long_opts]: Remove.
(usage): Tweak --help output; use *_OPTION_DESCRIPTION macros.
(main): Don't use getopt directly.  Use parse_long_options instead.
Tweak a diagnostic.
Use EXIT_FAILURE rather than a literal `1'.
(main): If POSIXLY_CORRECT is set, don't recognize --help or --version,
so the program can operate on a file with one of those names.

22 years agoInclude long-options.h.
Jim Meyering [Fri, 12 Apr 2002 10:41:22 +0000 (10:41 +0000)]
Include long-options.h.
[long_opts]: Remove.
(usage): Tweak --help output; use *_OPTION_DESCRIPTION macros.
(main): Don't use getopt directly.  Use parse_long_options instead.
Tweak a diagnostic.
Use EXIT_FAILURE rather than a literal `1'.

22 years ago*** empty log message ***
Jim Meyering [Fri, 12 Apr 2002 10:41:00 +0000 (10:41 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Fri, 12 Apr 2002 10:40:09 +0000 (10:40 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Fri, 12 Apr 2002 10:39:43 +0000 (10:39 +0000)]
*** empty log message ***

22 years agofrom Debian's fileutils_4.1-10
Jim Meyering [Fri, 12 Apr 2002 10:07:17 +0000 (10:07 +0000)]
from Debian's fileutils_4.1-10

22 years ago*** empty log message ***
Jim Meyering [Tue, 9 Apr 2002 17:55:48 +0000 (17:55 +0000)]
*** empty log message ***

22 years ago(jm_FUNC_REALLOC): Change the `checking ...' message
Jim Meyering [Tue, 9 Apr 2002 17:55:36 +0000 (17:55 +0000)]
(jm_FUNC_REALLOC): Change the `checking ...' message
to be more precise.  Rather than saying we're checking whether the
function `works', say what we're testing.

22 years ago(jm_FUNC_MALLOC): Change the `checking ...' message
Jim Meyering [Tue, 9 Apr 2002 17:55:23 +0000 (17:55 +0000)]
(jm_FUNC_MALLOC): Change the `checking ...' message
to be more precise.  Rather than saying we're checking whether the
function `works', say what we're testing.

22 years ago*** empty log message ***
Jim Meyering [Mon, 8 Apr 2002 09:39:19 +0000 (09:39 +0000)]
*** empty log message ***

22 years agoUse new directives, @copying and @insertcopying,
Jim Meyering [Mon, 8 Apr 2002 09:38:58 +0000 (09:38 +0000)]
Use new directives, @copying and @insertcopying,
thus now requiring texinfo-4.2 to create the .info file.

22 years ago*** empty log message ***
Jim Meyering [Sun, 7 Apr 2002 21:46:15 +0000 (21:46 +0000)]
*** empty log message ***

22 years agoTweak comments to reflect reality.
Jim Meyering [Sun, 7 Apr 2002 21:46:11 +0000 (21:46 +0000)]
Tweak comments to reflect reality.

22 years ago*** empty log message ***
Jim Meyering [Sun, 7 Apr 2002 15:57:10 +0000 (15:57 +0000)]
*** empty log message ***

22 years agoAdd VERBOSE=yes support.
Jim Meyering [Sun, 7 Apr 2002 15:52:14 +0000 (15:52 +0000)]
Add VERBOSE=yes support.

22 years agoFix typo in VERBOSE=yes handling.
Jim Meyering [Sun, 7 Apr 2002 15:51:12 +0000 (15:51 +0000)]
Fix typo in VERBOSE=yes handling.

22 years ago. FILEUTILS-4_1_8
Jim Meyering [Sat, 30 Mar 2002 15:49:57 +0000 (15:49 +0000)]
.

22 years agowith --reply=no, no need for input file `no'
Jim Meyering [Sat, 30 Mar 2002 15:26:46 +0000 (15:26 +0000)]
with --reply=no, no need for input file `no'

22 years ago--, not ---
Jim Meyering [Sat, 30 Mar 2002 15:22:04 +0000 (15:22 +0000)]
--, not ---

22 years ago*** empty log message ***
Jim Meyering [Sat, 30 Mar 2002 15:20:22 +0000 (15:20 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Sat, 30 Mar 2002 15:19:04 +0000 (15:19 +0000)]
*** empty log message ***

22 years agoUse --reply=no rather than -i.
Jim Meyering [Sat, 30 Mar 2002 15:18:54 +0000 (15:18 +0000)]
Use --reply=no rather than -i.
The latter depends on whether stdin is a tty.

22 years ago.
Jim Meyering [Sat, 30 Mar 2002 10:40:32 +0000 (10:40 +0000)]
.

22 years ago.
Jim Meyering [Sat, 30 Mar 2002 07:24:19 +0000 (07:24 +0000)]
.

22 years ago(do_move): Correct a comment.
Jim Meyering [Sat, 30 Mar 2002 07:12:23 +0000 (07:12 +0000)]
(do_move): Correct a comment.

22 years ago*** empty log message ***
Jim Meyering [Sat, 30 Mar 2002 07:11:34 +0000 (07:11 +0000)]
*** empty log message ***

22 years ago(forget_created): Prototype.
Jim Meyering [Sat, 30 Mar 2002 07:11:24 +0000 (07:11 +0000)]
(forget_created): Prototype.

22 years ago(forget_created): New function.
Jim Meyering [Sat, 30 Mar 2002 07:11:13 +0000 (07:11 +0000)]
(forget_created): New function.

22 years ago(copy_internal): Move the block that sets `earlier_file'
Jim Meyering [Sat, 30 Mar 2002 07:10:57 +0000 (07:10 +0000)]
(copy_internal): Move the block that sets `earlier_file'
down to just before the first use of that variable.  Otherwise, it was
possible to make mv (and probably cp, too) malfunction when copying
hard-linked files into a directory containing at least one of the
source file names.  Call forget_created everywhere thereafter where
this function returns without creating a destination file that might
subsequently be linked.  Reported by Iida Yosiaki.

22 years agoNew test for the above.
Jim Meyering [Fri, 29 Mar 2002 23:11:41 +0000 (23:11 +0000)]
New test for the above.
Based on an example from Iida Yosiaki.

22 years ago(TESTS): Add i-link-no.
Jim Meyering [Fri, 29 Mar 2002 23:11:28 +0000 (23:11 +0000)]
(TESTS): Add i-link-no.

22 years ago*** empty log message ***
Jim Meyering [Fri, 29 Mar 2002 23:09:52 +0000 (23:09 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Thu, 28 Mar 2002 08:07:41 +0000 (08:07 +0000)]
*** empty log message ***

22 years ago.
Jim Meyering [Thu, 28 Mar 2002 07:59:24 +0000 (07:59 +0000)]
.

22 years ago*** empty log message ***
Jim Meyering [Wed, 27 Mar 2002 08:05:14 +0000 (08:05 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Wed, 27 Mar 2002 07:57:00 +0000 (07:57 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Mon, 25 Mar 2002 09:53:28 +0000 (09:53 +0000)]
*** empty log message ***

22 years agoupdate copyright
Jim Meyering [Mon, 25 Mar 2002 09:53:18 +0000 (09:53 +0000)]
update copyright

22 years ago(age_of): Return -1 and 0 rather than 0 and 1.
Jim Meyering [Mon, 25 Mar 2002 09:53:07 +0000 (09:53 +0000)]
(age_of): Return -1 and 0 rather than 0 and 1.
Might as well keep it simple, and like bash.
(binary_operator): Fix bug with -nt and -ot, when one of the
files did not exist.  We want to be compatible with the ksh93
documentation, and with Bash.

22 years ago*** empty log message ***
Jim Meyering [Mon, 25 Mar 2002 09:52:46 +0000 (09:52 +0000)]
*** empty log message ***

22 years ago(File characteristic tests): Document the
Jim Meyering [Mon, 25 Mar 2002 09:52:25 +0000 (09:52 +0000)]
(File characteristic tests): Document the
behavior of test -nt and -ot when one of the files does not exist,
using the same behavior that is documented in ksh93.

22 years agoadjust spacing in expected diagnostic
Jim Meyering [Tue, 19 Mar 2002 09:55:21 +0000 (09:55 +0000)]
adjust spacing in expected diagnostic

22 years agouse only one space after semicolon
Jim Meyering [Tue, 19 Mar 2002 08:49:28 +0000 (08:49 +0000)]
use only one space after semicolon

22 years ago.
Jim Meyering [Mon, 18 Mar 2002 09:51:22 +0000 (09:51 +0000)]
.

22 years ago.
Jim Meyering [Mon, 18 Mar 2002 09:50:45 +0000 (09:50 +0000)]
.

22 years ago*** empty log message ***
Jim Meyering [Sun, 17 Mar 2002 19:28:04 +0000 (19:28 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Sun, 17 Mar 2002 19:21:54 +0000 (19:21 +0000)]
*** empty log message ***

22 years ago(TESTS): Add part-fail.
Jim Meyering [Sun, 17 Mar 2002 19:21:49 +0000 (19:21 +0000)]
(TESTS): Add part-fail.

22 years ago*** empty log message ***
Jim Meyering [Sun, 17 Mar 2002 19:21:24 +0000 (19:21 +0000)]
*** empty log message ***

22 years ago(usage): Mention that --format=FORMAT must be
Jim Meyering [Sun, 17 Mar 2002 19:21:16 +0000 (19:21 +0000)]
(usage): Mention that --format=FORMAT must be
a *floating-point* format, also in description of that option.
(usage): Also add the `=' signs here: --format=FORMAT,
--separator=STRING.

22 years ago*** empty log message ***
Jim Meyering [Sun, 17 Mar 2002 16:18:35 +0000 (16:18 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Sun, 17 Mar 2002 16:17:38 +0000 (16:17 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Sun, 17 Mar 2002 16:17:29 +0000 (16:17 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Sun, 17 Mar 2002 16:02:47 +0000 (16:02 +0000)]
*** empty log message ***

22 years ago(copy_internal) [move_mode]: Give a better diagnostic
Jim Meyering [Sun, 17 Mar 2002 16:00:54 +0000 (16:00 +0000)]
(copy_internal) [move_mode]: Give a better diagnostic
(using errno from the failed unlink) when a cross-device `mv'
fails, e.g., because the destination cannot be unlinked.
Prompted by a report from Karl Berry.

22 years ago*** empty log message ***
Jim Meyering [Sat, 16 Mar 2002 09:47:01 +0000 (09:47 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Sat, 16 Mar 2002 09:46:40 +0000 (09:46 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Sat, 16 Mar 2002 09:43:19 +0000 (09:43 +0000)]
*** empty log message ***

22 years ago.
Jim Meyering [Thu, 14 Mar 2002 12:19:49 +0000 (12:19 +0000)]
.

22 years ago*** empty log message ***
Jim Meyering [Tue, 12 Mar 2002 12:12:02 +0000 (12:12 +0000)]
*** empty log message ***

22 years ago. FILEUTILS-4_1_7
Jim Meyering [Sun, 10 Mar 2002 22:26:35 +0000 (22:26 +0000)]
.

22 years ago*** empty log message ***
Jim Meyering [Sun, 10 Mar 2002 22:25:01 +0000 (22:25 +0000)]
*** empty log message ***

22 years ago(strip): Change wording in diagnostic.
Jim Meyering [Sun, 10 Mar 2002 22:23:19 +0000 (22:23 +0000)]
(strip): Change wording in diagnostic.

22 years ago(do_copy): Change wording in diagnostic.
Jim Meyering [Sun, 10 Mar 2002 22:22:33 +0000 (22:22 +0000)]
(do_copy): Change wording in diagnostic.

22 years ago(main): Change wording in diagnostic.
Jim Meyering [Sun, 10 Mar 2002 22:21:44 +0000 (22:21 +0000)]
(main): Change wording in diagnostic.

22 years ago(make_path): Remove a comma from a diagnostic.
Jim Meyering [Sun, 10 Mar 2002 22:15:53 +0000 (22:15 +0000)]
(make_path): Remove a comma from a diagnostic.

22 years ago*** empty log message ***
Jim Meyering [Sun, 10 Mar 2002 20:25:56 +0000 (20:25 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Sun, 10 Mar 2002 20:20:08 +0000 (20:20 +0000)]
*** empty log message ***