platform/upstream/coreutils.git
18 years ago* Makefile.am (EXTRA_DIST): Reflect doclicense.texi->fdl.texi renaming.
Jim Meyering [Thu, 17 Aug 2006 20:55:32 +0000 (20:55 +0000)]
* Makefile.am (EXTRA_DIST): Reflect doclicense.texi->fdl.texi renaming.

18 years agoRemove; no longer needed.
Paul Eggert [Thu, 17 Aug 2006 20:09:22 +0000 (20:09 +0000)]
Remove; no longer needed.

18 years agoAdd/fix copyright notices and adjust to latest GNU FDL.
Paul Eggert [Thu, 17 Aug 2006 19:58:17 +0000 (19:58 +0000)]
Add/fix copyright notices and adjust to latest GNU FDL.

18 years agols -CF would misalign columns in some cases.
Jim Meyering [Thu, 17 Aug 2006 15:46:56 +0000 (15:46 +0000)]
ls -CF would misalign columns in some cases.
* src/ls.c (get_type_indicator): New function.  extracted from...
(print_type_indicator): ...here.  Use it.
(length_of_file_name_and_frills): Use it here, too, rather than
assuming stat.st_mode is valid.
Reported by Andreas Schwab, here:
<http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/7774>
FIXME: add a test for this: FYI, I did ls -CF /proc and visually
inspected the result.

18 years ago* src/copy.c (copy_internal, same_file_ok): Adjust comments not
Jim Meyering [Thu, 17 Aug 2006 15:34:59 +0000 (15:34 +0000)]
* src/copy.c (copy_internal, same_file_ok): Adjust comments not
to mention the now-removed cp_options.xstat member.

18 years agoregenerate
Jim Meyering [Thu, 17 Aug 2006 11:49:08 +0000 (11:49 +0000)]
regenerate

18 years ago(AC_INIT): Bump to 6.1 and add "-cvs" suffix.
Jim Meyering [Thu, 17 Aug 2006 11:47:53 +0000 (11:47 +0000)]
(AC_INIT): Bump to 6.1 and add "-cvs" suffix.

18 years ago* Makefile.maint (patch-check): Adapt to work now that the patch
Jim Meyering [Thu, 17 Aug 2006 10:03:05 +0000 (10:03 +0000)]
* Makefile.maint (patch-check): Adapt to work now that the patch
modifies more than one file in src/.

18 years agoWith this patch, permit building with Solaris cc on Solaris 7.
Jim Meyering [Thu, 17 Aug 2006 09:50:24 +0000 (09:50 +0000)]
With this patch, permit building with Solaris cc on Solaris 7.
* src/c99-to-c89.diff: Add diffs to convert more c99-isms.
This integrates patches from Bruno Haible.

18 years ago* tests/chmod/setgid (abs_srcdir): Remove; not used or needed.
Paul Eggert [Wed, 16 Aug 2006 21:58:48 +0000 (21:58 +0000)]
* tests/chmod/setgid (abs_srcdir): Remove; not used or needed.
Skip this test if "chmod g+s d" silently does nothing.

18 years ago* tests/cp/Makefile.am: Don't mark "acl" as XFAIL.
Jim Meyering [Wed, 16 Aug 2006 21:53:56 +0000 (21:53 +0000)]
* tests/cp/Makefile.am: Don't mark "acl" as XFAIL.
* tests/cp/acl: Instead, skip the test if either setfacl
or getfacl fails.

18 years agoSkip this test suite if we can't set up files
Paul Eggert [Wed, 16 Aug 2006 21:46:36 +0000 (21:46 +0000)]
Skip this test suite if we can't set up files
properly for the setuid-etc test.

18 years ago* tests/lang-default (LC_ALL): Set to "C", so we get
Paul Eggert [Wed, 16 Aug 2006 20:11:42 +0000 (20:11 +0000)]
* tests/lang-default (LC_ALL): Set to "C", so we get
English-language diagnostics.  Unset the other variables.

