Jim Meyering [Thu, 15 Dec 2005 20:15:20 +0000 (20:15 +0000)]
(print_it): Properly handle a backslash at the
end of a --printf format string. Reported by Paul Eggert.
Jim Meyering [Thu, 15 Dec 2005 20:15:05 +0000 (20:15 +0000)]
(print_it): Properly handle a backslash at the
end of a --printf format string. Reported by Paul Eggert.
(end-bs): Add a test for the above.
Paul Eggert [Thu, 15 Dec 2005 19:01:00 +0000 (19:01 +0000)]
Fix typo in previous change
Paul Eggert [Thu, 15 Dec 2005 18:58:47 +0000 (18:58 +0000)]
tests/acl porting fixes
Paul Eggert [Thu, 15 Dec 2005 18:58:20 +0000 (18:58 +0000)]
Port to pre-POSIX shells like Solaris 8 /bin/sh.
Don't assume /etc/passwd contains user names; use 'id' instead.
Paul Eggert [Thu, 15 Dec 2005 18:24:35 +0000 (18:24 +0000)]
Regenerate.
Jim Meyering [Thu, 15 Dec 2005 14:49:00 +0000 (14:49 +0000)]
Add Kinyarwanda (rw).
Add Croatian (hr).
Jim Meyering [Thu, 15 Dec 2005 14:48:48 +0000 (14:48 +0000)]
.
Jim Meyering [Thu, 15 Dec 2005 14:47:36 +0000 (14:47 +0000)]
.
Jim Meyering [Thu, 15 Dec 2005 12:25:04 +0000 (12:25 +0000)]
*** empty log message ***
Jim Meyering [Thu, 15 Dec 2005 12:24:54 +0000 (12:24 +0000)]
stat: revert behavior of --format=FMT (-c)
stat: add new option: --printf=FMT
Jim Meyering [Thu, 15 Dec 2005 12:24:30 +0000 (12:24 +0000)]
revert behavior of --format=FMT (-c)
add new option: --printf=FMT
(isodigit, octtobin, hextobin): Define.
(PRINTF_OPTION): Define.
(interpret_backslash_escapes, trailing_delim): New globals.
(usage): Document them. Alphabetize on long option names.
(print_esc_char): New function.
(print_it): Rewrite, in order to handle backslash escapes.
(main): Handle new option. Set globals for --format, too.
Jim Meyering [Thu, 15 Dec 2005 12:23:57 +0000 (12:23 +0000)]
(TESTS): Add stat-printf.
Jim Meyering [Thu, 15 Dec 2005 12:23:36 +0000 (12:23 +0000)]
Test --printf and --format.
Jim Meyering [Thu, 15 Dec 2005 08:37:14 +0000 (08:37 +0000)]
*** empty log message ***
Paul Eggert [Thu, 15 Dec 2005 00:00:02 +0000 (00:00 +0000)]
Diagnose "sort -c -o FILE".
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.
Paul Eggert [Wed, 14 Dec 2005 23:58:20 +0000 (23:58 +0000)]
(incompat4): New test.
Paul Eggert [Wed, 14 Dec 2005 22:46:17 +0000 (22:46 +0000)]
sort now reports incompatible options.
Paul Eggert [Wed, 14 Dec 2005 22:46:02 +0000 (22:46 +0000)]
(check_ordering_compatibility): New function.
(main): Use it.
Paul Eggert [Wed, 14 Dec 2005 22:45:29 +0000 (22:45 +0000)]
(incompat1, incompat2, incompat3): New tests.
Jim Meyering [Wed, 14 Dec 2005 20:37:24 +0000 (20:37 +0000)]
*** empty log message ***
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.
Jim Meyering [Wed, 14 Dec 2005 20:36:20 +0000 (20:36 +0000)]
*** empty log message ***
Jim Meyering [Wed, 14 Dec 2005 20:36:14 +0000 (20:36 +0000)]
Require gl_FPRINTFTIME.
Paul Eggert [Wed, 14 Dec 2005 18:12:44 +0000 (18:12 +0000)]
Undo previous change to cat.c.
Paul Eggert [Wed, 14 Dec 2005 18:09:04 +0000 (18:09 +0000)]
Undo previous change.
Paul Eggert [Wed, 14 Dec 2005 01:40:19 +0000 (01:40 +0000)]
* src/cat.c (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.
Paul Eggert [Wed, 14 Dec 2005 01:17:51 +0000 (01:17 +0000)]
One other stdbool.m4 change.
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.
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@".
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 ***