platform/upstream/coreutils.git
29 years ago(main): Use memset, not bzero.
Jim Meyering [Sat, 28 Jan 1995 13:06:29 +0000 (13:06 +0000)]
(main): Use memset, not bzero.
(line_bytes_split): Use memmove instead of bcopy.

29 years ago(checkfp, mergefps): Use memcpy instead of bcopy.
Jim Meyering [Sat, 28 Jan 1995 13:04:27 +0000 (13:04 +0000)]
(checkfp, mergefps): Use memcpy instead of bcopy.
(fillbuf): Use memmove instead of bcopy.

29 years ago(decode_format_string): Use memmove instead of bcopy.
Jim Meyering [Sat, 28 Jan 1995 13:02:44 +0000 (13:02 +0000)]
(decode_format_string): Use memmove instead of bcopy.
[EQUAL_BLOCKS]: Use memcmp, not bcmp.
(dump): Use memset, not bzero.

29 years ago(fold_file): Use memmove instead of bcopy.
Jim Meyering [Sat, 28 Jan 1995 13:00:10 +0000 (13:00 +0000)]
(fold_file): Use memmove instead of bcopy.

29 years ago.
Jim Meyering [Sat, 28 Jan 1995 04:58:03 +0000 (04:58 +0000)]
.

29 years ago(isopen, isclose, isperiod): Use strchr, not index.
Jim Meyering [Sat, 28 Jan 1995 04:57:45 +0000 (04:57 +0000)]
(isopen, isclose, isperiod): Use strchr, not index.
(flush_paragraph): Use memmove instead of bcopy.

29 years ago(load_buffer): Use memcpy rather than bcopy.
Jim Meyering [Sat, 28 Jan 1995 04:47:03 +0000 (04:47 +0000)]
(load_buffer): Use memcpy rather than bcopy.

29 years ago(cat): Use memmove rather than bcopy.
Jim Meyering [Sat, 28 Jan 1995 04:45:19 +0000 (04:45 +0000)]
(cat): Use memmove rather than bcopy.

29 years ago.
Jim Meyering [Fri, 27 Jan 1995 19:32:16 +0000 (19:32 +0000)]
.

29 years ago(get_fs_usage, statfs): Use safe_read, and safe_stat rather than
Jim Meyering [Fri, 27 Jan 1995 17:20:54 +0000 (17:20 +0000)]
(get_fs_usage, statfs): Use safe_read, and safe_stat rather than
bare read and stat.

29 years agoDeclare errno if it's not defined.
Jim Meyering [Fri, 27 Jan 1995 17:16:56 +0000 (17:16 +0000)]
Declare errno if it's not defined.
Rename SAFE_STAT to safe_stat.

29 years agoDeclare errno if it's not defined.
Jim Meyering [Fri, 27 Jan 1995 17:16:19 +0000 (17:16 +0000)]
Declare errno if it's not defined.

29 years ago(DEFS): Remove -Dlint.
Jim Meyering [Fri, 27 Jan 1995 17:09:18 +0000 (17:09 +0000)]
(DEFS): Remove -Dlint.
(DISTFILES): Add error.h.

29 years agoRename SAFE_STAT to safe_stat.
Jim Meyering [Fri, 27 Jan 1995 17:07:36 +0000 (17:07 +0000)]
Rename SAFE_STAT to safe_stat.

29 years agoRename SAFE_STAT to safe_stat.
Jim Meyering [Fri, 27 Jan 1995 17:05:42 +0000 (17:05 +0000)]
Rename SAFE_STAT to safe_stat.

29 years agoRename SAFE_STAT to safe_stat.
Jim Meyering [Fri, 27 Jan 1995 17:05:11 +0000 (17:05 +0000)]
Rename SAFE_STAT to safe_stat.

29 years agoRename SAFE_STAT and SAFE_LSTAT to lower case names.
Jim Meyering [Fri, 27 Jan 1995 17:03:21 +0000 (17:03 +0000)]
Rename SAFE_STAT and SAFE_LSTAT to lower case names.

29 years ago.
Jim Meyering [Fri, 27 Jan 1995 15:35:17 +0000 (15:35 +0000)]
.

29 years ago(basename): Use strrchr, not rindex.
Jim Meyering [Fri, 27 Jan 1995 15:23:48 +0000 (15:23 +0000)]
(basename): Use strrchr, not rindex.
[!STDC_HEADERS && !HAVE_STRING_H]: Define strrchr to rindex.

