platform/upstream/coreutils.git
18 years ago(show_dev): New arg STAT_FILE. All uses changed.
Paul Eggert [Tue, 16 Aug 2005 20:33:40 +0000 (20:33 +0000)]
(show_dev): New arg STAT_FILE.  All uses changed.
This sometimes gives better results on networked file systems
that do not respect POSIX semantics.  Problem reported by
Bruno Haible.

18 years agoadd comment
Jim Meyering [Mon, 15 Aug 2005 13:05:58 +0000 (13:05 +0000)]
add comment

18 years agouse ERR_SUBST to get around fact that the diagnostic
Jim Meyering [Mon, 15 Aug 2005 13:03:57 +0000 (13:03 +0000)]
use ERR_SUBST to get around fact that the diagnostic
you get on a system with 32-bit time_t is not the same as
the one you get for a system where it's 64 bits wide:
- date: time 72057594037927935 is out of range
+ date: invalid date `@72057594037927935'

18 years ago(uninit-64): New test for today's date.c fix.
Jim Meyering [Mon, 15 Aug 2005 13:01:50 +0000 (13:01 +0000)]
(uninit-64): New test for today's date.c fix.
Rewrite all other OUT strings to include the terminating "\n".

18 years ago*** empty log message ***
Jim Meyering [Mon, 15 Aug 2005 12:16:58 +0000 (12:16 +0000)]
*** empty log message ***

18 years agoDon't print uninitialized data (or anything else) to stdout
Jim Meyering [Mon, 15 Aug 2005 12:16:54 +0000 (12:16 +0000)]
Don't print uninitialized data (or anything else) to stdout
upon localtime failure.

(show_date): Remove stray `puts (buf);' (debugging?)
from the 2004-02-02 change.

18 years agomake log entry more accurate
Jim Meyering [Mon, 15 Aug 2005 09:11:17 +0000 (09:11 +0000)]
make log entry more accurate

18 years ago*** empty log message ***
Jim Meyering [Mon, 15 Aug 2005 08:41:24 +0000 (08:41 +0000)]
*** empty log message ***

18 years ago(join invocation): Itemize the defaults.
Jim Meyering [Mon, 15 Aug 2005 08:41:21 +0000 (08:41 +0000)]
(join invocation): Itemize the defaults.

18 years ago*** empty log message ***
Jim Meyering [Sun, 14 Aug 2005 15:03:59 +0000 (15:03 +0000)]
*** empty log message ***

18 years ago*** empty log message ***
Jim Meyering [Sun, 14 Aug 2005 15:02:49 +0000 (15:02 +0000)]
*** empty log message ***

18 years ago(usage): Fix typo s/formated/formatted/ reported by Norbert Kiesel
Jim Meyering [Sun, 14 Aug 2005 15:02:45 +0000 (15:02 +0000)]
(usage): Fix typo s/formated/formatted/ reported by Norbert Kiesel

18 years ago*** empty log message ***
Jim Meyering [Sun, 14 Aug 2005 15:02:23 +0000 (15:02 +0000)]
*** empty log message ***

18 years ago.
Jim Meyering [Sun, 14 Aug 2005 14:31:23 +0000 (14:31 +0000)]
.

18 years ago*** empty log message ***
Jim Meyering [Sun, 14 Aug 2005 14:29:28 +0000 (14:29 +0000)]
*** empty log message ***

18 years ago*** empty log message ***
Jim Meyering [Sun, 14 Aug 2005 14:22:23 +0000 (14:22 +0000)]
*** empty log message ***

18 years agoDon't include "timespec.h".
Jim Meyering [Sun, 14 Aug 2005 14:22:00 +0000 (14:22 +0000)]
Don't include "timespec.h".

18 years ago*** empty log message ***
Jim Meyering [Sun, 14 Aug 2005 14:20:53 +0000 (14:20 +0000)]
*** empty log message ***

18 years agoUse one fewer file descriptor in a common case.
Jim Meyering [Sun, 14 Aug 2005 14:18:07 +0000 (14:18 +0000)]
Use one fewer file descriptor in a common case.

Include "fd-reopen.h", rather than "fcntl--.h".
Use fd_reopen rather than open.

18 years ago*** empty log message ***
Jim Meyering [Sun, 14 Aug 2005 14:17:54 +0000 (14:17 +0000)]
*** empty log message ***

18 years agoInclude "timespec.h".
Jim Meyering [Sun, 14 Aug 2005 14:17:48 +0000 (14:17 +0000)]
Include "timespec.h".
(age_of): Return the nanoseconds part of the timestamp, if available.
(binary_operator) [-nt, -ot]: Use nanosecond values to break ties.

