1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-13 07:15:50 +02:00
Commit Graph

375 Commits

Author SHA1 Message Date
Jim Meyering
8b285f6be9 * 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.
1995-01-25 04:32:15 +00:00
Jim Meyering
851162a0da 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.
1995-01-25 04:19:46 +00:00
Jim Meyering
41fc246374 Don't use legal' when you mean valid'. 1995-01-17 13:57:22 +00:00
Jim Meyering
cfaf788606 Fix typo: seperator -> separator. 1995-01-12 05:03:08 +00:00
Jim Meyering
98b530a36d 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.
1995-01-08 20:20:19 +00:00
Jim Meyering
4ad4a00de4 Add some FIXME comments. 1994-12-31 18:38:23 +00:00
Jim Meyering
81f671740e Include "system.h".
Don't explicitly include headers that it includes.
Use error, not `fprintf (stderr'.
1994-12-31 18:32:47 +00:00
Jim Meyering
d6b36e21cb Minor indentation change.
(usage): Change wording a little.
1994-12-31 18:17:34 +00:00
Jim Meyering
47d3dc6fc3 From Ulrich Drepper. 1994-12-31 18:04:40 +00:00
Jim Meyering
d4ba41692f . 1994-12-31 17:56:47 +00:00
Jim Meyering
a872332ad9 . 1994-12-31 17:55:01 +00:00
Jim Meyering
e8bb8dff6a . 1994-12-31 17:54:33 +00:00
Jim Meyering
e0c2f72ee5 . 1994-12-31 17:53:04 +00:00
Jim Meyering
60d3ac3f15 . 1994-12-31 17:51:57 +00:00
Jim Meyering
e50ceb339f still checking 1994-12-31 17:46:31 +00:00
Jim Meyering
6a8f231a9c checking whether cvs lock works 1994-12-31 17:43:19 +00:00
Jim Meyering
3de797b535 Indent.
Add deactivated assertions.
1994-12-31 17:33:56 +00:00
Jim Meyering
14842c9a59 Use readtoken. 1994-12-31 15:28:51 +00:00
Jim Meyering
59097c0922 Include "error.h" rather than simply declaring `void error ();'. 1994-12-27 13:36:22 +00:00
Jim Meyering
dcb4b37240 * dd.c (skip): Use safe_read instead of read.
(copy): Use full_write instead of write.
	From Bruno Haible.
1994-12-27 13:12:52 +00:00
Jim Meyering
410e779e8d * sync.c (main): Make error message accurate. 1994-12-27 13:08:05 +00:00
Jim Meyering
2ea2c7bf78 [member]: Use strchr instead of index. 1994-12-27 02:47:50 +00:00
Jim Meyering
c84154eb28 * test.c (term): Running `./test \( a -o b' got a seg fault.
From Klaus.Reichl@aut.alcatel.at.
1994-12-27 00:33:03 +00:00
Jim Meyering
7c141b258d (main): Update xstrtol calls to be consistent with new decl. 1994-12-22 05:08:40 +00:00
Jim Meyering
a9f1783e20 * src/*.c: Include "error.h" instead of simply declaring
`void error ();'.
1994-12-20 05:26:44 +00:00
Jim Meyering
6bb619d33c Begin overhaul. 1994-12-20 05:24:13 +00:00
Jim Meyering
735c6a9adc (test_stat, binary_operator): Use safe_stat instead of SAFE_STAT.
(unary_operator): Use safe_lstat instead of SAFE_LSTAT.
1994-12-20 04:51:10 +00:00
Jim Meyering
6d59e126b5 (print_entry): Use safe_stat instead of SAFE_STAT. 1994-12-20 04:50:25 +00:00
Jim Meyering
bb705c7c3e (dir_ok): Use safe_stat instead of SAFE_STAT. 1994-12-20 04:49:55 +00:00
Jim Meyering
398dbbb832 (numerous functions): Give char* filename arguments the const attribute. 1994-12-20 04:27:35 +00:00
Jim Meyering
c5811b6a26 (main): Use safe_stat, not SAFE_STAT. 1994-12-20 04:03:28 +00:00
Jim Meyering
73d8d0a43f 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.
1994-12-16 05:45:57 +00:00
Jim Meyering
7323b7d9f2 Include "error.h" instead of simply declaring `void error ();'. 1994-12-16 05:42:47 +00:00
Jim Meyering
8d6c6946dd Include "error.h" instead of simply declaring `void error ();'. 1994-12-16 05:41:05 +00:00
Jim Meyering
029fcaa913 (main): Use %lu, not %d for unsigned long.
(my_strtoul, uint_fatal_error): Remove functions.  Use xstrtoul
and STRTOL_FATAL_ERROR instead.
1994-12-16 05:32:30 +00:00
Jim Meyering
bebb9b3286 (main): Move to end.
(factor, do_stdin): Declare static.
1994-12-13 05:42:44 +00:00
Jim Meyering
3ae9a27c25 (docolon): Zero out re_buffer and re_regs before using them.
From H.J. Lu <hjl@nynexst.com>.
1994-12-13 04:42:23 +00:00
Jim Meyering
0050411112 . 1994-12-12 17:49:55 +00:00
Jim Meyering
88442ad885 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>.
1994-12-12 00:00:22 +00:00
Jim Meyering
f46511eb69 * (<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.
1994-12-11 23:53:54 +00:00
Jim Meyering
0e168c7d03 (get_format_width, get_format_prec): Use ISDIGIT instead of
comparisons against '0' and '9'.
1994-12-11 23:43:21 +00:00
Jim Meyering
9c5d0aa7a6 [ULONGMAX]: Define it.
[LONGMAX]: Define in terms of ULONGMAX instead of as a 32-bit constant.
1994-12-11 23:31:12 +00:00
Jim Meyering
abdf594b85 No longer include <ctype.h>.
[isascii, ISDIGIT]: Remove definitions.
1994-12-10 05:45:52 +00:00
Jim Meyering
33c44e1d1b No longer include <ctype.h>.
Remove IS* macros.
1994-12-10 05:45:02 +00:00
Jim Meyering
ec27c85596 No longer include <ctype.h>. 1994-12-10 05:43:18 +00:00
Jim Meyering
36a504f605 (copy, make_path_private): Use strr?chr instead of r?index. 1994-12-10 05:41:52 +00:00
Jim Meyering
c95989d148 (parse_conversion, scan_args): Use strr?chr instead of r?index. 1994-12-10 05:41:16 +00:00
Jim Meyering
06f4d47a29 (remove_parents): Use strr?chr instead of r?index. 1994-12-10 05:39:59 +00:00
Jim Meyering
7f58bbba88 * [!HAVE_STRING_H]: Define strchr to index and strrchr to
rindex instead of the other way around.
* Include <ctype.h> and define IS* macros.
1994-12-10 05:25:15 +00:00
Jim Meyering
651ccf648d No longer include <ctype.h>. 1994-12-10 05:21:29 +00:00