platform/upstream/coreutils.git
28 years agoExit with status EXIT_SUCCESS or EXIT_FAILURE, rather than 0 or 1.
Jim Meyering [Sun, 24 Mar 1996 14:58:01 +0000 (14:58 +0000)]
Exit with status EXIT_SUCCESS or EXIT_FAILURE, rather than 0 or 1.
This doesn't change `error (1' calls.

28 years ago.
Jim Meyering [Sun, 24 Mar 1996 05:15:00 +0000 (05:15 +0000)]
.

28 years ago.
Jim Meyering [Sun, 24 Mar 1996 02:31:39 +0000 (02:31 +0000)]
.

28 years ago.
Jim Meyering [Sun, 24 Mar 1996 02:26:30 +0000 (02:26 +0000)]
.

28 years ago[SORT_FAILURE]: New macro.
Jim Meyering [Sun, 24 Mar 1996 02:26:21 +0000 (02:26 +0000)]
[SORT_FAILURE]: New macro.
Be careful to exit with 1 only when -c is used and the
input is not properly sorted.  In all other cases, use
SORT_FAILURE as required by POSIX.
(main): Change some `error (1, ...' to use SORT_FAILURE.
Upon successful termination, exit with EXIT_SUCCESS instead of `0'.
Replace all uses of `2' (as exit code) with SORT_FAILURE.

28 years ago.
Jim Meyering [Sun, 24 Mar 1996 02:20:06 +0000 (02:20 +0000)]
.

28 years ago.
Jim Meyering [Sun, 24 Mar 1996 02:19:39 +0000 (02:19 +0000)]
.

28 years ago.
Jim Meyering [Sun, 24 Mar 1996 02:19:31 +0000 (02:19 +0000)]
.

28 years ago.
Jim Meyering [Fri, 22 Mar 1996 04:57:19 +0000 (04:57 +0000)]
.

28 years ago.
Jim Meyering [Fri, 22 Mar 1996 04:55:00 +0000 (04:55 +0000)]
.

28 years agoInclude assert.h, but disable assertions.
Jim Meyering [Fri, 22 Mar 1996 04:54:46 +0000 (04:54 +0000)]
Include assert.h, but disable assertions.
(process_line_count): Replace if-abort with a slightly relaxed
assertion.  Before, `echo |csplit - 1 1' would abort.
Reported by Samuli.Karkkainen@hut.fi.
(parse_patterns): Disallow uses like `csplit FILE 0' with zero
line number, `csplit FILE 2 1' with decreasing line numbers, and
warn about uses like `csplit FILE 3 3' that have equal line numbers.

28 years ago(main): Declare to be of type int, not void.
Jim Meyering [Thu, 21 Mar 1996 22:47:02 +0000 (22:47 +0000)]
(main): Declare to be of type int, not void.

28 years ago(main): Declare to be of type int, not void.
Jim Meyering [Thu, 21 Mar 1996 22:45:19 +0000 (22:45 +0000)]
(main): Declare to be of type int, not void.

28 years ago.
Jim Meyering [Thu, 21 Mar 1996 22:43:38 +0000 (22:43 +0000)]
.

28 years ago(main): Declare to be of type int, not void.
Jim Meyering [Thu, 21 Mar 1996 22:41:04 +0000 (22:41 +0000)]
(main): Declare to be of type int, not void.

28 years ago.
Jim Meyering [Thu, 21 Mar 1996 13:00:25 +0000 (13:00 +0000)]
.

28 years ago(main): Declare to return int, not void. From Peter Seebach
Jim Meyering [Thu, 21 Mar 1996 13:00:15 +0000 (13:00 +0000)]
(main): Declare to return int, not void.  From Peter Seebach
<seebs@taniemarie.solon.com>.

28 years ago.
Jim Meyering [Mon, 18 Mar 1996 05:52:07 +0000 (05:52 +0000)]
.

28 years ago.
Jim Meyering [Sat, 16 Mar 1996 22:37:33 +0000 (22:37 +0000)]
.

28 years agoDon't include version.h.
Jim Meyering [Sat, 16 Mar 1996 22:30:54 +0000 (22:30 +0000)]
Don't include version.h.
(main): Use PACKAGE_VERSION instead of version_string.

28 years ago.
Jim Meyering [Sat, 16 Mar 1996 16:54:48 +0000 (16:54 +0000)]
.

28 years agoDon't include version.h.
Jim Meyering [Sat, 16 Mar 1996 16:49:28 +0000 (16:49 +0000)]
Don't include version.h.
(main): Use PACKAGE_VERSION instead of version_string.

28 years agoChange @VERSION@ to @PKG_VERSION@.
Jim Meyering [Sat, 16 Mar 1996 16:41:36 +0000 (16:41 +0000)]
Change @VERSION@ to @PKG_VERSION@.

28 years ago.
Jim Meyering [Sat, 16 Mar 1996 16:14:50 +0000 (16:14 +0000)]
.

28 years agoDon't include version.h.
Jim Meyering [Sat, 16 Mar 1996 16:14:26 +0000 (16:14 +0000)]
Don't include version.h.
(main): Use PACKAGE_VERSION instead of version_string.

28 years ago.
Jim Meyering [Sat, 16 Mar 1996 05:44:09 +0000 (05:44 +0000)]
.

28 years ago(read_utmp): Declare n_read to be of type size_t rather than int.
Jim Meyering [Sat, 16 Mar 1996 05:44:02 +0000 (05:44 +0000)]
(read_utmp): Declare n_read to be of type size_t rather than int.

28 years ago(validate_path): Cast path_max to size_t before
Jim Meyering [Sat, 16 Mar 1996 05:43:24 +0000 (05:43 +0000)]
(validate_path): Cast path_max to size_t before
comparing with strlen(path).

28 years agoRemove __P-protected prototype for basename.
Jim Meyering [Sat, 16 Mar 1996 05:42:53 +0000 (05:42 +0000)]
Remove __P-protected prototype for basename.
Reported by François Pinard.
(remove_suffix): Move to precede use.  Remove prototype.
Declare formal parameter SUFFIX to be const.

28 years ago.
Jim Meyering [Thu, 14 Mar 1996 05:21:43 +0000 (05:21 +0000)]
.

28 years agoadd ## comment on first line
Jim Meyering [Thu, 14 Mar 1996 05:15:16 +0000 (05:15 +0000)]
add ## comment on first line

28 years ago(EXTRA_DIST): Renamed form DIST_OTHER.
Jim Meyering [Thu, 14 Mar 1996 05:05:22 +0000 (05:05 +0000)]
(EXTRA_DIST): Renamed form DIST_OTHER.

28 years ago.
Jim Meyering [Thu, 14 Mar 1996 04:52:29 +0000 (04:52 +0000)]
.

28 years ago. TEXTUTILS-1_14a
Jim Meyering [Wed, 13 Mar 1996 05:24:33 +0000 (05:24 +0000)]
.

28 years ago. SH-UTILS-1_12d
Jim Meyering [Wed, 13 Mar 1996 05:13:52 +0000 (05:13 +0000)]
.

28 years ago(main): Initialize for internationalized message support:
Jim Meyering [Tue, 12 Mar 1996 23:49:29 +0000 (23:49 +0000)]
(main): Initialize for internationalized message support:
call setlocale, bindtextdomain, and textdomain.

28 years ago.
Jim Meyering [Tue, 12 Mar 1996 04:20:57 +0000 (04:20 +0000)]
.

28 years ago. FILEUTILS-3_12j
Jim Meyering [Tue, 12 Mar 1996 04:14:47 +0000 (04:14 +0000)]
.

28 years ago[_]: Don't define this away.
Jim Meyering [Tue, 12 Mar 1996 04:02:07 +0000 (04:02 +0000)]
[_]: Don't define this away.

28 years ago.
Jim Meyering [Tue, 12 Mar 1996 04:01:04 +0000 (04:01 +0000)]
.

28 years ago(max_backup_version): Declare file_name_length to be of type size_t.
Jim Meyering [Tue, 12 Mar 1996 03:58:25 +0000 (03:58 +0000)]
(max_backup_version): Declare file_name_length to be of type size_t.

28 years ago.
Jim Meyering [Tue, 12 Mar 1996 03:35:21 +0000 (03:35 +0000)]
.

28 years ago.
Jim Meyering [Tue, 12 Mar 1996 03:29:57 +0000 (03:29 +0000)]
.

28 years ago(main): Initialize for internationalized message support: call setlocale,
Jim Meyering [Tue, 12 Mar 1996 03:08:30 +0000 (03:08 +0000)]
(main): Initialize for internationalized message support: call setlocale,
bindtextdomain, and textdomain.

28 years agoAdd definitions and includes for NLS.
Jim Meyering [Tue, 12 Mar 1996 03:06:47 +0000 (03:06 +0000)]
Add definitions and includes for NLS.

28 years ago.
Jim Meyering [Mon, 11 Mar 1996 22:07:30 +0000 (22:07 +0000)]
.

28 years ago(write_bytes): Renamed from xfwrite.
Jim Meyering [Mon, 11 Mar 1996 22:07:21 +0000 (22:07 +0000)]
(write_bytes): Renamed from xfwrite.
Remove SIZE parameter.  It was always 1.
Update all callers.
Rename NELEM parameter to N_BYTES and change its type to size_t.

28 years agoMerge changes from FSF.
Jim Meyering [Sun, 10 Mar 1996 05:00:20 +0000 (05:00 +0000)]
Merge changes from FSF.

28 years ago.
Jim Meyering [Sat, 9 Mar 1996 20:26:12 +0000 (20:26 +0000)]
.

28 years ago(star_digits_closebracket): Declare formal param, IDX, and local I to
Jim Meyering [Sat, 9 Mar 1996 20:25:29 +0000 (20:25 +0000)]
(star_digits_closebracket): Declare formal param, IDX, and local I to
be of type size_t (rather than int) to avoid warnings from gcc -Wall.

28 years ago(memcasecmp): Declare local I to be unsigned to avoid warning from gcc -Wall.
Jim Meyering [Sat, 9 Mar 1996 20:24:01 +0000 (20:24 +0000)]
(memcasecmp): Declare local I to be unsigned to avoid warning from gcc -Wall.

28 years ago(main): Initialize for internationalized message support: call setlocale,
Jim Meyering [Sat, 9 Mar 1996 20:19:13 +0000 (20:19 +0000)]
(main): Initialize for internationalized message support: call setlocale,
bindtextdomain, and textdomain.

28 years ago.
Jim Meyering [Sat, 9 Mar 1996 20:17:53 +0000 (20:17 +0000)]
.

28 years agoUse /usr/bin/perl.
Jim Meyering [Sat, 9 Mar 1996 17:53:59 +0000 (17:53 +0000)]
Use /usr/bin/perl.
Remove unused $test.

28 years agoChange some more " to '.
Jim Meyering [Sat, 9 Mar 1996 17:53:18 +0000 (17:53 +0000)]
Change some more " to '.

28 years agoFix for perl5 (there were % inside double-quoted strings).
Jim Meyering [Sat, 9 Mar 1996 17:50:59 +0000 (17:50 +0000)]
Fix for perl5 (there were % inside double-quoted strings).
Change a lot of "" to ''.

28 years ago(copy): Comment change to avoid overwriting source with backup.
Jim Meyering [Sat, 9 Mar 1996 04:59:22 +0000 (04:59 +0000)]
(copy): Comment change to avoid overwriting source with backup.

28 years ago.
Jim Meyering [Fri, 8 Mar 1996 02:26:21 +0000 (02:26 +0000)]
.

28 years ago(main): Tell read_filesystem_list that it should determine file system type
Jim Meyering [Fri, 8 Mar 1996 02:25:40 +0000 (02:25 +0000)]
(main): Tell read_filesystem_list that it should determine file system type
when the user specifies --print-type or -T.  From Michael Rendell
<michael@cs.mun.ca>

28 years ago(print_entry): Use STRUCT_UTMP, not `struct utmp'.
Jim Meyering [Thu, 7 Mar 1996 03:41:22 +0000 (03:41 +0000)]
(print_entry): Use STRUCT_UTMP, not `struct utmp'.

28 years ago.
Jim Meyering [Thu, 7 Mar 1996 03:41:11 +0000 (03:41 +0000)]
.

28 years ago.
Jim Meyering [Wed, 6 Mar 1996 05:13:10 +0000 (05:13 +0000)]
.

28 years ago.
Jim Meyering [Wed, 6 Mar 1996 05:10:30 +0000 (05:10 +0000)]
.

28 years ago(usage): Reorder --time and --help so --help is the latter (just
Jim Meyering [Wed, 6 Mar 1996 05:04:05 +0000 (05:04 +0000)]
(usage): Reorder --time and --help so --help is the latter (just
before --version) to be consistent with other usage functions.

28 years ago(RelativeMonth): Add 1900 to the year so that relative date specs
Jim Meyering [Wed, 6 Mar 1996 04:57:01 +0000 (04:57 +0000)]
(RelativeMonth): Add 1900 to the year so that relative date specs
that push the year through the end of the century work.  For example,
`date -d "01/01/1998 3 years" +%Y' now prints 2001.
From Peter Dalgaard (pd@kubism.ku.dk).

