platform/upstream/coreutils.git
18 years ago(TESTS): Add stat-printf.
Jim Meyering [Thu, 15 Dec 2005 12:23:57 +0000 (12:23 +0000)]
(TESTS): Add stat-printf.

18 years agoTest --printf and --format.
Jim Meyering [Thu, 15 Dec 2005 12:23:36 +0000 (12:23 +0000)]
Test --printf and --format.

18 years ago*** empty log message ***
Jim Meyering [Thu, 15 Dec 2005 08:37:14 +0000 (08:37 +0000)]
*** empty log message ***

18 years agoDiagnose "sort -c -o FILE".
Paul Eggert [Thu, 15 Dec 2005 00:00:02 +0000 (00:00 +0000)]
Diagnose "sort -c -o FILE".

18 years ago(incompatible_options): New function.
Paul Eggert [Wed, 14 Dec 2005 23:59:23 +0000 (23:59 +0000)]
(incompatible_options): New function.
(check_ordering_compatibility, main): Use it.
(main): Check for -c and -o.
Don't bother with a usage message for
"sort -c a b", for consistency with other error diagnostics.

18 years ago(incompat4): New test.
Paul Eggert [Wed, 14 Dec 2005 23:58:20 +0000 (23:58 +0000)]
(incompat4): New test.

18 years agosort now reports incompatible options.
Paul Eggert [Wed, 14 Dec 2005 22:46:17 +0000 (22:46 +0000)]
sort now reports incompatible options.

18 years ago(check_ordering_compatibility): New function.
Paul Eggert [Wed, 14 Dec 2005 22:46:02 +0000 (22:46 +0000)]
(check_ordering_compatibility): New function.
(main): Use it.

18 years ago(incompat1, incompat2, incompat3): New tests.
Paul Eggert [Wed, 14 Dec 2005 22:45:29 +0000 (22:45 +0000)]
(incompat1, incompat2, incompat3): New tests.

18 years ago*** empty log message ***
Jim Meyering [Wed, 14 Dec 2005 20:37:24 +0000 (20:37 +0000)]
*** empty log message ***

18 years ago(libcoreutils_a_SOURCES): Remove fprintftime.c
Jim Meyering [Wed, 14 Dec 2005 20:37:06 +0000 (20:37 +0000)]
(libcoreutils_a_SOURCES): Remove fprintftime.c
and fprintftime.h.  Now they're pulled in via the .m4 file.

18 years ago*** empty log message ***
Jim Meyering [Wed, 14 Dec 2005 20:36:20 +0000 (20:36 +0000)]
*** empty log message ***

18 years agoRequire gl_FPRINTFTIME.
Jim Meyering [Wed, 14 Dec 2005 20:36:14 +0000 (20:36 +0000)]
Require gl_FPRINTFTIME.

18 years agoUndo previous change to cat.c.
Paul Eggert [Wed, 14 Dec 2005 18:12:44 +0000 (18:12 +0000)]
Undo previous change to cat.c.

18 years agoUndo previous change.
Paul Eggert [Wed, 14 Dec 2005 18:09:04 +0000 (18:09 +0000)]
Undo previous change.

18 years ago* src/cat.c (main): Check for close (STDOUT_FILENO) failure.
Paul Eggert [Wed, 14 Dec 2005 01:40:19 +0000 (01:40 +0000)]
* src/cat.c (main): Check for close (STDOUT_FILENO) failure.

18 years ago(main): Check for close (STDOUT_FILENO) failure.
Paul Eggert [Wed, 14 Dec 2005 01:39:46 +0000 (01:39 +0000)]
(main): Check for close (STDOUT_FILENO) failure.

18 years agoOne other stdbool.m4 change.
Paul Eggert [Wed, 14 Dec 2005 01:17:51 +0000 (01:17 +0000)]
One other stdbool.m4 change.

18 years ago(AM_STDBOOL_H): Substitue HAVE__BOOL again, reverting
Paul Eggert [Wed, 14 Dec 2005 01:17:28 +0000 (01:17 +0000)]
(AM_STDBOOL_H): Substitue HAVE__BOOL again, reverting
2005-11-25 change.

