platform/upstream/coreutils.git
20 years ago(decode_format_string): Remove unnecessary casts.
Jim Meyering [Tue, 4 Nov 2003 09:27:19 +0000 (09:27 +0000)]
(decode_format_string): Remove unnecessary casts.
Use more maintainable `sizeof *var'.
(main): Call decode_format_string rather than decode_one_format,
now that `spec' may be NULL.

20 years ago(decode_format_string, dump_strings): Use x2nrealloc rather than xrealloc.
Jim Meyering [Tue, 4 Nov 2003 06:32:51 +0000 (06:32 +0000)]
(decode_format_string, dump_strings): Use x2nrealloc rather than xrealloc.

20 years ago(ADD_RANGE_PAIR): Use x2nrealloc rather than xrealloc,
Jim Meyering [Tue, 4 Nov 2003 06:28:01 +0000 (06:28 +0000)]
(ADD_RANGE_PAIR): Use x2nrealloc rather than xrealloc,
to avoid potential overflow in pointer arithmetic.
(set_fields): Use not `1', but rather `sizeof *printable_field' as
second argument to xcalloc.

20 years ago(next_file_name): Use `sizeof *var' rather than
Jim Meyering [Tue, 4 Nov 2003 06:25:45 +0000 (06:25 +0000)]
(next_file_name): Use `sizeof *var' rather than
hard-coding `sizeof size_t'.

20 years ago(AUTHORS): Add my name.
Jim Meyering [Tue, 4 Nov 2003 06:21:03 +0000 (06:21 +0000)]
(AUTHORS): Add my name.

20 years ago(main): Use `sizeof *var' rather than `sizeof EXPLICIT_TYPE'.
Jim Meyering [Tue, 4 Nov 2003 06:13:55 +0000 (06:13 +0000)]
(main): Use `sizeof *var' rather than `sizeof EXPLICIT_TYPE'.
The former is more maintainable and usually shorter.

20 years ago(initseq, add_field, make_blank): Use `sizeof *var' rather
Jim Meyering [Tue, 4 Nov 2003 06:07:01 +0000 (06:07 +0000)]
(initseq, add_field, make_blank): Use `sizeof *var' rather
than `sizeof EXPLICIT_TYPE'.
The former is more maintainable and usually shorter.

20 years ago*** empty log message ***
Jim Meyering [Mon, 3 Nov 2003 16:11:14 +0000 (16:11 +0000)]
*** empty log message ***

20 years ago(TESTS_ENVIRONMENT): Define PACKAGE_VERSION.
Jim Meyering [Mon, 3 Nov 2003 16:11:06 +0000 (16:11 +0000)]
(TESTS_ENVIRONMENT): Define PACKAGE_VERSION.

20 years agoFail the test immediately if we're not running
Jim Meyering [Mon, 3 Nov 2003 16:10:58 +0000 (16:10 +0000)]
Fail the test immediately if we're not running
the expected version of fold.

20 years ago.
Jim Meyering [Mon, 3 Nov 2003 15:08:50 +0000 (15:08 +0000)]
.

20 years agowrap long copyright line
Jim Meyering [Mon, 3 Nov 2003 14:57:41 +0000 (14:57 +0000)]
wrap long copyright line

20 years ago.
Jim Meyering [Mon, 3 Nov 2003 12:42:58 +0000 (12:42 +0000)]
.

20 years ago*** empty log message ***
Jim Meyering [Sun, 2 Nov 2003 20:39:40 +0000 (20:39 +0000)]
*** empty log message ***

20 years ago(alloc_and_compile_regex, main): Use `sizeof *var' rather
Jim Meyering [Sun, 2 Nov 2003 20:39:26 +0000 (20:39 +0000)]
(alloc_and_compile_regex, main): Use `sizeof *var' rather
than `sizeof EXPLICIT_TYPE'.
The former is more maintainable and usually shorter.

20 years ago(new_item, record_relation): Use `sizeof *var' rather
Jim Meyering [Sun, 2 Nov 2003 20:24:14 +0000 (20:24 +0000)]
(new_item, record_relation): Use `sizeof *var' rather
than `sizeof EXPLICIT_TYPE'.
The former is more maintainable and usually shorter.

20 years ago(add_fs_type, add_excluded_fs_type, main): Use `sizeof *var' rather
Jim Meyering [Sun, 2 Nov 2003 20:22:54 +0000 (20:22 +0000)]
(add_fs_type, add_excluded_fs_type, main): Use `sizeof *var' rather
than `sizeof EXPLICIT_TYPE'.
The former is more maintainable and usually shorter.
(main): Also remove anachronistic cast of xmalloc return value.