18 years ago*** empty log message ***
Jim Meyering [Sun, 14 Aug 2005 11:16:15 +0000 (11:16 +0000)]
*** empty log message ***

18 years ago(long_time_expected_width): Revert last change, just to
Jim Meyering [Sun, 14 Aug 2005 08:30:25 +0000 (08:30 +0000)]
(long_time_expected_width): Revert last change, just to
be paranoid, and add a comment explaining why.
Paul Eggert mentioned the possibility.

18 years ago*** empty log message ***
Jim Meyering [Sat, 13 Aug 2005 22:47:52 +0000 (22:47 +0000)]
*** empty log message ***

18 years agoDon't define mbrtowc at all.
Jim Meyering [Sat, 13 Aug 2005 22:47:48 +0000 (22:47 +0000)]
Don't define mbrtowc at all.
If mbstate_t is not defined, then AC_TYPE_MBSTATE_T will define
it to `int' for us.

18 years ago*** empty log message ***
Jim Meyering [Sat, 13 Aug 2005 22:46:07 +0000 (22:46 +0000)]
*** empty log message ***

18 years agoundo last change
Jim Meyering [Sat, 13 Aug 2005 22:45:53 +0000 (22:45 +0000)]
undo last change

18 years ago*** empty log message ***
Jim Meyering [Sat, 13 Aug 2005 22:26:36 +0000 (22:26 +0000)]
*** empty log message ***

18 years ago[HAVE_WCTYPE_H]: Include <wctype.h>; this is
Jim Meyering [Sat, 13 Aug 2005 22:26:33 +0000 (22:26 +0000)]
[HAVE_WCTYPE_H]: Include <wctype.h>; this is
needed on HP-UX 11.23 in order to get a definition of mbstate_t.

18 years agoupdate from gnulib
Jim Meyering [Sat, 13 Aug 2005 21:06:17 +0000 (21:06 +0000)]
update from gnulib

18 years agoupdate from gnulib
Jim Meyering [Sat, 13 Aug 2005 21:04:02 +0000 (21:04 +0000)]
update from gnulib

18 years ago*** empty log message ***
Jim Meyering [Sat, 13 Aug 2005 17:39:40 +0000 (17:39 +0000)]
*** empty log message ***

18 years ago.
Jim Meyering [Sat, 13 Aug 2005 17:36:34 +0000 (17:36 +0000)]
.

18 years ago(AC_CONFIG_FILES): Remove tests/date/Makefile.
Jim Meyering [Sat, 13 Aug 2005 17:34:22 +0000 (17:34 +0000)]
(AC_CONFIG_FILES): Remove tests/date/Makefile.

18 years ago(SUBDIRS): Remove date.
Jim Meyering [Sat, 13 Aug 2005 17:34:11 +0000 (17:34 +0000)]
(SUBDIRS): Remove date.

18 years agoconvert last batch of tests
Jim Meyering [Sat, 13 Aug 2005 15:43:40 +0000 (15:43 +0000)]
convert last batch of tests

18 years agoUse new ENV and ENV_DEL to support this latest batch of tests from
Jim Meyering [Sat, 13 Aug 2005 15:36:14 +0000 (15:36 +0000)]
Use new ENV and ENV_DEL to support this latest batch of tests from
tests/date/Test.pm

18 years agoNew keywords, ENV and ENV_DEL, to support tests/misc/date.
Jim Meyering [Sat, 13 Aug 2005 15:34:52 +0000 (15:34 +0000)]
New keywords, ENV and ENV_DEL, to support tests/misc/date.

18 years agomove a bunch of tests to ../misc/date
Jim Meyering [Sat, 13 Aug 2005 14:45:45 +0000 (14:45 +0000)]
move a bunch of tests to ../misc/date

18 years agomore tests translated from ../date/Test.pm
Jim Meyering [Sat, 13 Aug 2005 14:45:38 +0000 (14:45 +0000)]
more tests translated from ../date/Test.pm

18 years agomove a bunch of tests to ../misc/date
Jim Meyering [Sat, 13 Aug 2005 14:42:03 +0000 (14:42 +0000)]
move a bunch of tests to ../misc/date

18 years agoadd a bunch more tests
Jim Meyering [Sat, 13 Aug 2005 14:41:39 +0000 (14:41 +0000)]
add a bunch more tests

18 years agomove a handful of tests to ../misc/date
Jim Meyering [Sat, 13 Aug 2005 14:33:48 +0000 (14:33 +0000)]
move a handful of tests to ../misc/date

18 years agomore tests translated from ../date/Test.pm
Jim Meyering [Sat, 13 Aug 2005 14:33:33 +0000 (14:33 +0000)]
more tests translated from ../date/Test.pm

18 years ago*** empty log message ***
Jim Meyering [Sat, 13 Aug 2005 14:08:29 +0000 (14:08 +0000)]
*** empty log message ***

18 years ago(TESTS): Add date.
Jim Meyering [Sat, 13 Aug 2005 14:08:26 +0000 (14:08 +0000)]
(TESTS): Add date.

18 years agoWith todays additions, the generated shell script,
Jim Meyering [Sat, 13 Aug 2005 14:07:18 +0000 (14:07 +0000)]
With todays additions, the generated shell script,
tests/date/date-tests had becoming far too large (over 350KB),
so use the superior-but-perl-requiring framework instead.
* tests/date/Test.pm: Move new tests from here...
* tests/misc/date: ...to this new file.

18 years ago(test_vector): Add 364 more tests like the above.
Jim Meyering [Sat, 13 Aug 2005 13:16:29 +0000 (13:16 +0000)]
(test_vector): Add 364 more tests like the above.
Remove unused $sunos4 variable.

18 years ago*** empty log message ***
Jim Meyering [Sat, 13 Aug 2005 13:07:49 +0000 (13:07 +0000)]
*** empty log message ***

18 years ago(test_vector) [cross-dst]: New test for just-fixed getdate.y bug.
Jim Meyering [Sat, 13 Aug 2005 13:07:45 +0000 (13:07 +0000)]
(test_vector) [cross-dst]: New test for just-fixed getdate.y bug.

18 years ago*** empty log message ***
Jim Meyering [Sat, 13 Aug 2005 12:10:22 +0000 (12:10 +0000)]
*** empty log message ***

18 years ago(get_date): Undo part of the 2005-04-04 change, so that
Jim Meyering [Sat, 13 Aug 2005 12:10:05 +0000 (12:10 +0000)]
(get_date): Undo part of the 2005-04-04 change, so that
the command "date -d'2005-03-27 +1 day'" succeeds once again, even
when run in a time zone for which daylight savings time is in effect
for the starting date.

18 years ago*** empty log message ***
Jim Meyering [Fri, 12 Aug 2005 13:17:05 +0000 (13:17 +0000)]
*** empty log message ***

18 years ago(re_string_realloc_buffers): Rename local-shadowed
Jim Meyering [Fri, 12 Aug 2005 13:16:47 +0000 (13:16 +0000)]
(re_string_realloc_buffers): Rename local-shadowed
variable: s/new_array/offsets/.
(re_acquire_state) [lint]: Set *err, to avoid warnings in caller.

18 years ago(regexec, re_search_stub) [!_LIBC]: Omit declaration of unused local, dfa.
Jim Meyering [Fri, 12 Aug 2005 13:16:26 +0000 (13:16 +0000)]
(regexec, re_search_stub) [!_LIBC]: Omit declaration of unused local, dfa.
(proceed_next_node): Remove outer declaration and
unnecessary initialization of local-shadowed `dest_node'.
Declare it in inner scopes, nearer its uses instead.