18 years ago* Makefile.am (stdbool.h): Resurrect the 'sed' that goes along
Paul Eggert [Wed, 14 Dec 2005 00:09:23 +0000 (00:09 +0000)]
* Makefile.am (stdbool.h): Resurrect the 'sed' that goes along
with '#if !@HAVE_BOOL@".

18 years ago(stdbool.h): Resurrect the 'sed' that goes along with '#if !@HAVE_BOOL@".
Paul Eggert [Wed, 14 Dec 2005 00:08:54 +0000 (00:08 +0000)]
(stdbool.h): Resurrect the 'sed' that goes along with '#if !@HAVE_BOOL@".

18 years agoSync from gnulib.
Paul Eggert [Tue, 13 Dec 2005 23:58:55 +0000 (23:58 +0000)]
Sync from gnulib.

18 years ago(_Bool): Resurrect the "#if !@HAVE__BOOL@" check, to
Paul Eggert [Tue, 13 Dec 2005 19:42:27 +0000 (19:42 +0000)]
(_Bool): Resurrect the "#if !@HAVE__BOOL@" check, to
work around compilers that have a (possibly-broken) _Bool but lack
a working <stdbool.h>.

18 years ago(AC_HEADER_STDBOOL): Check for buggy compiler that
Paul Eggert [Tue, 13 Dec 2005 19:41:57 +0000 (19:41 +0000)]
(AC_HEADER_STDBOOL): Check for buggy compiler that
has _Bool but mishandles _Bool |= _Bool.

18 years agoInstall a more-conservative approach for sort -R.
Paul Eggert [Mon, 12 Dec 2005 22:47:57 +0000 (22:47 +0000)]
Install a more-conservative approach for sort -R.

18 years ago(struct irand_state, irand_init, irand32, irand_mod): Moved back here,
Paul Eggert [Mon, 12 Dec 2005 22:43:16 +0000 (22:43 +0000)]
(struct irand_state, irand_init, irand32, irand_mod): Moved back here,
from rand-isaac.c.

18 years ago(struct irand_state, irand_init, irand32, irand_mod): Move to shred.c.
Paul Eggert [Mon, 12 Dec 2005 22:42:58 +0000 (22:42 +0000)]
(struct irand_state, irand_init, irand32, irand_mod): Move to shred.c.

18 years ago(EXTRA_DIST): Add rand-isaac.c.
Paul Eggert [Mon, 12 Dec 2005 22:42:37 +0000 (22:42 +0000)]
(EXTRA_DIST): Add rand-isaac.c.

18 years ago(sort invocation): Clarify explanation of
Paul Eggert [Mon, 12 Dec 2005 22:42:16 +0000 (22:42 +0000)]
(sort invocation): Clarify explanation of
--random-sort, and use a simpler example.

18 years agoClarify sort -R.
Paul Eggert [Mon, 12 Dec 2005 22:41:56 +0000 (22:41 +0000)]
Clarify sort -R.

18 years agoAdd src/rand-isaac.c.
Paul Eggert [Mon, 12 Dec 2005 22:41:42 +0000 (22:41 +0000)]
Add src/rand-isaac.c.

18 years agoRemove. All uses now simply include rand-isaac.c.
Paul Eggert [Mon, 12 Dec 2005 22:16:30 +0000 (22:16 +0000)]
Remove.  All uses now simply include rand-isaac.c.

18 years agoMention shred_SOURCES and sort_SOURCES, too.
Paul Eggert [Mon, 12 Dec 2005 22:16:02 +0000 (22:16 +0000)]
Mention shred_SOURCES and sort_SOURCES, too.

18 years agoUse a more-conservative but slower approach for sort -R.
Paul Eggert [Mon, 12 Dec 2005 22:09:56 +0000 (22:09 +0000)]
Use a more-conservative but slower approach for sort -R.

