platform/upstream/coreutils.git
20 years ago*** empty log message ***
Jim Meyering [Tue, 5 Aug 2003 17:11:01 +0000 (17:11 +0000)]
*** empty log message ***

20 years agoSync from gnulib.
Jim Meyering [Tue, 5 Aug 2003 17:10:58 +0000 (17:10 +0000)]
Sync from gnulib.

20 years ago.
Jim Meyering [Tue, 5 Aug 2003 07:23:41 +0000 (07:23 +0000)]
.

20 years ago*** empty log message ***
Jim Meyering [Mon, 4 Aug 2003 08:56:07 +0000 (08:56 +0000)]
*** empty log message ***

20 years ago(main): Use unsigned int instead of int for `nsigs'
Jim Meyering [Mon, 4 Aug 2003 08:55:44 +0000 (08:55 +0000)]
(main): Use unsigned int instead of int for `nsigs'
and for the indices to iterate through nsigs.

20 years ago*** empty log message ***
Jim Meyering [Sun, 3 Aug 2003 10:28:23 +0000 (10:28 +0000)]
*** empty log message ***

20 years ago*** empty log message ***
Jim Meyering [Sun, 3 Aug 2003 10:28:14 +0000 (10:28 +0000)]
*** empty log message ***

20 years agoMinor code cleanups, mostly to use more accurate
Jim Meyering [Sun, 3 Aug 2003 10:28:10 +0000 (10:28 +0000)]
Minor code cleanups, mostly to use more accurate
types and to remove unnecessary casts.
(min, max): Remove.  All uses changed to MIN and MAX.
(hard_lc_collate, hard_LC_TIME, struct buffer.eof, struct
keyfield.skipsblanks, struct keyfield.skipeblanks, struct
keyfield.numeric, struct keyfield.general_numeric, struct
keyfield.month, struct keyfield.reverse, reverse, unique,
have_read_stdin): Now bool, not int.  All uses changed.
(eolchar): Now char, not int.
(struct keyfield.ignore): Now bool const *, not int *.
(struct keyfield.translate): Now char const *, not char *.
(struct month.name): Likewise.
(blanks, nonprinting, nondictionary): Now bool[], not int[].
(cleanup, inittables, keycompare, check, mergefps, first_same_file,
check, sort, main): Use const * pointers when possible.
(month_cmp): Rewrite to avoid casts.
(inittables): Initialize tables unconditionally, to avoid branches.
(fillbuf): Return bool, not int.  All uses changed.
(fillbuf, keycompare, new_key, main):
Use SIZE_MAX rather than (size_t) -1.
(trailing_blanks): Renamed from trim_trailing_blanks.
Return the number of blanks to trim.  All uses changed.
(getmonth): Use trailing_blanks rather than open code.
(keycompare): Do not cast char * to unsigned char *; not needed.
CMP_WITH_IGNORE converts args to UCHAR, so no need to convert it
ourselves.
(compare, main): Use | rather than || to avoid jumps.
Replace "diff = NONZERO (alen)" with "diff = 1", since alen must
be nonzero there.
(check, first_same_file, sort, main):
Use bool instead of int local vars when possible.
(check): Merge the old 'checkfp' and 'check' into a single function,
that returns a boolean (true if the file was ordered).
All uses changed.
(main): Use int instead of unsigned for iterating through nsigs.
Rename local var "posix_pedantic" to "posixly_correct".

20 years ago*** empty log message ***
Jim Meyering [Sun, 3 Aug 2003 10:20:35 +0000 (10:20 +0000)]
*** empty log message ***

20 years ago(_Bool): Use a #define, not a typedef.
Jim Meyering [Sun, 3 Aug 2003 10:20:32 +0000 (10:20 +0000)]
(_Bool): Use a #define, not a typedef.

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

20 years ago*** empty log message ***
Jim Meyering [Sat, 2 Aug 2003 20:39:13 +0000 (20:39 +0000)]
*** empty log message ***

20 years ago[!NICE_PRIORITY]: Include <time.h> before <sys/resource.h>
Jim Meyering [Sat, 2 Aug 2003 20:39:06 +0000 (20:39 +0000)]
[!NICE_PRIORITY]: Include <time.h> before <sys/resource.h>
to avoid compilation error on Ultrix. Reported by Christian Krackowizer.

