platform/upstream/coreutils.git
18 years ago.
Jim Meyering [Thu, 12 Jan 2006 08:40:34 +0000 (08:40 +0000)]
.

18 years agowhoops. traps were commented out.
Jim Meyering [Thu, 12 Jan 2006 08:00:17 +0000 (08:00 +0000)]
whoops.  traps were commented out.

18 years ago*** empty log message ***
Jim Meyering [Thu, 12 Jan 2006 07:55:40 +0000 (07:55 +0000)]
*** empty log message ***

18 years agoRemove useless parentheses in cpp directives, so that
Jim Meyering [Thu, 12 Jan 2006 07:55:36 +0000 (07:55 +0000)]
Remove useless parentheses in cpp directives, so that
this file passes coreutils' `make syntax-check' tests.

18 years agofix typo: s/stdint.h.m4/stdint.m4/
Jim Meyering [Thu, 12 Jan 2006 07:48:36 +0000 (07:48 +0000)]
fix typo: s/stdint.h.m4/stdint.m4/

18 years agofrom gnulib
Jim Meyering [Thu, 12 Jan 2006 07:45:26 +0000 (07:45 +0000)]
from gnulib

18 years ago*** empty log message ***
Jim Meyering [Thu, 12 Jan 2006 07:22:36 +0000 (07:22 +0000)]
*** empty log message ***

18 years ago(TESTS): Add test.
Jim Meyering [Thu, 12 Jan 2006 07:22:18 +0000 (07:22 +0000)]
(TESTS): Add test.

18 years agoNew file, with a test for one of the
Jim Meyering [Thu, 12 Jan 2006 07:22:00 +0000 (07:22 +0000)]
New file, with a test for one of the
bugs fixed by yesterday's test.c changes.

18 years agoImport from gnulib.
Paul Eggert [Thu, 12 Jan 2006 07:21:34 +0000 (07:21 +0000)]
Import from gnulib.

18 years agoAdd stdint_.h.
Paul Eggert [Thu, 12 Jan 2006 07:21:19 +0000 (07:21 +0000)]
Add stdint_.h.

18 years agoAdjust to md5 changes in gnulib, and make sha1 etc. more consistent
Paul Eggert [Thu, 12 Jan 2006 07:19:50 +0000 (07:19 +0000)]
Adjust to md5 changes in gnulib, and make sha1 etc. more consistent
with md5.

18 years ago(gl_PREREQ): Require gl_STDINT_H.
Paul Eggert [Thu, 12 Jan 2006 07:19:00 +0000 (07:19 +0000)]
(gl_PREREQ): Require gl_STDINT_H.

18 years ago(struct sha512_ctx): Use a word buffer, not a byte buffer, so that we
Paul Eggert [Thu, 12 Jan 2006 07:18:39 +0000 (07:18 +0000)]
(struct sha512_ctx): Use a word buffer, not a byte buffer, so that we
don't need to worry about alignment.

18 years ago(struct sha256_ctx): Use a word buffer, not a byte buffer, so that we
Paul Eggert [Thu, 12 Jan 2006 07:18:13 +0000 (07:18 +0000)]
(struct sha256_ctx): Use a word buffer, not a byte buffer, so that we
 don't need to worry about alignment.  All uses changed.

18 years ago(struct sha1_ctx): Use a word buffer, not a byte buffer,
Paul Eggert [Thu, 12 Jan 2006 07:17:51 +0000 (07:17 +0000)]
(struct sha1_ctx): Use a word buffer, not a byte buffer,
so that we don't need to worry about alignment.  All uses changed.
This merges the 2005-10-28 md5 change into sha1.

18 years agoFix commentary to match md5 better. Adjust to .h file changes.
Paul Eggert [Thu, 12 Jan 2006 07:17:25 +0000 (07:17 +0000)]
Fix commentary to match md5 better.  Adjust to .h file changes.

18 years ago(__attribute__): Remove; unused.
Paul Eggert [Thu, 12 Jan 2006 07:16:33 +0000 (07:16 +0000)]
(__attribute__): Remove; unused.

18 years agoFix commentary typos.
Paul Eggert [Thu, 12 Jan 2006 07:16:21 +0000 (07:16 +0000)]
Fix commentary typos.
(alignof, UNALIGNED_P): No need for a GCC-specific version.