29 years ago.
Jim Meyering [Fri, 27 Jan 1995 15:01:25 +0000 (15:01 +0000)]
.

29 years ago.
Jim Meyering [Fri, 27 Jan 1995 15:00:54 +0000 (15:00 +0000)]
.

29 years ago.
Jim Meyering [Fri, 27 Jan 1995 14:41:51 +0000 (14:41 +0000)]
.

29 years ago.
Jim Meyering [Fri, 27 Jan 1995 05:39:25 +0000 (05:39 +0000)]
.

29 years ago.
Jim Meyering [Fri, 27 Jan 1995 05:37:03 +0000 (05:37 +0000)]
.

29 years agoRemove/rewrite some comments.
Jim Meyering [Fri, 27 Jan 1995 05:36:14 +0000 (05:36 +0000)]
Remove/rewrite some comments.

29 years ago.
Jim Meyering [Fri, 27 Jan 1995 05:22:23 +0000 (05:22 +0000)]
.

29 years ago.
Jim Meyering [Wed, 25 Jan 1995 04:32:58 +0000 (04:32 +0000)]
.

29 years ago* fmt.c (copy_rest): Replace `||' with `&&'. Before, a paragraph
Jim Meyering [Wed, 25 Jan 1995 04:32:15 +0000 (04:32 +0000)]
* fmt.c (copy_rest): Replace `||' with `&&'.  Before, a paragraph
not followed by a newline would be followed by data copied from
uninitialized storage.  Repeat by `printf abc|fmt|od -ac'.
Reported by Franc,ois Pinard.

29 years agoRename macros with FP_ prefix. Use FLOAT_ instead.
Jim Meyering [Wed, 25 Jan 1995 04:19:46 +0000 (04:19 +0000)]
Rename macros with FP_ prefix.  Use FLOAT_ instead.
AIX-2.2.1 declares a typedef, FP_DOUBLE, that conflicted.
Be careful to use off_t instead of explicit `unsigned long'.
Otherwise, systems like 4.4BSD lose on calls to fseek that
expect off_t (which is long long on that system).
(parse_old_offset): Use xstrtoul
(main): Likewise.

29 years agoDon't use `legal' when you mean `valid'.
Jim Meyering [Tue, 17 Jan 1995 13:57:22 +0000 (13:57 +0000)]
Don't use `legal' when you mean `valid'.

29 years agoFix typo: seperator -> separator.
Jim Meyering [Thu, 12 Jan 1995 05:03:08 +0000 (05:03 +0000)]
Fix typo: seperator -> separator.

29 years agoRemove FIXMEs.
Jim Meyering [Sun, 8 Jan 1995 20:20:19 +0000 (20:20 +0000)]
Remove FIXMEs.
(get_width_format): Use stub function if not all of the needed math
functions are available.  From Ulrich.
(main): Give reason for failure.

29 years agoSee log in textutils/lib/.
Jim Meyering [Sun, 8 Jan 1995 19:33:34 +0000 (19:33 +0000)]
See log in textutils/lib/.

29 years ago.
Jim Meyering [Sun, 8 Jan 1995 19:30:12 +0000 (19:30 +0000)]
.

29 years agoAdd some FIXME comments.
Jim Meyering [Sat, 31 Dec 1994 18:38:23 +0000 (18:38 +0000)]
Add some FIXME comments.

