Commit Graph

  • 5124a296ab stat: revert behavior of --format=FMT (-c) stat: add new option: --printf=FMT Jim Meyering 2005-12-15 12:24:54 +00:00
  • 8768b88913 revert behavior of --format=FMT (-c) add new option: --printf=FMT Jim Meyering 2005-12-15 12:24:30 +00:00
  • 7383c9a1a3 (TESTS): Add stat-printf. Jim Meyering 2005-12-15 12:23:57 +00:00
  • d1f5df777f Test --printf and --format. Jim Meyering 2005-12-15 12:23:36 +00:00
  • 2a390dea1f *** empty log message *** Jim Meyering 2005-12-15 08:37:14 +00:00
  • cd42358418 Diagnose "sort -c -o FILE". Paul Eggert 2005-12-15 00:00:02 +00:00
  • e18c4ff172 (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 2005-12-14 23:59:23 +00:00
  • 4382b8ce00 (incompat4): New test. Paul Eggert 2005-12-14 23:58:20 +00:00
  • 1dbd70442d sort now reports incompatible options. Paul Eggert 2005-12-14 22:46:17 +00:00
  • 56805cd202 (check_ordering_compatibility): New function. (main): Use it. Paul Eggert 2005-12-14 22:46:02 +00:00
  • ce1be021a7 (incompat1, incompat2, incompat3): New tests. Paul Eggert 2005-12-14 22:45:29 +00:00
  • b0cee61e23 *** empty log message *** Jim Meyering 2005-12-14 20:37:24 +00:00
  • bd78a76886 (libcoreutils_a_SOURCES): Remove fprintftime.c and fprintftime.h. Now they're pulled in via the .m4 file. Jim Meyering 2005-12-14 20:37:06 +00:00
  • 0d58d63090 *** empty log message *** Jim Meyering 2005-12-14 20:36:20 +00:00
  • 85fba4dc43 Require gl_FPRINTFTIME. Jim Meyering 2005-12-14 20:36:14 +00:00
  • 82944b0300 Undo previous change to cat.c. Paul Eggert 2005-12-14 18:12:44 +00:00
  • dcc1bc1759 Undo previous change. Paul Eggert 2005-12-14 18:09:04 +00:00
  • 6d577b6fb4 * src/cat.c (main): Check for close (STDOUT_FILENO) failure. Paul Eggert 2005-12-14 01:40:19 +00:00
  • f5e1bca49d (main): Check for close (STDOUT_FILENO) failure. Paul Eggert 2005-12-14 01:39:46 +00:00
  • 3463531cd0 One other stdbool.m4 change. Paul Eggert 2005-12-14 01:17:51 +00:00
  • 8bf7f49616 (AM_STDBOOL_H): Substitue HAVE__BOOL again, reverting 2005-11-25 change. Paul Eggert 2005-12-14 01:17:28 +00:00
  • 23b2b5c660 * Makefile.am (stdbool.h): Resurrect the 'sed' that goes along with '#if !@HAVE_BOOL@". Paul Eggert 2005-12-14 00:09:23 +00:00
  • a6caba2509 (stdbool.h): Resurrect the 'sed' that goes along with '#if !@HAVE_BOOL@". Paul Eggert 2005-12-14 00:08:54 +00:00
  • 706c4369de Sync from gnulib. Paul Eggert 2005-12-13 23:58:55 +00:00
  • 4170c66d45 (_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 2005-12-13 19:42:27 +00:00
  • eaebfec990 (AC_HEADER_STDBOOL): Check for buggy compiler that has _Bool but mishandles _Bool |= _Bool. Paul Eggert 2005-12-13 19:41:57 +00:00
  • a867264a18 Install a more-conservative approach for sort -R. Paul Eggert 2005-12-12 22:47:57 +00:00
  • c5174f6fb2 (struct irand_state, irand_init, irand32, irand_mod): Moved back here, from rand-isaac.c. Paul Eggert 2005-12-12 22:43:16 +00:00
  • b22d6cc592 (struct irand_state, irand_init, irand32, irand_mod): Move to shred.c. Paul Eggert 2005-12-12 22:42:58 +00:00
  • d2af4ddbeb (EXTRA_DIST): Add rand-isaac.c. Paul Eggert 2005-12-12 22:42:37 +00:00
  • 9df4b20557 (sort invocation): Clarify explanation of --random-sort, and use a simpler example. Paul Eggert 2005-12-12 22:42:16 +00:00
  • 1f20820f7e Clarify sort -R. Paul Eggert 2005-12-12 22:41:56 +00:00
  • 6078d7175d Add src/rand-isaac.c. Paul Eggert 2005-12-12 22:41:42 +00:00
  • 0abb871873 Remove. All uses now simply include rand-isaac.c. Paul Eggert 2005-12-12 22:16:30 +00:00
  • 021921a712 Mention shred_SOURCES and sort_SOURCES, too. Paul Eggert 2005-12-12 22:16:02 +00:00
  • 55173eaa9e Use a more-conservative but slower approach for sort -R. Paul Eggert 2005-12-12 22:09:56 +00:00
  • dee72c1194 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 2005-12-12 22:09:27 +00:00
  • 30e44dd014 Include rand-isaac.c rather than rand-isaac.h. (fillrand, dopass, main): Undo previous change. Paul Eggert 2005-12-12 22:08:50 +00:00
  • f7a86b7734 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 2005-12-12 22:08:14 +00:00
  • 67ee303724 (noinst_HEADERS): Remove rand-isaac.h. Paul Eggert 2005-12-12 22:07:51 +00:00
  • 8340fb2805 *** empty log message *** Jim Meyering 2005-12-10 22:54:40 +00:00
  • 09227c31dd (noinst_HEADERS): Add rand-isaac.h. Jim Meyering 2005-12-10 22:54:31 +00:00
  • 2a6eef20f5 *** empty log message *** Jim Meyering 2005-12-10 22:10:59 +00:00
  • d5978ad190 Cleaner: Make the local an `int' instead. Jim Meyering 2005-12-10 22:10:53 +00:00
  • 437a569c53 *** empty log message *** Jim Meyering 2005-12-10 21:58:28 +00:00
  • dfacfaf971 Avoid shred segfault on 64-bit systems. Jim Meyering 2005-12-10 21:58:23 +00:00
  • 3199892488 *** empty log message *** Jim Meyering 2005-12-10 21:10:26 +00:00
  • 2f33661051 Mention sort's new options. Jim Meyering 2005-12-10 21:10:21 +00:00
  • df4dc0666d *** empty log message *** Jim Meyering 2005-12-10 10:18:18 +00:00
  • 41c0ee3fe4 * src/rand-isaac.h (isaac_mix): Remove declaration. Jim Meyering 2005-12-10 10:18:10 +00:00
  • dbfc16effb * 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 2005-12-10 10:18:01 +00:00
  • c4666a397d *** empty log message *** Jim Meyering 2005-12-10 10:05:27 +00:00
  • ea947bc7f0 *** empty log message *** Jim Meyering 2005-12-10 10:04:18 +00:00
  • fbaa8e9719 (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 2005-12-10 10:04:12 +00:00
  • beb862ee9c *** empty log message *** Jim Meyering 2005-12-10 10:02:32 +00:00
  • d6482a9ac2 Don't include gethrxtime.h. No longer needed. Jim Meyering 2005-12-10 10:02:24 +00:00
  • a2b661352b (keycompare): Remove stray SPACE before TAB that was causing `make distcheck' to fail. Jim Meyering 2005-12-10 09:44:00 +00:00
  • e2b9d79b9c *** empty log message *** Jim Meyering 2005-12-10 09:38:17 +00:00
  • d65090198c (TESTS): Add sort-rand. Jim Meyering 2005-12-10 09:38:07 +00:00
  • 9967cd6a63 *** empty log message *** Jim Meyering 2005-12-10 09:37:46 +00:00
  • 7de48ccced Add a basic test of the new options. Jim Meyering 2005-12-10 09:37:21 +00:00
  • f9b90d0739 Add sort -R. Paul Eggert 2005-12-10 09:08:55 +00:00
  • e076a77851 (sort invocation): Add --random-sort (-R) and --seed. Paul Eggert 2005-12-10 08:10:20 +00:00
  • 569c4876bc (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 2005-12-10 08:09:42 +00:00
  • 4013c49f1b 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 2005-12-10 08:09:20 +00:00
  • 7c2beeafd7 (sort_LDADD): Add $(LIB_GETHRXTIME). (shred_SOURCES, sort_SOURCES): New macros, so we compile rand-isaac.c. Paul Eggert 2005-12-10 08:08:52 +00:00
  • 71bc739b35 New file, containing ISAAC code that was in shred.c. Make state size runtime-configurable. (isaac_new, isaac_copy): New functions. Paul Eggert 2005-12-10 08:08:05 +00:00
  • a237792d66 Move ISAAC code out of shred.c. Paul Eggert 2005-12-10 08:07:36 +00:00
  • 078b4f861c add comments Jim Meyering 2005-12-09 21:52:50 +00:00
  • 4713202758 Add test for dd iflags=noatime. Paul Eggert 2005-12-09 21:48:38 +00:00
  • 467d73aac9 *** empty log message *** Jim Meyering 2005-12-09 16:28:28 +00:00
  • 99f35425a7 (usage): Mention white space vs -b and -t options. From The Wanderer. Jim Meyering 2005-12-09 16:28:17 +00:00
  • 55897502a6 *** empty log message *** Jim Meyering 2005-12-09 16:27:26 +00:00
  • e83af19449 *** empty log message *** Jim Meyering 2005-12-09 16:22:27 +00:00
  • 843efb8e3b (main): Fix misleading comment. Jim Meyering 2005-12-09 16:22:24 +00:00
  • bbfe621405 . Jim Meyering 2005-12-08 18:34:21 +00:00
  • 8b43cfcc59 Add dd noatime. Paul Eggert 2005-12-07 21:12:38 +00:00
  • 88afdc99f2 (flags, usage): Add support for noatime flag. Paul Eggert 2005-12-07 21:12:12 +00:00
  • cb65d67c2a (O_NOATIME): Define to 0 if not already defined. Paul Eggert 2005-12-07 21:11:45 +00:00
  • f2ced93400 * coreutils.texi (dd invocation): New noatime flag. Paul Eggert 2005-12-07 21:11:27 +00:00
  • 0e91392981 (dd invocation): New noatime flag. Paul Eggert 2005-12-07 21:11:14 +00:00
  • d17f5073fc Mention dd's new noatime flag. Paul Eggert 2005-12-07 21:10:33 +00:00
  • 5ea987eade * 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. Paul Eggert 2005-12-07 18:22:05 +00:00
  • c25ad39393 *** empty log message *** Jim Meyering 2005-12-07 16:23:43 +00:00
  • df621389b0 (EXTRA_DIST): Add build-aux/cvsu. Jim Meyering 2005-12-07 16:22:24 +00:00
  • 24bf7fd4ad (CVS_LIST): Use build-aux/cvsu, now that we have our own copy of cvsu. Jim Meyering 2005-12-07 16:10:51 +00:00
  • 96d80f5f4a *** empty log message *** Jim Meyering 2005-12-07 16:09:54 +00:00
  • db3375452d From Debian unstable: /usr/bin/cvsu. Jim Meyering 2005-12-07 16:09:38 +00:00
  • 88f5132b30 *** empty log message *** Jim Meyering 2005-12-07 16:09:09 +00:00
  • 907c710b9a *** empty log message *** Jim Meyering 2005-12-07 08:08:15 +00:00
  • 5dd8839716 exit-77 before the trap, not after, if we fail to create a temporary directory on another partition. Jim Meyering 2005-12-07 08:08:08 +00:00
  • 45daa1a04d *** empty log message *** Jim Meyering 2005-12-06 07:14:11 +00:00
  • de69f524a6 Cross-reference to dirname and readlink. Jim Meyering 2005-12-06 07:14:04 +00:00
  • bed3e0c42e Cross-reference to basename and readlink. Jim Meyering 2005-12-06 07:13:49 +00:00
  • 19af464ef3 Mention reporters for "none" and "proc" mounts. Paul Eggert 2005-12-05 17:46:22 +00:00
  • e1c945b363 *** empty log message *** Jim Meyering 2005-12-04 23:43:55 +00:00
  • f517ded11a *** empty log message *** Jim Meyering 2005-12-04 23:34:19 +00:00
  • c837e0038d (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 2005-12-04 23:34:14 +00:00
  • 5e36a5a28f *** empty log message *** Jim Meyering 2005-12-04 22:00:18 +00:00
  • 6a33c69c49 (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 2005-12-04 22:00:14 +00:00