platform/upstream/coreutils.git
20 years agoUse backticks, not $().
Jim Meyering [Sat, 10 Jan 2004 10:10:12 +0000 (10:10 +0000)]
Use backticks, not $().

20 years ago.
Jim Meyering [Fri, 9 Jan 2004 21:49:58 +0000 (21:49 +0000)]
.

20 years ago*** empty log message ***
Jim Meyering [Fri, 9 Jan 2004 21:49:32 +0000 (21:49 +0000)]
*** empty log message ***

20 years ago(TESTS): Add expand.
Jim Meyering [Fri, 9 Jan 2004 21:49:28 +0000 (21:49 +0000)]
(TESTS): Add expand.

20 years ago.
Jim Meyering [Fri, 9 Jan 2004 21:48:52 +0000 (21:48 +0000)]
.

20 years agoQuote underquoted `jm_DUMMY_1' to avoid new warning.
Jim Meyering [Fri, 9 Jan 2004 21:48:23 +0000 (21:48 +0000)]
Quote underquoted `jm_DUMMY_1' to avoid new warning.

20 years ago*** empty log message ***
Jim Meyering [Fri, 9 Jan 2004 18:28:44 +0000 (18:28 +0000)]
*** empty log message ***

20 years ago.
Jim Meyering [Fri, 9 Jan 2004 18:27:12 +0000 (18:27 +0000)]
.

20 years ago*** empty log message ***
Jim Meyering [Fri, 9 Jan 2004 18:16:11 +0000 (18:16 +0000)]
*** empty log message ***

20 years ago(yes invocation): Document that a write error
Jim Meyering [Fri, 9 Jan 2004 18:15:58 +0000 (18:15 +0000)]
(yes invocation): Document that a write error
makes `yes' exit unsuccessfully.
(chroot invocation): Enumerate the meaning of exit status values.
(nice invocation): Likewise.
(Exit status) [@macro exitstatus]: New macro.
Use @exitstatus to describe the exit status of most programs.

20 years ago(du invocation): Mention that -H will eventually
Jim Meyering [Fri, 9 Jan 2004 16:21:51 +0000 (16:21 +0000)]
(du invocation): Mention that -H will eventually
mean not --si, but --dereference-args (-D).

20 years ago*** empty log message ***
Jim Meyering [Fri, 9 Jan 2004 16:16:32 +0000 (16:16 +0000)]
*** empty log message ***

20 years agoUse `bool' (not int) as the type for a few
Jim Meyering [Fri, 9 Jan 2004 16:05:36 +0000 (16:05 +0000)]
Use `bool' (not int) as the type for a few
global variables.
(collapse_escapes): Rewrite to set globals rather than modifying
its parameter.
Use size_t (not int) for all counters and related index variables.
(paste_parallel): Remove needless complexity of
using xrealloc in the loop;  just allocate the buffers up front.
Free the two temporary buffers.
Move declarations of locals `down' into scope where used.
(paste_serial): Remove `register' attributes.
(main): Simplify delim-related code.
Free `delims', now that it's malloc'd.

20 years ago*** empty log message ***
Jim Meyering [Thu, 8 Jan 2004 14:29:01 +0000 (14:29 +0000)]
*** empty log message ***

20 years ago(human_fstype): Use %lx, not %x format for `unsigned long'.
Jim Meyering [Thu, 8 Jan 2004 14:28:44 +0000 (14:28 +0000)]
(human_fstype): Use %lx, not %x format for `unsigned long'.

20 years ago*** empty log message ***
Jim Meyering [Thu, 8 Jan 2004 14:19:58 +0000 (14:19 +0000)]
*** empty log message ***

20 years ago(TESTS_ENVIRONMENT): Remove `/vg' (prerelease test
Jim Meyering [Thu, 8 Jan 2004 14:19:55 +0000 (14:19 +0000)]
(TESTS_ENVIRONMENT): Remove `/vg' (prerelease test
remnant) from PATH component.  That would cause tests in this directory
not to run the just-built binaries, but rather whatever happened
to be in one's PATH.  Reported by Christian Krackowizer.