20 years ago(make_path_private): Use `sizeof *var' rather than `sizeof EXPLICIT_TYPE'.
Jim Meyering [Sun, 2 Nov 2003 20:17:46 +0000 (20:17 +0000)]
(make_path_private): Use `sizeof *var' rather than `sizeof EXPLICIT_TYPE'.
The former is more maintainable and usually shorter.

20 years ago(copy_internal): Use `sizeof *var' rather than `sizeof EXPLICIT_TYPE'.
Jim Meyering [Sun, 2 Nov 2003 20:17:04 +0000 (20:17 +0000)]
(copy_internal): Use `sizeof *var' rather than `sizeof EXPLICIT_TYPE'.
The former is more maintainable and usually shorter.

20 years ago(inittables): Use `sizeof *var' rather than `sizeof EXPLICIT_TYPE'.
Jim Meyering [Sun, 2 Nov 2003 20:16:19 +0000 (20:16 +0000)]
(inittables): Use `sizeof *var' rather than `sizeof EXPLICIT_TYPE'.
The former is more maintainable and usually shorter.
(sort): Split a long line.

20 years ago*** empty log message ***
Jim Meyering [Sun, 2 Nov 2003 19:54:01 +0000 (19:54 +0000)]
*** empty log message ***

20 years ago(append_normal_char, append_range, append_char_class)
Jim Meyering [Sun, 2 Nov 2003 19:50:48 +0000 (19:50 +0000)]
(append_normal_char, append_range, append_char_class)
(append_repeated_char, append_equiv_class, spec_init): Use more maintainable
and usually-shorter `sizeof *var' rather than `sizeof EXPLICIT_TYPE'.

20 years ago*** empty log message ***
Jim Meyering [Sat, 1 Nov 2003 08:54:59 +0000 (08:54 +0000)]
*** empty log message ***

20 years ago(SIZE_MAX): Define if not defined already.
Jim Meyering [Sat, 1 Nov 2003 08:54:54 +0000 (08:54 +0000)]
(SIZE_MAX): Define if not defined already.
(read_filesystem_list): Set and use me_type_malloced.
Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
whatever the type happens to be), for brevity and consistency.
Check for size calculation overflow on Alphas running OSF/1.

20 years ago(struct mount_entry.me_type_malloced): New member.
Jim Meyering [Sat, 1 Nov 2003 08:54:35 +0000 (08:54 +0000)]
(struct mount_entry.me_type_malloced): New member.

20 years ago*** empty log message ***
Jim Meyering [Fri, 31 Oct 2003 14:07:10 +0000 (14:07 +0000)]
*** empty log message ***

20 years ago*** empty log message ***
Jim Meyering [Fri, 31 Oct 2003 14:06:04 +0000 (14:06 +0000)]
*** empty log message ***

20 years agoInclude "xalloc.h".
Jim Meyering [Fri, 31 Oct 2003 14:05:55 +0000 (14:05 +0000)]
Include "xalloc.h".

20 years ago*** empty log message ***
Jim Meyering [Fri, 31 Oct 2003 14:04:40 +0000 (14:04 +0000)]
*** empty log message ***

20 years agoUpdate from gnulib.
Jim Meyering [Fri, 31 Oct 2003 14:00:18 +0000 (14:00 +0000)]
Update from gnulib.

20 years ago*** empty log message ***
Jim Meyering [Fri, 31 Oct 2003 13:50:17 +0000 (13:50 +0000)]
*** empty log message ***

20 years agoInclude <string.h> for declaration of memset.
Jim Meyering [Fri, 31 Oct 2003 13:50:11 +0000 (13:50 +0000)]
Include <string.h> for declaration of memset.

20 years ago*** empty log message ***
Jim Meyering [Fri, 31 Oct 2003 13:48:19 +0000 (13:48 +0000)]
*** empty log message ***

20 years agoUpdate from gnulib.
Jim Meyering [Fri, 31 Oct 2003 13:48:07 +0000 (13:48 +0000)]
Update from gnulib.

20 years ago*** empty log message ***
Jim Meyering [Fri, 31 Oct 2003 13:47:27 +0000 (13:47 +0000)]
*** empty log message ***

20 years agoUpdate from gnulib.
Jim Meyering [Fri, 31 Oct 2003 13:47:11 +0000 (13:47 +0000)]
Update from gnulib.

