platform/upstream/coreutils.git
21 years ago*** empty log message ***
Jim Meyering [Thu, 24 Jul 2003 09:20:18 +0000 (09:20 +0000)]
*** empty log message ***

21 years ago(test_vector): Disable the `PIPE' tests when running
Jim Meyering [Thu, 24 Jul 2003 07:13:10 +0000 (07:13 +0000)]
(test_vector): Disable the `PIPE' tests when running
`wc' with no options.  This goes along with the change of 2003-07-20.

21 years ago*** empty log message ***
Jim Meyering [Thu, 24 Jul 2003 07:12:58 +0000 (07:12 +0000)]
*** empty log message ***

21 years agoupdate from master
Jim Meyering [Thu, 24 Jul 2003 06:57:42 +0000 (06:57 +0000)]
update from master

21 years ago.
Jim Meyering [Thu, 24 Jul 2003 06:56:21 +0000 (06:56 +0000)]
.

21 years ago*** empty log message ***
Jim Meyering [Wed, 23 Jul 2003 08:13:37 +0000 (08:13 +0000)]
*** empty log message ***

21 years agoDon't include headers already included by system.h:
Jim Meyering [Wed, 23 Jul 2003 08:13:33 +0000 (08:13 +0000)]
Don't include headers already included by system.h:
Don't include version-etc.h.

21 years agoDon't include headers already included by system.h:
Jim Meyering [Wed, 23 Jul 2003 07:29:54 +0000 (07:29 +0000)]
Don't include headers already included by system.h:
Don't include closeout.h.

21 years ago*** empty log message ***
Jim Meyering [Wed, 23 Jul 2003 07:15:43 +0000 (07:15 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Wed, 23 Jul 2003 07:15:40 +0000 (07:15 +0000)]
*** empty log message ***

21 years agoDon't include headers already included by system.h:
Jim Meyering [Wed, 23 Jul 2003 07:15:20 +0000 (07:15 +0000)]
Don't include headers already included by system.h:
Don't include stdlib.h.

21 years ago*** empty log message ***
Jim Meyering [Wed, 23 Jul 2003 07:12:04 +0000 (07:12 +0000)]
*** empty log message ***

21 years agoDon't include headers already included by system.h:
Jim Meyering [Wed, 23 Jul 2003 07:11:56 +0000 (07:11 +0000)]
Don't include headers already included by system.h:
Don't include errno.h.

21 years ago*** empty log message ***
Jim Meyering [Wed, 23 Jul 2003 07:11:18 +0000 (07:11 +0000)]
*** empty log message ***

21 years agoDon't include headers already included by system.h:
Jim Meyering [Wed, 23 Jul 2003 07:11:14 +0000 (07:11 +0000)]
Don't include headers already included by system.h:
Don't include limits.h or error.h.

21 years ago*** empty log message ***
Jim Meyering [Wed, 23 Jul 2003 07:09:32 +0000 (07:09 +0000)]
*** empty log message ***

21 years agoDon't include unistd.h or time.h; system.h already does it.
Jim Meyering [Wed, 23 Jul 2003 07:09:28 +0000 (07:09 +0000)]
Don't include unistd.h or time.h; system.h already does it.

21 years agoDon't include stdlib.h, unistd.h, or limits.h; system.h already does it.
Jim Meyering [Wed, 23 Jul 2003 07:08:03 +0000 (07:08 +0000)]
Don't include stdlib.h, unistd.h, or limits.h; system.h already does it.

21 years agoDon't include time.h; system.h already does it.
Jim Meyering [Wed, 23 Jul 2003 07:07:07 +0000 (07:07 +0000)]
Don't include time.h; system.h already does it.

21 years agoDon't include errno.h; system.h already does it.
Jim Meyering [Wed, 23 Jul 2003 07:06:13 +0000 (07:06 +0000)]
Don't include errno.h; system.h already does it.

21 years agoDon't include sys/time.h; system.h already does it.
Jim Meyering [Wed, 23 Jul 2003 07:05:41 +0000 (07:05 +0000)]
Don't include sys/time.h; system.h already does it.

21 years ago*** empty log message ***
Jim Meyering [Wed, 23 Jul 2003 07:03:49 +0000 (07:03 +0000)]
*** empty log message ***

21 years ago(TESTS_ENVIRONMENT): Define PACKAGE_VERSION.
Jim Meyering [Wed, 23 Jul 2003 07:03:42 +0000 (07:03 +0000)]
(TESTS_ENVIRONMENT): Define PACKAGE_VERSION.

21 years agoAdd a check for whether $NON_ROOT_USERNAME
Jim Meyering [Wed, 23 Jul 2003 07:03:31 +0000 (07:03 +0000)]
Add a check for whether $NON_ROOT_USERNAME
can access the required version of rm.

21 years ago.
Jim Meyering [Wed, 23 Jul 2003 07:01:36 +0000 (07:01 +0000)]
.

21 years ago*** empty log message ***
Jim Meyering [Wed, 23 Jul 2003 07:01:24 +0000 (07:01 +0000)]
*** empty log message ***

21 years ago(out-delim3a): New test.
Jim Meyering [Wed, 23 Jul 2003 07:01:19 +0000 (07:01 +0000)]
(out-delim3a): New test.

21 years ago*** empty log message ***
Jim Meyering [Wed, 23 Jul 2003 07:00:35 +0000 (07:00 +0000)]
*** empty log message ***

21 years agoUpdate to version 1.33.
Jim Meyering [Wed, 23 Jul 2003 07:00:29 +0000 (07:00 +0000)]
Update to version 1.33.

21 years ago.
Jim Meyering [Wed, 23 Jul 2003 06:59:54 +0000 (06:59 +0000)]
.

21 years ago.
Jim Meyering [Wed, 23 Jul 2003 06:59:26 +0000 (06:59 +0000)]
.

21 years ago*** empty log message ***
Jim Meyering [Wed, 23 Jul 2003 06:58:25 +0000 (06:58 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Wed, 23 Jul 2003 06:58:01 +0000 (06:58 +0000)]
*** empty log message ***

21 years ago(parse_tabstops): Detect overflow in tabstop sizes.
Jim Meyering [Wed, 23 Jul 2003 06:57:57 +0000 (06:57 +0000)]
(parse_tabstops): Detect overflow in tabstop sizes.

21 years ago*** empty log message ***
Jim Meyering [Wed, 23 Jul 2003 06:39:47 +0000 (06:39 +0000)]
*** empty log message ***

21 years agoInclude xstrndup.h.
Jim Meyering [Wed, 23 Jul 2003 06:39:44 +0000 (06:39 +0000)]
Include xstrndup.h.
(xstrndup): Remove function, now that it's been factored out into
it's own file.

21 years agoTweak comment: Solaris2.5.1 -> Solaris 2.5.1
Jim Meyering [Wed, 23 Jul 2003 06:38:18 +0000 (06:38 +0000)]
Tweak comment: Solaris2.5.1 -> Solaris 2.5.1

21 years agoTweak comment: Solaris2.7 -> Solaris 2.7
Jim Meyering [Wed, 23 Jul 2003 06:37:45 +0000 (06:37 +0000)]
Tweak comment: Solaris2.7 -> Solaris 2.7

21 years ago Normalize naming of Sun operating systems in comments, e.g., SunOS4 -> SunOS 4,
Jim Meyering [Wed, 23 Jul 2003 06:27:07 +0000 (06:27 +0000)]
 Normalize naming of Sun operating systems in comments, e.g., SunOS4 -> SunOS 4,
Solaris5.9 -> Solaris 9.  From Paul Eggert.

21 years ago*** empty log message ***
Jim Meyering [Wed, 23 Jul 2003 06:26:25 +0000 (06:26 +0000)]
*** empty log message ***

21 years agoNormalize naming of Sun operating systems, e.g., SunOS4 -> SunOS 4,
Jim Meyering [Wed, 23 Jul 2003 06:24:12 +0000 (06:24 +0000)]
Normalize naming of Sun operating systems, e.g., SunOS4 -> SunOS 4,
Solaris5.9 -> Solaris 9.  From Paul Eggert.

21 years ago*** empty log message ***
Jim Meyering [Wed, 23 Jul 2003 06:23:47 +0000 (06:23 +0000)]
*** empty log message ***

21 years ago.
Jim Meyering [Wed, 23 Jul 2003 06:18:23 +0000 (06:18 +0000)]
.

21 years ago*** empty log message ***
Jim Meyering [Wed, 23 Jul 2003 06:17:55 +0000 (06:17 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Wed, 23 Jul 2003 06:16:14 +0000 (06:16 +0000)]
*** empty log message ***

21 years agoinclude "xstrndup.h"
Jim Meyering [Wed, 23 Jul 2003 06:16:05 +0000 (06:16 +0000)]
include "xstrndup.h"

21 years agoFactored out of dircolors.c from coreutils.
Jim Meyering [Wed, 23 Jul 2003 06:14:20 +0000 (06:14 +0000)]
Factored out of dircolors.c from coreutils.

21 years ago(libfetish_a_SOURCES): Add xstrndup.c and xstrndup.h.
Jim Meyering [Wed, 23 Jul 2003 06:00:50 +0000 (06:00 +0000)]
(libfetish_a_SOURCES): Add xstrndup.c and xstrndup.h.

21 years agoUse `SunOS 4', not SunOS4
Jim Meyering [Wed, 23 Jul 2003 06:00:07 +0000 (06:00 +0000)]
Use `SunOS 4', not SunOS4
Solaris 2.6, not Solaris 5.6, etc.
From Paul Eggert.

21 years ago*** empty log message ***
Jim Meyering [Wed, 23 Jul 2003 05:48:02 +0000 (05:48 +0000)]
*** empty log message ***

21 years ago(wc): Fix typo in computation of file from file_x,
Jim Meyering [Wed, 23 Jul 2003 05:47:57 +0000 (05:47 +0000)]
(wc): Fix typo in computation of file from file_x,
which caused the former to be used uninitialized if file_x was
nonzero.

21 years ago*** empty log message ***
Jim Meyering [Wed, 23 Jul 2003 05:38:41 +0000 (05:38 +0000)]
*** empty log message ***

21 years ago(XCALLOC, XREALLOC, CCLONE): Fix under- and over-parenthesization in macros.
Jim Meyering [Wed, 23 Jul 2003 05:38:36 +0000 (05:38 +0000)]
(XCALLOC, XREALLOC, CCLONE): Fix under- and over-parenthesization in macros.

21 years agotweak comment
Jim Meyering [Tue, 22 Jul 2003 21:56:23 +0000 (21:56 +0000)]
tweak comment

21 years ago*** empty log message ***
Jim Meyering [Tue, 22 Jul 2003 21:53:44 +0000 (21:53 +0000)]
*** empty log message ***

21 years ago(set_fields): Use xcalloc in place of xmalloc+memset.
Jim Meyering [Tue, 22 Jul 2003 21:53:39 +0000 (21:53 +0000)]
(set_fields): Use xcalloc in place of xmalloc+memset.

21 years ago*** empty log message ***
Jim Meyering [Tue, 22 Jul 2003 16:32:38 +0000 (16:32 +0000)]
*** empty log message ***

21 years ago(.x.1): Substitute 's,$t/$*,$*,' on output of
Jim Meyering [Tue, 22 Jul 2003 16:32:33 +0000 (16:32 +0000)]
(.x.1): Substitute 's,$t/$*,$*,' on output of
help2man, to avoid having `rm.td/rm' appear in rm.1.  Reported by
Thomas Luzat.  See http://bugs.debian.org/202413 for details.