18 years ago(duplicate_node) [lint]: Set *new_idx to -1, to avoid
Jim Meyering [Fri, 12 Aug 2005 13:10:17 +0000 (13:10 +0000)]
(duplicate_node) [lint]: Set *new_idx to -1, to avoid
warnings (unfounded) in caller that it may be used uninitialized.

18 years ago*** empty log message ***
Jim Meyering [Fri, 12 Aug 2005 13:02:23 +0000 (13:02 +0000)]
*** empty log message ***

18 years agoMention that with FTS_LOGICAL, we use FTS_TIGHT_CYCLE_CHECK.
Jim Meyering [Fri, 12 Aug 2005 13:02:17 +0000 (13:02 +0000)]
Mention that with FTS_LOGICAL, we use FTS_TIGHT_CYCLE_CHECK.

18 years ago(setup_dir, enter_dir, leave_dir, free_dir):
Jim Meyering [Fri, 12 Aug 2005 13:02:01 +0000 (13:02 +0000)]
(setup_dir, enter_dir, leave_dir, free_dir):
Use the hash-table-based cycle-detection code not just when
FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
Reported by James Youngman in
<http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.

18 years ago(fts_cross_check) [FTS_DEBUG]: s/active_dir_ht/fts_cycle.ht/.
Jim Meyering [Fri, 12 Aug 2005 13:00:57 +0000 (13:00 +0000)]
(fts_cross_check) [FTS_DEBUG]: s/active_dir_ht/fts_cycle.ht/.

