platform/upstream/coreutils.git
20 years agoTest for BLOCKSIZE. Factor the code to simplify it.
Jim Meyering [Wed, 24 Mar 2004 17:40:29 +0000 (17:40 +0000)]
Test for BLOCKSIZE.  Factor the code to simplify it.

20 years ago*** empty log message ***
Jim Meyering [Wed, 24 Mar 2004 17:39:01 +0000 (17:39 +0000)]
*** empty log message ***

20 years agoNew environment var BLOCKSIZE.
Jim Meyering [Wed, 24 Mar 2004 17:38:58 +0000 (17:38 +0000)]
New environment var BLOCKSIZE.

20 years ago*** empty log message ***
Jim Meyering [Wed, 24 Mar 2004 17:38:21 +0000 (17:38 +0000)]
*** empty log message ***

20 years ago(Block size): Document new envvar BLOCKSIZE.
Jim Meyering [Wed, 24 Mar 2004 17:38:17 +0000 (17:38 +0000)]
(Block size): Document new envvar BLOCKSIZE.

20 years ago*** empty log message ***
Jim Meyering [Wed, 24 Mar 2004 17:37:08 +0000 (17:37 +0000)]
*** empty log message ***

20 years ago(humblock): Support BLOCKSIZE envvar, as well as BLOCK_SIZE.
Jim Meyering [Wed, 24 Mar 2004 17:36:57 +0000 (17:36 +0000)]
(humblock): Support BLOCKSIZE envvar, as well as BLOCK_SIZE.

20 years ago.
Jim Meyering [Wed, 24 Mar 2004 15:19:40 +0000 (15:19 +0000)]
.

20 years agoAdjust to above changes to src/du.c.
Jim Meyering [Wed, 24 Mar 2004 15:14:22 +0000 (15:14 +0000)]
Adjust to above changes to src/du.c.

20 years agoShorten the du --files0-from announcement, and say
Jim Meyering [Wed, 24 Mar 2004 15:14:08 +0000 (15:14 +0000)]
Shorten the du --files0-from announcement, and say
"NUL-terminated" rather than "NUL-separated".

20 years ago*** empty log message ***
Jim Meyering [Wed, 24 Mar 2004 15:14:00 +0000 (15:14 +0000)]
*** empty log message ***

20 years ago(EXPECTED_BYTES_PER_FILE_NAME, DEFAULT_PROJECTED_N_FILES):
Jim Meyering [Wed, 24 Mar 2004 15:13:55 +0000 (15:13 +0000)]
(EXPECTED_BYTES_PER_FILE_NAME, DEFAULT_PROJECTED_N_FILES):
Remove: not used.
(usage): Say "NUL-terminated", not "NUL-separated".
(main): Check for I/O error when istream is closed.
Allow --files0-from=F even if F is empty; this specifies no files.
(du_files): Now that we allow the list of files to be empty,
handle that case.

20 years agoUse @sc{nul} consistently for NUL.
Jim Meyering [Wed, 24 Mar 2004 15:12:39 +0000 (15:12 +0000)]
Use @sc{nul} consistently for NUL.
(du invocation): FILE0 -> FILE.

20 years ago*** empty log message ***
Jim Meyering [Wed, 24 Mar 2004 15:12:14 +0000 (15:12 +0000)]
*** empty log message ***

