platform/upstream/coreutils.git
21 years agoadd comments
Jim Meyering [Sun, 2 Mar 2003 05:59:23 +0000 (05:59 +0000)]
add comments

21 years agofix tpyo
Jim Meyering [Sat, 1 Mar 2003 21:28:39 +0000 (21:28 +0000)]
fix tpyo

21 years ago(print_header): Don't embed spaces in a separate `Type'
Jim Meyering [Sat, 1 Mar 2003 21:20:57 +0000 (21:20 +0000)]
(print_header): Don't embed spaces in a separate `Type'
header string.  Instead, put `Filesystem' and `Type' headers in the
same string, so translators can use horizontal space as needed.

21 years ago*** empty log message ***
Jim Meyering [Sat, 1 Mar 2003 13:19:03 +0000 (13:19 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Sat, 1 Mar 2003 13:18:25 +0000 (13:18 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Fri, 28 Feb 2003 21:46:49 +0000 (21:46 +0000)]
*** empty log message ***

21 years ago(copy_internal): When link fails because of an
Jim Meyering [Fri, 28 Feb 2003 21:36:18 +0000 (21:36 +0000)]
(copy_internal): When link fails because of an
existing destination file, unlink that file and try again.

21 years agoalso test cp
Jim Meyering [Fri, 28 Feb 2003 21:34:15 +0000 (21:34 +0000)]
also test cp

21 years ago*** empty log message ***
Jim Meyering [Fri, 28 Feb 2003 21:24:49 +0000 (21:24 +0000)]
*** empty log message ***

21 years ago(TESTS): Add hard-2.
Jim Meyering [Fri, 28 Feb 2003 21:23:22 +0000 (21:23 +0000)]
(TESTS): Add hard-2.

21 years ago*** empty log message ***
Jim Meyering [Fri, 28 Feb 2003 21:20:28 +0000 (21:20 +0000)]
*** empty log message ***

21 years ago(ftw_startup): Return -1 if alloca fails.
Jim Meyering [Fri, 28 Feb 2003 14:44:34 +0000 (14:44 +0000)]
(ftw_startup): Return -1 if alloca fails.

21 years ago*** empty log message ***
Jim Meyering [Fri, 28 Feb 2003 12:42:47 +0000 (12:42 +0000)]
*** empty log message ***

21 years ago(fts_children): If opening `.' fails, set the fts_child
Jim Meyering [Fri, 28 Feb 2003 12:42:31 +0000 (12:42 +0000)]
(fts_children): If opening `.' fails, set the fts_child
member to NULL before returning.  From NetBSD.

21 years ago*** empty log message ***
Jim Meyering [Fri, 28 Feb 2003 11:04:28 +0000 (11:04 +0000)]
*** empty log message ***

21 years ago(fts_children): If fchdir fails, close file descriptor
Jim Meyering [Fri, 28 Feb 2003 11:04:18 +0000 (11:04 +0000)]
(fts_children): If fchdir fails, close file descriptor
before returning.  From NetBSD.

21 years ago*** empty log message ***
Jim Meyering [Thu, 27 Feb 2003 21:05:59 +0000 (21:05 +0000)]
*** empty log message ***

21 years ago(jm_PREREQ_PHYSMEM): Also check for `table' function.
Jim Meyering [Thu, 27 Feb 2003 21:05:55 +0000 (21:05 +0000)]
(jm_PREREQ_PHYSMEM): Also check for `table' function.

21 years ago*** empty log message ***
Jim Meyering [Thu, 27 Feb 2003 20:21:24 +0000 (20:21 +0000)]
*** empty log message ***

21 years ago(physmem_total, physmem_available): Add comments.
Jim Meyering [Thu, 27 Feb 2003 20:21:21 +0000 (20:21 +0000)]
(physmem_total, physmem_available): Add comments.

21 years ago.
Jim Meyering [Thu, 27 Feb 2003 17:52:56 +0000 (17:52 +0000)]
.

21 years ago*** empty log message ***
Jim Meyering [Thu, 27 Feb 2003 17:52:41 +0000 (17:52 +0000)]
*** empty log message ***

21 years agoMerge in portability changes from gcc/libiberty
Jim Meyering [Thu, 27 Feb 2003 17:52:37 +0000 (17:52 +0000)]
Merge in portability changes from gcc/libiberty
to support AIX, Tru64, and Windows.  See the ChangeLog there
for credits and details.

21 years ago(gl_SYS__SYSTEM_CONFIGURATION): New function.
Jim Meyering [Thu, 27 Feb 2003 17:44:34 +0000 (17:44 +0000)]
(gl_SYS__SYSTEM_CONFIGURATION): New function.
(jm_PREREQ_PHYSMEM): Check for new headers and functions.
Use gl_SYS__SYSTEM_CONFIGURATION.

21 years ago*** empty log message ***
Jim Meyering [Wed, 26 Feb 2003 18:09:11 +0000 (18:09 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Wed, 26 Feb 2003 17:51:38 +0000 (17:51 +0000)]
*** empty log message ***

21 years agoDon't test du's -b option here. Directory byte
Jim Meyering [Wed, 26 Feb 2003 17:51:34 +0000 (17:51 +0000)]
Don't test du's -b option here.  Directory byte
counts are smaller (512 rather than 4096) on at least OSF/1 5.1
and IBM AIX 4.2.

21 years ago*** empty log message ***
Jim Meyering [Tue, 25 Feb 2003 19:14:12 +0000 (19:14 +0000)]
*** empty log message ***

21 years ago(announcement): Now that ChangeLog entries
Jim Meyering [Tue, 25 Feb 2003 19:14:04 +0000 (19:14 +0000)]
(announcement): Now that ChangeLog entries
are output by announce-gen, don't do it here.

21 years ago(print_changelog_deltas): New function.
Jim Meyering [Tue, 25 Feb 2003 19:13:08 +0000 (19:13 +0000)]
(print_changelog_deltas): New function.
(main): Use it.

21 years agofilter through cppi
Jim Meyering [Mon, 24 Feb 2003 10:09:19 +0000 (10:09 +0000)]
filter through cppi

21 years ago[__USE_FILE_OFFSET64]: Remove #error directive.
Jim Meyering [Mon, 24 Feb 2003 10:08:57 +0000 (10:08 +0000)]
[__USE_FILE_OFFSET64]: Remove #error directive.

21 years agoInclude <search.h>.
Jim Meyering [Mon, 24 Feb 2003 09:58:02 +0000 (09:58 +0000)]
Include <search.h>.
(struct known_object): Define.
(object_compare, add_object, find_object): New functions, like
those in ftw.c.
(fts_open): Initialize new member.
(fts_close): Free memory allocated for new member.
(fts_stat): Detect a cycle in O(logN) time per directory processed.

21 years ago*** empty log message ***
Jim Meyering [Mon, 24 Feb 2003 09:09:49 +0000 (09:09 +0000)]
*** empty log message ***

21 years ago[HAVE_CONFIG_H]: Include <config.h>.
Jim Meyering [Mon, 24 Feb 2003 09:09:42 +0000 (09:09 +0000)]
[HAVE_CONFIG_H]: Include <config.h>.
Conditionalize inclusion of <sys/param.h>.
Conditionalize inclusion of <include/sys/stat.h> vs <sys/stat.h>.
Include autoconf-recommended block of dirent/NAMELEN-related
definitions and includes.  Use NAMLEN throughout, rather than
_D_EXACT_NAMLEN.
[_LIBC] (close, closedir, fchdir, open, opendir): Define.
[_LIBC] (readdir, tdestroy, tfind, tsearch): Define.
Remove `__' prefix from all uses of the above.  This will help
to merge *BSD changes.
[!_LIBC] (internal_function): Define.
[! _LIBC && ! LSTAT_FOLLOWS_SLASHED_SYMLINK]: Define lstat.
(__set_errno): Define if not already defined.

21 years ago[struct FTS] (fts_dir_signatures): New, opaque member.
Jim Meyering [Mon, 24 Feb 2003 08:57:06 +0000 (08:57 +0000)]
[struct FTS] (fts_dir_signatures): New, opaque member.

21 years ago(fts_open): If fts_alloc returns NULL, don't dereference it.
Jim Meyering [Mon, 24 Feb 2003 08:27:59 +0000 (08:27 +0000)]
(fts_open): If fts_alloc returns NULL, don't dereference it.
(fts_read): If fts_safe_changedir fails because it is not
able to chdir into a subdirectory, then inform the caller.

21 years agovirgin copy from glibc
Jim Meyering [Mon, 24 Feb 2003 08:24:59 +0000 (08:24 +0000)]
virgin copy from glibc

21 years ago*** empty log message ***
Jim Meyering [Mon, 24 Feb 2003 08:24:52 +0000 (08:24 +0000)]
*** empty log message ***

21 years agodoh
Jim Meyering [Mon, 24 Feb 2003 08:24:48 +0000 (08:24 +0000)]
doh

21 years ago*** empty log message ***
Jim Meyering [Mon, 24 Feb 2003 08:21:39 +0000 (08:21 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Mon, 24 Feb 2003 08:21:21 +0000 (08:21 +0000)]
*** empty log message ***

21 years ago.
Jim Meyering [Sun, 23 Feb 2003 12:07:50 +0000 (12:07 +0000)]
.

21 years ago*** empty log message ***
Jim Meyering [Sat, 22 Feb 2003 16:52:51 +0000 (16:52 +0000)]
*** empty log message ***

21 years agoNew option: --release-type=TYPE
Jim Meyering [Sat, 22 Feb 2003 16:52:45 +0000 (16:52 +0000)]
New option: --release-type=TYPE

21 years ago(beta, major): New targets. Remove `release'.
Jim Meyering [Sat, 22 Feb 2003 16:52:36 +0000 (16:52 +0000)]
(beta, major): New targets.  Remove `release'.
Put them all together on a line.
Pass the release type (via RELEASE_TYPE envvar) to the MAKE
invocation of `announcement'.
(announcement): Invoke announce-gen with --release-type=$RELEASE_TYPE.

21 years ago(news-r1, news-r2): Remove now-unused definitions.
Jim Meyering [Sat, 22 Feb 2003 16:35:32 +0000 (16:35 +0000)]
(news-r1, news-r2): Remove now-unused definitions.

21 years agoadd comment
Jim Meyering [Sat, 22 Feb 2003 16:32:58 +0000 (16:32 +0000)]
add comment

21 years agotweak comments
Jim Meyering [Sat, 22 Feb 2003 16:31:12 +0000 (16:31 +0000)]
tweak comments

21 years agotweak comments
Jim Meyering [Sat, 22 Feb 2003 16:30:39 +0000 (16:30 +0000)]
tweak comments

21 years agoEscape dots in regexps for $curr_version and $prev_version.
Jim Meyering [Sat, 22 Feb 2003 16:30:28 +0000 (16:30 +0000)]
Escape dots in regexps for $curr_version and $prev_version.
Fail if we find no lines in NEWS.

21 years ago(announcement): Now that NEWS entries are
Jim Meyering [Sat, 22 Feb 2003 16:24:36 +0000 (16:24 +0000)]
(announcement): Now that NEWS entries are
extracted by announce-gen, don't do it here.

21 years agoNew option: --news=NEWS_FILE.
Jim Meyering [Sat, 22 Feb 2003 16:23:36 +0000 (16:23 +0000)]
New option: --news=NEWS_FILE.
Extract NEWS entries here, not ...

21 years ago*** empty log message ***
Jim Meyering [Sat, 22 Feb 2003 07:55:21 +0000 (07:55 +0000)]
*** empty log message ***

21 years agobump to 4.5.9
Jim Meyering [Sat, 22 Feb 2003 07:55:11 +0000 (07:55 +0000)]
bump to 4.5.9

21 years ago.
Jim Meyering [Fri, 21 Feb 2003 21:52:33 +0000 (21:52 +0000)]
.

21 years ago. COREUTILS-4_5_8 v4.5.8
Jim Meyering [Fri, 21 Feb 2003 21:37:12 +0000 (21:37 +0000)]
.

21 years ago*** empty log message ***
Jim Meyering [Fri, 21 Feb 2003 21:34:14 +0000 (21:34 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Fri, 21 Feb 2003 20:38:16 +0000 (20:38 +0000)]
*** empty log message ***

21 years agoMerge in changes from autoconf's version of this file.
Jim Meyering [Fri, 21 Feb 2003 20:38:10 +0000 (20:38 +0000)]
Merge in changes from autoconf's version of this file.

(www-gnu): Define.
(standards.texi-url_prefix): Use $(www-gnu).
(make-stds.texi-url_prefix): Likewise.

21 years ago*** empty log message ***
Jim Meyering [Fri, 21 Feb 2003 20:24:39 +0000 (20:24 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Fri, 21 Feb 2003 20:22:27 +0000 (20:22 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Fri, 21 Feb 2003 17:13:17 +0000 (17:13 +0000)]
*** empty log message ***

21 years agoUndefine HAVE_MMAP_STACK, thus disabling
Jim Meyering [Fri, 21 Feb 2003 17:13:09 +0000 (17:13 +0000)]
Undefine HAVE_MMAP_STACK, thus disabling
this code on all systems.

21 years ago.
Jim Meyering [Fri, 21 Feb 2003 12:27:57 +0000 (12:27 +0000)]
.

21 years ago*** empty log message ***
Jim Meyering [Fri, 21 Feb 2003 12:27:28 +0000 (12:27 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Fri, 21 Feb 2003 12:24:32 +0000 (12:24 +0000)]
*** empty log message ***

21 years ago(stat invocation): Describe %B.
Jim Meyering [Fri, 21 Feb 2003 12:24:12 +0000 (12:24 +0000)]
(stat invocation): Describe %B.

21 years ago(usage): Tweak wording of %B description.
Jim Meyering [Fri, 21 Feb 2003 12:23:48 +0000 (12:23 +0000)]
(usage): Tweak wording of %B description.

21 years ago*** empty log message ***
Jim Meyering [Fri, 21 Feb 2003 12:16:34 +0000 (12:16 +0000)]
*** empty log message ***

21 years agoMerge in some changes from GNU libc.
Jim Meyering [Fri, 21 Feb 2003 12:16:12 +0000 (12:16 +0000)]
Merge in some changes from GNU libc.
(md5_uintptr): Define.

21 years ago*** empty log message ***
Jim Meyering [Fri, 21 Feb 2003 11:14:39 +0000 (11:14 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Fri, 21 Feb 2003 11:12:53 +0000 (11:12 +0000)]
*** empty log message ***

21 years ago.
Jim Meyering [Fri, 21 Feb 2003 11:12:46 +0000 (11:12 +0000)]
.

21 years ago(TESTS): Add basic.
Jim Meyering [Fri, 21 Feb 2003 11:12:34 +0000 (11:12 +0000)]
(TESTS): Add basic.

21 years ago*** empty log message ***
Jim Meyering [Fri, 21 Feb 2003 10:41:34 +0000 (10:41 +0000)]
*** empty log message ***

21 years agoInclude "mmap-stack.h".
Jim Meyering [Fri, 21 Feb 2003 10:41:27 +0000 (10:41 +0000)]
Include "mmap-stack.h".
(main): Invoke `run' through a macro that (when possible) runs it
with a large, mmap'd stack.

21 years ago*** empty log message ***
Jim Meyering [Fri, 21 Feb 2003 10:23:21 +0000 (10:23 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Fri, 21 Feb 2003 10:22:29 +0000 (10:22 +0000)]
*** empty log message ***

21 years ago(run_on_mmaped_stack): Allocate 256MB, not 1GB
Jim Meyering [Fri, 21 Feb 2003 09:51:26 +0000 (09:51 +0000)]
(run_on_mmaped_stack): Allocate 256MB, not 1GB

21 years ago*** empty log message ***
Jim Meyering [Fri, 21 Feb 2003 08:34:41 +0000 (08:34 +0000)]
*** empty log message ***

21 years agoNew option: --apparent-size.
Jim Meyering [Fri, 21 Feb 2003 08:30:18 +0000 (08:30 +0000)]
New option: --apparent-size.
(enum) [APPARENT_SIZE_OPTION]: New member.
(long_options): Add it.
(usage): Describe it.
(main): Handle it.
['b']: Set apparent_size.

21 years ago*** empty log message ***
Jim Meyering [Fri, 21 Feb 2003 08:27:09 +0000 (08:27 +0000)]
*** empty log message ***

21 years ago(du invocation): Document --apparent-size.
Jim Meyering [Fri, 21 Feb 2003 08:25:59 +0000 (08:25 +0000)]
(du invocation): Document --apparent-size.
Adjust documentation of --bytes (-b).

21 years agouse printf, not echo
Jim Meyering [Fri, 21 Feb 2003 08:02:33 +0000 (08:02 +0000)]
use printf, not echo
test -b

21 years ago(apparent_size): New global.
Jim Meyering [Fri, 21 Feb 2003 07:47:06 +0000 (07:47 +0000)]
(apparent_size): New global.
(print_only_size): Reflect the fact that we're printing byte counts,
not ST_NBLOCKSIZE-byte-block counts.
(print_size): Call print_only_size rather than duplicating its code.
(process_file): Accumulate byte counts, rather than block counts.

21 years ago*** empty log message ***
Jim Meyering [Fri, 21 Feb 2003 07:15:54 +0000 (07:15 +0000)]
*** empty log message ***

21 years ago(process_file): Always reset size_to_propagate_to_parent for
Jim Meyering [Fri, 21 Feb 2003 07:15:16 +0000 (07:15 +0000)]
(process_file): Always reset size_to_propagate_to_parent for
--separate-dirs (-S).

21 years ago*** empty log message ***
Jim Meyering [Fri, 21 Feb 2003 07:06:38 +0000 (07:06 +0000)]
*** empty log message ***

21 years agoInclude <sys/types.h> before <dirent.h>.
Jim Meyering [Fri, 21 Feb 2003 07:06:33 +0000 (07:06 +0000)]
Include <sys/types.h> before <dirent.h>.
This is required for Apple Darwin 6.3 (MacOS 10.2.3).

21 years ago(process_file): Reorganize the code to use only
Jim Meyering [Thu, 20 Feb 2003 23:13:11 +0000 (23:13 +0000)]
(process_file): Reorganize the code to use only
one `sum' array, and change how -S works back to the way it was
before 2003-01-31.  Patch by Bruno Haible.

21 years ago*** empty log message ***
Jim Meyering [Thu, 20 Feb 2003 19:12:33 +0000 (19:12 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Jim Meyering [Thu, 20 Feb 2003 19:11:08 +0000 (19:11 +0000)]
*** empty log message ***

21 years ago(usage) [%b]: Refer to %B.
Jim Meyering [Thu, 20 Feb 2003 19:11:02 +0000 (19:11 +0000)]
(usage) [%b]: Refer to %B.

21 years ago(print_stat): New format: %B (to print ST_NBLOCKSIZE).
Jim Meyering [Thu, 20 Feb 2003 19:07:55 +0000 (19:07 +0000)]
(print_stat): New format: %B (to print ST_NBLOCKSIZE).
(usage): Describe it.

21 years ago.
Jim Meyering [Thu, 20 Feb 2003 19:05:38 +0000 (19:05 +0000)]
.

21 years ago*** empty log message ***
Jim Meyering [Thu, 20 Feb 2003 17:59:37 +0000 (17:59 +0000)]
*** empty log message ***

21 years agoAdd checks for the following:
Jim Meyering [Thu, 20 Feb 2003 17:58:45 +0000 (17:58 +0000)]
Add checks for the following:
BLOCK_SIZE, DU_BLOCK_SIZE, DF_BLOCK_SIZE, LS_BLOCK_SIZE.

21 years agoRename phony target envvar-check to evar-check
Jim Meyering [Thu, 20 Feb 2003 17:52:11 +0000 (17:52 +0000)]
Rename phony target envvar-check to evar-check
so as not to conflict with the distributed file by the same name.

21 years ago(process_file): Set info->skip before any possible return.
Jim Meyering [Thu, 20 Feb 2003 15:03:22 +0000 (15:03 +0000)]
(process_file): Set info->skip before any possible return.

Report correct usage for directories, not 0.
(process_file): Return for `file_type == FTW_DPRE'
_before_ recording the dev/ino of a directory.