20 years ago*** empty log message ***
Jim Meyering [Fri, 31 Oct 2003 13:46:37 +0000 (13:46 +0000)]
*** empty log message ***

20 years agoUpdate from gnulib.
Jim Meyering [Fri, 31 Oct 2003 13:46:26 +0000 (13:46 +0000)]
Update from gnulib.

20 years ago*** empty log message ***
Jim Meyering [Fri, 31 Oct 2003 13:44:41 +0000 (13:44 +0000)]
*** empty log message ***

20 years agoUpdate from gnulib.
Jim Meyering [Fri, 31 Oct 2003 13:44:24 +0000 (13:44 +0000)]
Update from gnulib.

20 years agoUpdate from gnulib.
Jim Meyering [Fri, 31 Oct 2003 13:43:55 +0000 (13:43 +0000)]
Update from gnulib.

20 years agoUpdate from gnulib.
Jim Meyering [Fri, 31 Oct 2003 13:42:15 +0000 (13:42 +0000)]
Update from gnulib.

20 years agoUpdate from gnulib.
Jim Meyering [Fri, 31 Oct 2003 13:41:44 +0000 (13:41 +0000)]
Update from gnulib.

20 years agofrom gnulib -- merely increment serial number
Jim Meyering [Fri, 31 Oct 2003 13:41:08 +0000 (13:41 +0000)]
from gnulib -- merely increment serial number

20 years agoUpdate from gnulib.
Jim Meyering [Fri, 31 Oct 2003 13:39:58 +0000 (13:39 +0000)]
Update from gnulib.

20 years ago*** empty log message ***
Jim Meyering [Sat, 25 Oct 2003 15:34:12 +0000 (15:34 +0000)]
*** empty log message ***

20 years ago(triple_hash, triple_hash_no_name): Adjust to reflect
Jim Meyering [Sat, 25 Oct 2003 15:34:01 +0000 (15:34 +0000)]
(triple_hash, triple_hash_no_name): Adjust to reflect
type changes (unsigned int -> size_t) in hash.c.

20 years ago(src_to_dest_hash): Adjust to reflect
Jim Meyering [Sat, 25 Oct 2003 15:33:43 +0000 (15:33 +0000)]
(src_to_dest_hash): Adjust to reflect
type changes (unsigned int -> size_t) in hash.c.

20 years ago(hash_int): Adjust to reflect
Jim Meyering [Sat, 25 Oct 2003 15:33:28 +0000 (15:33 +0000)]
(hash_int): Adjust to reflect
type changes (unsigned int -> size_t) in hash.c.

20 years ago(entry_hash): Adjust to reflect
Jim Meyering [Sat, 25 Oct 2003 15:33:05 +0000 (15:33 +0000)]
(entry_hash): Adjust to reflect
type changes (unsigned int -> size_t) in hash.c.

20 years ago(dev_ino_hash): Adjust to reflect
Jim Meyering [Sat, 25 Oct 2003 15:32:07 +0000 (15:32 +0000)]
(dev_ino_hash): Adjust to reflect
type changes (unsigned int -> size_t) in hash.c.

20 years ago*** empty log message ***
Jim Meyering [Sat, 25 Oct 2003 15:31:02 +0000 (15:31 +0000)]
*** empty log message ***

20 years agoUpdate from gnulib.
Jim Meyering [Sat, 25 Oct 2003 15:29:56 +0000 (15:29 +0000)]
Update from gnulib.

20 years ago*** empty log message ***
Jim Meyering [Sat, 25 Oct 2003 15:28:42 +0000 (15:28 +0000)]
*** empty log message ***

20 years agoUpdate from gnulib, plus filter through cppi.
Jim Meyering [Sat, 25 Oct 2003 15:28:09 +0000 (15:28 +0000)]
Update from gnulib, plus filter through cppi.

20 years agoUpdate from gnulib.
Jim Meyering [Sat, 25 Oct 2003 15:27:19 +0000 (15:27 +0000)]
Update from gnulib.

20 years ago*** empty log message ***
Jim Meyering [Sat, 25 Oct 2003 15:24:12 +0000 (15:24 +0000)]
*** empty log message ***

20 years agoInclude <features.h> only if _LIBC.
Jim Meyering [Sat, 25 Oct 2003 15:24:07 +0000 (15:24 +0000)]
Include <features.h> only if _LIBC.
[!_LIBC]: Define-away __THROW, __BEGIN_DECLS, __END_DECLS.

20 years ago*** empty log message ***
Jim Meyering [Tue, 21 Oct 2003 16:07:51 +0000 (16:07 +0000)]
*** empty log message ***