20 years ago.
Jim Meyering [Tue, 6 Jan 2004 18:39:48 +0000 (18:39 +0000)]
.

20 years ago(add_temp_dir): Use x2nrealloc rather than xrealloc.
Jim Meyering [Sun, 4 Jan 2004 21:12:00 +0000 (21:12 +0000)]
(add_temp_dir): Use x2nrealloc rather than xrealloc.
(fillbuf): Use x2nrealloc rather than xrealloc.
(sort): Use xnmalloc rather than xmalloc.
(main): Likewise.

20 years ago(n_tabs_allocated): New global.
Jim Meyering [Sun, 4 Jan 2004 21:10:11 +0000 (21:10 +0000)]
(n_tabs_allocated): New global.
(add_tabstop): Use x2nrealloc rather than xrealloc.

20 years ago(n_tabs_allocated): New global.
Jim Meyering [Sun, 4 Jan 2004 21:09:30 +0000 (21:09 +0000)]
(n_tabs_allocated): New global.
(add_tabstop): Use x2nrealloc rather than xrealloc.

20 years ago(new_control_record): Use x2nrealloc rather than xrealloc.
Jim Meyering [Sun, 4 Jan 2004 21:08:47 +0000 (21:08 +0000)]
(new_control_record): Use x2nrealloc rather than xrealloc.

20 years ago(tee): Use xnmalloc rather than xmalloc.
Jim Meyering [Sun, 4 Jan 2004 21:07:40 +0000 (21:07 +0000)]
(tee): Use xnmalloc rather than xmalloc.

20 years ago(re_protect): Use ASSIGN_STRDUPA rather than alloca and strcpy.
Jim Meyering [Sun, 4 Jan 2004 21:07:16 +0000 (21:07 +0000)]
(re_protect): Use ASSIGN_STRDUPA rather than alloca and strcpy.
(make_path_private): Likewise.

20 years ago(copy_internal): Use ASSIGN_STRDUPA rather than alloca and strcpy.
Jim Meyering [Sun, 4 Jan 2004 21:04:27 +0000 (21:04 +0000)]
(copy_internal): Use ASSIGN_STRDUPA rather than alloca and strcpy.

20 years ago(main): Use memcpy, not strcpy.
Jim Meyering [Sun, 4 Jan 2004 21:00:49 +0000 (21:00 +0000)]
(main): Use memcpy, not strcpy.

20 years ago(main): Warn about following stdin.
Jim Meyering [Sun, 4 Jan 2004 21:00:22 +0000 (21:00 +0000)]
(main): Warn about following stdin.
Fail when following by name but no names are specified.

20 years ago(usage): Mention that, with its current meaning, -H is deprecated.
Jim Meyering [Sun, 4 Jan 2004 20:59:31 +0000 (20:59 +0000)]
(usage): Mention that, with its current meaning, -H is deprecated.

20 years agorevert last change
Jim Meyering [Sun, 4 Jan 2004 20:45:45 +0000 (20:45 +0000)]
revert last change

20 years agoInclude "exitfail.h".
Jim Meyering [Sun, 4 Jan 2004 20:30:00 +0000 (20:30 +0000)]
Include "exitfail.h".
(main): Set exit_failure.

20 years agoInclude "quote.h".
Jim Meyering [Sun, 4 Jan 2004 20:25:46 +0000 (20:25 +0000)]
Include "quote.h".
(CHROOT_FOUND_BUT_CANNOT_INVOKE, CHROOT_FAILURE): Define.
(main): Exit with status of 127, not 1, for too-few-args,
chroot failure, or chdir failure.
Give a better diagnostic upon execvp failure.

20 years ago(tv): Avoid obsolete -o usage.
Jim Meyering [Tue, 30 Dec 2003 08:49:53 +0000 (08:49 +0000)]
(tv): Avoid obsolete -o usage.