20 years ago*** empty log message ***
Jim Meyering [Sat, 2 Aug 2003 20:07:57 +0000 (20:07 +0000)]
*** empty log message ***

20 years ago.
Jim Meyering [Sat, 2 Aug 2003 20:07:12 +0000 (20:07 +0000)]
.

20 years ago*** empty log message ***
Jim Meyering [Sat, 2 Aug 2003 19:53:59 +0000 (19:53 +0000)]
*** empty log message ***

20 years ago(cut_fields): Don't read again after encountering EOF.
Jim Meyering [Sat, 2 Aug 2003 19:53:52 +0000 (19:53 +0000)]
(cut_fields): Don't read again after encountering EOF.
E.g., `cut -f2' would do so.

20 years agoAdd a test for the above fix.
Jim Meyering [Sat, 2 Aug 2003 19:41:28 +0000 (19:41 +0000)]
Add a test for the above fix.
`cut -f2' would read after EOF.

20 years ago*** empty log message ***
Jim Meyering [Sat, 2 Aug 2003 19:40:48 +0000 (19:40 +0000)]
*** empty log message ***

20 years ago.
Jim Meyering [Sat, 2 Aug 2003 06:27:30 +0000 (06:27 +0000)]
.

20 years agoDocument in TODO Paul's desire to make sort faster (and how he
Jim Meyering [Sat, 2 Aug 2003 06:27:13 +0000 (06:27 +0000)]
Document in TODO Paul's desire to make sort faster (and how he
was foiled this time around).

from Paul Eggert.

20 years ago(sortlines): Add description and references.
Jim Meyering [Sat, 2 Aug 2003 06:25:50 +0000 (06:25 +0000)]
(sortlines): Add description and references.
From Paul Eggert.

20 years ago*** empty log message ***
Jim Meyering [Fri, 1 Aug 2003 22:40:58 +0000 (22:40 +0000)]
*** empty log message ***

20 years ago*** empty log message ***
Jim Meyering [Fri, 1 Aug 2003 22:40:16 +0000 (22:40 +0000)]
*** empty log message ***

20 years ago*** empty log message ***
Jim Meyering [Fri, 1 Aug 2003 22:38:50 +0000 (22:38 +0000)]
*** empty log message ***

20 years ago(General date syntax): Add --rfc-2822 option to GNU date.
Jim Meyering [Fri, 1 Aug 2003 22:38:36 +0000 (22:38 +0000)]
(General date syntax): Add --rfc-2822 option to GNU date.

20 years ago(Options for date): Fix a typo in format: it's now %d not %_d. Add URLs.
Jim Meyering [Fri, 1 Aug 2003 22:37:20 +0000 (22:37 +0000)]
(Options for date): Fix a typo in format: it's now %d not %_d.  Add URLs.
(Time directives, Options for date, Examples of date): Add --rfc-2822
option to GNU date.

20 years ago(long_options, usage, main): Add --rfc-2822 option to GNU date.
Jim Meyering [Fri, 1 Aug 2003 22:36:34 +0000 (22:36 +0000)]
(long_options, usage, main): Add --rfc-2822 option to GNU date.

20 years agoAdd --rfc-2822 option to GNU date.
Jim Meyering [Fri, 1 Aug 2003 22:35:57 +0000 (22:35 +0000)]
Add --rfc-2822 option to GNU date.

20 years agoEnsure that $? is 0 for the final `exit 0'.
Jim Meyering [Fri, 1 Aug 2003 22:33:04 +0000 (22:33 +0000)]
Ensure that $? is 0 for the final `exit 0'.
Otherwise, with at least the /bin/sh from HPUX 10.20,
the trap code would end up converting that to exit 1 and thus an
unexpected test failure.  Reported by Christian Krackowizer.

20 years ago*** empty log message ***
Jim Meyering [Fri, 1 Aug 2003 22:32:47 +0000 (22:32 +0000)]
*** empty log message ***