28 years ago.
Jim Meyering [Wed, 6 Mar 1996 04:50:26 +0000 (04:50 +0000)]
.

28 years ago.
Jim Meyering [Tue, 5 Mar 1996 05:47:09 +0000 (05:47 +0000)]
.

28 years ago(main): Exit after processing --version.
Jim Meyering [Tue, 5 Mar 1996 05:47:04 +0000 (05:47 +0000)]
(main): Exit after processing --version.

28 years ago.
Jim Meyering [Sat, 2 Mar 1996 05:46:23 +0000 (05:46 +0000)]
.

28 years ago(WINDOWS_SETFILEMODE_BINARY): New macro.
Jim Meyering [Sat, 2 Mar 1996 05:45:45 +0000 (05:45 +0000)]
(WINDOWS_SETFILEMODE_BINARY): New macro.
(skip) [_WIN32 && _O_BINARY]: Use it.
(read_char): Likewise.
(read_block): Likewise.
Based on changes by Gary Newman <gnewman@shore.net>.

28 years agoDocument sort -z. From eichin@cygnus.com.
Jim Meyering [Sat, 2 Mar 1996 03:42:56 +0000 (03:42 +0000)]
Document sort -z.  From eichin@cygnus.com.

28 years ago.
Jim Meyering [Sat, 2 Mar 1996 03:00:54 +0000 (03:00 +0000)]
.