20 years agoInclude posixver.h.
Jim Meyering [Tue, 30 Dec 2003 08:26:58 +0000 (08:26 +0000)]
Include posixver.h.
(obsolete_usage): New var.
(longopts): Put obsolete options first.
(OBSOLETE_LONG_OPTIONS): New constant.
(get_option, add_file_name): New functions.
(main): Use them to support new behavior.
(usage): Remove documentation for -j1 FIELD and -j2 FIELD.
Do not mark -j FIELD as obsolescent; it is longstanding
UNIX tradition and is a valid extension to POSIX.

20 years ago*** empty log message ***
Jim Meyering [Tue, 30 Dec 2003 08:26:31 +0000 (08:26 +0000)]
*** empty log message ***

20 years ago(join invocation): Remove documentation
Jim Meyering [Tue, 30 Dec 2003 08:26:16 +0000 (08:26 +0000)]
(join invocation): Remove documentation
accordingly.  Document that -t makes all separators significant.

20 years agoremove trailing blank
Jim Meyering [Tue, 30 Dec 2003 08:24:41 +0000 (08:24 +0000)]
remove trailing blank

20 years ago(add_field_list): Don't use alloca with unbounded
Jim Meyering [Tue, 30 Dec 2003 08:24:26 +0000 (08:24 +0000)]
(add_field_list): Don't use alloca with unbounded
size; just modify the argument, which is no longer const *.

Various other minor cleanups, mostly to avoid the need for casts.

(extract_field): Renamed from ADD_FIELD, as it's now a function.

(struct field.beg): Now char *, not unsigned char const *.  All
uses changed.  It shouldn't be const since xmemcoll writes on its
arguments.
(extract_field): Likewise, for 2nd arg.
(keycmp): Remove now-unnecessary cast of xmemcoll args.

(is_blank): New function, to avoid need to cast arg to unsigned char.
(extract_field): Use it.

(xfields): Rewrite pretty much from scratch.

(hard_LC_COLLATE): Now bool, not int.
(get_line, getseq, add_field_list): Now returns bool, not int.
(decode_field_spec, add_field_list): Return true on success (not
false), for consistency with the rest of the code.  All uses changed.

(tab): Now char, not unsigned char.  This wasn't 100% necessary
but is slightly cleaner.
(prjoin): Hoist (tab ? tab : ' ') expression, to help the compiler.

(empty_filler): Now const *.

(make_blank): Remove; wasn't needed.  Remove all calls.
(main): Don't set uni_blank.nfields; zero is fine.

20 years agoInclude "quote.h".
Jim Meyering [Sat, 27 Dec 2003 14:36:26 +0000 (14:36 +0000)]
Include "quote.h".
(min, max): Remove definitions.
Make a few function parameters and corresponding
locals `const'.  Use bool for boolean variables.
Use size_t (not int) for all counters and related index variables.
(prjoin): Remove now-useless assertion.
(string_to_join_field): New function.
(main): Accept join fields as large as SIZE_MAX.
(keycmp): Rename `min' to MIN and max to MAX.

20 years ago*** empty log message ***
Jim Meyering [Sat, 27 Dec 2003 09:58:11 +0000 (09:58 +0000)]
*** empty log message ***

20 years ago.
Jim Meyering [Sat, 27 Dec 2003 09:55:48 +0000 (09:55 +0000)]
.

20 years ago*** empty log message ***
Jim Meyering [Sat, 27 Dec 2003 09:55:22 +0000 (09:55 +0000)]
*** empty log message ***

20 years agofold -s didn't work on e.g., alpha-based systems.
Jim Meyering [Sat, 27 Dec 2003 09:55:11 +0000 (09:55 +0000)]
fold -s didn't work on e.g., alpha-based systems.
* src/fold.c (fold_file): Adjust types (int->size_t) so that using
x2nrealloc works properly on systems with differing sizes for int
and size_t.  Reported by Nelson Beebe.

