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@".
Paul Eggert [Tue, 13 Dec 2005 23:58:55 +0000 (23:58 +0000)]
Sync from gnulib.
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>.
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.
Paul Eggert [Mon, 12 Dec 2005 22:47:57 +0000 (22:47 +0000)]
Install a more-conservative approach for sort -R.
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.
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.
Paul Eggert [Mon, 12 Dec 2005 22:42:37 +0000 (22:42 +0000)]
(EXTRA_DIST): Add rand-isaac.c.
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.
Paul Eggert [Mon, 12 Dec 2005 22:41:56 +0000 (22:41 +0000)]
Clarify sort -R.
Paul Eggert [Mon, 12 Dec 2005 22:41:42 +0000 (22:41 +0000)]
Add src/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.
Paul Eggert [Mon, 12 Dec 2005 22:16:02 +0000 (22:16 +0000)]
Mention shred_SOURCES and sort_SOURCES, too.
Paul Eggert [Mon, 12 Dec 2005 22:09:56 +0000 (22:09 +0000)]
Use a more-conservative but slower approach for sort -R.
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.
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.
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.
Paul Eggert [Mon, 12 Dec 2005 22:07:51 +0000 (22:07 +0000)]
(noinst_HEADERS): Remove rand-isaac.h.
Jim Meyering [Sat, 10 Dec 2005 22:54:40 +0000 (22:54 +0000)]
*** empty log message ***
Jim Meyering [Sat, 10 Dec 2005 22:54:31 +0000 (22:54 +0000)]
(noinst_HEADERS): Add rand-isaac.h.
Jim Meyering [Sat, 10 Dec 2005 22:10:59 +0000 (22:10 +0000)]
*** empty log message ***
Jim Meyering [Sat, 10 Dec 2005 22:10:53 +0000 (22:10 +0000)]
Cleaner:
Make the local an `int' instead.
Jim Meyering [Sat, 10 Dec 2005 21:58:28 +0000 (21:58 +0000)]
*** empty log message ***
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.
Jim Meyering [Sat, 10 Dec 2005 21:10:26 +0000 (21:10 +0000)]
*** empty log message ***
Jim Meyering [Sat, 10 Dec 2005 21:10:21 +0000 (21:10 +0000)]
Mention sort's new options.
Jim Meyering [Sat, 10 Dec 2005 10:18:18 +0000 (10:18 +0000)]
*** empty log message ***
Jim Meyering [Sat, 10 Dec 2005 10:18:10 +0000 (10:18 +0000)]
* src/rand-isaac.h (isaac_mix): Remove declaration.
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.
Jim Meyering [Sat, 10 Dec 2005 10:05:27 +0000 (10:05 +0000)]
*** empty log message ***
Jim Meyering [Sat, 10 Dec 2005 10:04:18 +0000 (10:04 +0000)]
*** empty log message ***
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.
Jim Meyering [Sat, 10 Dec 2005 10:02:32 +0000 (10:02 +0000)]
*** empty log message ***
Jim Meyering [Sat, 10 Dec 2005 10:02:24 +0000 (10:02 +0000)]
Don't include gethrxtime.h. No longer needed.
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.
Jim Meyering [Sat, 10 Dec 2005 09:38:17 +0000 (09:38 +0000)]
*** empty log message ***
Jim Meyering [Sat, 10 Dec 2005 09:38:07 +0000 (09:38 +0000)]
(TESTS): Add sort-rand.
Jim Meyering [Sat, 10 Dec 2005 09:37:46 +0000 (09:37 +0000)]
*** empty log message ***
Jim Meyering [Sat, 10 Dec 2005 09:37:21 +0000 (09:37 +0000)]
Add a basic test of the new options.
Paul Eggert [Sat, 10 Dec 2005 09:08:55 +0000 (09:08 +0000)]
Add sort -R.
Paul Eggert [Sat, 10 Dec 2005 08:10:20 +0000 (08:10 +0000)]
(sort invocation): Add --random-sort (-R) and --seed.
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.
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.
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.
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.
Paul Eggert [Sat, 10 Dec 2005 08:07:36 +0000 (08:07 +0000)]
Move ISAAC code out of shred.c.
Jim Meyering [Fri, 9 Dec 2005 21:52:50 +0000 (21:52 +0000)]
add comments
Paul Eggert [Fri, 9 Dec 2005 21:48:38 +0000 (21:48 +0000)]
Add test for dd iflags=noatime.
Jim Meyering [Fri, 9 Dec 2005 16:28:28 +0000 (16:28 +0000)]
*** empty log message ***
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.
Jim Meyering [Fri, 9 Dec 2005 16:27:26 +0000 (16:27 +0000)]
*** empty log message ***
Jim Meyering [Fri, 9 Dec 2005 16:22:27 +0000 (16:22 +0000)]
*** empty log message ***
Jim Meyering [Fri, 9 Dec 2005 16:22:24 +0000 (16:22 +0000)]
(main): Fix misleading comment.
Jim Meyering [Thu, 8 Dec 2005 18:34:21 +0000 (18:34 +0000)]
.
Paul Eggert [Wed, 7 Dec 2005 21:12:38 +0000 (21:12 +0000)]
Add dd noatime.
Paul Eggert [Wed, 7 Dec 2005 21:12:12 +0000 (21:12 +0000)]
(flags, usage): Add support for noatime flag.
Paul Eggert [Wed, 7 Dec 2005 21:11:45 +0000 (21:11 +0000)]
(O_NOATIME): Define to 0 if not already defined.
Paul Eggert [Wed, 7 Dec 2005 21:11:27 +0000 (21:11 +0000)]
* coreutils.texi (dd invocation): New noatime flag.
Paul Eggert [Wed, 7 Dec 2005 21:11:14 +0000 (21:11 +0000)]
(dd invocation): New noatime flag.
Paul Eggert [Wed, 7 Dec 2005 21:10:33 +0000 (21:10 +0000)]
Mention dd's new noatime flag.
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.
Jim Meyering [Wed, 7 Dec 2005 16:23:43 +0000 (16:23 +0000)]
*** empty log message ***
Jim Meyering [Wed, 7 Dec 2005 16:22:24 +0000 (16:22 +0000)]
(EXTRA_DIST): Add build-aux/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.
Jim Meyering [Wed, 7 Dec 2005 16:09:54 +0000 (16:09 +0000)]
*** empty log message ***
Jim Meyering [Wed, 7 Dec 2005 16:09:38 +0000 (16:09 +0000)]
From Debian unstable: /usr/bin/cvsu.
Jim Meyering [Wed, 7 Dec 2005 16:09:09 +0000 (16:09 +0000)]
*** empty log message ***
Jim Meyering [Wed, 7 Dec 2005 08:08:15 +0000 (08:08 +0000)]
*** empty log message ***
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.
Jim Meyering [Tue, 6 Dec 2005 07:14:11 +0000 (07:14 +0000)]
*** empty log message ***
Jim Meyering [Tue, 6 Dec 2005 07:14:04 +0000 (07:14 +0000)]
Cross-reference to dirname and readlink.
Jim Meyering [Tue, 6 Dec 2005 07:13:49 +0000 (07:13 +0000)]
Cross-reference to basename and readlink.
Paul Eggert [Mon, 5 Dec 2005 17:46:22 +0000 (17:46 +0000)]
Mention reporters for "none" and "proc" mounts.
Jim Meyering [Sun, 4 Dec 2005 23:43:55 +0000 (23:43 +0000)]
*** empty log message ***
Jim Meyering [Sun, 4 Dec 2005 23:34:19 +0000 (23:34 +0000)]
*** empty log message ***
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.
Jim Meyering [Sun, 4 Dec 2005 22:00:18 +0000 (22:00 +0000)]
*** empty log message ***
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.
Jim Meyering [Sun, 4 Dec 2005 09:58:40 +0000 (09:58 +0000)]
*** empty log message ***
Jim Meyering [Sun, 4 Dec 2005 09:58:34 +0000 (09:58 +0000)]
(usage): Say what happens with two or more arguments.
Jim Meyering [Sat, 3 Dec 2005 23:24:51 +0000 (23:24 +0000)]
*** empty log message ***
Jim Meyering [Sat, 3 Dec 2005 23:24:46 +0000 (23:24 +0000)]
(print_uptime): Move decl of local `upsecs' into scope where it's used.
Jim Meyering [Sat, 3 Dec 2005 23:19:58 +0000 (23:19 +0000)]
.
Jim Meyering [Sat, 3 Dec 2005 22:24:31 +0000 (22:24 +0000)]
*** empty log message ***
Jim Meyering [Sat, 3 Dec 2005 22:23:40 +0000 (22:23 +0000)]
*** empty log message ***
Jim Meyering [Sat, 3 Dec 2005 22:23:23 +0000 (22:23 +0000)]
(long_options): Change the name of each undocumented, for-
testing-only option to start with `-', so that it cannot render
ambiguous any prefix it happens to share with some other option name.
Jim Meyering [Sat, 3 Dec 2005 22:23:09 +0000 (22:23 +0000)]
(long_opts): Change the name of each undocumented, for-
testing-only option to start with `-', so that it cannot render
ambiguous any prefix it happens to share with some other option name.
Jim Meyering [Sat, 3 Dec 2005 22:16:24 +0000 (22:16 +0000)]
Update uses of undocumented, for- testing-only --presume* options
to start with `---'.
Paul Eggert [Fri, 2 Dec 2005 18:35:33 +0000 (18:35 +0000)]
Mention change to jm-macros.m4.
Paul Eggert [Fri, 2 Dec 2005 18:35:19 +0000 (18:35 +0000)]
(gl_MACROS): Adjust to renaming of gl_SOCKLEN_T to gl_TYPE_SOCKLEN_T.
Paul Eggert [Fri, 2 Dec 2005 18:23:42 +0000 (18:23 +0000)]
Fix typo in previous log entry.
Paul Eggert [Fri, 2 Dec 2005 18:22:10 +0000 (18:22 +0000)]
* (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
Use implementation from Albert Chin, with some
comments/corrections by Stepan Kasal and myself.
Jim Meyering [Fri, 2 Dec 2005 07:49:12 +0000 (07:49 +0000)]
*** empty log message ***
Paul Eggert [Fri, 2 Dec 2005 00:42:52 +0000 (00:42 +0000)]
Import from gnulib.
Paul Eggert [Fri, 2 Dec 2005 00:29:02 +0000 (00:29 +0000)]
(gl_REGEX): Check whether off_t can be used in a switch
statement, to work around an HP-UX 10.20 compiler bug reported by
Peter O'Gorman.
Jim Meyering [Wed, 30 Nov 2005 17:42:36 +0000 (17:42 +0000)]
*** empty log message ***
Jim Meyering [Wed, 30 Nov 2005 17:42:33 +0000 (17:42 +0000)]
Add a comment about cvsu.
Jim Meyering [Wed, 30 Nov 2005 13:05:08 +0000 (13:05 +0000)]
*** empty log message ***
Jim Meyering [Wed, 30 Nov 2005 13:05:03 +0000 (13:05 +0000)]
(gl_FUNC_OPENAT): Require openat-priv.h.
Jim Meyering [Wed, 30 Nov 2005 13:04:26 +0000 (13:04 +0000)]
Include openat-priv.h.
Remove definitions of macros defined therein.