18 years agoFix bugs when printing plurals of numbers that are not
Paul Eggert [Wed, 16 Aug 2006 19:36:46 +0000 (19:36 +0000)]
Fix bugs when printing plurals of numbers that are not
unsigned long int values.
* src/system.h (select_plural): New function.
* src/md5sum.c (digest_check): Use select_plural to avoid bug.
* src/uptime.c (print_uptime): Likewise.
* src/dd.c (print_stats): Likewise.  Also, don't use ngettext to
print a floating point number, as reducing to 0 or 1 doesn't work
for some languages.  Instead, just use "s" for seconds since it
doesn't need a plural form.

18 years ago(memcoll): Set errno = 0 in the shortcut case, too.
Paul Eggert [Wed, 16 Aug 2006 17:24:35 +0000 (17:24 +0000)]
(memcoll): Set errno = 0 in the shortcut case, too.

18 years ago* fts.c (fts_children): Remove obsolete "// FIXME ..." comment.
Jim Meyering [Wed, 16 Aug 2006 13:45:27 +0000 (13:45 +0000)]
* fts.c (fts_children): Remove obsolete "// FIXME ..." comment.
Reported by Bruno Haible.

18 years agoExplain why gzip --help's stderr output matters.
Jim Meyering [Wed, 16 Aug 2006 12:55:18 +0000 (12:55 +0000)]
Explain why gzip --help's stderr output matters.

18 years ago2006-08-16 Bruno Haible <bruno@clisp.org>
Jim Meyering [Wed, 16 Aug 2006 12:37:34 +0000 (12:37 +0000)]
2006-08-16  Bruno Haible  <bruno@clisp.org>
* Makefile.maint (gzip_rsyncable): Throw away stderr output of "gzip --help".

18 years ago2006-08-16 Andreas Schwab <schwab@suse.de>
Jim Meyering [Wed, 16 Aug 2006 10:00:07 +0000 (10:00 +0000)]
2006-08-16  Andreas Schwab  <schwab@suse.de>
* tests/cp/acl: Don't use non-portable == operator for test.

18 years ago*** empty log message ***
Jim Meyering [Wed, 16 Aug 2006 09:55:48 +0000 (09:55 +0000)]
*** empty log message ***

18 years ago* tests/ls/stat-dtype: Use stat to test file system type, rather
Jim Meyering [Wed, 16 Aug 2006 09:44:55 +0000 (09:44 +0000)]
* tests/ls/stat-dtype: Use stat to test file system type, rather
than df -T, in case /etc/mtab lies.  Reported by Michael Stone.

18 years agoadd URL for HU-translation problem report
Jim Meyering [Wed, 16 Aug 2006 06:06:23 +0000 (06:06 +0000)]
add URL for HU-translation problem report

18 years ago*** empty log message ***
Jim Meyering [Wed, 16 Aug 2006 06:05:20 +0000 (06:05 +0000)]
*** empty log message ***

18 years ago* NEWS: Mention that df exits with nonzero status if it generates
Paul Eggert [Tue, 15 Aug 2006 23:41:24 +0000 (23:41 +0000)]
* NEWS: Mention that df exits with nonzero status if it generates
no output.  This change was in 6.0 but inadvertently unmentioned.
* doc/coreutils.texi (df invocation): df exits nonzero if it outpus
nothing.
* src/df.c (file_systems_processed): Renamed from n_valid_args, and now
a boolean.
(show_dev): Don't set it until we actually output something.
Print the header if this is the first output.
(main): Don't print a header, as that is now show_dev's job.
* tests/misc/Makefile.am (TESTS): Add df.
* tests/misc/df: New file.

18 years ago(USE_STATVFS): Define to 0 if f_type is needed, but
Paul Eggert [Tue, 15 Aug 2006 23:23:28 +0000 (23:23 +0000)]
(USE_STATVFS): Define to 0 if f_type is needed, but
statvfs.f_type not present.

18 years ago* src/dd.c (print_stats): Don't substitute "1" for number, as this
Paul Eggert [Tue, 15 Aug 2006 20:50:22 +0000 (20:50 +0000)]
* src/dd.c (print_stats): Don't substitute "1" for number, as this
causes confusion for the Hungarian translators.  Problem reported
by Egmont Koblinger.