20 years ago(TESTS_ENVIRONMENT): Set PATH so that
Jim Meyering [Fri, 1 Aug 2003 22:32:41 +0000 (22:32 +0000)]
(TESTS_ENVIRONMENT): Set PATH so that
the tests in help-version will use the just-built binaries.

20 years ago*** empty log message ***
Jim Meyering [Fri, 1 Aug 2003 06:44:33 +0000 (06:44 +0000)]
*** empty log message ***

20 years agoDo not include bumpalloc.h.
Jim Meyering [Fri, 1 Aug 2003 06:44:28 +0000 (06:44 +0000)]
Do not include bumpalloc.h.
(WORD_TABLE): New member alloc.
(ALLOC_NEW_WORD): Remove.
(occurs_alloc): New var.
(digest_word_file, find_occurs_in_text): Check for arithmetic
overflow when computing table size.  Use xrealloc rather than
bumpalloc primitives.

20 years ago*** empty log message ***
Jim Meyering [Fri, 1 Aug 2003 06:39:01 +0000 (06:39 +0000)]
*** empty log message ***

20 years ago(libfetish_a_SOURCES): Remove bumpalloc.h.
Jim Meyering [Fri, 1 Aug 2003 06:38:38 +0000 (06:38 +0000)]
(libfetish_a_SOURCES): Remove bumpalloc.h.

20 years ago.
Jim Meyering [Fri, 1 Aug 2003 06:38:15 +0000 (06:38 +0000)]
.

20 years ago*** empty log message ***
Jim Meyering [Thu, 31 Jul 2003 20:33:48 +0000 (20:33 +0000)]
*** empty log message ***

20 years ago(Relative items in date strings): Warn about fuzz in relative units.
Jim Meyering [Thu, 31 Jul 2003 20:33:45 +0000 (20:33 +0000)]
(Relative items in date strings): Warn about fuzz in relative units.

20 years ago.
Jim Meyering [Thu, 31 Jul 2003 11:14:56 +0000 (11:14 +0000)]
.

20 years ago*** empty log message ***
Jim Meyering [Thu, 31 Jul 2003 11:10:52 +0000 (11:10 +0000)]
*** empty log message ***

20 years ago.
Jim Meyering [Wed, 30 Jul 2003 19:31:03 +0000 (19:31 +0000)]
.

20 years ago. COREUTILS-5_0_90 v5.0.90
Jim Meyering [Tue, 29 Jul 2003 21:20:01 +0000 (21:20 +0000)]
.

20 years agoWhen running tests as root, suggest using sudo with NON_ROOT_USERNAME=$USER.
Jim Meyering [Tue, 29 Jul 2003 20:55:00 +0000 (20:55 +0000)]
When running tests as root, suggest using sudo with NON_ROOT_USERNAME=$USER.

20 years ago*** empty log message ***
Jim Meyering [Tue, 29 Jul 2003 20:54:50 +0000 (20:54 +0000)]
*** empty log message ***

20 years ago.
Jim Meyering [Tue, 29 Jul 2003 19:38:34 +0000 (19:38 +0000)]
.

20 years ago*** empty log message ***
Jim Meyering [Tue, 29 Jul 2003 18:21:35 +0000 (18:21 +0000)]
*** empty log message ***

20 years ago(tail invocation): Restore two end-of-sentence
Jim Meyering [Tue, 29 Jul 2003 18:20:56 +0000 (18:20 +0000)]
(tail invocation): Restore two end-of-sentence
words that were mistakenly removed on 2002-09-13.

20 years ago.
Jim Meyering [Tue, 29 Jul 2003 06:44:28 +0000 (06:44 +0000)]
.

20 years ago*** empty log message ***
Jim Meyering [Tue, 29 Jul 2003 06:41:17 +0000 (06:41 +0000)]
*** empty log message ***

20 years ago(all_programs): Makefile is in ../src, not $(srcdir)/../src.
Jim Meyering [Tue, 29 Jul 2003 06:41:08 +0000 (06:41 +0000)]
(all_programs): Makefile is in ../src, not $(srcdir)/../src.

20 years ago.
Jim Meyering [Tue, 29 Jul 2003 06:22:25 +0000 (06:22 +0000)]
.