18 years agoInclude rand-isaac.c rather than rand-isaac.h.
Paul Eggert [Mon, 12 Dec 2005 22:09:27 +0000 (22:09 +0000)]
Include rand-isaac.c rather than rand-isaac.h.
Don't include md5.h; it wasn't needed.
(struct keyfield): Rename random_hash to random, for consistency
with the other member names.  All uses changed.
(usage): Tweak wording to mention STRING for --seed option.
(short_options): Rorder for consistency with other programs.
(rand_state): Now a struct, not a pointer to one.  All uses changed.
(HASH_WORDS, HASH_SIZE): Remove.
(get_hash): Remove comments around resbuf size, since we can assume C89.
Use a "more-kosher" (but slower) approach of invoking isaac_refill.
(keycompare): Adjust to the new get_hash.
Add a FIXME.
(badfieldspec): Omit recently-introduced comment; it isn't needed.
(main): Don't set need_random simply because gkey has it set; that
doesn't necessarily mean we'll need random numbers.
Redo seeding to match new get_hash approach.

18 years agoInclude rand-isaac.c rather than rand-isaac.h.
Paul Eggert [Mon, 12 Dec 2005 22:08:50 +0000 (22:08 +0000)]
Include rand-isaac.c rather than rand-isaac.h.
(fillrand, dopass, main): Undo previous change.

18 years agoRevert to what used to be in shred.c, without
Paul Eggert [Mon, 12 Dec 2005 22:08:14 +0000 (22:08 +0000)]
Revert to what used to be in shred.c, without
changing it to allow for varying numbers of words in the state.
Alter so that we include rand-isaac.c directly rather than
compiling it and linking to it.  Don't include config.h or
system.h; that's the includer's responsibility.
(ISAAC_LOG, ISAAC_WORDS, ISAAC_BYTES, struct isaac_state, ind):
(isaac_step, struct irand_state):
Resurrect these, with the same defns that used to be in shred.c.
(ISAAC_SIZE, isaac_new, isaac_copy): Remove.
(isaac_refill, isaac_seed_start, isaac_seed_data, irand_init, irand32):
static again.
(struct isaac_state, isaac_refill, isaac_mix, isaac_init):
(isaac_seed_start, isaac_seed_data, isaac_seed_finish, isaac_seed):
(irand_init, irand32, irand_mod):
Number of words is constant again.

18 years ago(noinst_HEADERS): Remove rand-isaac.h.
Paul Eggert [Mon, 12 Dec 2005 22:07:51 +0000 (22:07 +0000)]
(noinst_HEADERS): Remove rand-isaac.h.

18 years ago*** empty log message ***
Jim Meyering [Sat, 10 Dec 2005 22:54:40 +0000 (22:54 +0000)]
*** empty log message ***

18 years ago(noinst_HEADERS): Add rand-isaac.h.
Jim Meyering [Sat, 10 Dec 2005 22:54:31 +0000 (22:54 +0000)]
(noinst_HEADERS): Add rand-isaac.h.

18 years ago*** empty log message ***
Jim Meyering [Sat, 10 Dec 2005 22:10:59 +0000 (22:10 +0000)]
*** empty log message ***