18 years ago[./]
Jim Meyering [Tue, 15 Aug 2006 19:17:30 +0000 (19:17 +0000)]
[./]
* .x-sc_require_config_h: Add lib/at-func.c.
[lib/]
* at-func.c: New file, with the logic of all emulated at-functions.
* openat-priv.h: Include <errno.h> and define ENOSYS,
in support of the EXPECTED_ERRNO macro.
* openat.c (fstatat, unlinkat, fchownat): Remove function definitions.
Instead, define the appropriate symbols and include "at-func.c".
* mkdirat.c (mkdirat): Likewise.
* fchmodat.c (fchmodat): Likewise.
(ENOSYS): Remove definition.
* openat.c: Don't include <errno.h>, now that "openat-priv.h" does it.
Don't include "unistd--.h" -- it wasn't ever used.
[m4/]
* openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.

18 years ago* NEWS: Add a line for 6.1-cvs.
Jim Meyering [Tue, 15 Aug 2006 17:00:00 +0000 (17:00 +0000)]
* NEWS: Add a line for 6.1-cvs.
* configure.ac (AC_INIT): Bump to 6.1 and add "-cvs" suffix.

18 years ago.
Jim Meyering [Tue, 15 Aug 2006 12:30:26 +0000 (12:30 +0000)]
.

18 years ago* Makefile.maint (alpha beta major): Fix syntax error. COREUTILS-6_0 v6.0
Jim Meyering [Tue, 15 Aug 2006 12:13:04 +0000 (12:13 +0000)]
* Makefile.maint (alpha beta major): Fix syntax error.

18 years ago*** empty log message ***
Jim Meyering [Tue, 15 Aug 2006 12:06:10 +0000 (12:06 +0000)]
*** empty log message ***

18 years ago.
Jim Meyering [Tue, 15 Aug 2006 12:05:34 +0000 (12:05 +0000)]
.

18 years agoDon't mention "stable" on Version line.
Jim Meyering [Tue, 15 Aug 2006 11:26:17 +0000 (11:26 +0000)]
Don't mention "stable" on Version line.

18 years agotweak syntax of "Version ..." line.
Jim Meyering [Tue, 15 Aug 2006 11:25:13 +0000 (11:25 +0000)]
tweak syntax of "Version ..." line.

18 years ago* TODO: Add an item (convert to use gnulib-tool), add to the plan
Jim Meyering [Tue, 15 Aug 2006 11:23:44 +0000 (11:23 +0000)]
* TODO: Add an item (convert to use gnulib-tool), add to the plan
for id-vs-getgrouplist, and remove a few completed items.

18 years ago* Version 6.0 [unstable].
Jim Meyering [Tue, 15 Aug 2006 11:12:07 +0000 (11:12 +0000)]
* Version 6.0 [unstable].
* NEWS: Record the 6.0 release date.
* configure.ac (AC_INIT): Remove "-cvs" suffix from version string.

18 years agocommit, for the record. May never be used.
Jim Meyering [Tue, 15 Aug 2006 11:08:03 +0000 (11:08 +0000)]
commit, for the record.  May never be used.

18 years agodo not set $path
Jim Meyering [Tue, 15 Aug 2006 11:05:50 +0000 (11:05 +0000)]
do not set $path
Use --leak-check=full, not --quiet.
Emit "--" after $vg.

18 years agoupdate from gnulib
Jim Meyering [Tue, 15 Aug 2006 09:14:36 +0000 (09:14 +0000)]
update from gnulib

18 years ago(memcoll): Optimize for the common case where the
Paul Eggert [Mon, 14 Aug 2006 16:20:49 +0000 (16:20 +0000)]
(memcoll): Optimize for the common case where the
arguments are bytewise equal.

18 years ago* src/shred.c (usage): Don't indent the second line of an item.
Jim Meyering [Sun, 13 Aug 2006 21:21:52 +0000 (21:21 +0000)]
* src/shred.c (usage): Don't indent the second line of an item.
Otherwise, help2man would misformat the output.
Reported by Adam Buchbinder in <https://launchpad.net/bugs/48917>.

18 years ago* pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
Paul Eggert [Fri, 11 Aug 2006 20:28:42 +0000 (20:28 +0000)]
* pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.

18 years ago(AM_GNU_GETTEXT): Upgrade to need-formatstring-macros.
Paul Eggert [Fri, 11 Aug 2006 18:40:41 +0000 (18:40 +0000)]
(AM_GNU_GETTEXT): Upgrade to need-formatstring-macros.