20 years ago(check-texinfo): Add a check to ensure future
Jim Meyering [Wed, 24 Mar 2004 15:12:11 +0000 (15:12 +0000)]
(check-texinfo): Add a check to ensure future
consistency in using @sc{nul}, not `NUL'.

20 years ago*** empty log message ***
Jim Meyering [Wed, 24 Mar 2004 14:45:23 +0000 (14:45 +0000)]
*** empty log message ***

20 years ago(readtokens0): Return true on success rather
Jim Meyering [Wed, 24 Mar 2004 14:45:17 +0000 (14:45 +0000)]
(readtokens0): Return true on success rather
than on failure.  All callers changed.  This also happens to fix a
portability bug on pre-C99 hosts, where (bool) INTEGER sometimes
returns false even when INTEGER is nonzero.

20 years ago*** empty log message ***
Jim Meyering [Wed, 24 Mar 2004 13:42:44 +0000 (13:42 +0000)]
*** empty log message ***

20 years agoAvoid race condition that could cause
Jim Meyering [Wed, 24 Mar 2004 12:13:12 +0000 (12:13 +0000)]
Avoid race condition that could cause
spurious failure.  Based on a patch from Andreas Schwab.

20 years ago.
Jim Meyering [Tue, 23 Mar 2004 20:17:58 +0000 (20:17 +0000)]
.

20 years agoRemove space(s) before TAB.
Jim Meyering [Tue, 23 Mar 2004 18:04:35 +0000 (18:04 +0000)]
Remove space(s) before TAB.

20 years agowhoops: getopt_int.h, not getopt_int.c.
Jim Meyering [Tue, 23 Mar 2004 17:34:05 +0000 (17:34 +0000)]
whoops: getopt_int.h, not getopt_int.c.

20 years agoSync from gnulib.
Jim Meyering [Tue, 23 Mar 2004 17:33:25 +0000 (17:33 +0000)]
Sync from gnulib.

20 years ago.
Jim Meyering [Tue, 23 Mar 2004 17:33:02 +0000 (17:33 +0000)]
.

20 years agoNew file, from gnulib.
Jim Meyering [Tue, 23 Mar 2004 17:32:11 +0000 (17:32 +0000)]
New file, from gnulib.

20 years ago(libfetish_a_SOURCES): Add getopt_int.h.
Jim Meyering [Tue, 23 Mar 2004 17:31:11 +0000 (17:31 +0000)]
(libfetish_a_SOURCES): Add getopt_int.h.

20 years ago*** empty log message ***
Jim Meyering [Tue, 23 Mar 2004 17:18:59 +0000 (17:18 +0000)]
*** empty log message ***

20 years agoSync from gnulib.
Jim Meyering [Tue, 23 Mar 2004 17:18:54 +0000 (17:18 +0000)]
Sync from gnulib.
* mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.

20 years agoSync from gnulib.
Jim Meyering [Tue, 23 Mar 2004 17:18:37 +0000 (17:18 +0000)]
Sync from gnulib.
* mbswidth.h: Include <wchar.h> only if HAVE_DECL_MBSWIDTH_IN_WCHAR_H,
not on all platforms that have <wchar.h>.

20 years ago*** empty log message ***
Jim Meyering [Tue, 23 Mar 2004 16:32:18 +0000 (16:32 +0000)]
*** empty log message ***

20 years ago(main): Free the hash table, too.
Jim Meyering [Tue, 23 Mar 2004 16:32:11 +0000 (16:32 +0000)]
(main): Free the hash table, too.

20 years ago*** empty log message ***
Jim Meyering [Tue, 23 Mar 2004 11:35:07 +0000 (11:35 +0000)]
*** empty log message ***

20 years ago*** empty log message ***
Jim Meyering [Tue, 23 Mar 2004 11:34:00 +0000 (11:34 +0000)]
*** empty log message ***

20 years ago(du invocation): --files0-from is useful with
Jim Meyering [Tue, 23 Mar 2004 11:33:56 +0000 (11:33 +0000)]
(du invocation): --files0-from is useful with
--total (-c), not with --summarize.

20 years ago*** empty log message ***
Jim Meyering [Tue, 23 Mar 2004 11:26:54 +0000 (11:26 +0000)]
*** empty log message ***

20 years ago*** empty log message ***
Jim Meyering [Tue, 23 Mar 2004 11:26:14 +0000 (11:26 +0000)]
*** empty log message ***

20 years ago*** empty log message ***
Jim Meyering [Tue, 23 Mar 2004 11:25:31 +0000 (11:25 +0000)]
*** empty log message ***

20 years ago*** empty log message ***
Jim Meyering [Tue, 23 Mar 2004 11:24:20 +0000 (11:24 +0000)]
*** empty log message ***

20 years ago.
Jim Meyering [Mon, 22 Mar 2004 22:27:47 +0000 (22:27 +0000)]
.

20 years ago*** empty log message ***
Jim Meyering [Mon, 22 Mar 2004 22:27:37 +0000 (22:27 +0000)]
*** empty log message ***

20 years agoTweak a few lines that resulted in `overfull hbox' warnings.
Jim Meyering [Mon, 22 Mar 2004 22:27:33 +0000 (22:27 +0000)]
Tweak a few lines that resulted in `overfull hbox' warnings.

20 years ago.
Jim Meyering [Mon, 22 Mar 2004 22:26:30 +0000 (22:26 +0000)]
.

20 years ago*** empty log message ***
Jim Meyering [Mon, 22 Mar 2004 22:26:20 +0000 (22:26 +0000)]
*** empty log message ***

20 years ago(.x.1): Remove --info-page= option, reverting
Jim Meyering [Mon, 22 Mar 2004 22:26:16 +0000 (22:26 +0000)]
(.x.1): Remove --info-page= option, reverting
the change of 2004-01-22.  I can no longer reproduce the problem
that prompted that change, and `info coreutils pr' would display the
`printing text' section of the manual, not the one on `pr invocation'.