* src/fold.c: Use `bool' (not int) as the type for a few
global variables.

20 years ago*** empty log message ***
Jim Meyering [Wed, 24 Dec 2003 16:38:41 +0000 (16:38 +0000)]
*** empty log message ***

20 years ago(length_of_file_names_and_frills):
Jim Meyering [Wed, 24 Dec 2003 16:38:36 +0000 (16:38 +0000)]
(length_of_file_names_and_frills):
Remove forward decl; not needed.
(print_file_name_and_frills, length_of_file_name_and_frills):
With -m, don't output spaces before inum or size.
(print_with_commas): Don't output space just before newline.

20 years ago(TESTS): Add m-option.
Jim Meyering [Wed, 24 Dec 2003 16:37:38 +0000 (16:37 +0000)]
(TESTS): Add m-option.

20 years ago.
Jim Meyering [Wed, 24 Dec 2003 16:35:18 +0000 (16:35 +0000)]
.

20 years agobump to 5.1.1
Jim Meyering [Mon, 22 Dec 2003 15:36:43 +0000 (15:36 +0000)]
bump to 5.1.1

20 years ago.
Jim Meyering [Sun, 21 Dec 2003 08:40:30 +0000 (08:40 +0000)]
.

20 years ago. COREUTILS-5_1_0 v5.1.0
Jim Meyering [Sun, 21 Dec 2003 07:52:00 +0000 (07:52 +0000)]
.

20 years ago*** empty log message ***
Jim Meyering [Sun, 21 Dec 2003 07:51:37 +0000 (07:51 +0000)]
*** empty log message ***

20 years ago*** empty log message ***
Jim Meyering [Sun, 21 Dec 2003 07:51:23 +0000 (07:51 +0000)]
*** empty log message ***

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

20 years ago[!_LIBC]: Undefine, then define-away __P.
Jim Meyering [Sat, 20 Dec 2003 18:08:02 +0000 (18:08 +0000)]
[!_LIBC]: Undefine, then define-away __P.

20 years ago.
Jim Meyering [Sat, 20 Dec 2003 17:59:15 +0000 (17:59 +0000)]
.

20 years ago.
Jim Meyering [Sat, 20 Dec 2003 17:58:46 +0000 (17:58 +0000)]
.

20 years ago*** empty log message ***
Jim Meyering [Sat, 20 Dec 2003 17:57:35 +0000 (17:57 +0000)]
*** empty log message ***

20 years agoDon't require UTILS_SYS_OPEN_MAX.
Jim Meyering [Sat, 20 Dec 2003 17:57:30 +0000 (17:57 +0000)]
Don't require UTILS_SYS_OPEN_MAX.

20 years ago*** empty log message ***
Jim Meyering [Sat, 20 Dec 2003 17:55:18 +0000 (17:55 +0000)]
*** empty log message ***

20 years ago(UTILS_SYS_OPEN_MAX): Remove file. No longer used.
Jim Meyering [Sat, 20 Dec 2003 17:55:13 +0000 (17:55 +0000)]
(UTILS_SYS_OPEN_MAX): Remove file.  No longer used.

20 years ago*** empty log message ***
Jim Meyering [Sat, 20 Dec 2003 16:51:55 +0000 (16:51 +0000)]
*** empty log message ***

20 years ago(jm_LIB_CHECK): Do not set LIB_CRYPT to the
Jim Meyering [Sat, 20 Dec 2003 16:51:51 +0000 (16:51 +0000)]
(jm_LIB_CHECK): Do not set LIB_CRYPT to the
value, $ac_cv_search_crypt, if it's "none required".

20 years agoChange type of global, buff_allocated, to size_t.
Jim Meyering [Sat, 20 Dec 2003 16:44:12 +0000 (16:44 +0000)]
Change type of global, buff_allocated, to size_t.

20 years ago[struct seq]: Change types of members count and alloc
Jim Meyering [Sat, 20 Dec 2003 16:41:54 +0000 (16:41 +0000)]
[struct seq]: Change types of members count and alloc
from `int' to `size_t'.

20 years ago*** empty log message ***
Jim Meyering [Sat, 20 Dec 2003 16:36:04 +0000 (16:36 +0000)]
*** empty log message ***

20 years ago[!_LIBC]: Define __P.
Jim Meyering [Sat, 20 Dec 2003 16:35:59 +0000 (16:35 +0000)]
[!_LIBC]: Define __P.