18 years ago(IF_LINT): Define.
Jim Meyering [Fri, 12 Aug 2005 12:41:56 +0000 (12:41 +0000)]
(IF_LINT): Define.

18 years ago(RE_SYNTAX_POSIX_AWK): Remove useless space-before-TAB.
Jim Meyering [Fri, 12 Aug 2005 12:41:41 +0000 (12:41 +0000)]
(RE_SYNTAX_POSIX_AWK): Remove useless space-before-TAB.

18 years ago*** empty log message ***
Jim Meyering [Fri, 12 Aug 2005 08:25:57 +0000 (08:25 +0000)]
*** empty log message ***

18 years ago(main): Explain why we reopen stdin for write-only access.
Jim Meyering [Fri, 12 Aug 2005 08:25:52 +0000 (08:25 +0000)]
(main): Explain why we reopen stdin for write-only access.

18 years ago*** empty log message ***
Jim Meyering [Fri, 12 Aug 2005 08:22:50 +0000 (08:22 +0000)]
*** empty log message ***

18 years ago(long_time_expected_width): Don't test for failed localtime.
Jim Meyering [Fri, 12 Aug 2005 08:22:47 +0000 (08:22 +0000)]
(long_time_expected_width): Don't test for failed localtime.
That cannot happen when the result date's year is in range.
Add an assertion instead.

18 years ago*** empty log message ***
Jim Meyering [Fri, 12 Aug 2005 08:18:25 +0000 (08:18 +0000)]
*** empty log message ***

18 years ago(sort_found_occurs, digest_word_file): Likewise.
Jim Meyering [Fri, 12 Aug 2005 08:18:18 +0000 (08:18 +0000)]
(sort_found_occurs, digest_word_file): Likewise.
(alloc_and_compile_regex): Likewise.

18 years ago(sort_files): Use cleaner `sizeof *VAR_NAME' rather than `sizeof (TYPE_NAME)'.
Jim Meyering [Fri, 12 Aug 2005 08:17:54 +0000 (08:17 +0000)]
(sort_files): Use cleaner `sizeof *VAR_NAME' rather than `sizeof (TYPE_NAME)'.

18 years ago*** empty log message ***
Jim Meyering [Fri, 12 Aug 2005 08:08:04 +0000 (08:08 +0000)]
*** empty log message ***