20 years ago.
Jim Meyering [Mon, 22 Mar 2004 20:40:03 +0000 (20:40 +0000)]
.

20 years ago*** empty log message ***
Jim Meyering [Mon, 22 Mar 2004 20:38:32 +0000 (20:38 +0000)]
*** empty log message ***

20 years ago(nul-1, nul-2): Adjust expected diagnostics to match corrected output.
Jim Meyering [Mon, 22 Mar 2004 20:38:28 +0000 (20:38 +0000)]
(nul-1, nul-2): Adjust expected diagnostics to match corrected output.

20 years ago(du_files): Return bool, rather than int.
Jim Meyering [Mon, 22 Mar 2004 20:17:37 +0000 (20:17 +0000)]
(du_files): Return bool, rather than int.
(main): Call readtokens0_free.

20 years agoInclude "readtokens0.h" rather than "readtokens.h".
Jim Meyering [Mon, 22 Mar 2004 20:03:38 +0000 (20:03 +0000)]
Include "readtokens0.h" rather than "readtokens.h".
(main): Use readtoken0 functions rather than readtokens.
Don't use errno when diagnosing readtokens0 failure.

20 years ago(libfetish_a_SOURCES): Add readtokens0.c and readtokens0.h
Jim Meyering [Mon, 22 Mar 2004 20:00:44 +0000 (20:00 +0000)]
(libfetish_a_SOURCES): Add readtokens0.c and readtokens0.h

20 years ago*** empty log message ***
Jim Meyering [Mon, 22 Mar 2004 20:00:27 +0000 (20:00 +0000)]
*** empty log message ***

20 years ago*** empty log message ***
Jim Meyering [Sun, 21 Mar 2004 22:19:21 +0000 (22:19 +0000)]
*** empty log message ***

20 years ago(ds_free): Plug a small leak.
Jim Meyering [Sun, 21 Mar 2004 22:19:09 +0000 (22:19 +0000)]
(ds_free): Plug a small leak.

20 years ago*** empty log message ***
Jim Meyering [Sun, 21 Mar 2004 19:50:46 +0000 (19:50 +0000)]
*** empty log message ***

20 years ago*** empty log message ***
Jim Meyering [Sun, 21 Mar 2004 19:50:31 +0000 (19:50 +0000)]
*** empty log message ***

20 years ago(readtoken): Don't leak 64 bytes when reading an empty input stream.
Jim Meyering [Sun, 21 Mar 2004 19:50:17 +0000 (19:50 +0000)]
(readtoken): Don't leak 64 bytes when reading an empty input stream.

20 years agoAlso test with a non-regular file:
Jim Meyering [Sun, 21 Mar 2004 19:20:14 +0000 (19:20 +0000)]
Also test with a non-regular file:
--files0-from=/dev/null