29 years agoInclude "system.h".
Jim Meyering [Sat, 31 Dec 1994 18:32:47 +0000 (18:32 +0000)]
Include "system.h".
Don't explicitly include headers that it includes.
Use error, not `fprintf (stderr'.

29 years agoMinor indentation change.
Jim Meyering [Sat, 31 Dec 1994 18:17:34 +0000 (18:17 +0000)]
Minor indentation change.
(usage): Change wording a little.

29 years agoFrom Ulrich Drepper.
Jim Meyering [Sat, 31 Dec 1994 18:04:40 +0000 (18:04 +0000)]
From Ulrich Drepper.

29 years ago.
Jim Meyering [Sat, 31 Dec 1994 17:56:47 +0000 (17:56 +0000)]
.

29 years ago.
Jim Meyering [Sat, 31 Dec 1994 17:55:01 +0000 (17:55 +0000)]
.

29 years ago.
Jim Meyering [Sat, 31 Dec 1994 17:54:33 +0000 (17:54 +0000)]
.

29 years ago.
Jim Meyering [Sat, 31 Dec 1994 17:53:04 +0000 (17:53 +0000)]
.

29 years ago.
Jim Meyering [Sat, 31 Dec 1994 17:51:57 +0000 (17:51 +0000)]
.

29 years agostill checking
Jim Meyering [Sat, 31 Dec 1994 17:46:31 +0000 (17:46 +0000)]
still checking

29 years agochecking whether cvs lock works
Jim Meyering [Sat, 31 Dec 1994 17:43:19 +0000 (17:43 +0000)]
checking whether cvs lock works

29 years ago(print_factors): Increase size of FACTOR array to 128.
Jim Meyering [Sat, 31 Dec 1994 17:39:22 +0000 (17:39 +0000)]
(print_factors): Increase size of FACTOR array to 128.

29 years agoIndent.
Jim Meyering [Sat, 31 Dec 1994 17:33:56 +0000 (17:33 +0000)]
Indent.
Add deactivated assertions.

29 years agoUse readtoken.
Jim Meyering [Sat, 31 Dec 1994 15:28:51 +0000 (15:28 +0000)]
Use readtoken.

29 years ago.
Jim Meyering [Tue, 27 Dec 1994 13:39:54 +0000 (13:39 +0000)]
.

29 years agoInclude "error.h" rather than simply declaring `void error ();'.
Jim Meyering [Tue, 27 Dec 1994 13:36:22 +0000 (13:36 +0000)]
Include "error.h" rather than simply declaring `void error ();'.

29 years ago * dd.c (skip): Use safe_read instead of read.
Jim Meyering [Tue, 27 Dec 1994 13:12:52 +0000 (13:12 +0000)]
* dd.c (skip): Use safe_read instead of read.
(copy): Use full_write instead of write.
From Bruno Haible.

29 years ago * sync.c (main): Make error message accurate.
Jim Meyering [Tue, 27 Dec 1994 13:08:05 +0000 (13:08 +0000)]
* sync.c (main): Make error message accurate.

29 years agoWrite file name instead of filename.
Jim Meyering [Tue, 27 Dec 1994 05:28:58 +0000 (05:28 +0000)]
Write file name instead of filename.

29 years ago.
Jim Meyering [Tue, 27 Dec 1994 02:50:40 +0000 (02:50 +0000)]
.

29 years ago[member]: Use strchr instead of index.
Jim Meyering [Tue, 27 Dec 1994 02:47:50 +0000 (02:47 +0000)]
[member]: Use strchr instead of index.

29 years ago.
Jim Meyering [Tue, 27 Dec 1994 02:46:10 +0000 (02:46 +0000)]
.

29 years ago* test.c (term): Running `./test \( a -o b' got a seg fault.
Jim Meyering [Tue, 27 Dec 1994 00:33:03 +0000 (00:33 +0000)]
* test.c (term): Running `./test \( a -o b' got a seg fault.
From Klaus.Reichl@aut.alcatel.at.

29 years agoRearrange to accept a user-specified set of suffix chars (must be
Jim Meyering [Thu, 22 Dec 1994 05:10:32 +0000 (05:10 +0000)]
Rearrange to accept a user-specified set of suffix chars (must be
a subset of master list), each with a hard-coded value.

29 years ago(main): Update xstrtol calls to be consistent with new decl.
Jim Meyering [Thu, 22 Dec 1994 05:08:40 +0000 (05:08 +0000)]
(main): Update xstrtol calls to be consistent with new decl.

29 years ago.
Jim Meyering [Tue, 20 Dec 1994 05:26:56 +0000 (05:26 +0000)]
.

29 years ago* src/*.c: Include "error.h" instead of simply declaring
Jim Meyering [Tue, 20 Dec 1994 05:26:44 +0000 (05:26 +0000)]
* src/*.c: Include "error.h" instead of simply declaring
`void error ();'.

29 years agoBegin overhaul.
Jim Meyering [Tue, 20 Dec 1994 05:24:13 +0000 (05:24 +0000)]
Begin overhaul.

29 years ago.
Jim Meyering [Tue, 20 Dec 1994 05:10:42 +0000 (05:10 +0000)]
.

29 years ago.
Jim Meyering [Tue, 20 Dec 1994 05:05:55 +0000 (05:05 +0000)]
.

29 years ago(test_stat, binary_operator): Use safe_stat instead of SAFE_STAT.
Jim Meyering [Tue, 20 Dec 1994 04:51:10 +0000 (04:51 +0000)]
(test_stat, binary_operator): Use safe_stat instead of SAFE_STAT.
(unary_operator): Use safe_lstat instead of SAFE_LSTAT.

29 years ago(print_entry): Use safe_stat instead of SAFE_STAT.
Jim Meyering [Tue, 20 Dec 1994 04:50:25 +0000 (04:50 +0000)]
(print_entry): Use safe_stat instead of SAFE_STAT.

29 years ago(dir_ok): Use safe_stat instead of SAFE_STAT.
Jim Meyering [Tue, 20 Dec 1994 04:49:55 +0000 (04:49 +0000)]
(dir_ok): Use safe_stat instead of SAFE_STAT.

29 years ago(numerous functions): Give char* filename arguments the const attribute.
Jim Meyering [Tue, 20 Dec 1994 04:27:35 +0000 (04:27 +0000)]
(numerous functions): Give char* filename arguments the const attribute.

29 years ago.
Jim Meyering [Tue, 20 Dec 1994 04:23:49 +0000 (04:23 +0000)]
.

29 years ago.
Jim Meyering [Tue, 20 Dec 1994 04:17:23 +0000 (04:17 +0000)]
.

29 years ago.
Jim Meyering [Tue, 20 Dec 1994 04:15:30 +0000 (04:15 +0000)]
.

29 years ago(main): Use safe_stat, not SAFE_STAT.
Jim Meyering [Tue, 20 Dec 1994 04:03:28 +0000 (04:03 +0000)]
(main): Use safe_stat, not SAFE_STAT.

29 years agoInclude "error.h" instead of simply declaring `void error ();'.
Jim Meyering [Fri, 16 Dec 1994 05:45:57 +0000 (05:45 +0000)]
Include "error.h" instead of simply declaring `void error ();'.
(main): Don't advance optarg past leading sign -- otherwise, we'd
be making tail accept invalid options like `-+1'.
(tail_file): Fix call to error with %s in format, but no corresponding argument.

29 years agoInclude "error.h" instead of simply declaring `void error ();'.
Jim Meyering [Fri, 16 Dec 1994 05:42:47 +0000 (05:42 +0000)]
Include "error.h" instead of simply declaring `void error ();'.

29 years agoInclude "error.h" instead of simply declaring `void error ();'.
Jim Meyering [Fri, 16 Dec 1994 05:41:05 +0000 (05:41 +0000)]
Include "error.h" instead of simply declaring `void error ();'.

29 years ago(main): Use %lu, not %d for unsigned long.
Jim Meyering [Fri, 16 Dec 1994 05:32:30 +0000 (05:32 +0000)]
(main): Use %lu, not %d for unsigned long.
(my_strtoul, uint_fatal_error): Remove functions.  Use xstrtoul
and STRTOL_FATAL_ERROR instead.

29 years ago(main): Move to end.
Jim Meyering [Tue, 13 Dec 1994 05:42:44 +0000 (05:42 +0000)]
(main): Move to end.
(factor, do_stdin): Declare static.

29 years ago(docolon): Zero out re_buffer and re_regs before using them.
Jim Meyering [Tue, 13 Dec 1994 04:42:23 +0000 (04:42 +0000)]
(docolon): Zero out re_buffer and re_regs before using them.
From H.J. Lu <hjl@nynexst.com>.

29 years ago.
Jim Meyering [Mon, 12 Dec 1994 17:49:55 +0000 (17:49 +0000)]
.

29 years ago.
Jim Meyering [Mon, 12 Dec 1994 00:00:28 +0000 (00:00 +0000)]
.

29 years agosort.c (main): Fix interpretation of field offsets when specified
Jim Meyering [Mon, 12 Dec 1994 00:00:22 +0000 (00:00 +0000)]
sort.c (main): Fix interpretation of field offsets when specified
via -k option.  They were being interpreted as zero-indexed.
POSIX says they are 1-based indices.
(keycompare): Don't ignore characters at the end of words
when otherwise they compare equal.  Both from Rik Faith
<faith@cs.unc.edu>.

29 years ago* (<most functions>): Change the type of n_units/n_lines/n_bytes
Jim Meyering [Sun, 11 Dec 1994 23:53:54 +0000 (23:53 +0000)]
* (<most functions>): Change the type of n_units/n_lines/n_bytes
to off_t because n_bytes is used as the option to fseek and off_t may
be long long (e.g. on BSD4.4).  The only place where a 32-bit limit is
imposed is in the string-to-integer converstion of xstrtol.
(main): Use xstrtol instead of manual string to integer conversion.

29 years ago.
Jim Meyering [Sun, 11 Dec 1994 23:44:07 +0000 (23:44 +0000)]
.

29 years ago(get_format_width, get_format_prec): Use ISDIGIT instead of
Jim Meyering [Sun, 11 Dec 1994 23:43:21 +0000 (23:43 +0000)]
(get_format_width, get_format_prec): Use ISDIGIT instead of
comparisons against '0' and '9'.

29 years ago[ULONGMAX]: Define it.
Jim Meyering [Sun, 11 Dec 1994 23:31:12 +0000 (23:31 +0000)]
[ULONGMAX]: Define it.
[LONGMAX]: Define in terms of ULONGMAX instead of as a 32-bit constant.

29 years ago.
Jim Meyering [Sun, 11 Dec 1994 23:13:08 +0000 (23:13 +0000)]
.

29 years ago(safe_read): Get this function from gcc's cccp.c.
Jim Meyering [Sat, 10 Dec 1994 22:00:12 +0000 (22:00 +0000)]
(safe_read): Get this function from gcc's cccp.c.

29 years ago.
Jim Meyering [Sat, 10 Dec 1994 06:04:53 +0000 (06:04 +0000)]
.

29 years ago.
Jim Meyering [Sat, 10 Dec 1994 05:48:14 +0000 (05:48 +0000)]
.

29 years ago.
Jim Meyering [Sat, 10 Dec 1994 05:46:18 +0000 (05:46 +0000)]
.

29 years agoNo longer include <ctype.h>.
Jim Meyering [Sat, 10 Dec 1994 05:45:52 +0000 (05:45 +0000)]
No longer include <ctype.h>.
[isascii, ISDIGIT]: Remove definitions.

29 years agoNo longer include <ctype.h>.
Jim Meyering [Sat, 10 Dec 1994 05:45:02 +0000 (05:45 +0000)]
No longer include <ctype.h>.
Remove IS* macros.

29 years agoNo longer include <ctype.h>.
Jim Meyering [Sat, 10 Dec 1994 05:43:18 +0000 (05:43 +0000)]
No longer include <ctype.h>.

29 years ago(copy, make_path_private): Use strr?chr instead of r?index.
Jim Meyering [Sat, 10 Dec 1994 05:41:52 +0000 (05:41 +0000)]
(copy, make_path_private): Use strr?chr instead of r?index.

29 years ago(parse_conversion, scan_args): Use strr?chr instead of r?index.
Jim Meyering [Sat, 10 Dec 1994 05:41:16 +0000 (05:41 +0000)]
(parse_conversion, scan_args): Use strr?chr instead of r?index.

29 years ago(remove_parents): Use strr?chr instead of r?index.
Jim Meyering [Sat, 10 Dec 1994 05:39:59 +0000 (05:39 +0000)]
(remove_parents): Use strr?chr instead of r?index.

29 years ago* [!HAVE_STRING_H]: Define strchr to index and strrchr to
Jim Meyering [Sat, 10 Dec 1994 05:25:15 +0000 (05:25 +0000)]
* [!HAVE_STRING_H]: Define strchr to index and strrchr to
rindex instead of the other way around.
* Include <ctype.h> and define IS* macros.

29 years agoNo longer include <ctype.h>.
Jim Meyering [Sat, 10 Dec 1994 05:21:29 +0000 (05:21 +0000)]
No longer include <ctype.h>.

29 years agoNew chapter by Arnold Robbins via Karl.
Jim Meyering [Wed, 7 Dec 1994 14:17:04 +0000 (14:17 +0000)]
New chapter by Arnold Robbins via Karl.

29 years ago.
Jim Meyering [Sun, 4 Dec 1994 21:15:54 +0000 (21:15 +0000)]
.