28 years ago(docolon): Don't use deceptively-named RE_SYNTAX_POSIX_BASIC -- it recognizes
Jim Meyering [Sat, 2 Mar 1996 02:45:20 +0000 (02:45 +0000)]
(docolon): Don't use deceptively-named RE_SYNTAX_POSIX_BASIC -- it recognizes
non-BRE \?, \+, and \|.  Instead, use RE_SYNTAX_POSIX_MINIMAL_BASIC.

28 years ago.
Jim Meyering [Thu, 29 Feb 1996 05:19:24 +0000 (05:19 +0000)]
.

28 years ago.
Jim Meyering [Thu, 29 Feb 1996 05:10:23 +0000 (05:10 +0000)]
.

28 years ago.
Jim Meyering [Thu, 29 Feb 1996 05:09:45 +0000 (05:09 +0000)]
.

28 years ago.
Jim Meyering [Thu, 29 Feb 1996 05:09:32 +0000 (05:09 +0000)]
.

28 years agoGeneral cleanup. Use xstrtoul, not atoi.
Jim Meyering [Thu, 29 Feb 1996 05:07:34 +0000 (05:07 +0000)]
General cleanup.  Use xstrtoul, not atoi.
Change output format.  Allow inputs as large as ULONG_MAX.
Allow more than one command line argument.