18 years ago(BUILT_SOURCES, EXTRA_DIST, stdint.h, MOSTLYCLEANFILES):
Paul Eggert [Thu, 12 Jan 2006 07:16:07 +0000 (07:16 +0000)]
(BUILT_SOURCES, EXTRA_DIST, stdint.h, MOSTLYCLEANFILES):
Add gnulib snippet.

18 years agoAdd stdint.h.
Paul Eggert [Thu, 12 Jan 2006 07:15:48 +0000 (07:15 +0000)]
Add stdint.h.

18 years ago*** empty log message ***
Jim Meyering [Wed, 11 Jan 2006 22:11:49 +0000 (22:11 +0000)]
*** empty log message ***

18 years ago*** empty log message ***
Jim Meyering [Wed, 11 Jan 2006 21:32:56 +0000 (21:32 +0000)]
*** empty log message ***

18 years ago*** empty log message ***
Jim Meyering [Wed, 11 Jan 2006 21:31:41 +0000 (21:31 +0000)]
*** empty log message ***

18 years ago*** empty log message ***
Jim Meyering [Wed, 11 Jan 2006 21:29:20 +0000 (21:29 +0000)]
*** empty log message ***

18 years agoTest for today's fts.c bug fix.
Jim Meyering [Wed, 11 Jan 2006 21:29:06 +0000 (21:29 +0000)]
Test for today's fts.c bug fix.

18 years ago(TESTS): Add long-sloop.
Jim Meyering [Wed, 11 Jan 2006 21:21:52 +0000 (21:21 +0000)]
(TESTS): Add long-sloop.

18 years ago*** empty log message ***
Jim Meyering [Wed, 11 Jan 2006 21:00:42 +0000 (21:00 +0000)]
*** empty log message ***

18 years ago(fts_stat): When following a symlink-to-directory,
Jim Meyering [Wed, 11 Jan 2006 21:00:36 +0000 (21:00 +0000)]
(fts_stat): When following a symlink-to-directory,
don't interpret all stat-fails+lstat-succeeds as indicating a
dangling symlink.  That can also happen at least for ELOOP.
The fix: return FTS_SLNONE only when the stat errno is ENOENT.

18 years agoMark Joerg Sonnenberger's change as tiny.
Jim Meyering [Wed, 11 Jan 2006 20:32:42 +0000 (20:32 +0000)]
Mark Joerg Sonnenberger's change as tiny.

18 years ago* src/test.c (test_syntax_error): Append a newline.
Paul Eggert [Wed, 11 Jan 2006 19:30:58 +0000 (19:30 +0000)]
* src/test.c (test_syntax_error): Append a newline.

18 years ago(test_syntax_error): Append a newline. All callers
Paul Eggert [Wed, 11 Jan 2006 19:29:47 +0000 (19:29 +0000)]
(test_syntax_error): Append a newline.  All callers
changed, except for the ones that didn't already append a newline.

18 years ago*** empty log message ***
Jim Meyering [Wed, 11 Jan 2006 16:30:08 +0000 (16:30 +0000)]
*** empty log message ***

18 years ago(fts_open): Put new (2006-01-04) maxarglen declaration and uses in their
Jim Meyering [Wed, 11 Jan 2006 16:29:35 +0000 (16:29 +0000)]
(fts_open): Put new (2006-01-04) maxarglen declaration and uses in their
own block, so pre-c99 compilers don't object.

18 years ago*** empty log message ***
Jim Meyering [Wed, 11 Jan 2006 16:19:06 +0000 (16:19 +0000)]
*** empty log message ***

18 years ago[!_LIBC]: Include "fcntl--.h", to map open to open_safer.
Jim Meyering [Wed, 11 Jan 2006 16:18:39 +0000 (16:18 +0000)]
[!_LIBC]: Include "fcntl--.h", to map open to open_safer.

18 years ago*** empty log message ***
Jim Meyering [Wed, 11 Jan 2006 15:25:36 +0000 (15:25 +0000)]
*** empty log message ***

18 years ago(gl_FUNC_OPENAT): Require and compile fchmodat.c.
Jim Meyering [Wed, 11 Jan 2006 15:25:30 +0000 (15:25 +0000)]
(gl_FUNC_OPENAT): Require and compile fchmodat.c.
Check for the lchmod function.

18 years ago*** empty log message ***
Jim Meyering [Wed, 11 Jan 2006 13:33:03 +0000 (13:33 +0000)]
*** empty log message ***

