1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-08-18 17:39:22 +02:00
Commit Graph

17517 Commits

Author SHA1 Message Date
Jim Meyering e8df2048c8 . 2004-01-09 18:27:12 +00:00
Jim Meyering edb240b6f7 *** empty log message *** 2004-01-09 18:16:11 +00:00
Jim Meyering 67e588d2df (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.
2004-01-09 18:15:58 +00:00
Jim Meyering 3c0b7717ef (du invocation): Mention that -H will eventually
mean not --si, but --dereference-args (-D).
2004-01-09 16:21:51 +00:00
Jim Meyering 2da5fc253a *** empty log message *** 2004-01-09 16:16:32 +00:00
Jim Meyering 442a6ce1a3 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.
2004-01-09 16:05:36 +00:00
Jim Meyering a7edd79025 *** empty log message *** 2004-01-08 14:29:01 +00:00
Jim Meyering 02411d8bef (human_fstype): Use %lx, not %x format for `unsigned long'. 2004-01-08 14:28:44 +00:00
Jim Meyering 867ffc819b *** empty log message *** 2004-01-08 14:19:58 +00:00
Jim Meyering da5834c5d2 (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.
2004-01-08 14:19:55 +00:00
Jim Meyering 2e100fae31 . 2004-01-06 18:39:48 +00:00
Jim Meyering a6c6e57b71 (add_temp_dir): Use x2nrealloc rather than xrealloc.
(fillbuf): Use x2nrealloc rather than xrealloc.
(sort): Use xnmalloc rather than xmalloc.
(main): Likewise.
2004-01-04 21:12:00 +00:00
Jim Meyering cc52b7fc43 (n_tabs_allocated): New global.
(add_tabstop): Use x2nrealloc rather than xrealloc.
2004-01-04 21:10:11 +00:00
Jim Meyering 5ad984ecc0 (n_tabs_allocated): New global.
(add_tabstop): Use x2nrealloc rather than xrealloc.
2004-01-04 21:09:30 +00:00
Jim Meyering 986b0ecbdf (new_control_record): Use x2nrealloc rather than xrealloc. 2004-01-04 21:08:47 +00:00
Jim Meyering c34f3b9959 (tee): Use xnmalloc rather than xmalloc. 2004-01-04 21:07:40 +00:00
Jim Meyering 68eb5f3e0d (re_protect): Use ASSIGN_STRDUPA rather than alloca and strcpy.
(make_path_private): Likewise.
2004-01-04 21:07:16 +00:00
Jim Meyering 69ae5cff2a (copy_internal): Use ASSIGN_STRDUPA rather than alloca and strcpy. 2004-01-04 21:04:27 +00:00
Jim Meyering 45c0d30e1d (main): Use memcpy, not strcpy. 2004-01-04 21:00:49 +00:00
Jim Meyering ebca344370 (main): Warn about following stdin.
Fail when following by name but no names are specified.
2004-01-04 21:00:22 +00:00
Jim Meyering 5ff0d49b27 (usage): Mention that, with its current meaning, -H is deprecated. 2004-01-04 20:59:31 +00:00
Jim Meyering e8d314a5ec revert last change 2004-01-04 20:45:45 +00:00
Jim Meyering 81ba476a28 Include "exitfail.h".
(main): Set exit_failure.
2004-01-04 20:30:00 +00:00
Jim Meyering fd1e65f0a1 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.
2004-01-04 20:25:46 +00:00
Jim Meyering 1276aa43f3 (tv): Avoid obsolete -o usage. 2003-12-30 08:49:53 +00:00
Jim Meyering 9e72e463c0 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.
2003-12-30 08:26:58 +00:00
Jim Meyering db67525e9b *** empty log message *** 2003-12-30 08:26:31 +00:00
Jim Meyering 8e25ccda3c (join invocation): Remove documentation
accordingly.  Document that -t makes all separators significant.
2003-12-30 08:26:16 +00:00
Jim Meyering 621e3e07cd remove trailing blank 2003-12-30 08:24:41 +00:00
Jim Meyering f646cade60 (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.
2003-12-30 08:24:26 +00:00
Jim Meyering fdb08248b8 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.
2003-12-27 14:36:26 +00:00
Jim Meyering 064ca9ef3c *** empty log message *** 2003-12-27 09:58:11 +00:00
Jim Meyering 11ea239f36 . 2003-12-27 09:55:48 +00:00
Jim Meyering baf3556d8d *** empty log message *** 2003-12-27 09:55:22 +00:00
Jim Meyering 77962dd067 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.
2003-12-27 09:55:11 +00:00
Jim Meyering 74d143fd76 *** empty log message *** 2003-12-24 16:38:41 +00:00
Jim Meyering 80de43f488 (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.
2003-12-24 16:38:36 +00:00
Jim Meyering 6a40a6b266 (TESTS): Add m-option. 2003-12-24 16:37:38 +00:00
Jim Meyering 05bc7f6b3c . 2003-12-24 16:35:18 +00:00
Jim Meyering 4e9c25d0cc bump to 5.1.1 2003-12-22 15:36:43 +00:00
Jim Meyering 7c148bb672 . 2003-12-21 08:40:30 +00:00
Jim Meyering f2b9a50eb5 . COREUTILS-5_1_0 2003-12-21 07:52:00 +00:00
Jim Meyering 3289e8a8ec *** empty log message *** 2003-12-21 07:51:37 +00:00
Jim Meyering 5e9e6c75e7 *** empty log message *** 2003-12-21 07:51:23 +00:00
Jim Meyering c74f99c571 *** empty log message *** 2003-12-20 18:08:11 +00:00
Jim Meyering e164c2bbeb [!_LIBC]: Undefine, then define-away __P. 2003-12-20 18:08:02 +00:00
Jim Meyering deaf944ceb . 2003-12-20 17:59:15 +00:00
Jim Meyering 5a1305abb4 . 2003-12-20 17:58:46 +00:00
Jim Meyering 0ea4558007 *** empty log message *** 2003-12-20 17:57:35 +00:00
Jim Meyering c9e16ed123 Don't require UTILS_SYS_OPEN_MAX. 2003-12-20 17:57:30 +00:00