18 years ago(re_string_skip_chars): Don't assume WEOF fits in wchar_t.
Paul Eggert [Fri, 11 Aug 2006 18:29:06 +0000 (18:29 +0000)]
(re_string_skip_chars): Don't assume WEOF fits in wchar_t.

18 years agoFix typo in previous checkin: len -> lenbuf.
Paul Eggert [Fri, 11 Aug 2006 17:47:40 +0000 (17:47 +0000)]
Fix typo in previous checkin: len -> lenbuf.

18 years ago(snprintf): memcpy LEN bytes, not SIZE - 1, when
Paul Eggert [Fri, 11 Aug 2006 17:41:11 +0000 (17:41 +0000)]
(snprintf): memcpy LEN bytes, not SIZE - 1, when
LEN is smaller than SIZE.  Suggested by Bruno Haible.
Also, help the compiler to keep LEN in a register.

18 years ago* tests/ls/stat-vs-dirent: Too many (losing) systems trigger the
Jim Meyering [Fri, 11 Aug 2006 08:40:11 +0000 (08:40 +0000)]
* tests/ls/stat-vs-dirent: Too many (losing) systems trigger the
failure that this test checks for (stat/dirent inode mismatch at
a mount point), so continue to give a diagnostic about the failure,
but don't actually count it as a failure.

18 years agoUndo latest change; I was confused about gettext versus gcc.
Paul Eggert [Thu, 10 Aug 2006 22:53:24 +0000 (22:53 +0000)]
Undo latest change; I was confused about gettext versus gcc.

18 years agoUndo latest change; I was confused about xgettext versus gcc.
Paul Eggert [Thu, 10 Aug 2006 22:52:57 +0000 (22:52 +0000)]
Undo latest change; I was confused about xgettext versus gcc.

18 years agoAdjust some files for gettext 0.15.
Paul Eggert [Thu, 10 Aug 2006 22:51:06 +0000 (22:51 +0000)]
Adjust some files for gettext 0.15.

18 years agoImport from gettext 0.15.
Paul Eggert [Thu, 10 Aug 2006 22:50:40 +0000 (22:50 +0000)]
Import from gettext 0.15.

18 years ago(XGETTEXT_OPTIONS): Add pass-c-format flags for
Paul Eggert [Thu, 10 Aug 2006 22:50:17 +0000 (22:50 +0000)]
(XGETTEXT_OPTIONS): Add pass-c-format flags for
_ and N_, so that we get format checking even when --enable-nls.
Add c-format flags for error, error_at_line, asprintf, vasprintf,
asnprintf, vasnprintf, wrapf.
(USE_MSGCTXT): New macro.

18 years ago(my-distcheck): Don't bother with --disable-nls,
Paul Eggert [Thu, 10 Aug 2006 22:49:50 +0000 (22:49 +0000)]
(my-distcheck): Don't bother with --disable-nls,
as it shouldn't be needed with gettext 0.15.

18 years ago(AM_GNU_GETTEXT_VERSION): Update from 0.13.1 to 0.15.
Paul Eggert [Thu, 10 Aug 2006 22:49:26 +0000 (22:49 +0000)]
(AM_GNU_GETTEXT_VERSION): Update from 0.13.1 to 0.15.

18 years agoImport from gettext 0.15
Paul Eggert [Thu, 10 Aug 2006 22:49:06 +0000 (22:49 +0000)]
Import from gettext 0.15

18 years ago(struct control): Remove fastmap member.
Paul Eggert [Thu, 10 Aug 2006 20:53:32 +0000 (20:53 +0000)]
(struct control): Remove fastmap member.
(extract_regexp): Allocate fastmap separately, since otherwise
it might move due to a realloc.

18 years agoImport regex changes from libc via gnulib.
Paul Eggert [Thu, 10 Aug 2006 20:49:28 +0000 (20:49 +0000)]
Import regex changes from libc via gnulib.

18 years agoUpdate cycle-check from gnulib.
Paul Eggert [Thu, 10 Aug 2006 19:26:39 +0000 (19:26 +0000)]
Update cycle-check from gnulib.