18 years ago(fchmodat, fchownat): Declare.
Jim Meyering [Wed, 11 Jan 2006 13:32:47 +0000 (13:32 +0000)]
(fchmodat, fchownat): Declare.
(chmodat, lchmodat): Define convenience functions.
(chownat, lchownat): Likewise.

18 years ago(fchownat): New function.
Jim Meyering [Wed, 11 Jan 2006 13:32:03 +0000 (13:32 +0000)]
(fchownat): New function.

18 years ago(fchmodat): New file and function.
Jim Meyering [Wed, 11 Jan 2006 13:30:31 +0000 (13:30 +0000)]
(fchmodat): New file and function.

18 years ago*** empty log message ***
Jim Meyering [Wed, 11 Jan 2006 10:07:22 +0000 (10:07 +0000)]
*** empty log message ***

18 years ago(OP): Remove useless space-before-TAB.
Jim Meyering [Wed, 11 Jan 2006 10:07:13 +0000 (10:07 +0000)]
(OP): Remove useless space-before-TAB.

18 years ago*** empty log message ***
Jim Meyering [Wed, 11 Jan 2006 08:22:43 +0000 (08:22 +0000)]
*** empty log message ***

18 years ago(X2NREALLOC): Now that verify_true is no longer void,
Jim Meyering [Wed, 11 Jan 2006 08:22:34 +0000 (08:22 +0000)]
(X2NREALLOC): Now that verify_true is no longer void,
cast its result to void, to avoid gcc's warning that
``left-hand operand of comma expression has no effect''.
(DECIMAL_DIGIT_ACCUMULATE, X2REALLOC): Likewise.

18 years agoSync from gnulib.
Paul Eggert [Wed, 11 Jan 2006 07:39:40 +0000 (07:39 +0000)]
Sync from gnulib.

18 years ago*** empty log message ***
Jim Meyering [Tue, 10 Jan 2006 21:48:19 +0000 (21:48 +0000)]
*** empty log message ***

18 years agoSync from gnulib.
Paul Eggert [Tue, 10 Jan 2006 20:13:35 +0000 (20:13 +0000)]
Sync from gnulib.

18 years agoUpdate copyright year.
Paul Eggert [Tue, 10 Jan 2006 20:05:53 +0000 (20:05 +0000)]
Update copyright year.

18 years agoRemove stray "lib/"s in previous change.
Paul Eggert [Tue, 10 Jan 2006 20:01:34 +0000 (20:01 +0000)]
Remove stray "lib/"s in previous change.

18 years agoSync from gnulib.
Paul Eggert [Tue, 10 Jan 2006 17:47:56 +0000 (17:47 +0000)]
Sync from gnulib.

18 years ago*** empty log message ***
Jim Meyering [Tue, 10 Jan 2006 11:55:20 +0000 (11:55 +0000)]
*** empty log message ***