20 years agoDon't fail when run with VERBOSE=yes.
Jim Meyering [Tue, 21 Oct 2003 16:07:47 +0000 (16:07 +0000)]
Don't fail when run with VERBOSE=yes.

Do `set +x' before starting the subshell
from which we invoke chgrp.  Otherwise, the output from the
VERBOSE=yes-induced `set -x' would result in spurious differences.

20 years ago*** empty log message ***
Jim Meyering [Mon, 20 Oct 2003 08:59:16 +0000 (08:59 +0000)]
*** empty log message ***

20 years ago.
Jim Meyering [Sun, 19 Oct 2003 20:59:11 +0000 (20:59 +0000)]
.

20 years ago(vasnprintf): Work around losing snprintf on e.g. HPUX 10.20.
Jim Meyering [Sun, 19 Oct 2003 20:59:02 +0000 (20:59 +0000)]
(vasnprintf): Work around losing snprintf on e.g. HPUX 10.20.

20 years agotweak diagnostic
Jim Meyering [Sun, 19 Oct 2003 19:11:00 +0000 (19:11 +0000)]
tweak diagnostic

20 years ago*** empty log message ***
Jim Meyering [Sun, 19 Oct 2003 19:04:41 +0000 (19:04 +0000)]
*** empty log message ***

20 years ago*** empty log message ***
Jim Meyering [Sun, 19 Oct 2003 18:54:48 +0000 (18:54 +0000)]
*** empty log message ***

20 years ago*** empty log message ***
Jim Meyering [Sun, 19 Oct 2003 18:54:16 +0000 (18:54 +0000)]
*** empty log message ***

20 years agochmod now uses fts to perform a directory traversal when -R is
Jim Meyering [Sun, 19 Oct 2003 18:54:10 +0000 (18:54 +0000)]
chmod now uses fts to perform a directory traversal when -R is
specified.  Before, it operated on full path names, and as such
would encounter the PATH_MAX (often 4096) limit.

Include "xfts.h".
(process_file): Rename from change_file_mode.
Adapt to be used with fts.
(process_files): New function.

20 years ago*** empty log message ***
Jim Meyering [Sat, 18 Oct 2003 13:09:51 +0000 (13:09 +0000)]
*** empty log message ***

20 years agoEnsure that du -D now dereferences all
Jim Meyering [Sat, 18 Oct 2003 13:09:45 +0000 (13:09 +0000)]
Ensure that du -D now dereferences all
symlinks specified on the command line, not just those that
reference directories.

20 years ago.
Jim Meyering [Sat, 18 Oct 2003 10:10:50 +0000 (10:10 +0000)]
.

20 years ago*** empty log message ***
Jim Meyering [Sat, 18 Oct 2003 10:07:07 +0000 (10:07 +0000)]
*** empty log message ***