20 years ago(main): whoops. don't use errno for this diagnostic:
Jim Meyering [Sun, 21 Mar 2004 19:18:24 +0000 (19:18 +0000)]
(main): whoops.  don't use errno for this diagnostic:
_("no files specified in %s"),

20 years agoAdd this comment:
Jim Meyering [Sun, 21 Mar 2004 18:50:30 +0000 (18:50 +0000)]
Add this comment:
# -*- perl -*-

20 years ago.
Jim Meyering [Sun, 21 Mar 2004 18:50:03 +0000 (18:50 +0000)]
.

20 years ago*** empty log message ***
Jim Meyering [Sun, 21 Mar 2004 18:49:13 +0000 (18:49 +0000)]
*** empty log message ***

20 years agoInclude <stdbool.h>.
Jim Meyering [Sun, 21 Mar 2004 18:49:06 +0000 (18:49 +0000)]
Include <stdbool.h>.
(readtoken): Use `size_t' rather than int/long.
All callers adjusted.
Use `bool' rather than `int' where appropriate.
Use memset rather than an explicit loop.
Use x2nrealloc rather than xrealloc.
Allow the use of `\0' as a delimiter.
(readtokens): Likewise.

20 years ago(readtoken, readtokens): Update prototypes.
Jim Meyering [Sun, 21 Mar 2004 18:48:54 +0000 (18:48 +0000)]
(readtoken, readtokens): Update prototypes.

20 years ago*** empty log message ***
Jim Meyering [Sun, 21 Mar 2004 18:48:21 +0000 (18:48 +0000)]
*** empty log message ***

20 years ago(du invocation): Document new option: --file0-from=F.
Jim Meyering [Sun, 21 Mar 2004 18:48:17 +0000 (18:48 +0000)]
(du invocation): Document new option: --file0-from=F.

20 years ago*** empty log message ***
Jim Meyering [Sun, 21 Mar 2004 18:47:48 +0000 (18:47 +0000)]
*** empty log message ***

20 years agoFix typo in comment.
Jim Meyering [Sun, 21 Mar 2004 18:47:43 +0000 (18:47 +0000)]
Fix typo in comment.

20 years ago*** empty log message ***
Jim Meyering [Sun, 21 Mar 2004 18:46:35 +0000 (18:46 +0000)]
*** empty log message ***

20 years ago * NEWS: du accepts a new option --from0-file=FILE, where FILE
Jim Meyering [Sun, 21 Mar 2004 18:46:31 +0000 (18:46 +0000)]
* NEWS: du accepts a new option --from0-file=FILE, where FILE
contains a list of NUL-separated file names.

20 years ago(tsort): Reflect changes in use of readtoken.
Jim Meyering [Sun, 21 Mar 2004 18:45:54 +0000 (18:45 +0000)]
(tsort): Reflect changes in use of readtoken.

20 years ago(do_stdin): Reflect changes in use of readtoken.
Jim Meyering [Sun, 21 Mar 2004 18:45:37 +0000 (18:45 +0000)]
(do_stdin): Reflect changes in use of readtoken.

20 years ago(TESTS): Add files0-from.
Jim Meyering [Sun, 21 Mar 2004 18:45:17 +0000 (18:45 +0000)]
(TESTS): Add files0-from.

20 years agoNew tests, for --files0-from-F option.
Jim Meyering [Sun, 21 Mar 2004 18:45:06 +0000 (18:45 +0000)]
New tests, for --files0-from-F option.

20 years agodu accepts a new option --from0-file=FILE, where FILE contains
Jim Meyering [Sun, 21 Mar 2004 18:44:25 +0000 (18:44 +0000)]
du accepts a new option --from0-file=FILE, where FILE contains
a list of NUL-separated file names.

Include "readtokens.h".
(usage): Describe the new option, and adjust the `Usage':
with this option, no FILE may be specified on the command line.
(main): Handle the new option.