20 years ago*** empty log message ***
Jim Meyering [Mon, 28 Jul 2003 10:15:14 +0000 (10:15 +0000)]
*** empty log message ***

20 years ago(dd invocation): Explain that a SIGUSR1 signal
Jim Meyering [Mon, 28 Jul 2003 10:15:11 +0000 (10:15 +0000)]
(dd invocation): Explain that a SIGUSR1 signal
makes dd give a progress report to stderr.

20 years ago.
Jim Meyering [Mon, 28 Jul 2003 10:04:56 +0000 (10:04 +0000)]
.

20 years ago*** empty log message ***
Jim Meyering [Mon, 28 Jul 2003 08:40:32 +0000 (08:40 +0000)]
*** empty log message ***

20 years ago(GZIP_ENV): Try Debian/gzip's new --rsyncable option.
Jim Meyering [Mon, 28 Jul 2003 08:40:27 +0000 (08:40 +0000)]
(GZIP_ENV): Try Debian/gzip's new --rsyncable option.

20 years ago.
Jim Meyering [Mon, 28 Jul 2003 08:38:54 +0000 (08:38 +0000)]
.

20 years ago.
Jim Meyering [Mon, 28 Jul 2003 08:37:08 +0000 (08:37 +0000)]
.

20 years agorename to stdbool_.h
Jim Meyering [Mon, 28 Jul 2003 08:36:52 +0000 (08:36 +0000)]
rename to stdbool_.h

20 years ago*** empty log message ***
Jim Meyering [Mon, 28 Jul 2003 08:36:32 +0000 (08:36 +0000)]
*** empty log message ***

20 years ago*** empty log message ***
Jim Meyering [Mon, 28 Jul 2003 08:35:44 +0000 (08:35 +0000)]
*** empty log message ***

20 years agoRenamed from stdbool.hin.
Jim Meyering [Mon, 28 Jul 2003 08:35:37 +0000 (08:35 +0000)]
Renamed from stdbool.hin.

20 years agoRenamed from stdbool.hin.
Jim Meyering [Mon, 28 Jul 2003 08:35:23 +0000 (08:35 +0000)]
Renamed from stdbool.hin.

20 years ago*** empty log message ***
Jim Meyering [Mon, 28 Jul 2003 08:34:48 +0000 (08:34 +0000)]
*** empty log message ***

20 years agoReflect renaming: stdbool.hin -> stdbool_.h.
Jim Meyering [Mon, 28 Jul 2003 08:34:33 +0000 (08:34 +0000)]
Reflect renaming: stdbool.hin -> stdbool_.h.

20 years ago*** empty log message ***
Jim Meyering [Mon, 28 Jul 2003 08:32:27 +0000 (08:32 +0000)]
*** empty log message ***

20 years ago(sortlines_temp): Undo previous change.
Jim Meyering [Mon, 28 Jul 2003 08:31:11 +0000 (08:31 +0000)]
(sortlines_temp): Undo previous change.

20 years agobump copyright
Jim Meyering [Mon, 28 Jul 2003 08:30:49 +0000 (08:30 +0000)]
bump copyright

20 years ago(_Bool): Make it signed char, instead of
Jim Meyering [Mon, 28 Jul 2003 08:30:32 +0000 (08:30 +0000)]
(_Bool): Make it signed char, instead of
an enum type, so that it's guaranteed to promote to int.

20 years ago*** empty log message ***
Jim Meyering [Sun, 27 Jul 2003 22:05:47 +0000 (22:05 +0000)]
*** empty log message ***

20 years ago(sortlines_temp): Declare local `swap' to be `int', not
Jim Meyering [Sun, 27 Jul 2003 22:05:43 +0000 (22:05 +0000)]
(sortlines_temp): Declare local `swap' to be `int', not
`bool'.  Otherwise, at least one buggy compiler (alpha gcc-2.95.4)
would cause lines[-1 - swap] (with swap = false) to evaluate to
lines[4294967295].

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

20 years ago.
Jim Meyering [Sun, 27 Jul 2003 20:35:25 +0000 (20:35 +0000)]
.

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

20 years ago(my_uid): Use `!', not `^' in case pattern `[!0-9]',
Jim Meyering [Sun, 27 Jul 2003 20:04:48 +0000 (20:04 +0000)]
(my_uid): Use `!', not `^' in case pattern `[!0-9]',
since /bin/sh of at least NetBSD 1.6 and OpenBSD 3.2 don't accept `^'.