20 years ago.
Jim Meyering [Sat, 20 Dec 2003 13:06:25 +0000 (13:06 +0000)]
.

20 years agoremove /vg
Jim Meyering [Sat, 20 Dec 2003 13:06:12 +0000 (13:06 +0000)]
remove /vg

20 years ago.
Jim Meyering [Sat, 20 Dec 2003 11:39:08 +0000 (11:39 +0000)]
.

20 years ago.
Jim Meyering [Sat, 20 Dec 2003 11:38:12 +0000 (11:38 +0000)]
.

20 years ago.
Jim Meyering [Sat, 20 Dec 2003 11:32:52 +0000 (11:32 +0000)]
.

20 years ago.
Jim Meyering [Sat, 20 Dec 2003 11:32:45 +0000 (11:32 +0000)]
.

20 years ago*** empty log message ***
Jim Meyering [Sat, 20 Dec 2003 11:32:38 +0000 (11:32 +0000)]
*** empty log message ***

20 years ago(root-hint): Tweak wording.
Jim Meyering [Sat, 20 Dec 2003 11:32:32 +0000 (11:32 +0000)]
(root-hint): Tweak wording.

20 years ago*** empty log message ***
Jim Meyering [Sat, 20 Dec 2003 11:30:55 +0000 (11:30 +0000)]
*** empty log message ***

20 years agoAccept new option (-0, --null) that makes it so each
Jim Meyering [Sat, 20 Dec 2003 11:29:30 +0000 (11:29 +0000)]
Accept new option (-0, --null) that makes it so each
output line is NUL-terminated rather than newline-terminated.

20 years ago(du invocation): Describe new option: -0, --null.
Jim Meyering [Sat, 20 Dec 2003 11:28:14 +0000 (11:28 +0000)]
(du invocation): Describe new option: -0, --null.

20 years ago*** empty log message ***
Jim Meyering [Sat, 20 Dec 2003 09:34:49 +0000 (09:34 +0000)]
*** empty log message ***

20 years agoNew test for the above.
Jim Meyering [Sat, 20 Dec 2003 09:34:25 +0000 (09:34 +0000)]
New test for the above.

20 years ago(TESTS): Add unblock-sync.
Jim Meyering [Sat, 20 Dec 2003 09:33:58 +0000 (09:33 +0000)]
(TESTS): Add unblock-sync.

20 years ago(apply_translations): Don't prohibit conv=unblock,sync.
Jim Meyering [Sat, 20 Dec 2003 09:23:19 +0000 (09:23 +0000)]
(apply_translations): Don't prohibit conv=unblock,sync.

20 years ago*** empty log message ***
Jim Meyering [Sat, 20 Dec 2003 09:23:08 +0000 (09:23 +0000)]
*** empty log message ***

20 years ago*** empty log message ***
Jim Meyering [Sat, 20 Dec 2003 09:21:17 +0000 (09:21 +0000)]
*** empty log message ***

20 years agoDuh. Fix last change.
Jim Meyering [Fri, 19 Dec 2003 22:30:14 +0000 (22:30 +0000)]
Duh.  Fix last change.

20 years ago*** empty log message ***
Jim Meyering [Fri, 19 Dec 2003 21:48:41 +0000 (21:48 +0000)]
*** empty log message ***