18 years agoAccommodate new getaddrinfo implementation in gnulib.
Paul Eggert [Thu, 10 Aug 2006 19:10:52 +0000 (19:10 +0000)]
Accommodate new getaddrinfo implementation in gnulib.
(gl_PREREQ): Require gl_FUNC_SNPRINTF, gl_GETADDRINFO,
gl_HEADER_ARPA_INET, gl_HEADER_NETINET_IN, gl_HEADER_SYS_SOCKET,
gl_INET_NTOP, gl_TYPE_SOCKEN_T.

18 years agoAccommodate new getaddrinfo implementation in gnulib.
Paul Eggert [Thu, 10 Aug 2006 19:10:26 +0000 (19:10 +0000)]
Accommodate new getaddrinfo implementation in gnulib.
(libcoreutils_a_SOURCES): Add inet_ntop.h, snprintf.h.
(MOSTLYCLEANDIRS): New macro.
(BUILT_SOURCES): Add $(ARPA_INET_H), $(SYS_SOCKET_H), $(NETINET_IN_H).
(arpa/inet.h, netinet/in.h, sys/socket.h): New rules.
(MOSTLYCLEANFILES): Add arpa/inet.h, arpa/inet.h-t, netinet/in.h,
netinet/in.h-t, sys/socket.h, sys/socket.h-t.
(EXTRA_DIST): Add socket_.h.

18 years agoImport from gnulib, to support new getaddrinfo implementation of gnulib.
Paul Eggert [Thu, 10 Aug 2006 19:09:33 +0000 (19:09 +0000)]
Import from gnulib, to support new getaddrinfo implementation of gnulib.

18 years agoAdd snprintf.h, socket_.h.
Paul Eggert [Thu, 10 Aug 2006 19:08:58 +0000 (19:08 +0000)]
Add snprintf.h, socket_.h.

18 years ago* tests/ls/stat-dtype: If "." is tmpfs, skip this test unless uname -s
Jim Meyering [Thu, 10 Aug 2006 09:22:33 +0000 (09:22 +0000)]
* tests/ls/stat-dtype: If "." is tmpfs, skip this test unless uname -s
reports "Linux".  This avoids a failure on Solaris 10's tmpfs.
Redirect both stdout and stderr of df invocations.

18 years ago* src/dircolors.hin: Add a TERM directive for each of the following:
Jim Meyering [Thu, 10 Aug 2006 08:50:37 +0000 (08:50 +0000)]
* src/dircolors.hin: Add a TERM directive for each of the following:
ansi, color-xterm, gnome, konsole, kterm, rxvt-cygwin,
rxvt-cygwin-native, screen.linux, xterm-256color.
Sort the TERM directives.
From Mike Frysinger.

18 years agoadd a comment
Jim Meyering [Thu, 10 Aug 2006 08:25:03 +0000 (08:25 +0000)]
add a comment

18 years agoRegenerate.
Paul Eggert [Wed, 9 Aug 2006 23:46:10 +0000 (23:46 +0000)]
Regenerate.

18 years agoRegenerate.
Paul Eggert [Wed, 9 Aug 2006 23:44:56 +0000 (23:44 +0000)]
Regenerate.

18 years agoSync from gnulib.
Paul Eggert [Wed, 9 Aug 2006 23:44:30 +0000 (23:44 +0000)]
Sync from gnulib.

18 years agoSync from gnulib.
Paul Eggert [Wed, 9 Aug 2006 23:42:26 +0000 (23:42 +0000)]
Sync from gnulib.

18 years agoWarn about oflag=append without conv=notrunc.
Paul Eggert [Wed, 9 Aug 2006 21:16:28 +0000 (21:16 +0000)]
Warn about oflag=append without conv=notrunc.

18 years agoAdd mlterm, rxvt-unicode; this fixes Debian bug 317503.
Paul Eggert [Wed, 9 Aug 2006 20:56:15 +0000 (20:56 +0000)]
Add mlterm, rxvt-unicode; this fixes Debian bug 317503.

18 years agoRegenerate.
Paul Eggert [Wed, 9 Aug 2006 20:24:38 +0000 (20:24 +0000)]
Regenerate.

18 years agoRegenerate.
Paul Eggert [Wed, 9 Aug 2006 20:23:36 +0000 (20:23 +0000)]
Regenerate.