21 years ago*** empty log message ***
Jim Meyering [Tue, 22 Jul 2003 16:31:16 +0000 (16:31 +0000)]
*** empty log message ***

21 years agodon't include stdboo.h. it's already included via system.h
Jim Meyering [Tue, 22 Jul 2003 14:18:58 +0000 (14:18 +0000)]
don't include stdboo.h.  it's already included via system.h

21 years ago.
Jim Meyering [Tue, 22 Jul 2003 14:16:50 +0000 (14:16 +0000)]
.

21 years ago*** empty log message ***
Jim Meyering [Tue, 22 Jul 2003 14:15:40 +0000 (14:15 +0000)]
*** empty log message ***

21 years ago(main) [lint]: Initialize spec_list_string to avoid warning.
Jim Meyering [Tue, 22 Jul 2003 14:15:31 +0000 (14:15 +0000)]
(main) [lint]: Initialize spec_list_string to avoid warning.

21 years agoDon't include <unistd.h>. system.h already does that.
Jim Meyering [Tue, 22 Jul 2003 14:13:37 +0000 (14:13 +0000)]
Don't include <unistd.h>.  system.h already does that.

21 years ago*** empty log message ***
Jim Meyering [Tue, 22 Jul 2003 13:00:48 +0000 (13:00 +0000)]
*** empty log message ***