18 years agoTest `!defined HAVE_MBSTATE_T' rather than
Jim Meyering [Fri, 12 Aug 2005 08:08:00 +0000 (08:08 +0000)]
Test `!defined HAVE_MBSTATE_T' rather than
`defined mbstate_t' to detect missing support for mbstate_t.
The latter didn't work for HP-UX 11.23.

18 years ago*** empty log message ***
Jim Meyering [Fri, 12 Aug 2005 08:06:56 +0000 (08:06 +0000)]
*** empty log message ***

18 years agoAdd bulletproofing in case stdin is closed.
Jim Meyering [Fri, 12 Aug 2005 08:06:28 +0000 (08:06 +0000)]
Add bulletproofing in case stdin is closed.

(have_read_stdin): Remove global variable.
(dc_parse_stream): Always use stdin (freopen, if needed) rather
than sometimes using fopen to get a new file descriptor.
Call fclose unconditionally.
(main): Don't close stdin here.  If needed, now it's already done
by dc_parse_stream.

18 years ago*** empty log message ***
Jim Meyering [Fri, 12 Aug 2005 07:57:16 +0000 (07:57 +0000)]
*** empty log message ***

18 years ago(dc_parse_file): Remove comment about now-removed OPENOPTS.
Jim Meyering [Fri, 12 Aug 2005 07:45:29 +0000 (07:45 +0000)]
(dc_parse_file): Remove comment about now-removed OPENOPTS.

18 years ago*** empty log message ***
Jim Meyering [Fri, 12 Aug 2005 07:29:59 +0000 (07:29 +0000)]
*** empty log message ***

18 years ago(main): Cosmetic: use X2REALLOC rather than x2realloc.
Jim Meyering [Fri, 12 Aug 2005 07:29:51 +0000 (07:29 +0000)]
(main): Cosmetic: use X2REALLOC rather than x2realloc.

18 years ago(fold_file): Cosmetic: use X2REALLOC rather than x2realloc.
Jim Meyering [Fri, 12 Aug 2005 07:29:38 +0000 (07:29 +0000)]
(fold_file): Cosmetic: use X2REALLOC rather than x2realloc.

18 years agoCosmetic: use X2NREALLOC (only two arguments) rather than x2nrealloc (with three).
Jim Meyering [Fri, 12 Aug 2005 07:16:25 +0000 (07:16 +0000)]
Cosmetic: use X2NREALLOC (only two arguments) rather than x2nrealloc (with three).

18 years ago*** empty log message ***
Jim Meyering [Fri, 12 Aug 2005 07:15:37 +0000 (07:15 +0000)]
*** empty log message ***

18 years ago*** empty log message ***
Jim Meyering [Fri, 12 Aug 2005 07:10:33 +0000 (07:10 +0000)]
*** empty log message ***

18 years agoadjust long lines
Jim Meyering [Fri, 12 Aug 2005 07:10:22 +0000 (07:10 +0000)]
adjust long lines

18 years ago(main): Cosmetic: use '\0' in place of 0.
Jim Meyering [Fri, 12 Aug 2005 07:09:47 +0000 (07:09 +0000)]
(main): Cosmetic: use '\0' in place of 0.

18 years ago.
Jim Meyering [Fri, 12 Aug 2005 06:54:24 +0000 (06:54 +0000)]
.

18 years ago*** empty log message ***
Jim Meyering [Fri, 12 Aug 2005 06:50:29 +0000 (06:50 +0000)]
*** empty log message ***

18 years ago(cp invocation, mv invocation): Remove square
Jim Meyering [Fri, 12 Aug 2005 06:49:48 +0000 (06:49 +0000)]
(cp invocation, mv invocation): Remove square
brackets in --reply=[HOW].  Reported by Oscar Liljeblad.

18 years ago.
Jim Meyering [Tue, 2 Aug 2005 21:15:19 +0000 (21:15 +0000)]
.

18 years agoInclude "xanstrftime.h".
Jim Meyering [Tue, 2 Aug 2005 20:53:32 +0000 (20:53 +0000)]
Include "xanstrftime.h".
(show_date): Use xanstrftime instead of open-coding it.

18 years ago*** empty log message ***
Jim Meyering [Tue, 2 Aug 2005 20:52:49 +0000 (20:52 +0000)]
*** empty log message ***

18 years agoInclude "xanstrftime.h".
Jim Meyering [Tue, 2 Aug 2005 20:52:44 +0000 (20:52 +0000)]
Include "xanstrftime.h".
(show_date): Use xanstrftime instead of open-coding it.

18 years ago*** empty log message ***
Jim Meyering [Tue, 2 Aug 2005 20:49:08 +0000 (20:49 +0000)]
*** empty log message ***

18 years agoRequire gl_FUNC_XANSTRFTIME.
Jim Meyering [Tue, 2 Aug 2005 20:48:58 +0000 (20:48 +0000)]
Require gl_FUNC_XANSTRFTIME.

18 years ago*** empty log message ***
Jim Meyering [Tue, 2 Aug 2005 20:48:15 +0000 (20:48 +0000)]
*** empty log message ***

18 years ago*** empty log message ***
Jim Meyering [Tue, 2 Aug 2005 20:47:46 +0000 (20:47 +0000)]
*** empty log message ***

18 years agonew files
Jim Meyering [Tue, 2 Aug 2005 20:47:37 +0000 (20:47 +0000)]
new files

18 years ago*** empty log message ***
Jim Meyering [Tue, 2 Aug 2005 20:44:46 +0000 (20:44 +0000)]
*** empty log message ***

18 years ago(show_date): Remove now-unnecessary code that
Jim Meyering [Tue, 2 Aug 2005 20:44:38 +0000 (20:44 +0000)]
(show_date): Remove now-unnecessary code that
treated an empty format string as a special case.

18 years ago(empty-format): New test, for this case.
Jim Meyering [Tue, 2 Aug 2005 20:44:09 +0000 (20:44 +0000)]
(empty-format): New test, for this case.

18 years agoImport regex.m4 from gnulib.
Paul Eggert [Mon, 25 Jul 2005 19:29:51 +0000 (19:29 +0000)]
Import regex.m4 from gnulib.

18 years ago(gl_INCLUDED_REGEX): Use AC_RUN_ELSE instead of the
Paul Eggert [Mon, 25 Jul 2005 19:29:34 +0000 (19:29 +0000)]
(gl_INCLUDED_REGEX): Use AC_RUN_ELSE instead of the
obsolescent AC_TRY_RUN.  Include the default includes files, for 'exit'.