28 years ago.
Jim Meyering [Thu, 29 Feb 1996 03:08:29 +0000 (03:08 +0000)]
.

28 years ago.
Jim Meyering [Thu, 29 Feb 1996 03:06:42 +0000 (03:06 +0000)]
.

28 years ago(wrapf) [!__STDC__]: Indent by one space the first line of the pre-ANSI
Jim Meyering [Thu, 29 Feb 1996 03:06:10 +0000 (03:06 +0000)]
(wrapf) [!__STDC__]: Indent by one space the first line of the pre-ANSI
function definition so ansi2knr doesn't munge it.

28 years ago.
Jim Meyering [Thu, 29 Feb 1996 02:55:04 +0000 (02:55 +0000)]
.

28 years ago.
Jim Meyering [Thu, 29 Feb 1996 02:53:42 +0000 (02:53 +0000)]
.

28 years ago(eval6): Cast strlen to int to avoid warning from gcc -Wall.
Jim Meyering [Thu, 29 Feb 1996 02:53:37 +0000 (02:53 +0000)]
(eval6): Cast strlen to int to avoid warning from gcc -Wall.

28 years ago.
Jim Meyering [Thu, 29 Feb 1996 02:33:57 +0000 (02:33 +0000)]
.

28 years ago.
Jim Meyering [Thu, 29 Feb 1996 02:27:43 +0000 (02:27 +0000)]
.