18 years agoCleaner:
Jim Meyering [Sat, 10 Dec 2005 22:10:53 +0000 (22:10 +0000)]
Cleaner:
  Make the local an `int' instead.

18 years ago*** empty log message ***
Jim Meyering [Sat, 10 Dec 2005 21:58:28 +0000 (21:58 +0000)]
*** empty log message ***

18 years agoAvoid shred segfault on 64-bit systems.
Jim Meyering [Sat, 10 Dec 2005 21:58:23 +0000 (21:58 +0000)]
Avoid shred segfault on 64-bit systems.

(isaac_refill): Don't try to negate a
local of type uint32_t.  Convert it to int32_t first.

18 years ago*** empty log message ***
Jim Meyering [Sat, 10 Dec 2005 21:10:26 +0000 (21:10 +0000)]
*** empty log message ***

18 years agoMention sort's new options.
Jim Meyering [Sat, 10 Dec 2005 21:10:21 +0000 (21:10 +0000)]
Mention sort's new options.

18 years ago*** empty log message ***
Jim Meyering [Sat, 10 Dec 2005 10:18:18 +0000 (10:18 +0000)]
*** empty log message ***

18 years ago* src/rand-isaac.h (isaac_mix): Remove declaration.
Jim Meyering [Sat, 10 Dec 2005 10:18:10 +0000 (10:18 +0000)]
* src/rand-isaac.h (isaac_mix): Remove declaration.

18 years ago* src/rand-isaac.c (isaac_mix): Declare to be static.
Jim Meyering [Sat, 10 Dec 2005 10:18:01 +0000 (10:18 +0000)]
* src/rand-isaac.c (isaac_mix): Declare to be static.
Mark all other functions as `extern' so the tight-scope
part of `make distcheck' passes once again.
* src/rand-isaac.h (isaac_mix): Remove declaration.

18 years ago*** empty log message ***
Jim Meyering [Sat, 10 Dec 2005 10:05:27 +0000 (10:05 +0000)]
*** empty log message ***

18 years ago*** empty log message ***
Jim Meyering [Sat, 10 Dec 2005 10:04:18 +0000 (10:04 +0000)]
*** empty log message ***

18 years ago(get_hash): Change position of `*' in parameter type to conform with convention.
Jim Meyering [Sat, 10 Dec 2005 10:04:12 +0000 (10:04 +0000)]
(get_hash): Change position of `*' in parameter type to conform with convention.
(main): Split a long line so it fits in 80 columns.

18 years ago*** empty log message ***
Jim Meyering [Sat, 10 Dec 2005 10:02:32 +0000 (10:02 +0000)]
*** empty log message ***

18 years agoDon't include gethrxtime.h. No longer needed.
Jim Meyering [Sat, 10 Dec 2005 10:02:24 +0000 (10:02 +0000)]
Don't include gethrxtime.h.  No longer needed.

18 years ago(keycompare): Remove stray SPACE before TAB that was
Jim Meyering [Sat, 10 Dec 2005 09:44:00 +0000 (09:44 +0000)]
(keycompare): Remove stray SPACE before TAB that was
causing `make distcheck' to fail.

18 years ago*** empty log message ***
Jim Meyering [Sat, 10 Dec 2005 09:38:17 +0000 (09:38 +0000)]
*** empty log message ***

18 years ago(TESTS): Add sort-rand.
Jim Meyering [Sat, 10 Dec 2005 09:38:07 +0000 (09:38 +0000)]
(TESTS): Add sort-rand.

18 years ago*** empty log message ***
Jim Meyering [Sat, 10 Dec 2005 09:37:46 +0000 (09:37 +0000)]
*** empty log message ***

18 years agoAdd a basic test of the new options.
Jim Meyering [Sat, 10 Dec 2005 09:37:21 +0000 (09:37 +0000)]
Add a basic test of the new options.

18 years agoAdd sort -R.
Paul Eggert [Sat, 10 Dec 2005 09:08:55 +0000 (09:08 +0000)]
Add sort -R.

18 years ago(sort invocation): Add --random-sort (-R) and --seed.
Paul Eggert [Sat, 10 Dec 2005 08:10:20 +0000 (08:10 +0000)]
(sort invocation): Add --random-sort (-R) and --seed.

18 years ago(short_options, long_options, WORDS, keycompare, main):
Paul Eggert [Sat, 10 Dec 2005 08:09:42 +0000 (08:09 +0000)]
(short_options, long_options, WORDS, keycompare, main):
(usage): Add options --random-sort and --seed to implement a random
shuffle.
Include md5.h and rand-isaac.h.
(get_hash): New function.
(rand_state): New var.
(HASH_WORDS, HASH_SIZE): New macros.

18 years agoInclude rand-isaac.h. Move ISAAC code to rand-isaac.c.
Paul Eggert [Sat, 10 Dec 2005 08:09:20 +0000 (08:09 +0000)]
Include rand-isaac.h.  Move ISAAC code to rand-isaac.c.
(fillrand, main): Adjust to the fact that the state size is now
runtime-configurable.