21 years ago(set_fields): Mark all selected indices before trying to
Jim Meyering [Tue, 22 Jul 2003 13:00:45 +0000 (13:00 +0000)]
(set_fields): Mark all selected indices before trying to
determine range endpoints.

21 years agoNew test for the above fix.
Jim Meyering [Tue, 22 Jul 2003 12:44:22 +0000 (12:44 +0000)]
New test for the above fix.

21 years ago*** empty log message ***
Jim Meyering [Tue, 22 Jul 2003 11:56:37 +0000 (11:56 +0000)]
*** empty log message ***

21 years agoBegin to address this comment: What if someone wants to
Jim Meyering [Tue, 22 Jul 2003 11:56:24 +0000 (11:56 +0000)]
Begin to address this comment: What if someone wants to
extract the 1,000,000-th field of some huge input file?
The first step is to rearrange things so that the values
in the printable_field array are all 0/1 rather than 0/1/2.

(RANGE_START_SENTINEL): Remove.
Store range-start indices in a hash table, rather than
overloading the `printable_field' array.
(range_start_ht): New global.
(hash_int, hash_compare_ints, is_range_start_index): New functions.
(print_kth): Use is_range_start_index; don't test printable_field.
(set_fields): Detect overflow.
(set_fields): Insert each range-start index into range_start_ht.
(main): Call set_fields only once, and only after
output_delimiter_specified and (if required) range_start_ht have
been defined.

21 years ago*** empty log message ***
Jim Meyering [Sun, 20 Jul 2003 21:13:08 +0000 (21:13 +0000)]
*** empty log message ***

21 years ago(get_input_fstatus): Fix typo: `stat' was being
Jim Meyering [Sun, 20 Jul 2003 21:13:04 +0000 (21:13 +0000)]
(get_input_fstatus): Fix typo: `stat' was being
invoked with a null pointer when there were no file arguments.

21 years ago*** empty log message ***
Jim Meyering [Sun, 20 Jul 2003 16:04:04 +0000 (16:04 +0000)]
*** empty log message ***

21 years ago(sc_changelog): Add another nit-picky check.
Jim Meyering [Sun, 20 Jul 2003 16:03:58 +0000 (16:03 +0000)]
(sc_changelog): Add another nit-picky check.

21 years ago.
Jim Meyering [Sun, 20 Jul 2003 16:02:28 +0000 (16:02 +0000)]
.

21 years ago.
Jim Meyering [Sun, 20 Jul 2003 15:57:27 +0000 (15:57 +0000)]
.

21 years ago*** empty log message ***
Jim Meyering [Sun, 20 Jul 2003 15:51:06 +0000 (15:51 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Sun, 20 Jul 2003 15:45:58 +0000 (15:45 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Sun, 20 Jul 2003 15:45:32 +0000 (15:45 +0000)]
*** empty log message ***

21 years ago(write_counts): Add a comment.
Jim Meyering [Sun, 20 Jul 2003 15:45:29 +0000 (15:45 +0000)]
(write_counts): Add a comment.
(wc): Rename `file' parameter.
Set new local, `file', to be the file name, or (when it's NULL)
_("standard output") so that all uses of `file' use the proper value.
Use STREQ, not strcmp.