20 years ago.
Jim Meyering [Sun, 27 Jul 2003 19:48:11 +0000 (19:48 +0000)]
.

20 years ago(TESTS): Add dir-no-w.
Jim Meyering [Sun, 27 Jul 2003 19:47:58 +0000 (19:47 +0000)]
(TESTS): Add dir-no-w.

20 years ago*** empty log message ***
Jim Meyering [Sun, 27 Jul 2003 19:47:46 +0000 (19:47 +0000)]
*** empty log message ***

20 years ago(prompt) [! recursive]: Don't prompt about unwritable
Jim Meyering [Sun, 27 Jul 2003 19:47:25 +0000 (19:47 +0000)]
(prompt) [! recursive]: Don't prompt about unwritable
directories, as required by POSIX.   Reported by Karl Berry.

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

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

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

20 years ago.
Jim Meyering [Sun, 27 Jul 2003 10:01:55 +0000 (10:01 +0000)]
.

20 years agoregenerate
Jim Meyering [Sun, 27 Jul 2003 10:01:25 +0000 (10:01 +0000)]
regenerate

20 years agoremove trailing blanks
Jim Meyering [Sun, 27 Jul 2003 08:58:55 +0000 (08:58 +0000)]
remove trailing blanks

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

20 years agoEmit `$xx', not its expansion.
Jim Meyering [Sun, 27 Jul 2003 08:51:12 +0000 (08:51 +0000)]
Emit `$xx', not its expansion.

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

20 years ago(sort): Don't require two `struct line's per text line,
Jim Meyering [Sun, 27 Jul 2003 08:28:13 +0000 (08:28 +0000)]
(sort): Don't require two `struct line's per text line,
the new sort algorithm requires just 1.5.

20 years agoThis change was inspired by a similar proposal by Stepan Kasal.
Jim Meyering [Sun, 27 Jul 2003 08:26:49 +0000 (08:26 +0000)]
This change was inspired by a similar proposal by Stepan Kasal.

(mergelines, sortlines_temp): New functions.
(sortlines): Use them, to reduce the number of times that
we need to copy 'struct line' values.  This improved CPU
performance by about 30% on one 18 MB test.
(sort): Don't invoke sortlines unless we have 2 or more lines.

20 years ago(is_printable_field): Simplify bit arithmetic.
Jim Meyering [Sun, 27 Jul 2003 06:45:56 +0000 (06:45 +0000)]
(is_printable_field): Simplify bit arithmetic.

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

20 years ago(validate_path): Use %lu, not %ld.
Jim Meyering [Sun, 27 Jul 2003 06:45:25 +0000 (06:45 +0000)]
(validate_path): Use %lu, not %ld.

20 years ago(sort_files): Put `volatile' in the right place.
Jim Meyering [Sun, 27 Jul 2003 06:34:52 +0000 (06:34 +0000)]
(sort_files): Put `volatile' in the right place.

20 years ago.
Jim Meyering [Sat, 26 Jul 2003 14:54:50 +0000 (14:54 +0000)]
.

20 years ago*** empty log message ***
Jim Meyering [Sat, 26 Jul 2003 14:53:27 +0000 (14:53 +0000)]
*** empty log message ***

20 years ago*** empty log message ***
Jim Meyering [Sat, 26 Jul 2003 12:26:40 +0000 (12:26 +0000)]
*** empty log message ***

20 years ago*** empty log message ***
Jim Meyering [Sat, 26 Jul 2003 12:23:53 +0000 (12:23 +0000)]
*** empty log message ***

20 years ago(test_vector): Add several tests to check the changes of 2003-07-24.
Jim Meyering [Sat, 26 Jul 2003 12:23:27 +0000 (12:23 +0000)]
(test_vector): Add several tests to check the changes of 2003-07-24.
Syntax errors now exit with status 2, not 1.