18 years agoAvoid the double-free (first in fts_read, second in fts_close) that
Jim Meyering [Tue, 10 Jan 2006 11:55:13 +0000 (11:55 +0000)]
Avoid the double-free (first in fts_read, second in fts_close) that
would occur when an `active' directory is made inaccessible (e.g.,
via chmod a-x) during a traversal.

(fts_read): After a failed fchdir, update sp->fts_cur
before returning.  Reproduce this failure by
mkdir -p a/b; cd a; chmod a-x . b
Reported by Stavros Passas.

18 years agoAdd a test for today's fts.c fix.
Jim Meyering [Tue, 10 Jan 2006 11:52:52 +0000 (11:52 +0000)]
Add a test for today's fts.c fix.

18 years ago*** empty log message ***
Jim Meyering [Tue, 10 Jan 2006 10:23:27 +0000 (10:23 +0000)]
*** empty log message ***

18 years ago*** empty log message ***
Jim Meyering [Tue, 10 Jan 2006 09:16:10 +0000 (09:16 +0000)]
*** empty log message ***

18 years ago*** empty log message ***
Jim Meyering [Tue, 10 Jan 2006 07:33:30 +0000 (07:33 +0000)]
*** empty log message ***

18 years agoAlso include <stdio.h>, for Dragonfly.
Jim Meyering [Tue, 10 Jan 2006 07:33:22 +0000 (07:33 +0000)]
Also include <stdio.h>, for Dragonfly.
Patch by Joerg Sonnenberger.

18 years ago*** empty log message ***
Jim Meyering [Tue, 10 Jan 2006 07:31:49 +0000 (07:31 +0000)]
*** empty log message ***

18 years ago(gobble_file): Use DTTOIF only if it's defined.
Jim Meyering [Tue, 10 Jan 2006 07:31:21 +0000 (07:31 +0000)]
(gobble_file): Use DTTOIF only if it's defined.
This is necessary for Dragonfly.  Patch by Joerg Sonnenberger.

18 years agofix typo in comment
Jim Meyering [Mon, 9 Jan 2006 20:32:08 +0000 (20:32 +0000)]
fix typo in comment

18 years ago*** empty log message ***
Jim Meyering [Sun, 8 Jan 2006 20:48:04 +0000 (20:48 +0000)]
*** empty log message ***

18 years ago(usage): Adjust the formatting of the entries for
Jim Meyering [Sun, 8 Jan 2006 20:45:54 +0000 (20:45 +0000)]
(usage): Adjust the formatting of the entries for
%::z and %:::z (separate with two spaces, not one) so that help2man
formats them properly.  Reported by Philip Rowlands.

18 years ago* lib-ignore.m4: New file.
Paul Eggert [Sat, 7 Jan 2006 01:56:13 +0000 (01:56 +0000)]
* lib-ignore.m4: New file.

18 years ago* configure.ac (gl_IGNORE_UNUSED_LIBRARIES): Add.
Paul Eggert [Sat, 7 Jan 2006 01:56:01 +0000 (01:56 +0000)]
* configure.ac (gl_IGNORE_UNUSED_LIBRARIES): Add.

18 years ago(gl_IGNORE_UNUSED_LIBRARIES): Add.
Paul Eggert [Sat, 7 Jan 2006 01:55:49 +0000 (01:55 +0000)]
(gl_IGNORE_UNUSED_LIBRARIES): Add.

18 years agoInitial version.
Paul Eggert [Sat, 7 Jan 2006 01:55:27 +0000 (01:55 +0000)]
Initial version.

18 years ago*** empty log message ***
Jim Meyering [Fri, 6 Jan 2006 16:49:15 +0000 (16:49 +0000)]
*** empty log message ***

18 years ago(copyright-check): Use date +%Y in place of hard-coded 2005.
Jim Meyering [Fri, 6 Jan 2006 16:49:10 +0000 (16:49 +0000)]
(copyright-check): Use date +%Y in place of hard-coded 2005.

18 years ago*** empty log message ***
Jim Meyering [Fri, 6 Jan 2006 16:48:27 +0000 (16:48 +0000)]
*** empty log message ***

18 years ago(COPYRIGHT_YEAR): Update to 2006.
Jim Meyering [Fri, 6 Jan 2006 16:48:24 +0000 (16:48 +0000)]
(COPYRIGHT_YEAR): Update to 2006.

18 years ago*** empty log message ***
Jim Meyering [Fri, 6 Jan 2006 10:14:30 +0000 (10:14 +0000)]
*** empty log message ***

18 years ago(rm_1): Remove `static' attribute on local `status'.
Jim Meyering [Fri, 6 Jan 2006 10:14:19 +0000 (10:14 +0000)]
(rm_1): Remove `static' attribute on local `status'.
First off, the attribute should have been `volatile' (not static)
to avoid longjmp-related risk of clobber.  Secondly, now there is
no longer any risk of a local variable being clobbered, so there's
no need for any attribute at all.

18 years ago*** empty log message ***
Jim Meyering [Thu, 5 Jan 2006 14:31:22 +0000 (14:31 +0000)]
*** empty log message ***

18 years agoGive a few functions the inline attribute.
Jim Meyering [Thu, 5 Jan 2006 14:28:52 +0000 (14:28 +0000)]
Give a few functions the inline attribute.
(AD_pop_and_chdir): Use gotos to avoid some duplication.
(AD_push): Rewrite an assertion so that the entire computation
goes away when assertions are turned off.

18 years ago*** empty log message ***
Jim Meyering [Thu, 5 Jan 2006 10:30:21 +0000 (10:30 +0000)]
*** empty log message ***

18 years agoAdd a FIXME comment.
Jim Meyering [Thu, 5 Jan 2006 10:30:17 +0000 (10:30 +0000)]
Add a FIXME comment.

18 years ago*** empty log message ***
Jim Meyering [Thu, 5 Jan 2006 10:29:47 +0000 (10:29 +0000)]
*** empty log message ***

18 years ago(ENOSYS) [!defined ENOSYS]: Don't define here.
Jim Meyering [Thu, 5 Jan 2006 10:27:03 +0000 (10:27 +0000)]
(ENOSYS) [!defined ENOSYS]: Don't define here.
It's already defined in "system.h".

18 years ago.
Jim Meyering [Wed, 4 Jan 2006 21:06:39 +0000 (21:06 +0000)]
.

18 years ago(tzname): Don't declare if it is already #defined.
Paul Eggert [Wed, 4 Jan 2006 18:57:24 +0000 (18:57 +0000)]
(tzname): Don't declare if it is already #defined.

18 years ago*** empty log message ***
Jim Meyering [Wed, 4 Jan 2006 18:28:46 +0000 (18:28 +0000)]
*** empty log message ***

18 years ago.
Jim Meyering [Wed, 4 Jan 2006 18:27:03 +0000 (18:27 +0000)]
.

18 years agofix typo
Jim Meyering [Wed, 4 Jan 2006 16:09:03 +0000 (16:09 +0000)]
fix typo

18 years ago*** empty log message ***
Jim Meyering [Wed, 4 Jan 2006 16:07:17 +0000 (16:07 +0000)]
*** empty log message ***

18 years agochange comment and temp file name: s/openat/fdopendir/
Jim Meyering [Wed, 4 Jan 2006 16:07:11 +0000 (16:07 +0000)]
change comment and temp file name: s/openat/fdopendir/

18 years agochange comments and temp file name: s/openat/fdopendir/
Jim Meyering [Wed, 4 Jan 2006 16:06:59 +0000 (16:06 +0000)]
change comments and temp file name: s/openat/fdopendir/

18 years agoAlso allow a slightly different diagnostic -- the
Jim Meyering [Wed, 4 Jan 2006 16:06:30 +0000 (16:06 +0000)]
Also allow a slightly different diagnostic -- the
one you get when using openat-enabled fts.c and du (coming soon).

18 years ago*** empty log message ***
Jim Meyering [Wed, 4 Jan 2006 07:13:10 +0000 (07:13 +0000)]
*** empty log message ***

18 years agoMerge from glibc.
Jim Meyering [Wed, 4 Jan 2006 07:12:22 +0000 (07:12 +0000)]
Merge from glibc.
(fts_open): Avoid function call in MAX macro use.

18 years ago(xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
Paul Eggert [Tue, 3 Jan 2006 23:21:38 +0000 (23:21 +0000)]
(xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
long int, not int, for nanosecond counts, so that people who are
used to POSIX struct timespec won't be surprised.

18 years ago*** empty log message ***
Jim Meyering [Tue, 3 Jan 2006 21:59:07 +0000 (21:59 +0000)]
*** empty log message ***

18 years agoAlso allow a slightly different diagnostic -- the
Jim Meyering [Tue, 3 Jan 2006 21:59:02 +0000 (21:59 +0000)]
Also allow a slightly different diagnostic -- the
one you get when using openat-enabled fts.c and du (coming soon).

18 years ago*** empty log message ***
Jim Meyering [Tue, 3 Jan 2006 14:12:21 +0000 (14:12 +0000)]
*** empty log message ***

18 years agoAlso allow a slightly different diagnostic -- the
Jim Meyering [Tue, 3 Jan 2006 14:12:16 +0000 (14:12 +0000)]
Also allow a slightly different diagnostic -- the
one you get when using openat-enabled fts.c and du (coming soon).

18 years agocorrect first-line comment
Jim Meyering [Tue, 3 Jan 2006 10:29:58 +0000 (10:29 +0000)]
correct first-line comment

18 years ago*** empty log message ***
Jim Meyering [Tue, 3 Jan 2006 07:41:12 +0000 (07:41 +0000)]
*** empty log message ***

18 years ago(O_DIRECTORY) [!defined O_DIRECTORY]: Define.
Jim Meyering [Tue, 3 Jan 2006 07:41:03 +0000 (07:41 +0000)]
(O_DIRECTORY) [!defined O_DIRECTORY]: Define.

18 years agoMake sure we can change the group of inaccessible files.
Paul Eggert [Tue, 3 Jan 2006 06:20:25 +0000 (06:20 +0000)]
Make sure we can change the group of inaccessible files.