18 years ago(sort_LDADD): Add $(LIB_GETHRXTIME).
Paul Eggert [Sat, 10 Dec 2005 08:08:52 +0000 (08:08 +0000)]
(sort_LDADD): Add $(LIB_GETHRXTIME).
(shred_SOURCES, sort_SOURCES): New macros, so we compile rand-isaac.c.

18 years agoNew file, containing ISAAC code that was in shred.c.
Paul Eggert [Sat, 10 Dec 2005 08:08:05 +0000 (08:08 +0000)]
New file, containing ISAAC code that was in shred.c.
Make state size runtime-configurable.
(isaac_new, isaac_copy): New functions.

18 years agoMove ISAAC code out of shred.c.
Paul Eggert [Sat, 10 Dec 2005 08:07:36 +0000 (08:07 +0000)]
Move ISAAC code out of shred.c.

18 years agoadd comments
Jim Meyering [Fri, 9 Dec 2005 21:52:50 +0000 (21:52 +0000)]
add comments

18 years agoAdd test for dd iflags=noatime.
Paul Eggert [Fri, 9 Dec 2005 21:48:38 +0000 (21:48 +0000)]
Add test for dd iflags=noatime.

18 years ago*** empty log message ***
Jim Meyering [Fri, 9 Dec 2005 16:28:28 +0000 (16:28 +0000)]
*** empty log message ***

18 years ago(usage): Mention white space vs -b and -t options.
Jim Meyering [Fri, 9 Dec 2005 16:28:17 +0000 (16:28 +0000)]
(usage): Mention white space vs -b and -t options.
From The Wanderer.

18 years ago*** empty log message ***
Jim Meyering [Fri, 9 Dec 2005 16:27:26 +0000 (16:27 +0000)]
*** empty log message ***

18 years ago*** empty log message ***
Jim Meyering [Fri, 9 Dec 2005 16:22:27 +0000 (16:22 +0000)]
*** empty log message ***

18 years ago(main): Fix misleading comment.
Jim Meyering [Fri, 9 Dec 2005 16:22:24 +0000 (16:22 +0000)]
(main): Fix misleading comment.

18 years ago.
Jim Meyering [Thu, 8 Dec 2005 18:34:21 +0000 (18:34 +0000)]
.

18 years agoAdd dd noatime.
Paul Eggert [Wed, 7 Dec 2005 21:12:38 +0000 (21:12 +0000)]
Add dd noatime.

18 years ago(flags, usage): Add support for noatime flag.
Paul Eggert [Wed, 7 Dec 2005 21:12:12 +0000 (21:12 +0000)]
(flags, usage): Add support for noatime flag.

18 years ago(O_NOATIME): Define to 0 if not already defined.
Paul Eggert [Wed, 7 Dec 2005 21:11:45 +0000 (21:11 +0000)]
(O_NOATIME): Define to 0 if not already defined.

18 years ago* coreutils.texi (dd invocation): New noatime flag.
Paul Eggert [Wed, 7 Dec 2005 21:11:27 +0000 (21:11 +0000)]
* coreutils.texi (dd invocation): New noatime flag.

18 years ago(dd invocation): New noatime flag.
Paul Eggert [Wed, 7 Dec 2005 21:11:14 +0000 (21:11 +0000)]
(dd invocation): New noatime flag.

18 years agoMention dd's new noatime flag.
Paul Eggert [Wed, 7 Dec 2005 21:10:33 +0000 (21:10 +0000)]
Mention dd's new noatime flag.

18 years ago* lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
Paul Eggert [Wed, 7 Dec 2005 18:22:05 +0000 (18:22 +0000)]
* lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
porting problem reported by Georg Schwarz in
<http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
* m4/stat-time.m4 (gl_STAT_TIME): Likewise.

18 years ago*** empty log message ***
Jim Meyering [Wed, 7 Dec 2005 16:23:43 +0000 (16:23 +0000)]
*** empty log message ***