20 years ago(gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME if no library is required.
Jim Meyering [Fri, 19 Dec 2003 21:48:35 +0000 (21:48 +0000)]
(gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME if no library is required.

20 years ago*** empty log message ***
Jim Meyering [Fri, 19 Dec 2003 16:13:34 +0000 (16:13 +0000)]
*** empty log message ***

20 years agoDouble quote back-ticked expression,
Jim Meyering [Fri, 19 Dec 2003 16:13:28 +0000 (16:13 +0000)]
Double quote back-ticked expression,
in case it ends up having an unexpected value.

20 years ago*** empty log message ***
Jim Meyering [Fri, 19 Dec 2003 13:15:27 +0000 (13:15 +0000)]
*** empty log message ***

20 years agoUse ls's -1 option in both runs.
Jim Meyering [Fri, 19 Dec 2003 13:15:23 +0000 (13:15 +0000)]
Use ls's -1 option in both runs.

20 years ago*** empty log message ***
Jim Meyering [Fri, 19 Dec 2003 12:55:49 +0000 (12:55 +0000)]
*** empty log message ***

20 years ago.
Jim Meyering [Fri, 19 Dec 2003 12:53:40 +0000 (12:53 +0000)]
.

20 years ago*** empty log message ***
Jim Meyering [Fri, 19 Dec 2003 12:53:25 +0000 (12:53 +0000)]
*** empty log message ***

20 years ago(FTS_CROSS_CHECK, DEBUG_OPT): Define.
Jim Meyering [Fri, 19 Dec 2003 12:52:33 +0000 (12:52 +0000)]
(FTS_CROSS_CHECK, DEBUG_OPT): Define.
(main): Make fts use FTS_TIGHT_CYCLE_CHECK.
(main) [DU_DEBUG]: Accept -d option.

20 years agoDon't include <search.h>.
Jim Meyering [Fri, 19 Dec 2003 12:50:33 +0000 (12:50 +0000)]
Don't include <search.h>.
[HAVE_INTTYPES_H]: Include <inttypes.h>.
(tdestroy, tfind, tsearch): Remove definitions.
(struct Active_dir): Rename from `known_object'.
(AD_compare, AD_hash): New functions.
(enter_dir, leave_dir): Rewrite to manipulate a hash table
rather than a tree.
(fts_open): Initialize hash table or cycle_state buffer.
(free_node): Remove function.
(find_matching_ancestor): Renamed/rewritten from look_up_active_dir.
(fts_cross_check): Adapt to use new data structure.

20 years agoInclude hash.h and cycle-check.h.
Jim Meyering [Fri, 19 Dec 2003 12:40:05 +0000 (12:40 +0000)]
Include hash.h and cycle-check.h.
(FTS_TIGHT_CYCLE_CHECK): New value.
(FTS_OPTIONMASK): Adjust to include the new value.
(FTS_NAMEONLY, FTS_STOP): Increase to allow room for new value.
(struct FTS) [active_dir_ht]: New member.  Replaces fts_dir_signatures.
(struct FTS) [cycle_state]: New member.

20 years ago(libfetish_a_SOURCES): Remove search_.h.
Jim Meyering [Fri, 19 Dec 2003 12:34:35 +0000 (12:34 +0000)]
(libfetish_a_SOURCES): Remove search_.h.
(DISTCLEANFILES): Remove definition.

20 years agoRewrite cycle detection code to work properly.
Jim Meyering [Thu, 18 Dec 2003 21:11:11 +0000 (21:11 +0000)]
Rewrite cycle detection code to work properly.
Add some framework (compiled out by default) to test it.

(Dprintf, ENTER_DIR, LEAVE_DIR): Define.
(add_object): Remove function.  Rewritten as...
(enter_dir): New function.
(leave_dir, free_node): New functions.
(fts_read): Ensure that we call ENTER_DIR or LEAVE_DIR,
as appropriate, before returning.
(look_up_active_dir, fts_cross_check) [FTS_DEBUG]: New functions.
(fts_stat): Don't perform the cycle check here.
Now it's done via enter_dir.

20 years ago*** empty log message ***
Jim Meyering [Thu, 18 Dec 2003 17:15:47 +0000 (17:15 +0000)]
*** empty log message ***

20 years ago(format_user): Increment dired_pos via two statements,
Jim Meyering [Thu, 18 Dec 2003 17:15:38 +0000 (17:15 +0000)]
(format_user): Increment dired_pos via two statements,
`dired_pos += width; dired_pos++;' rather than one,
`dired_pos += width + 1;' since the latter could conceivably overflow.
(format_group): Likewise.

20 years ago*** empty log message ***
Jim Meyering [Thu, 18 Dec 2003 10:39:50 +0000 (10:39 +0000)]
*** empty log message ***