18 years agoAdd shuf.
Paul Eggert [Wed, 9 Aug 2006 20:23:07 +0000 (20:23 +0000)]
Add shuf.

18 years ago* LINGUAS: Add ro, sr, uk, wa.
Paul Eggert [Wed, 9 Aug 2006 20:11:12 +0000 (20:11 +0000)]
* LINGUAS: Add ro, sr, uk, wa.
* ro.po, sr.po, uk,po, wa.po: New files.
Regenerate other translations.

18 years agoRemove the po-update procedure; it doesn't
Paul Eggert [Wed, 9 Aug 2006 20:06:14 +0000 (20:06 +0000)]
Remove the po-update procedure; it doesn't
work with the new repository on http://www.iro.umontreal.ca/.
For now I guess we'll have to fix things by hand.
(do-po-update, po-update): Remove.  All references removed.

18 years agoFix too-long line in 2006-08-08 checkin, and an encoding error
Paul Eggert [Wed, 9 Aug 2006 20:05:18 +0000 (20:05 +0000)]
Fix too-long line in 2006-08-08 checkin, and an encoding error
in 2006-07-19 checkin.

18 years ago(my-distcheck): Compile with -Wpointer-arith
Paul Eggert [Wed, 9 Aug 2006 18:08:06 +0000 (18:08 +0000)]
(my-distcheck): Compile with -Wpointer-arith
to detect this sort of problem automatically in the future.

18 years ago(next_line): New function.
Paul Eggert [Wed, 9 Aug 2006 18:07:43 +0000 (18:07 +0000)]
(next_line): New function.
(read_input): Use it, to avoid relying on GCC-specific behavior
with void * arithmetic.

18 years agoAdd a compile-time check to ensure that filetype
Jim Meyering [Wed, 9 Aug 2006 09:45:17 +0000 (09:45 +0000)]
Add a compile-time check to ensure that filetype
and filetype_letter have the same number of elements.

18 years agoRemove use of --seed=S.
Jim Meyering [Wed, 9 Aug 2006 08:24:37 +0000 (08:24 +0000)]
Remove use of --seed=S.

18 years agoInclude <config.h>.
Jim Meyering [Wed, 9 Aug 2006 08:13:36 +0000 (08:13 +0000)]
Include <config.h>.

18 years agoAdd lib/randread.c, lib/xmemxfrm.c, and src/shuf.c.
Jim Meyering [Wed, 9 Aug 2006 08:12:27 +0000 (08:12 +0000)]
Add lib/randread.c, lib/xmemxfrm.c, and src/shuf.c.

18 years agoFix typo in latest changelog entry: restrict.m4 wasn't logged right.
Paul Eggert [Tue, 8 Aug 2006 22:41:15 +0000 (22:41 +0000)]
Fix typo in latest changelog entry: restrict.m4 wasn't logged right.

18 years agoAdd shuf, better random number generation, and fix sort -R in
Paul Eggert [Tue, 8 Aug 2006 22:28:00 +0000 (22:28 +0000)]
Add shuf, better random number generation, and fix sort -R in
funny locales.

18 years agoRemove, since we no longer need gl_RESTRICT.
Paul Eggert [Tue, 8 Aug 2006 22:26:44 +0000 (22:26 +0000)]
Remove, since we no longer need gl_RESTRICT.

18 years agoRemove; its contents are now in ../lib/rand-isaac.c.
Paul Eggert [Tue, 8 Aug 2006 22:23:11 +0000 (22:23 +0000)]
Remove; its contents are now in ../lib/rand-isaac.c.

18 years agoNew file, introduced for shuf, sort -R, and/or shred.
Paul Eggert [Tue, 8 Aug 2006 22:22:47 +0000 (22:22 +0000)]
New file, introduced for shuf, sort -R, and/or shred.

18 years ago(TESTS): Add shuf.
Paul Eggert [Tue, 8 Aug 2006 22:20:59 +0000 (22:20 +0000)]
(TESTS): Add shuf.