21 years ago*** empty log message ***
Jim Meyering [Sun, 20 Jul 2003 15:25:02 +0000 (15:25 +0000)]
*** empty log message ***

21 years agoAdjust to the new output widths.
Jim Meyering [Sun, 20 Jul 2003 15:24:52 +0000 (15:24 +0000)]
Adjust to the new output widths.

21 years agowc count field widths now are heuristically adjusted depending
Jim Meyering [Sun, 20 Jul 2003 15:24:21 +0000 (15:24 +0000)]
wc count field widths now are heuristically adjusted depending
on the input size, if known.  If only one count is printed, it
is guaranteed to be printed without leading spaces.

Previously, wc did not align the count fields if
POSIXLY_CORRECT was set, but POSIX did not actually require
this undesirable behavior, so it has been removed.

* doc/coreutils.texi (wc invocation): Likewise.

21 years ago*** empty log message ***
Jim Meyering [Sun, 20 Jul 2003 15:22:42 +0000 (15:22 +0000)]
*** empty log message ***

21 years ago(number_width): New var.
Jim Meyering [Sun, 20 Jul 2003 15:22:25 +0000 (15:22 +0000)]
(number_width): New var.
(posixly_correct): Remove.
(struct fstatus): New struct.
(write_counts): Output fields of width number_width.
Do not worry about POSIXLY_CORRECT.
Use null file, not empty-string file, to denote stdin,
since "" is a valid file name on some hosts.
(wc, wc_file): New arg fstatus.  Use it to avoid invoking fstat
if possible.
(wc):  Avoid problems if end_pos - current_pos overflows.
Do not print odd message if stdin has a read error.
(get_input_fstatus, compute_number_width): New functions.
(main): Use them to implement the new behavior.
Ignore POSIXLY_CORRECT.