18 years ago(EXTRA_DIST): Add build-aux/cvsu.
Jim Meyering [Wed, 7 Dec 2005 16:22:24 +0000 (16:22 +0000)]
(EXTRA_DIST): Add build-aux/cvsu.

18 years ago(CVS_LIST): Use build-aux/cvsu, now that we have our own copy of cvsu.
Jim Meyering [Wed, 7 Dec 2005 16:10:51 +0000 (16:10 +0000)]
(CVS_LIST): Use build-aux/cvsu, now that we have our own copy of cvsu.

18 years ago*** empty log message ***
Jim Meyering [Wed, 7 Dec 2005 16:09:54 +0000 (16:09 +0000)]
*** empty log message ***

18 years agoFrom Debian unstable: /usr/bin/cvsu.
Jim Meyering [Wed, 7 Dec 2005 16:09:38 +0000 (16:09 +0000)]
From Debian unstable: /usr/bin/cvsu.

18 years ago*** empty log message ***
Jim Meyering [Wed, 7 Dec 2005 16:09:09 +0000 (16:09 +0000)]
*** empty log message ***

18 years ago*** empty log message ***
Jim Meyering [Wed, 7 Dec 2005 08:08:15 +0000 (08:08 +0000)]
*** empty log message ***

18 years agoexit-77 before the trap, not after, if we fail
Jim Meyering [Wed, 7 Dec 2005 08:08:08 +0000 (08:08 +0000)]
exit-77 before the trap, not after, if we fail
to create a temporary directory on another partition.

18 years ago*** empty log message ***
Jim Meyering [Tue, 6 Dec 2005 07:14:11 +0000 (07:14 +0000)]
*** empty log message ***

18 years agoCross-reference to dirname and readlink.
Jim Meyering [Tue, 6 Dec 2005 07:14:04 +0000 (07:14 +0000)]
Cross-reference to dirname and readlink.

18 years agoCross-reference to basename and readlink.
Jim Meyering [Tue, 6 Dec 2005 07:13:49 +0000 (07:13 +0000)]
Cross-reference to basename and readlink.

18 years agoMention reporters for "none" and "proc" mounts.
Paul Eggert [Mon, 5 Dec 2005 17:46:22 +0000 (17:46 +0000)]
Mention reporters for "none" and "proc" mounts.

18 years ago*** empty log message ***
Jim Meyering [Sun, 4 Dec 2005 23:43:55 +0000 (23:43 +0000)]
*** empty log message ***

18 years ago*** empty log message ***
Jim Meyering [Sun, 4 Dec 2005 23:34:19 +0000 (23:34 +0000)]
*** empty log message ***

18 years ago(fchown) [!HAVE_FCHOWN]: Define fchown(...) to -1.
Jim Meyering [Sun, 4 Dec 2005 23:34:14 +0000 (23:34 +0000)]
(fchown) [!HAVE_FCHOWN]: Define fchown(...) to -1.
(set_owner, preserve_author): New functions, factored out of copy_reg.
(copy_reg): Use them.
(copy_internal): Use them here, too.
From Andreas Gruenbacher.

18 years ago*** empty log message ***
Jim Meyering [Sun, 4 Dec 2005 22:00:18 +0000 (22:00 +0000)]
*** empty log message ***

18 years ago(EXPECTED_ERRNO): Add ENOSYS, for Solaris 8.
Jim Meyering [Sun, 4 Dec 2005 22:00:14 +0000 (22:00 +0000)]
(EXPECTED_ERRNO): Add ENOSYS, for Solaris 8.
Paul Eggert reported that unlink/rmdir vs. e.g., /proc/self/fd/N/FILE
fails with ENOSYS.  This makes openat revert to using save-cwd.c
functions in that case.

18 years ago*** empty log message ***
Jim Meyering [Sun, 4 Dec 2005 09:58:40 +0000 (09:58 +0000)]
*** empty log message ***

18 years ago(usage): Say what happens with two or more arguments.
Jim Meyering [Sun, 4 Dec 2005 09:58:34 +0000 (09:58 +0000)]
(usage): Say what happens with two or more arguments.