platform/upstream/coreutils.git
20 years ago(sc_prohibit_atoi_atof): New rule.
Jim Meyering [Tue, 30 Mar 2004 15:11:24 +0000 (15:11 +0000)]
(sc_prohibit_atoi_atof): New rule.
(syntax-check-rules): Add it.

20 years ago*** empty log message ***
Jim Meyering [Tue, 30 Mar 2004 15:10:27 +0000 (15:10 +0000)]
*** empty log message ***

20 years ago*** empty log message ***
Jim Meyering [Tue, 30 Mar 2004 13:50:48 +0000 (13:50 +0000)]
*** empty log message ***

20 years agoMerge changes from emacs (via gnulib).
Jim Meyering [Tue, 30 Mar 2004 13:50:44 +0000 (13:50 +0000)]
Merge changes from emacs (via gnulib).

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

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

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

20 years agoUse new OUT_SUBST directive, so that this
Jim Meyering [Mon, 29 Mar 2004 09:37:23 +0000 (09:37 +0000)]
Use new OUT_SUBST directive, so that this
test is not sensitive to system-dependent block size differences.

20 years ago*** empty log message ***
Jim Meyering [Mon, 29 Mar 2004 09:23:41 +0000 (09:23 +0000)]
*** empty log message ***

20 years agoAccept new directives: OUT_SUBST, ERR_SUBST.
Jim Meyering [Mon, 29 Mar 2004 09:23:36 +0000 (09:23 +0000)]
Accept new directives: OUT_SUBST, ERR_SUBST.
Rename `%tmp' to `%actual'.  Reverse order of last two args to
_compare_files (to actual, $expected) so as to match declaration.

20 years ago*** empty log message ***
Jim Meyering [Mon, 29 Mar 2004 07:33:23 +0000 (07:33 +0000)]
*** empty log message ***

20 years ago[HAVE_SETHOSTNAME && !defined sethostname]:
Jim Meyering [Mon, 29 Mar 2004 07:30:09 +0000 (07:30 +0000)]
[HAVE_SETHOSTNAME && !defined sethostname]:
Declare sethostname, since no Solaris header does it.

20 years agoInclude "vasprintf.h", for asprintf.
Jim Meyering [Mon, 29 Mar 2004 07:29:49 +0000 (07:29 +0000)]
Include "vasprintf.h", for asprintf.

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

20 years ago[HAVE_UNISTD_H]: Include <unistd.h>, for resolvepath declaration.
Jim Meyering [Mon, 29 Mar 2004 07:29:06 +0000 (07:29 +0000)]
[HAVE_UNISTD_H]: Include <unistd.h>, for resolvepath declaration.

20 years agoInclude dirfd.h, for dirfd.
Jim Meyering [Mon, 29 Mar 2004 07:28:52 +0000 (07:28 +0000)]
Include dirfd.h, for dirfd.

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

20 years agoMinor optimization:
Jim Meyering [Sun, 28 Mar 2004 21:43:50 +0000 (21:43 +0000)]
Minor optimization:
(process_file): Don't record dev/inode for directories.

Under some circumstances, without -c, du would mistakenly count the
space of hard-linked files, not just the first one it encountered.
Reported by Anthony Thyssen.
(du_files): Don't ever clear the set of `seen' dev/inodes.

20 years agoCorrect the indentation of a foreach loop.
Jim Meyering [Sun, 28 Mar 2004 08:21:45 +0000 (08:21 +0000)]
Correct the indentation of a foreach loop.

20 years ago*** empty log message ***
Jim Meyering [Sat, 27 Mar 2004 15:52:44 +0000 (15:52 +0000)]
*** empty log message ***

20 years ago(print_grand_total): Rename global from `print_totals'.
Jim Meyering [Sat, 27 Mar 2004 15:44:23 +0000 (15:44 +0000)]
(print_grand_total): Rename global from `print_totals'.

20 years ago*** empty log message ***
Jim Meyering [Sat, 27 Mar 2004 09:11:30 +0000 (09:11 +0000)]
*** empty log message ***

20 years ago(main): Rearrange filtering loop to be a tiny bit more efficient.
Jim Meyering [Sat, 27 Mar 2004 09:11:25 +0000 (09:11 +0000)]
(main): Rearrange filtering loop to be a tiny bit more efficient.

20 years ago*** empty log message ***
Jim Meyering [Sat, 27 Mar 2004 08:43:56 +0000 (08:43 +0000)]
*** empty log message ***

20 years agoDon't include savedir.h -- no longer needed.
Jim Meyering [Sat, 27 Mar 2004 08:43:36 +0000 (08:43 +0000)]
Don't include savedir.h -- no longer needed.

20 years ago*** empty log message ***
Jim Meyering [Thu, 25 Mar 2004 20:47:50 +0000 (20:47 +0000)]
*** empty log message ***

20 years ago(main): Remove now-unused declaration of `i'.
Jim Meyering [Thu, 25 Mar 2004 17:35:29 +0000 (17:35 +0000)]
(main): Remove now-unused declaration of `i'.

20 years ago(main): Filter out file names of length zero before
Jim Meyering [Thu, 25 Mar 2004 17:34:11 +0000 (17:34 +0000)]
(main): Filter out file names of length zero before
invoking fts, so that they don't cause fatal errors.

20 years ago(zero-len): Add a test for the above.
Jim Meyering [Thu, 25 Mar 2004 17:33:56 +0000 (17:33 +0000)]
(zero-len): Add a test for the above.

20 years ago.
Jim Meyering [Wed, 24 Mar 2004 18:08:55 +0000 (18:08 +0000)]
.

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.