28 years agoUse @sc{} around POSIX and POSIX.2.
Jim Meyering [Thu, 29 Feb 1996 02:14:16 +0000 (02:14 +0000)]
Use @sc{} around POSIX and POSIX.2.

28 years ago.
Jim Meyering [Wed, 28 Feb 1996 05:14:04 +0000 (05:14 +0000)]
.

28 years ago.
Jim Meyering [Wed, 28 Feb 1996 05:11:50 +0000 (05:11 +0000)]
.

28 years agoAdapt for automake-0.30.
Jim Meyering [Wed, 28 Feb 1996 05:10:05 +0000 (05:10 +0000)]
Adapt for automake-0.30.
(noinst_HEADERS): Rename from HEADERS.

28 years ago.
Jim Meyering [Wed, 28 Feb 1996 05:05:21 +0000 (05:05 +0000)]
.

28 years agoRevert last change. Comment didn't add anything.
Jim Meyering [Tue, 27 Feb 1996 03:57:49 +0000 (03:57 +0000)]
Revert last change.  Comment didn't add anything.

28 years agoElaborate comment.
Jim Meyering [Tue, 27 Feb 1996 03:33:23 +0000 (03:33 +0000)]
Elaborate comment.

28 years ago(copy): Remove bogus (now that we're using full_write) increment of w_partial.
Jim Meyering [Tue, 27 Feb 1996 03:24:31 +0000 (03:24 +0000)]
(copy): Remove bogus (now that we're using full_write) increment of w_partial.
Change sense of the tests (though they're equivalent) that check
the value returned by full_write. making it clearer where errno
is valid.  full_write always writes the full amount or fails.

28 years ago.
Jim Meyering [Tue, 27 Feb 1996 03:24:07 +0000 (03:24 +0000)]
.

28 years ago.
Jim Meyering [Mon, 26 Feb 1996 04:20:07 +0000 (04:20 +0000)]
.

28 years ago.
Jim Meyering [Sun, 25 Feb 1996 12:55:48 +0000 (12:55 +0000)]
.

28 years ago(batch_convert): Put `' around filename in error in case it's empty.
Jim Meyering [Sun, 25 Feb 1996 05:31:26 +0000 (05:31 +0000)]
(batch_convert): Put `' around filename in error in case it's empty.

28 years agoUnprotoize.
Jim Meyering [Sat, 24 Feb 1996 18:30:46 +0000 (18:30 +0000)]
Unprotoize.

28 years ago.
Jim Meyering [Sat, 24 Feb 1996 18:29:11 +0000 (18:29 +0000)]
.