platform/upstream/coreutils.git
22 years ago*** empty log message ***
Jim Meyering [Wed, 28 Nov 2001 06:57:33 +0000 (06:57 +0000)]
*** empty log message ***

22 years ago(quotearg_n, quotearg_n_style):
Jim Meyering [Wed, 28 Nov 2001 06:57:25 +0000 (06:57 +0000)]
(quotearg_n, quotearg_n_style):
First arg is int, not unsigned.

22 years ago(quotearg_n, quotearg_n_style): Likewise.
Jim Meyering [Wed, 28 Nov 2001 06:57:02 +0000 (06:57 +0000)]
(quotearg_n, quotearg_n_style): Likewise.
(SIZE_MAX, UINT_MAX): New macros.
(quotearg_n_options): Abort if N is negative.
Avoid overflow check on hosts where size_t is 64 bits and int
is 32 bits, as overflow is impossible there.
Fix off-by-one typo that caused unnecessary reallocation.

22 years agoMerge with version from libc.
Jim Meyering [Tue, 27 Nov 2001 21:34:15 +0000 (21:34 +0000)]
Merge with version from libc.

22 years ago*** empty log message ***
Jim Meyering [Tue, 27 Nov 2001 20:49:52 +0000 (20:49 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Tue, 27 Nov 2001 12:56:20 +0000 (12:56 +0000)]
*** empty log message ***

22 years agoInclude stdlib.h unconditionally. On some old systems for which
Jim Meyering [Tue, 27 Nov 2001 12:55:16 +0000 (12:55 +0000)]
Include stdlib.h unconditionally.  On some old systems for which
STDC_HEADERS is 0, it was not included, resulting in a warning
about an integer-to-pointer conversion problem with getenv.

22 years agoMerge with version from libc.
Jim Meyering [Tue, 27 Nov 2001 12:54:58 +0000 (12:54 +0000)]
Merge with version from libc.

22 years ago(libfetish_a_SOURCES): Remove gtod.h.
Jim Meyering [Tue, 27 Nov 2001 10:25:52 +0000 (10:25 +0000)]
(libfetish_a_SOURCES): Remove gtod.h.

22 years ago*** empty log message ***
Jim Meyering [Tue, 27 Nov 2001 10:22:43 +0000 (10:22 +0000)]
*** empty log message ***

22 years agoCompare all lines of output.
Jim Meyering [Tue, 27 Nov 2001 10:22:28 +0000 (10:22 +0000)]
Compare all lines of output.
Update code to use `trap' and more up to date infrastructure.

22 years ago*** empty log message ***
Jim Meyering [Tue, 27 Nov 2001 10:19:30 +0000 (10:19 +0000)]
*** empty log message ***

22 years agoThe change of 2001-11-01 introduced a bug whereby some recursive
Jim Meyering [Tue, 27 Nov 2001 10:19:24 +0000 (10:19 +0000)]
The change of 2001-11-01 introduced a bug whereby some recursive
listings didn't have a blank line between per-directory groups of files.

(print_dir): Print a newline before each directory name
except the first one, rather than after each except the last, since
now (after the changes of 2001-11-01) detecting whether a `pending*'
is the last would involve more work.  Reported by Andreas Schwab.

This change has no net effect.
(main): Remove always-true conjunct and add a comment.

22 years ago*** empty log message ***
Jim Meyering [Tue, 27 Nov 2001 10:16:18 +0000 (10:16 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Tue, 27 Nov 2001 07:50:35 +0000 (07:50 +0000)]
*** empty log message ***

22 years ago(SET_MODE) [O_BINARY]: Call setmode, not set_mode.
Jim Meyering [Tue, 27 Nov 2001 07:48:47 +0000 (07:48 +0000)]
(SET_MODE) [O_BINARY]: Call setmode, not set_mode.

22 years agoDon't include "gtod.h"
Jim Meyering [Mon, 26 Nov 2001 16:46:20 +0000 (16:46 +0000)]
Don't include "gtod.h"
(main): Don't `call' GETTIMEOFDAY_INIT.

22 years ago*** empty log message ***
Jim Meyering [Mon, 26 Nov 2001 12:31:12 +0000 (12:31 +0000)]
*** empty log message ***

22 years agoDon't include gtod.h.
Jim Meyering [Mon, 26 Nov 2001 12:29:43 +0000 (12:29 +0000)]
Don't include gtod.h.
(GTOD_init): Remove function.
(rpl_gettimeofday): Do its job here instead, rather than aborting.

22 years ago(cat): Don't test whether the full_write return value (of type size_t)
Jim Meyering [Mon, 26 Nov 2001 12:16:48 +0000 (12:16 +0000)]
(cat): Don't test whether the full_write return value (of type size_t)
is less than 0.  Reported by Nelson H. F. Beebe,
as a warning from Irix 6.5's C compiler.

22 years ago.
Jim Meyering [Mon, 26 Nov 2001 12:08:16 +0000 (12:08 +0000)]
.

22 years ago*** empty log message ***
Jim Meyering [Mon, 26 Nov 2001 11:04:49 +0000 (11:04 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Sun, 25 Nov 2001 14:47:06 +0000 (14:47 +0000)]
*** empty log message ***

22 years ago(usage): Indent --help and --version strings to start in the 7th column.
Jim Meyering [Sun, 25 Nov 2001 14:46:05 +0000 (14:46 +0000)]
(usage): Indent --help and --version strings to start in the 7th column.

22 years ago*** empty log message ***
Jim Meyering [Sun, 25 Nov 2001 14:37:40 +0000 (14:37 +0000)]
*** empty log message ***

22 years ago(usage): Indent --help and --version strings to start in the 7th column.
Jim Meyering [Sun, 25 Nov 2001 14:37:18 +0000 (14:37 +0000)]
(usage): Indent --help and --version strings to start in the 7th column.

22 years ago*** empty log message ***
Jim Meyering [Sat, 24 Nov 2001 10:00:54 +0000 (10:00 +0000)]
*** empty log message ***

22 years agoInclude signatures for the xdelta file, too.
Jim Meyering [Sat, 24 Nov 2001 10:00:30 +0000 (10:00 +0000)]
Include signatures for the xdelta file, too.

22 years ago(emit-upload-commands): Rename from emit-rsync-commands.
Jim Meyering [Sat, 24 Nov 2001 08:57:02 +0000 (08:57 +0000)]
(emit-upload-commands): Rename from emit-rsync-commands.
Output only the package name and the prev and current version numbers.

22 years ago*** empty log message ***
Jim Meyering [Sat, 24 Nov 2001 08:19:59 +0000 (08:19 +0000)]
*** empty log message ***

22 years ago. FILEUTILS-4_1_2
Jim Meyering [Sat, 24 Nov 2001 08:06:18 +0000 (08:06 +0000)]
.

22 years agonow generated
Jim Meyering [Sat, 24 Nov 2001 08:05:20 +0000 (08:05 +0000)]
now generated

22 years ago*** empty log message ***
Jim Meyering [Sat, 24 Nov 2001 08:01:50 +0000 (08:01 +0000)]
*** empty log message ***

22 years ago(usage): Make --help and --version strings start in column 7.
Jim Meyering [Sat, 24 Nov 2001 08:01:39 +0000 (08:01 +0000)]
(usage): Make --help and --version strings start in column 7.

22 years ago*** empty log message ***
Jim Meyering [Sat, 24 Nov 2001 07:14:11 +0000 (07:14 +0000)]
*** empty log message ***

22 years ago(move_if_change): Remove definition.
Jim Meyering [Sat, 24 Nov 2001 07:13:52 +0000 (07:13 +0000)]
(move_if_change): Remove definition.
($(srcdir)/m4/jm-glibc-io.m4): Use mv, not move-if-change.

22 years ago*** empty log message ***
Jim Meyering [Fri, 23 Nov 2001 20:32:51 +0000 (20:32 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Fri, 23 Nov 2001 20:32:29 +0000 (20:32 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Fri, 23 Nov 2001 20:31:29 +0000 (20:31 +0000)]
*** empty log message ***

22 years ago(usage): Note that ``Mandatory arguments to long options are mandatory
Jim Meyering [Fri, 23 Nov 2001 20:29:56 +0000 (20:29 +0000)]
(usage): Note that ``Mandatory arguments to long options are mandatory
for short options too.''

22 years ago*** empty log message ***
Jim Meyering [Fri, 23 Nov 2001 20:11:43 +0000 (20:11 +0000)]
*** empty log message ***

22 years ago(usage): Use `output', not `print' in description of
Jim Meyering [Fri, 23 Nov 2001 20:11:34 +0000 (20:11 +0000)]
(usage): Use `output', not `print' in description of
the --version option, so this message is consistent with all the rest.

22 years agoSplit usage strings so that --help and --version
Jim Meyering [Fri, 23 Nov 2001 20:10:25 +0000 (20:10 +0000)]
Split usage strings so that --help and --version
descriptions are alone in their own string.

22 years ago*** empty log message ***
Jim Meyering [Fri, 23 Nov 2001 20:03:52 +0000 (20:03 +0000)]
*** empty log message ***

22 years agoFactor out some common strings to make translation easier.
Jim Meyering [Fri, 23 Nov 2001 19:58:23 +0000 (19:58 +0000)]
Factor out some common strings to make translation easier.

Split usage strings so that --help and --version descriptions are alone
in their own string.
Likewise for the one that says:
  Mandatory arguments to long options are mandatory for short options too.

22 years ago(main): Don't split string in the middle of sentence.
Jim Meyering [Fri, 23 Nov 2001 18:45:32 +0000 (18:45 +0000)]
(main): Don't split string in the middle of sentence.

22 years ago(usage): Split --help output into smaller pieces.
Jim Meyering [Fri, 23 Nov 2001 15:41:16 +0000 (15:41 +0000)]
(usage): Split --help output into smaller pieces.
Use fputs, not printf.

22 years ago*** empty log message ***
Jim Meyering [Fri, 23 Nov 2001 08:11:49 +0000 (08:11 +0000)]
*** empty log message ***

22 years agoUse opaque type, Hash_table, not `struct hash_table'.
Jim Meyering [Fri, 23 Nov 2001 08:10:49 +0000 (08:10 +0000)]
Use opaque type, Hash_table, not `struct hash_table'.

22 years ago(struct hash_table): Don't define here. Merely declare it.
Jim Meyering [Fri, 23 Nov 2001 08:09:31 +0000 (08:09 +0000)]
(struct hash_table): Don't define here.  Merely declare it.

22 years ago(struct hash_table): Define it here instead.
Jim Meyering [Fri, 23 Nov 2001 08:09:14 +0000 (08:09 +0000)]
(struct hash_table): Define it here instead.

22 years ago*** empty log message ***
Jim Meyering [Thu, 22 Nov 2001 19:54:23 +0000 (19:54 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Thu, 22 Nov 2001 19:50:48 +0000 (19:50 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Thu, 22 Nov 2001 19:49:07 +0000 (19:49 +0000)]
*** empty log message ***

22 years ago(cp_option_init): Likewise.
Jim Meyering [Thu, 22 Nov 2001 19:49:01 +0000 (19:49 +0000)]
(cp_option_init): Likewise.
(do_copy): Call src_info_init.

22 years ago(cp_option_init): Initialize new member.
Jim Meyering [Thu, 22 Nov 2001 19:48:17 +0000 (19:48 +0000)]
(cp_option_init): Initialize new member.

22 years ago(struct cp_options) [src_info]: New member.
Jim Meyering [Thu, 22 Nov 2001 19:47:58 +0000 (19:47 +0000)]
(struct cp_options) [src_info]: New member.
(src_info_init): Declare.

22 years ago(triple_hash_no_name): New function.
Jim Meyering [Thu, 22 Nov 2001 19:45:27 +0000 (19:45 +0000)]
(triple_hash_no_name): New function.
(src_info_init): New function.
(copy_internal): Warn and return early for the second and subsequent
occurrences of the same source file named on the command line.

22 years ago.
Jim Meyering [Thu, 22 Nov 2001 15:58:06 +0000 (15:58 +0000)]
.

22 years ago*** empty log message ***
Jim Meyering [Thu, 22 Nov 2001 15:50:25 +0000 (15:50 +0000)]
*** empty log message ***

22 years agomore tests
Jim Meyering [Thu, 22 Nov 2001 15:49:32 +0000 (15:49 +0000)]
more tests

22 years ago*** empty log message ***
Jim Meyering [Thu, 22 Nov 2001 14:06:46 +0000 (14:06 +0000)]
*** empty log message ***

22 years ago(TESTS): Add dup-source.
Jim Meyering [Thu, 22 Nov 2001 14:06:31 +0000 (14:06 +0000)]
(TESTS): Add dup-source.

22 years ago*** empty log message ***
Jim Meyering [Thu, 22 Nov 2001 13:03:50 +0000 (13:03 +0000)]
*** empty log message ***

22 years ago(seen_file): Change type of `stats' parameter to pointer.
Jim Meyering [Thu, 22 Nov 2001 12:25:09 +0000 (12:25 +0000)]
(seen_file): Change type of `stats' parameter to pointer.
(copy_internal): Update caller.

22 years ago(struct F_triple): Rename from dest_info.
Jim Meyering [Thu, 22 Nov 2001 12:22:46 +0000 (12:22 +0000)]
(struct F_triple): Rename from dest_info.
(seen_file): Rename from seen_dest.  Rename parameters accordingly.
(record_file): Rename from record_dest.  Rename parameters accordingly.
(triple_hash): Rename from dest_info_hash.
(triple_compare): Rename from dest_info_compare.
(triple_free): Rename from dest_info_free.

22 years ago. TEXTUTILS-2_0_17
Jim Meyering [Thu, 22 Nov 2001 10:58:01 +0000 (10:58 +0000)]
.

22 years ago*** empty log message ***
Jim Meyering [Thu, 22 Nov 2001 10:57:42 +0000 (10:57 +0000)]
*** empty log message ***

22 years ago(main): Add a literal format string to suppress
Jim Meyering [Thu, 22 Nov 2001 10:57:27 +0000 (10:57 +0000)]
(main): Add a literal format string to suppress
a warning from gcc's -Wformat-security.

22 years ago*** empty log message ***
Jim Meyering [Thu, 22 Nov 2001 10:56:01 +0000 (10:56 +0000)]
*** empty log message ***

22 years ago(cp_option_init): Initialize new member.
Jim Meyering [Thu, 22 Nov 2001 10:55:40 +0000 (10:55 +0000)]
(cp_option_init): Initialize new member.
(do_copy): Remove const attribute from declaration of parameter, x.
dest_info_init now takes a parameter.

22 years ago(cp_option_init): Initialize new member.
Jim Meyering [Thu, 22 Nov 2001 10:54:31 +0000 (10:54 +0000)]
(cp_option_init): Initialize new member.
(main): dest_info_init now takes a parameter.

22 years ago(cp_option_init): Initialize new member.
Jim Meyering [Thu, 22 Nov 2001 10:54:05 +0000 (10:54 +0000)]
(cp_option_init): Initialize new member.
(main): dest_info_init now takes a parameter.

22 years agoInclude hash.h.
Jim Meyering [Thu, 22 Nov 2001 10:52:40 +0000 (10:52 +0000)]
Include hash.h.
(struct cp_options) [dest_info]: New member.

22 years agocopy.c shouldn't maintain static state.
Jim Meyering [Thu, 22 Nov 2001 10:52:15 +0000 (10:52 +0000)]
copy.c shouldn't maintain static state.

(dest_info): Remove declaration of file-scoped global.
(dest_info_init): Require a parameter.
Update all callers.
(seen_dest): Require a hash table parameter.  Update callers.
(record_dest): Likewise.

22 years agoBracket contents of file with #ifndef HASH_H_ ... #endif.
Jim Meyering [Thu, 22 Nov 2001 10:38:49 +0000 (10:38 +0000)]
Bracket contents of file with #ifndef HASH_H_ ... #endif.

22 years ago.
Jim Meyering [Thu, 22 Nov 2001 10:10:00 +0000 (10:10 +0000)]
.

22 years ago*** empty log message ***
Jim Meyering [Thu, 22 Nov 2001 10:09:13 +0000 (10:09 +0000)]
*** empty log message ***

22 years ago.
Jim Meyering [Thu, 22 Nov 2001 10:04:10 +0000 (10:04 +0000)]
.

22 years ago.
Jim Meyering [Thu, 22 Nov 2001 09:31:30 +0000 (09:31 +0000)]
.

22 years ago*** empty log message ***
Jim Meyering [Thu, 22 Nov 2001 09:05:26 +0000 (09:05 +0000)]
*** empty log message ***

22 years agocsplit could get a failed assertion: printf 'a\n\n'|csplit - '/^$/' 2
Jim Meyering [Thu, 22 Nov 2001 09:01:39 +0000 (09:01 +0000)]
csplit could get a failed assertion: printf 'a\n\n'|csplit - '/^$/' 2

No longer include assert.h.
(process_line_count): Remove invalid assertion.

22 years ago*** empty log message ***
Jim Meyering [Thu, 22 Nov 2001 09:00:52 +0000 (09:00 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Thu, 22 Nov 2001 08:50:58 +0000 (08:50 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Thu, 22 Nov 2001 08:46:23 +0000 (08:46 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Thu, 22 Nov 2001 08:44:49 +0000 (08:44 +0000)]
*** empty log message ***

22 years ago(TESTS): Add csplit.
Jim Meyering [Thu, 22 Nov 2001 08:40:37 +0000 (08:40 +0000)]
(TESTS): Add csplit.

22 years ago*** empty log message ***
Jim Meyering [Thu, 22 Nov 2001 08:20:49 +0000 (08:20 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Tue, 20 Nov 2001 10:38:47 +0000 (10:38 +0000)]
*** empty log message ***

22 years agoupdate comment to reflect that SunOS4, solaris2.5.1 lose, too.
Jim Meyering [Tue, 20 Nov 2001 10:37:24 +0000 (10:37 +0000)]
update comment to reflect that SunOS4, solaris2.5.1 lose, too.

22 years agoremove FIXME comment about duplicate code
Jim Meyering [Tue, 20 Nov 2001 09:53:33 +0000 (09:53 +0000)]
remove FIXME comment about duplicate code

22 years agoremove a harmless newline
Jim Meyering [Mon, 19 Nov 2001 13:33:50 +0000 (13:33 +0000)]
remove a harmless newline

22 years ago(Makefile): Depend on $(BUILT_SOURCES), so those
Jim Meyering [Mon, 19 Nov 2001 13:33:26 +0000 (13:33 +0000)]
(Makefile): Depend on $(BUILT_SOURCES), so those
files will be created before anything else.

22 years ago*** empty log message ***
Jim Meyering [Mon, 19 Nov 2001 13:32:29 +0000 (13:32 +0000)]
*** empty log message ***

22 years ago(mode_adjust): Fix error introduced on 1999-04-26
Jim Meyering [Mon, 19 Nov 2001 13:32:23 +0000 (13:32 +0000)]
(mode_adjust): Fix error introduced on 1999-04-26
that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
rather than group writable.  Patch by Juan F. Codagnone.

22 years ago*** empty log message ***
Jim Meyering [Mon, 19 Nov 2001 11:10:23 +0000 (11:10 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Mon, 19 Nov 2001 11:06:38 +0000 (11:06 +0000)]
*** empty log message ***

22 years ago(TMP_MAX): Remove; no longer needed.
Jim Meyering [Mon, 19 Nov 2001 11:06:32 +0000 (11:06 +0000)]
(TMP_MAX): Remove; no longer needed.
(TEMPORARIES): New macro.
(__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
removes an artificial limitation (e.g. HP-UX 10.20, where
TMP_MAX is 17576).

22 years ago*** empty log message ***
Jim Meyering [Mon, 19 Nov 2001 11:00:10 +0000 (11:00 +0000)]
*** empty log message ***

22 years ago(xlseek): New function.
Jim Meyering [Mon, 19 Nov 2001 10:59:56 +0000 (10:59 +0000)]
(xlseek): New function.
Call it instead of lseek, in most cases, so any failure is reported.