21 years agoconvert each 8-space prefix to a TAB
Jim Meyering [Sun, 20 Jul 2003 11:19:12 +0000 (11:19 +0000)]
convert each 8-space prefix to a TAB

21 years agoconvert each 8-space prefix to a TAB
Jim Meyering [Sun, 20 Jul 2003 11:18:12 +0000 (11:18 +0000)]
convert each 8-space prefix to a TAB

21 years agoconvert each 8-space prefix to a TAB
Jim Meyering [Sun, 20 Jul 2003 11:17:51 +0000 (11:17 +0000)]
convert each 8-space prefix to a TAB

21 years agoconvert each 8-space prefix to a TAB
Jim Meyering [Sun, 20 Jul 2003 11:17:26 +0000 (11:17 +0000)]
convert each 8-space prefix to a TAB

21 years ago*** empty log message ***
Jim Meyering [Sun, 20 Jul 2003 06:30:06 +0000 (06:30 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Sun, 20 Jul 2003 05:38:28 +0000 (05:38 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Sun, 20 Jul 2003 05:36:10 +0000 (05:36 +0000)]
*** empty log message ***

21 years agofrom gnulib
Jim Meyering [Sun, 20 Jul 2003 05:35:54 +0000 (05:35 +0000)]
from gnulib

21 years ago(jm_MACROS): Invoke gl_MEMCOLL.
Jim Meyering [Sun, 20 Jul 2003 05:35:38 +0000 (05:35 +0000)]
(jm_MACROS): Invoke gl_MEMCOLL.

21 years ago*** empty log message ***
Jim Meyering [Sat, 19 Jul 2003 17:30:49 +0000 (17:30 +0000)]
*** empty log message ***

21 years agoRestore definition of $verbose.
Jim Meyering [Sat, 19 Jul 2003 12:00:38 +0000 (12:00 +0000)]
Restore definition of $verbose.

21 years agoDon't create temporary directory -- we don't use it.
Jim Meyering [Sat, 19 Jul 2003 11:59:12 +0000 (11:59 +0000)]
Don't create temporary directory -- we don't use it.

21 years ago*** empty log message ***
Jim Meyering [Sat, 19 Jul 2003 11:59:02 +0000 (11:59 +0000)]
*** empty log message ***

21 years agoremove now-redundant VERSION check
Jim Meyering [Sat, 19 Jul 2003 11:54:39 +0000 (11:54 +0000)]
remove now-redundant VERSION check

21 years ago*** empty log message ***
Jim Meyering [Sat, 19 Jul 2003 11:47:22 +0000 (11:47 +0000)]
*** empty log message ***

21 years agoDon't open-code test for UID != 0.
Jim Meyering [Sat, 19 Jul 2003 11:47:17 +0000 (11:47 +0000)]
Don't open-code test for UID != 0.
Use priv-check's require-non-root instead.
Update to use newer framework.