Jim Meyering [Thu, 12 Jan 1995 05:03:08 +0000 (05:03 +0000)]
Fix typo: seperator -> separator.
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.
Jim Meyering [Sun, 8 Jan 1995 19:33:34 +0000 (19:33 +0000)]
See log in textutils/lib/.
Jim Meyering [Sun, 8 Jan 1995 19:30:12 +0000 (19:30 +0000)]
.
Jim Meyering [Sat, 31 Dec 1994 18:38:23 +0000 (18:38 +0000)]
Add some FIXME comments.
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'.
Jim Meyering [Sat, 31 Dec 1994 18:17:34 +0000 (18:17 +0000)]
Minor indentation change.
(usage): Change wording a little.
Jim Meyering [Sat, 31 Dec 1994 18:04:40 +0000 (18:04 +0000)]
From Ulrich Drepper.
Jim Meyering [Sat, 31 Dec 1994 17:56:47 +0000 (17:56 +0000)]
.
Jim Meyering [Sat, 31 Dec 1994 17:55:01 +0000 (17:55 +0000)]
.
Jim Meyering [Sat, 31 Dec 1994 17:54:33 +0000 (17:54 +0000)]
.
Jim Meyering [Sat, 31 Dec 1994 17:53:04 +0000 (17:53 +0000)]
.
Jim Meyering [Sat, 31 Dec 1994 17:51:57 +0000 (17:51 +0000)]
.
Jim Meyering [Sat, 31 Dec 1994 17:46:31 +0000 (17:46 +0000)]
still checking
Jim Meyering [Sat, 31 Dec 1994 17:43:19 +0000 (17:43 +0000)]
checking whether cvs lock works
Jim Meyering [Sat, 31 Dec 1994 17:39:22 +0000 (17:39 +0000)]
(print_factors): Increase size of FACTOR array to 128.
Jim Meyering [Sat, 31 Dec 1994 17:33:56 +0000 (17:33 +0000)]
Indent.
Add deactivated assertions.
Jim Meyering [Sat, 31 Dec 1994 15:28:51 +0000 (15:28 +0000)]
Use readtoken.
Jim Meyering [Tue, 27 Dec 1994 13:39:54 +0000 (13:39 +0000)]
.
Jim Meyering [Tue, 27 Dec 1994 13:36:22 +0000 (13:36 +0000)]
Include "error.h" rather than simply declaring `void error ();'.
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.
Jim Meyering [Tue, 27 Dec 1994 13:08:05 +0000 (13:08 +0000)]
* sync.c (main): Make error message accurate.
Jim Meyering [Tue, 27 Dec 1994 05:28:58 +0000 (05:28 +0000)]
Write file name instead of filename.
Jim Meyering [Tue, 27 Dec 1994 02:50:40 +0000 (02:50 +0000)]
.
Jim Meyering [Tue, 27 Dec 1994 02:47:50 +0000 (02:47 +0000)]
[member]: Use strchr instead of index.
Jim Meyering [Tue, 27 Dec 1994 02:46:10 +0000 (02:46 +0000)]
.
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.
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.
Jim Meyering [Thu, 22 Dec 1994 05:08:40 +0000 (05:08 +0000)]
(main): Update xstrtol calls to be consistent with new decl.
Jim Meyering [Tue, 20 Dec 1994 05:26:56 +0000 (05:26 +0000)]
.
Jim Meyering [Tue, 20 Dec 1994 05:26:44 +0000 (05:26 +0000)]
* src/*.c: Include "error.h" instead of simply declaring
`void error ();'.
Jim Meyering [Tue, 20 Dec 1994 05:24:13 +0000 (05:24 +0000)]
Begin overhaul.
Jim Meyering [Tue, 20 Dec 1994 05:10:42 +0000 (05:10 +0000)]
.
Jim Meyering [Tue, 20 Dec 1994 05:05:55 +0000 (05:05 +0000)]
.
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.
Jim Meyering [Tue, 20 Dec 1994 04:50:25 +0000 (04:50 +0000)]
(print_entry): 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.
Jim Meyering [Tue, 20 Dec 1994 04:27:35 +0000 (04:27 +0000)]
(numerous functions): Give char* filename arguments the const attribute.
Jim Meyering [Tue, 20 Dec 1994 04:23:49 +0000 (04:23 +0000)]
.
Jim Meyering [Tue, 20 Dec 1994 04:17:23 +0000 (04:17 +0000)]
.
Jim Meyering [Tue, 20 Dec 1994 04:15:30 +0000 (04:15 +0000)]
.
Jim Meyering [Tue, 20 Dec 1994 04:03:28 +0000 (04:03 +0000)]
(main): Use safe_stat, not SAFE_STAT.
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.
Jim Meyering [Fri, 16 Dec 1994 05:42:47 +0000 (05:42 +0000)]
Include "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 ();'.
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.
Jim Meyering [Tue, 13 Dec 1994 05:42:44 +0000 (05:42 +0000)]
(main): Move to end.
(factor, do_stdin): Declare static.
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>.
Jim Meyering [Mon, 12 Dec 1994 17:49:55 +0000 (17:49 +0000)]
.
Jim Meyering [Mon, 12 Dec 1994 00:00:28 +0000 (00:00 +0000)]
.
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>.
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.
Jim Meyering [Sun, 11 Dec 1994 23:44:07 +0000 (23:44 +0000)]
.
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'.
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.
Jim Meyering [Sun, 11 Dec 1994 23:13:08 +0000 (23:13 +0000)]
.
Jim Meyering [Sat, 10 Dec 1994 22:00:12 +0000 (22:00 +0000)]
(safe_read): Get this function from gcc's cccp.c.
Jim Meyering [Sat, 10 Dec 1994 06:04:53 +0000 (06:04 +0000)]
.
Jim Meyering [Sat, 10 Dec 1994 05:48:14 +0000 (05:48 +0000)]
.
Jim Meyering [Sat, 10 Dec 1994 05:46:18 +0000 (05:46 +0000)]
.
Jim Meyering [Sat, 10 Dec 1994 05:45:52 +0000 (05:45 +0000)]
No longer include <ctype.h>.
[isascii, ISDIGIT]: Remove definitions.
Jim Meyering [Sat, 10 Dec 1994 05:45:02 +0000 (05:45 +0000)]
No longer include <ctype.h>.
Remove IS* macros.
Jim Meyering [Sat, 10 Dec 1994 05:43:18 +0000 (05:43 +0000)]
No longer include <ctype.h>.
Jim Meyering [Sat, 10 Dec 1994 05:41:52 +0000 (05:41 +0000)]
(copy, make_path_private): 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.
Jim Meyering [Sat, 10 Dec 1994 05:39:59 +0000 (05:39 +0000)]
(remove_parents): Use strr?chr instead of r?index.
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.
Jim Meyering [Sat, 10 Dec 1994 05:21:29 +0000 (05:21 +0000)]
No longer include <ctype.h>.
Jim Meyering [Wed, 7 Dec 1994 14:17:04 +0000 (14:17 +0000)]
New chapter by Arnold Robbins via Karl.
Jim Meyering [Sun, 4 Dec 1994 21:15:54 +0000 (21:15 +0000)]
.
Jim Meyering [Sun, 4 Dec 1994 21:15:46 +0000 (21:15 +0000)]
Use strr?chr instead of r?index.
Jim Meyering [Sun, 4 Dec 1994 21:08:50 +0000 (21:08 +0000)]
Get putenv.c from /copies (derived from glibc).
Hack it to work with SGI's __environ junk.
Jim Meyering [Sun, 4 Dec 1994 20:56:35 +0000 (20:56 +0000)]
.
Jim Meyering [Sun, 4 Dec 1994 20:55:30 +0000 (20:55 +0000)]
.
Jim Meyering [Sun, 4 Dec 1994 20:53:43 +0000 (20:53 +0000)]
.
Jim Meyering [Sun, 4 Dec 1994 20:52:46 +0000 (20:52 +0000)]
(DISTFILES): Add getdate.texi.
Jim Meyering [Sun, 4 Dec 1994 20:50:57 +0000 (20:50 +0000)]
Mods from Karl to include getdate.texi.
Jim Meyering [Sun, 4 Dec 1994 20:48:11 +0000 (20:48 +0000)]
.
Jim Meyering [Sat, 3 Dec 1994 20:38:20 +0000 (20:38 +0000)]
(du_files): Handle very low-probability fchdir failure (when errno != 0
&& errno != EINVAL).
Jim Meyering [Sat, 3 Dec 1994 20:29:28 +0000 (20:29 +0000)]
(du_files): Variable name changes.
Jim Meyering [Sat, 3 Dec 1994 20:26:33 +0000 (20:26 +0000)]
(du_files): Work around SunOS restriction that fchdir doesn't work when
accounting is enabled -- modelled after djm's find.c mods.
Jim Meyering [Fri, 2 Dec 1994 16:54:56 +0000 (16:54 +0000)]
(checkfp): Initialize keybeg and keylim fields.
Before, this command
perl -e 'print join ("\n", (1..513)), "\n";'|sort -cs -n
failed on SunOS 4 systems. From Robert H. de Vries <robert@and.nl>.
Jim Meyering [Fri, 2 Dec 1994 16:49:47 +0000 (16:49 +0000)]
(xfclose): Report failed fflush. Otherwise, failed write to stdout
could be missed because of subsequent clearerr.
(main): Include filename in a couple error messages.
Add missing %s in an error format string.
Jim Meyering [Wed, 30 Nov 1994 20:54:21 +0000 (20:54 +0000)]
name changes: number->n_lines|n_bytes
Jim Meyering [Mon, 28 Nov 1994 06:00:56 +0000 (06:00 +0000)]
Make some globals `static' and/or `const'.
(LEN_STR_PAIR): New macro.
(decode_switches): Only ignore invalid TABSET value instead of dying.
(parse_ls_color): Use error, not fprintf.
(print_type_indicator): Remove dcls of two unused variables.
Jim Meyering [Mon, 28 Nov 1994 04:38:27 +0000 (04:38 +0000)]
indent
Jim Meyering [Mon, 28 Nov 1994 04:32:07 +0000 (04:32 +0000)]
(indent): Use TABs only when doing so replaces at least two spaces.
Jim Meyering [Mon, 28 Nov 1994 04:25:31 +0000 (04:25 +0000)]
`colorize' patch from Drepper.
Jim Meyering [Mon, 21 Nov 1994 14:23:15 +0000 (14:23 +0000)]
.
Jim Meyering [Fri, 18 Nov 1994 05:15:04 +0000 (05:15 +0000)]
(list_entries): Delete. Split in two actually...
(list_entries_users, list_entries_who, userid_compare): New functions.
(list_entries_users): Sort the user names. Reported by
Michael I Bushnell.
Topologically sort the functions and remove fwd declarations.
Jim Meyering [Thu, 17 Nov 1994 17:37:22 +0000 (17:37 +0000)]
.
Jim Meyering [Thu, 17 Nov 1994 12:49:38 +0000 (12:49 +0000)]
(output): Use STDOUT_FILENO instead of `1' in xwrite call.
Jim Meyering [Thu, 17 Nov 1994 12:49:10 +0000 (12:49 +0000)]
(dump_remainder): Flush standard output just before
sleeping so that `tail -f' will output partial lines sooner.
This applies only when following the end of a single file.
From Leonard N. Zubkoff <lnz@dandelion.com>.
(file_lines, pipe_lines, pipe_bytes, start_bytes, start_lines, dump_remainder):
Use STDOUT_FILENO instead of `1' in XWRITE calls.
Jim Meyering [Wed, 16 Nov 1994 13:19:25 +0000 (13:19 +0000)]
Include <getopt.h> instead of "getopt.h".
Jim Meyering [Wed, 16 Nov 1994 13:16:53 +0000 (13:16 +0000)]
(tempname): Merge two very similar sprintf stmts into one.
Jim Meyering [Wed, 16 Nov 1994 13:13:07 +0000 (13:13 +0000)]
Use BUFSIZ instead of BUFSIZE.
Jim Meyering [Wed, 16 Nov 1994 13:10:34 +0000 (13:10 +0000)]
Rewriting to help it pass a reasonable suite of tests.
Jim Meyering [Wed, 16 Nov 1994 13:09:13 +0000 (13:09 +0000)]
Declare DELIM to be `int' rather than unsigned char.
Jim Meyering [Wed, 16 Nov 1994 13:06:45 +0000 (13:06 +0000)]
.
Jim Meyering [Wed, 16 Nov 1994 13:05:38 +0000 (13:05 +0000)]
.