Jim Meyering [Sat, 26 Jul 2003 06:20:54 +0000 (06:20 +0000)]
(sort_files): Make `func' volatile, so it can't be
clobbered by a `longjmp' into this function.
Jim Meyering [Fri, 25 Jul 2003 08:40:58 +0000 (08:40 +0000)]
*** empty log message ***
Jim Meyering [Fri, 25 Jul 2003 08:40:49 +0000 (08:40 +0000)]
(validate_path): Use %ld format (not %d) for size_t value.
Jim Meyering [Fri, 25 Jul 2003 07:45:51 +0000 (07:45 +0000)]
*** empty log message ***
Jim Meyering [Fri, 25 Jul 2003 07:45:20 +0000 (07:45 +0000)]
(usage): Document the fact that SIGUSR1 makes dd
output its current record counts. Reported by Jurriaan.
Jim Meyering [Fri, 25 Jul 2003 07:23:40 +0000 (07:23 +0000)]
Disable the --line-bytes=$_4gb test,
because it'd evoke spurious failure on 64-bit systems.
Jim Meyering [Thu, 24 Jul 2003 18:40:35 +0000 (18:40 +0000)]
*** empty log message ***
Jim Meyering [Thu, 24 Jul 2003 09:29:15 +0000 (09:29 +0000)]
*** empty log message ***
Jim Meyering [Thu, 24 Jul 2003 09:29:04 +0000 (09:29 +0000)]
(su invocation): Use `@subsection', not invalid `@heading'.
Jim Meyering [Thu, 24 Jul 2003 09:20:18 +0000 (09:20 +0000)]
*** empty log message ***
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.
Jim Meyering [Thu, 24 Jul 2003 07:12:58 +0000 (07:12 +0000)]
*** empty log message ***
Jim Meyering [Thu, 24 Jul 2003 06:57:42 +0000 (06:57 +0000)]
update from master
Jim Meyering [Thu, 24 Jul 2003 06:56:21 +0000 (06:56 +0000)]
.
Jim Meyering [Wed, 23 Jul 2003 08:13:37 +0000 (08:13 +0000)]
*** empty log message ***
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.
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.
Jim Meyering [Wed, 23 Jul 2003 07:15:43 +0000 (07:15 +0000)]
*** empty log message ***
Jim Meyering [Wed, 23 Jul 2003 07:15:40 +0000 (07:15 +0000)]
*** empty log message ***
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.
Jim Meyering [Wed, 23 Jul 2003 07:12:04 +0000 (07:12 +0000)]
*** empty log message ***
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.
Jim Meyering [Wed, 23 Jul 2003 07:11:18 +0000 (07:11 +0000)]
*** empty log message ***
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.
Jim Meyering [Wed, 23 Jul 2003 07:09:32 +0000 (07:09 +0000)]
*** empty log message ***
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.
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.
Jim Meyering [Wed, 23 Jul 2003 07:07:07 +0000 (07:07 +0000)]
Don't include time.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.
Jim Meyering [Wed, 23 Jul 2003 07:05:41 +0000 (07:05 +0000)]
Don't include sys/time.h; system.h already does it.
Jim Meyering [Wed, 23 Jul 2003 07:03:49 +0000 (07:03 +0000)]
*** empty log message ***
Jim Meyering [Wed, 23 Jul 2003 07:03:42 +0000 (07:03 +0000)]
(TESTS_ENVIRONMENT): Define PACKAGE_VERSION.
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.
Jim Meyering [Wed, 23 Jul 2003 07:01:36 +0000 (07:01 +0000)]
.
Jim Meyering [Wed, 23 Jul 2003 07:01:24 +0000 (07:01 +0000)]
*** empty log message ***
Jim Meyering [Wed, 23 Jul 2003 07:01:19 +0000 (07:01 +0000)]
(out-delim3a): New test.
Jim Meyering [Wed, 23 Jul 2003 07:00:35 +0000 (07:00 +0000)]
*** empty log message ***
Jim Meyering [Wed, 23 Jul 2003 07:00:29 +0000 (07:00 +0000)]
Update to version 1.33.
Jim Meyering [Wed, 23 Jul 2003 06:59:54 +0000 (06:59 +0000)]
.
Jim Meyering [Wed, 23 Jul 2003 06:59:26 +0000 (06:59 +0000)]
.
Jim Meyering [Wed, 23 Jul 2003 06:58:25 +0000 (06:58 +0000)]
*** empty log message ***
Jim Meyering [Wed, 23 Jul 2003 06:58:01 +0000 (06:58 +0000)]
*** empty log message ***
Jim Meyering [Wed, 23 Jul 2003 06:57:57 +0000 (06:57 +0000)]
(parse_tabstops): Detect overflow in tabstop sizes.
Jim Meyering [Wed, 23 Jul 2003 06:39:47 +0000 (06:39 +0000)]
*** empty log message ***
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.
Jim Meyering [Wed, 23 Jul 2003 06:38:18 +0000 (06:38 +0000)]
Tweak comment: Solaris2.5.1 -> Solaris 2.5.1
Jim Meyering [Wed, 23 Jul 2003 06:37:45 +0000 (06:37 +0000)]
Tweak comment: Solaris2.7 -> Solaris 2.7
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.
Jim Meyering [Wed, 23 Jul 2003 06:26:25 +0000 (06:26 +0000)]
*** empty log message ***
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.
Jim Meyering [Wed, 23 Jul 2003 06:23:47 +0000 (06:23 +0000)]
*** empty log message ***
Jim Meyering [Wed, 23 Jul 2003 06:18:23 +0000 (06:18 +0000)]
.
Jim Meyering [Wed, 23 Jul 2003 06:17:55 +0000 (06:17 +0000)]
*** empty log message ***
Jim Meyering [Wed, 23 Jul 2003 06:16:14 +0000 (06:16 +0000)]
*** empty log message ***
Jim Meyering [Wed, 23 Jul 2003 06:16:05 +0000 (06:16 +0000)]
include "xstrndup.h"
Jim Meyering [Wed, 23 Jul 2003 06:14:20 +0000 (06:14 +0000)]
Factored out of dircolors.c from coreutils.
Jim Meyering [Wed, 23 Jul 2003 06:00:50 +0000 (06:00 +0000)]
(libfetish_a_SOURCES): Add xstrndup.c and xstrndup.h.
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.
Jim Meyering [Wed, 23 Jul 2003 05:48:02 +0000 (05:48 +0000)]
*** empty log message ***
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.
Jim Meyering [Wed, 23 Jul 2003 05:38:41 +0000 (05:38 +0000)]
*** empty log message ***
Jim Meyering [Wed, 23 Jul 2003 05:38:36 +0000 (05:38 +0000)]
(XCALLOC, XREALLOC, CCLONE): Fix under- and over-parenthesization in macros.
Jim Meyering [Tue, 22 Jul 2003 21:56:23 +0000 (21:56 +0000)]
tweak comment
Jim Meyering [Tue, 22 Jul 2003 21:53:44 +0000 (21:53 +0000)]
*** empty log message ***
Jim Meyering [Tue, 22 Jul 2003 21:53:39 +0000 (21:53 +0000)]
(set_fields): Use xcalloc in place of xmalloc+memset.
Jim Meyering [Tue, 22 Jul 2003 16:32:38 +0000 (16:32 +0000)]
*** empty log message ***
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.
Jim Meyering [Tue, 22 Jul 2003 16:31:16 +0000 (16:31 +0000)]
*** empty log message ***
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
Jim Meyering [Tue, 22 Jul 2003 14:16:50 +0000 (14:16 +0000)]
.
Jim Meyering [Tue, 22 Jul 2003 14:15:40 +0000 (14:15 +0000)]
*** empty log message ***
Jim Meyering [Tue, 22 Jul 2003 14:15:31 +0000 (14:15 +0000)]
(main) [lint]: Initialize spec_list_string to avoid warning.
Jim Meyering [Tue, 22 Jul 2003 14:13:37 +0000 (14:13 +0000)]
Don't include <unistd.h>. system.h already does that.
Jim Meyering [Tue, 22 Jul 2003 13:00:48 +0000 (13:00 +0000)]
*** empty log message ***
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.
Jim Meyering [Tue, 22 Jul 2003 12:44:22 +0000 (12:44 +0000)]
New test for the above fix.
Jim Meyering [Tue, 22 Jul 2003 11:56:37 +0000 (11:56 +0000)]
*** empty log message ***
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.
Jim Meyering [Sun, 20 Jul 2003 21:13:08 +0000 (21:13 +0000)]
*** empty log message ***
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.
Jim Meyering [Sun, 20 Jul 2003 16:04:04 +0000 (16:04 +0000)]
*** empty log message ***
Jim Meyering [Sun, 20 Jul 2003 16:03:58 +0000 (16:03 +0000)]
(sc_changelog): Add another nit-picky check.
Jim Meyering [Sun, 20 Jul 2003 16:02:28 +0000 (16:02 +0000)]
.
Jim Meyering [Sun, 20 Jul 2003 15:57:27 +0000 (15:57 +0000)]
.
Jim Meyering [Sun, 20 Jul 2003 15:51:06 +0000 (15:51 +0000)]
*** empty log message ***
Jim Meyering [Sun, 20 Jul 2003 15:45:58 +0000 (15:45 +0000)]
*** empty log message ***
Jim Meyering [Sun, 20 Jul 2003 15:45:32 +0000 (15:45 +0000)]
*** empty log message ***
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.
Jim Meyering [Sun, 20 Jul 2003 15:25:02 +0000 (15:25 +0000)]
*** empty log message ***
Jim Meyering [Sun, 20 Jul 2003 15:24:52 +0000 (15:24 +0000)]
Adjust to the new output widths.
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.
Jim Meyering [Sun, 20 Jul 2003 15:22:42 +0000 (15:22 +0000)]
*** empty log message ***
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.
Jim Meyering [Sun, 20 Jul 2003 11:19:12 +0000 (11:19 +0000)]
convert 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
Jim Meyering [Sun, 20 Jul 2003 11:17:51 +0000 (11:17 +0000)]
convert 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
Jim Meyering [Sun, 20 Jul 2003 06:30:06 +0000 (06:30 +0000)]
*** empty log message ***
Jim Meyering [Sun, 20 Jul 2003 05:38:28 +0000 (05:38 +0000)]
*** empty log message ***
Jim Meyering [Sun, 20 Jul 2003 05:36:10 +0000 (05:36 +0000)]
*** empty log message ***