20 years ago.
Jim Meyering [Thu, 18 Mar 2004 06:24:45 +0000 (06:24 +0000)]
.

20 years ago.
Jim Meyering [Wed, 17 Mar 2004 18:44:57 +0000 (18:44 +0000)]
.

20 years ago(test_vector): New tests epoch, ns-10, ns-max32, ns-relative.
Jim Meyering [Wed, 17 Mar 2004 17:42:11 +0000 (17:42 +0000)]
(test_vector): New tests epoch, ns-10, ns-max32, ns-relative.

20 years ago*** empty log message ***
Jim Meyering [Wed, 17 Mar 2004 17:39:03 +0000 (17:39 +0000)]
*** empty log message ***

20 years ago*** empty log message ***
Jim Meyering [Wed, 17 Mar 2004 17:38:36 +0000 (17:38 +0000)]
*** empty log message ***

20 years ago(General date syntax, Time of day items): Likewise.
Jim Meyering [Wed, 17 Mar 2004 17:37:28 +0000 (17:37 +0000)]
(General date syntax, Time of day items): Likewise.
Add copyright notice.  Change getdate to
get_date when talking about the function name.
(Seconds since the Epoch): New section, containing the time_t
info moved from Date input formats section, along with new
info about the @ syntax.  Mention negative time stamps,
fractional time stamps, and leap seconds.
(General date syntax): Modernize examples a bit to reflect new
features.
(General date syntax, Relative items in date strings):
Use ' rather than " to quote formats.
(Time of day items): Add an example with fractional seconds.
Describe fractional-second syntax.

20 years ago(touch invocation):
Jim Meyering [Wed, 17 Mar 2004 17:31:15 +0000 (17:31 +0000)]
(touch invocation):
Describe use of fractional seconds.
(date invocation, Options for date): Likewise.
(date invocation): Mention effect of LC_TIME.
(Options for date): Describe new --iso-8601=ns option.

20 years ago(touch_LDADD): New macro, since `touch' now needs clock_gettime.
Jim Meyering [Wed, 17 Mar 2004 10:14:17 +0000 (10:14 +0000)]
(touch_LDADD): New macro, since `touch' now needs clock_gettime.

20 years ago*** empty log message ***
Jim Meyering [Wed, 17 Mar 2004 10:13:50 +0000 (10:13 +0000)]
*** empty log message ***

20 years ago(gl_GETDATE): Remove time-related stuff.
Jim Meyering [Wed, 17 Mar 2004 10:13:45 +0000 (10:13 +0000)]
(gl_GETDATE): Remove time-related stuff.
Require AM_STDBOOL_H and gl_TIMESPEC instead.
Require gl_CLOCK_TIME.

20 years ago(gl_CLOCK_TIME): Require AC_GNU_SOURCE.
Jim Meyering [Wed, 17 Mar 2004 10:12:39 +0000 (10:12 +0000)]
(gl_CLOCK_TIME): Require AC_GNU_SOURCE.

20 years ago*** empty log message ***
Jim Meyering [Wed, 17 Mar 2004 10:11:12 +0000 (10:11 +0000)]
*** empty log message ***

20 years ago*** empty log message ***
Jim Meyering [Wed, 17 Mar 2004 10:09:24 +0000 (10:09 +0000)]
*** empty log message ***