18 years agoUse new random-number interface rather than rand-isaac.c.
Paul Eggert [Tue, 8 Aug 2006 22:20:12 +0000 (22:20 +0000)]
Use new random-number interface rather than rand-isaac.c.
Don't include rand-isaac.c; include randint.h and randread.h instead.
(RANDOM_SOURCE_OPTION): New enum.
(long_opts, usage, main): New option --random-source.
Include md5.h, randread.h, xmemxfrm.h.
(longopts, usage, main): Remove undocumented --seed option;
it's now replaced by --random-source.
(rand_state, get_hash): Remove.
(randread_source): New static var.
(random_state, cmp_hashes, compare_random): New functions; they guarantee
no collisions in the random hash function.
(keycompare): Use compare_random for -R; don't fall back on comparing
via memcoll, since compare_random does the right thing.

18 years agoUse new random-number interface rather than rand-isaac.c.
Paul Eggert [Tue, 8 Aug 2006 22:19:39 +0000 (22:19 +0000)]
Use new random-number interface rather than rand-isaac.c.
Don't include rand-isaac.c; include randint.h and randread.h instead.
(RANDOM_SOURCE_OPTION): New enum.
(long_opts, usage, main): New option --random-source.
(struct irand_state, irand_init, irand32, irand_mod): Remove.
All callers changed to use randint interface.
(fillrand): Remove.  All callers changed to use randread interface.
(dopass): Remove dependency on ISAAC buffer size.
(genpattern): Don't wipe the random state here.
(randint_source): New static var.
(clear_random_data): New function.
(main): Allocate random source, and arrange to wipe it on exit.

18 years ago(bin_PROGRAMS): Add shuf.
Paul Eggert [Tue, 8 Aug 2006 22:19:03 +0000 (22:19 +0000)]
(bin_PROGRAMS): Add shuf.
(EXTRA_DIST): Remove rand-isaac.c.
(shuf_LDADD): New macro.

18 years ago(dist_man_MANS): Add shuf.1.
Paul Eggert [Tue, 8 Aug 2006 22:18:39 +0000 (22:18 +0000)]
(dist_man_MANS): Add shuf.1.
(shuf.1): New dependency.

18 years agoAdd shuf.1.
Paul Eggert [Tue, 8 Aug 2006 22:18:20 +0000 (22:18 +0000)]
Add shuf.1.

18 years ago(gl_TIME_R): Use AC_C_RESTRICT, not
Paul Eggert [Tue, 8 Aug 2006 22:17:56 +0000 (22:17 +0000)]
(gl_TIME_R): Use AC_C_RESTRICT, not
gl_C_RESTRICT, since we assume recent Autoconf.

18 years ago(gl_PREREQ_REGEX): Use AC_C_RESTRICT, not gl_C_RESTRICT, since we
Paul Eggert [Tue, 8 Aug 2006 22:17:20 +0000 (22:17 +0000)]
(gl_PREREQ_REGEX): Use AC_C_RESTRICT, not gl_C_RESTRICT, since we
assume recent Autoconf.

18 years ago(gl_PREREQ): Require gl_MEMXFRM, gl_RANDINT, gl_RANDPERM,
Paul Eggert [Tue, 8 Aug 2006 22:16:51 +0000 (22:16 +0000)]
(gl_PREREQ): Require gl_MEMXFRM, gl_RANDINT, gl_RANDPERM,
gl_RANDREAD.

18 years ago(gl_PREREQ_GETADDRINFO): Use AC_C_RESTRICT, not
Paul Eggert [Tue, 8 Aug 2006 22:16:18 +0000 (22:16 +0000)]
(gl_PREREQ_GETADDRINFO): Use AC_C_RESTRICT, not
gl_C_RESTRICT, since we assume recent Autoconf.

18 years ago(libcoreutils_a_SOURCES): Add xmemxfrm.c, xmemxfrm.h.
Paul Eggert [Tue, 8 Aug 2006 22:12:21 +0000 (22:12 +0000)]
(libcoreutils_a_SOURCES): Add xmemxfrm.c, xmemxfrm.h.

18 years ago(shuf invocation, Random sources): New sections.
Paul Eggert [Tue, 8 Aug 2006 22:11:49 +0000 (22:11 +0000)]
(shuf invocation, Random sources): New sections.
(Operating on sorted files): Add shuf.
(sort invocation, shred invocation): New option --random-source.
(sort invocation): Fix typo: -R -> -r.