20 years agoMost .c files (AUTHORS): Revert the WRITTEN_BY/AUTHORS change
Jim Meyering [Sat, 18 Oct 2003 10:05:47 +0000 (10:05 +0000)]
Most .c files (AUTHORS): Revert the WRITTEN_BY/AUTHORS change
of 2003-09-19.  Now, AUTHORS is a comma-separated list of strings.
Update the call to parse_long_options so that `AUTHORS, NULL' are the
last parameters.

* src/true.c (main): Append NULL to version_etc argument list.
* src/sys2.h (case_GETOPT_VERSION_CHAR): Likewise.

20 years ago.
Jim Meyering [Sat, 18 Oct 2003 10:05:08 +0000 (10:05 +0000)]
.

20 years agotweak diagnostic to match actual output
Jim Meyering [Sat, 18 Oct 2003 08:41:56 +0000 (08:41 +0000)]
tweak diagnostic to match actual output

20 years ago*** empty log message ***
Jim Meyering [Sat, 18 Oct 2003 08:11:26 +0000 (08:11 +0000)]
*** empty log message ***

20 years ago(parse_long_options): Change prototype: the authors
Jim Meyering [Sat, 18 Oct 2003 08:11:19 +0000 (08:11 +0000)]
(parse_long_options): Change prototype: the authors
string is moved to the end and becomes variadic.

20 years agoInclude stdarg.h.
Jim Meyering [Sat, 18 Oct 2003 08:11:09 +0000 (08:11 +0000)]
Include stdarg.h.
(parse_long_options): Make this function variadic, too.
Call version_etc_va, not version_etc.

20 years agoInclude stdarg.h, stdlib.h.
Jim Meyering [Sat, 18 Oct 2003 08:10:55 +0000 (08:10 +0000)]
Include stdarg.h, stdlib.h.
(version_etc_copyright): Declare as readonly.
(version_etc_va): New function. Provide a different translatable string
for each possible number of authors < 10. Abbreviate when there are 10
authors or more.
(version_etc): Make this function variadic. Call version_etc_va.

20 years agoInclude stdarg.h.
Jim Meyering [Sat, 18 Oct 2003 08:10:31 +0000 (08:10 +0000)]
Include stdarg.h.
(version_etc_copyright): Declare as readonly.
(version_etc): Make this function variadic with a NULL-terminated list
of author name strings.
(version_etc_va): New declaration.

20 years agoregenerate
Jim Meyering [Sat, 18 Oct 2003 06:41:17 +0000 (06:41 +0000)]
regenerate

20 years ago.
Jim Meyering [Sat, 18 Oct 2003 06:40:58 +0000 (06:40 +0000)]
.

20 years ago*** empty log message ***
Jim Meyering [Sat, 18 Oct 2003 06:40:32 +0000 (06:40 +0000)]
*** empty log message ***

20 years ago($(srcdir)/$x-tests): Pass $(srcdir) as first argument of mk-script.
Jim Meyering [Sat, 18 Oct 2003 06:39:04 +0000 (06:39 +0000)]
($(srcdir)/$x-tests): Pass $(srcdir) as first argument of mk-script.
($(srcdir)/Makefile.am): Likewise.  Prepend $(srcdir) to target.

20 years agoGet $srcdir from first parameter instead of hardcoding it.
Jim Meyering [Sat, 18 Oct 2003 06:38:31 +0000 (06:38 +0000)]
Get $srcdir from first parameter instead of hardcoding it.
(main): Update usage.

20 years ago*** empty log message ***
Jim Meyering [Sat, 18 Oct 2003 05:04:39 +0000 (05:04 +0000)]
*** empty log message ***

20 years ago(usage): Tweak descriptions of -i and -f so that the
Jim Meyering [Sat, 18 Oct 2003 05:04:29 +0000 (05:04 +0000)]
(usage): Tweak descriptions of -i and -f so that the
generated `man' page is more readable.  Suggestion from Dan Jacobson.

20 years ago.
Jim Meyering [Fri, 17 Oct 2003 13:50:12 +0000 (13:50 +0000)]
.

20 years ago.
Jim Meyering [Fri, 17 Oct 2003 13:49:05 +0000 (13:49 +0000)]
.

20 years ago*** empty log message ***
Jim Meyering [Fri, 17 Oct 2003 13:45:28 +0000 (13:45 +0000)]
*** empty log message ***

20 years agoAdd lib/xfts.c.
Jim Meyering [Fri, 17 Oct 2003 13:45:25 +0000 (13:45 +0000)]
Add lib/xfts.c.

20 years ago*** empty log message ***
Jim Meyering [Fri, 17 Oct 2003 13:41:24 +0000 (13:41 +0000)]
*** empty log message ***

20 years ago*** empty log message ***
Jim Meyering [Fri, 17 Oct 2003 13:41:11 +0000 (13:41 +0000)]
*** empty log message ***

20 years ago*** empty log message ***
Jim Meyering [Fri, 17 Oct 2003 13:37:31 +0000 (13:37 +0000)]
*** empty log message ***

20 years ago(change_file_owner): Handle the cases in
Jim Meyering [Fri, 17 Oct 2003 13:37:23 +0000 (13:37 +0000)]
(change_file_owner): Handle the cases in
which fts_info indicates an error with the given entry.

20 years ago(main): Simply assign to bit_flags.
Jim Meyering [Fri, 17 Oct 2003 13:34:46 +0000 (13:34 +0000)]
(main): Simply assign to bit_flags.
Don't bother with bit arithmetic.

20 years ago.
Jim Meyering [Fri, 17 Oct 2003 13:33:23 +0000 (13:33 +0000)]
.

20 years ago*** empty log message ***
Jim Meyering [Fri, 17 Oct 2003 13:31:36 +0000 (13:31 +0000)]
*** empty log message ***

20 years ago(TESTS): Add no-x.
Jim Meyering [Fri, 17 Oct 2003 13:31:26 +0000 (13:31 +0000)]
(TESTS): Add no-x.

20 years ago(TESTS): Add no-x.
Jim Meyering [Fri, 17 Oct 2003 13:29:01 +0000 (13:29 +0000)]
(TESTS): Add no-x.