20 years agoInclude "getdate.h" first, as we can now
Jim Meyering [Wed, 17 Mar 2004 10:09:16 +0000 (10:09 +0000)]
Include "getdate.h" first, as we can now
assume C89 and don't need to worry about 'const'.
Similarly, include "unlocked-io.h" near start, not in middle.
Include <limits.h>.
(textint.value): Use long int rather than int.
(textint.digits): Use size_t rather than int.
(BILLION, LOG10_BILLION): New constants.
(parser_control): New member rel_ns.  Members day_ordinal,
time_zone, month, day, hour, minutes, rel_year, rel_month,
rel_day, rel_hour, rel_minutes, rel_seconds
are now long int, not int.  Member seconds is now struct timespec,
not int.  New member timespec_seen.  Members dates_seen, days_seen,
local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
not int.
(%union.intval): Now long int, not int.
New member timespec.
(tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
(seconds, signed_seconds, unsigned_seconds): New nonterminals.
(spec): Now is a timespec or an item list.
(timespec, items): New nonterminals.
(time, rel, relunit, number, get_date):
Add support for fractional seconds.
(time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
(gmtime, localtime, mktime): Remove decls; not needed with C89.
(to_hour): First arg is now long int, not int.
(to_year): Returns long int, not int.
Don't treat year -70 like 70.
(tm_diff): Returns long int, not int.
(lookup_word): Use bool instead of int when appropriate.
(yylex): Use size_t for count, not int.
Detect overflow when parsing large integer constants.
Add support for fractions.
(get_date): Make pointers 'const' if possible.
Use more-portable code to detect integer overflow.
(main) [TEST]: Adjust to above changes.  Test for localtime failure.
Don't use ctime; it's not reliable if the year has >4 digits.

20 years agoInclude stdbool.h, and timespec.h instead of
Jim Meyering [Wed, 17 Mar 2004 10:09:02 +0000 (10:09 +0000)]
Include stdbool.h, and timespec.h instead of
the usual <time.h> dance.
(get_date): Change signature to support fractional time stamps.
All callers changed.

20 years ago(enum Time_spec): New enum TIME_SPEC_NS.
Jim Meyering [Wed, 17 Mar 2004 10:07:19 +0000 (10:07 +0000)]
(enum Time_spec): New enum TIME_SPEC_NS.
(time_spec_string, time_spec, show_date): Support it.
(usage): Remove description of -ITIMESPEC, as it's obsolete and
confusing.  Mention --iso-8601=ns.
(batch_convert): getline returns ssize_t, not int.

20 years ago(newtime): Now an array of two timespecs, one
Jim Meyering [Wed, 17 Mar 2004 10:06:57 +0000 (10:06 +0000)]
(newtime): Now an array of two timespecs, one
for access and one for modification.
(ref_stats): Remove.
(get_reldate): Use get_date's parameter profile.
(touch, main): Adjust to above changes.
(main): Work even if tm_year == INT_MAX (so long as long int is wider).
Use gettime instead of gettimeofday, for new get_date signature.

20 years ago*** empty log message ***
Jim Meyering [Mon, 15 Mar 2004 15:16:37 +0000 (15:16 +0000)]
*** empty log message ***

20 years ago.
Jim Meyering [Mon, 15 Mar 2004 13:06:09 +0000 (13:06 +0000)]
.

20 years ago*** empty log message ***
Jim Meyering [Mon, 15 Mar 2004 13:03:19 +0000 (13:03 +0000)]
*** empty log message ***

20 years ago(date invocation): Add missing `C' to %[...] range
Jim Meyering [Mon, 15 Mar 2004 13:03:13 +0000 (13:03 +0000)]
(date invocation): Add missing `C' to %[...] range
in the `Date directives:: ...' menu entry.  From Bob Proulx.

20 years ago*** empty log message ***
Jim Meyering [Mon, 15 Mar 2004 12:03:46 +0000 (12:03 +0000)]
*** empty log message ***

20 years ago(alpha beta major): `Make' the emit_upload_commands
Jim Meyering [Mon, 15 Mar 2004 12:03:43 +0000 (12:03 +0000)]
(alpha beta major): `Make' the emit_upload_commands
target before updating $(prev_version_file).

20 years ago*** empty log message ***
Jim Meyering [Mon, 15 Mar 2004 12:02:25 +0000 (12:02 +0000)]
*** empty log message ***

20 years agoAdd FIXME comment:
Jim Meyering [Mon, 15 Mar 2004 12:02:19 +0000 (12:02 +0000)]
Add FIXME comment:
The following don't have `invocation' nodes: [, pinky, shasum, uptime

20 years ago*** empty log message ***
Jim Meyering [Mon, 15 Mar 2004 09:46:47 +0000 (09:46 +0000)]
*** empty log message ***