Jim Meyering [Thu, 16 Mar 1995 21:54:02 +0000 (21:54 +0000)]
Detect when -N argument is too large to fit in an off_t.
Jim Meyering [Sun, 12 Mar 1995 18:31:55 +0000 (18:31 +0000)]
.
Jim Meyering [Sun, 12 Mar 1995 18:21:38 +0000 (18:21 +0000)]
.
Jim Meyering [Sun, 12 Mar 1995 18:12:18 +0000 (18:12 +0000)]
.
Jim Meyering [Sun, 12 Mar 1995 18:07:15 +0000 (18:07 +0000)]
Better but-reporting instructions.
wc tweak: lines->newlines.
Jim Meyering [Sun, 12 Mar 1995 18:06:08 +0000 (18:06 +0000)]
Undef __P before defining it.
Jim Meyering [Sun, 12 Mar 1995 18:00:33 +0000 (18:00 +0000)]
.
Jim Meyering [Sun, 12 Mar 1995 15:26:36 +0000 (15:26 +0000)]
Make source const.
Jim Meyering [Sun, 12 Mar 1995 15:26:09 +0000 (15:26 +0000)]
Update from glibc.
Jim Meyering [Fri, 10 Mar 1995 04:15:06 +0000 (04:15 +0000)]
add 1995 to Copyright dates
Jim Meyering [Thu, 9 Mar 1995 22:33:05 +0000 (22:33 +0000)]
add 1995 to Copyright dates
Jim Meyering [Thu, 9 Mar 1995 22:20:59 +0000 (22:20 +0000)]
add 1995 to Copyright dates
Jim Meyering [Mon, 6 Mar 1995 14:20:34 +0000 (14:20 +0000)]
.
Jim Meyering [Mon, 6 Mar 1995 14:11:41 +0000 (14:11 +0000)]
from Karl Berry
Jim Meyering [Tue, 28 Feb 1995 13:54:33 +0000 (13:54 +0000)]
(SET_REGS_MATCHED): Enclose if-stmt in `do {...} while(0)'
instead of using trailing `else' -- otherwise, gcc -Wall complains
of `empty body in an else-statement'.
Jim Meyering [Tue, 28 Feb 1995 12:50:35 +0000 (12:50 +0000)]
(wc): oops. Add missing dcl of stats.
Jim Meyering [Tue, 28 Feb 1995 12:08:03 +0000 (12:08 +0000)]
Always include system headers, but define-away any putenv prototype.
Jim Meyering [Tue, 28 Feb 1995 12:06:57 +0000 (12:06 +0000)]
Remove sys-dependent cruft and define-away getopt in system headers
instead.
Jim Meyering [Mon, 27 Feb 1995 16:37:54 +0000 (16:37 +0000)]
(color_indicator[0]): Add missing `['.
Jim Meyering [Mon, 27 Feb 1995 14:54:45 +0000 (14:54 +0000)]
.
Jim Meyering [Mon, 27 Feb 1995 14:51:30 +0000 (14:51 +0000)]
.
Jim Meyering [Mon, 27 Feb 1995 14:47:40 +0000 (14:47 +0000)]
(userid_compare): K&R'ify function definition.
Jim Meyering [Mon, 27 Feb 1995 14:09:10 +0000 (14:09 +0000)]
(correct_password): Use memset instead of bzero.
Jim Meyering [Mon, 27 Feb 1995 14:07:58 +0000 (14:07 +0000)]
(main, set_window_size): Use memset instead of bzero.
Jim Meyering [Mon, 27 Feb 1995 14:05:43 +0000 (14:05 +0000)]
Remove \n's from error format strings.
(main): Let `seq 1 1' work.
Invoke usage always with 1 when failing.
Jim Meyering [Mon, 27 Feb 1995 06:01:27 +0000 (06:01 +0000)]
(docolon): Use memset instead of bzero.
Jim Meyering [Mon, 27 Feb 1995 06:00:14 +0000 (06:00 +0000)]
(batch_convert): Remove any trailing newline from offending
line before including it in the `invalid date' error from `date -f'.
Reported by Franc,ois Pinard.
Jim Meyering [Mon, 27 Feb 1995 00:07:35 +0000 (00:07 +0000)]
(wc): Put back test for S_ISREG. On some systems lseek returns zero for
non-regular files (esp ttys on SunOS) even when it fails.
Jim Meyering [Sun, 26 Feb 1995 19:05:34 +0000 (19:05 +0000)]
.
Jim Meyering [Sun, 26 Feb 1995 05:09:04 +0000 (05:09 +0000)]
.
Jim Meyering [Fri, 24 Feb 1995 04:31:04 +0000 (04:31 +0000)]
.
Jim Meyering [Thu, 23 Feb 1995 21:14:12 +0000 (21:14 +0000)]
(restore_cwd): Test whether fchdir return value is non-zero, not negative.
Be consistent!
Jim Meyering [Thu, 23 Feb 1995 21:12:11 +0000 (21:12 +0000)]
(save_cwd) [!HAVE_FCHDIR]: Avoid a core dump via abort() which occurred
because cwd->desc was uninitialed.
(restore_cwd) [!HAVE_FCHDIR]: Remove unnecessary redefinition of fchdir.
Both from Bruno Haible.
Jim Meyering [Tue, 21 Feb 1995 05:19:03 +0000 (05:19 +0000)]
(count_entry): Fix bug in polarity of safe-stat status test.
Jim Meyering [Tue, 21 Feb 1995 05:01:08 +0000 (05:01 +0000)]
(save_cwd, restore_cwd): New functions.
(main): Use them instead of in-line versions.
(count_entry): Use them here instead of relying on chdir ("..") --
but only when necessary. Before, with --dereference (-L),
traversing a symlink caused failure because chdir ("..") didn't
work as expected. Reported by Bruno Haible.
Jim Meyering [Thu, 16 Feb 1995 20:25:54 +0000 (20:25 +0000)]
update from FSF
Jim Meyering [Thu, 16 Feb 1995 00:10:49 +0000 (00:10 +0000)]
(wc): Fix off-by-one error when counting lines.
Jim Meyering [Sat, 11 Feb 1995 14:15:09 +0000 (14:15 +0000)]
.
Jim Meyering [Sat, 11 Feb 1995 14:11:36 +0000 (14:11 +0000)]
(SOURCES): Add memcmp.c, memcpy.c, and memset.c.
Jim Meyering [Sat, 11 Feb 1995 14:02:02 +0000 (14:02 +0000)]
.
Jim Meyering [Sat, 11 Feb 1995 13:58:11 +0000 (13:58 +0000)]
(copy): Use memset, not bzero.
(copy_simple): Use memcpy, not bcopy.
Jim Meyering [Sat, 11 Feb 1995 13:53:39 +0000 (13:53 +0000)]
Remove index/rindex and bcmp/bcopy/bzero references.
Separate errno declaration from STDC_HEADERS.
Jim Meyering [Sat, 11 Feb 1995 13:36:02 +0000 (13:36 +0000)]
.
Jim Meyering [Sat, 11 Feb 1995 13:21:46 +0000 (13:21 +0000)]
Fix example in comment.
Jim Meyering [Fri, 10 Feb 1995 05:53:54 +0000 (05:53 +0000)]
(wc): Eliminate fstat call -- using lseek is sufficient.
Detect/handle case in which CURR position > EOF.
Jim Meyering [Fri, 10 Feb 1995 05:34:27 +0000 (05:34 +0000)]
(wc): Handle separately the cases in which words need
not be counted. Suggested by Karl Heuer.
(wc): Use memchr.c instead.
Jim Meyering [Thu, 9 Feb 1995 17:15:17 +0000 (17:15 +0000)]
(wc): Add a separate loop for counting only lines or lines and bytes.
From Karl Heuer.
Jim Meyering [Thu, 9 Feb 1995 17:05:43 +0000 (17:05 +0000)]
(wc): Don't overcount the number of bytes when reading from
a regular file on stdin with file pointer not at BOF. From Karl Heuer.
Jim Meyering [Sun, 29 Jan 1995 05:34:15 +0000 (05:34 +0000)]
.
Jim Meyering [Sun, 29 Jan 1995 05:33:05 +0000 (05:33 +0000)]
(parse_old_offset): Use strchr, not index.
Jim Meyering [Sun, 29 Jan 1995 05:32:10 +0000 (05:32 +0000)]
(extract_regexp): Use strrchr, not rindex.
Jim Meyering [Sat, 28 Jan 1995 14:07:41 +0000 (14:07 +0000)]
.
Jim Meyering [Sat, 28 Jan 1995 13:23:10 +0000 (13:23 +0000)]
.
Jim Meyering [Sat, 28 Jan 1995 13:22:53 +0000 (13:22 +0000)]
(substr): Don't allocate a byte for trailing NUL in result
since the result needn't be NUL-terminated. Don't NUL terminate it.
Jim Meyering [Sat, 28 Jan 1995 13:22:25 +0000 (13:22 +0000)]
(pipe_lines, pipe_bytes): Use memcpy instead of bcopy.
Jim Meyering [Sat, 28 Jan 1995 13:15:35 +0000 (13:15 +0000)]
(append_equiv_class): Use memcpy instead of bcopy.
(card_of_complement, set_initialize): Use memset, not bzero.
Jim Meyering [Sat, 28 Jan 1995 13:09:42 +0000 (13:09 +0000)]
(tac): Use memmove instead of bcopy.
(output): Use memcpy instead of bcopy.
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.
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.
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.
Jim Meyering [Sat, 28 Jan 1995 13:00:10 +0000 (13:00 +0000)]
(fold_file): Use memmove instead of bcopy.
Jim Meyering [Sat, 28 Jan 1995 04:58:03 +0000 (04:58 +0000)]
.
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.
Jim Meyering [Sat, 28 Jan 1995 04:47:03 +0000 (04:47 +0000)]
(load_buffer): Use memcpy rather than bcopy.
Jim Meyering [Sat, 28 Jan 1995 04:45:19 +0000 (04:45 +0000)]
(cat): Use memmove rather than bcopy.
Jim Meyering [Fri, 27 Jan 1995 19:32:16 +0000 (19:32 +0000)]
.
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.
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.
Jim Meyering [Fri, 27 Jan 1995 17:16:19 +0000 (17:16 +0000)]
Declare errno if it's not defined.
Jim Meyering [Fri, 27 Jan 1995 17:09:18 +0000 (17:09 +0000)]
(DEFS): Remove -Dlint.
(DISTFILES): Add error.h.
Jim Meyering [Fri, 27 Jan 1995 17:07:36 +0000 (17:07 +0000)]
Rename SAFE_STAT to safe_stat.
Jim Meyering [Fri, 27 Jan 1995 17:05:42 +0000 (17:05 +0000)]
Rename SAFE_STAT to safe_stat.
Jim Meyering [Fri, 27 Jan 1995 17:05:11 +0000 (17:05 +0000)]
Rename SAFE_STAT to safe_stat.
Jim Meyering [Fri, 27 Jan 1995 17:03:21 +0000 (17:03 +0000)]
Rename SAFE_STAT and SAFE_LSTAT to lower case names.
Jim Meyering [Fri, 27 Jan 1995 15:35:17 +0000 (15:35 +0000)]
.
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.
Jim Meyering [Fri, 27 Jan 1995 15:01:25 +0000 (15:01 +0000)]
.
Jim Meyering [Fri, 27 Jan 1995 15:00:54 +0000 (15:00 +0000)]
.
Jim Meyering [Fri, 27 Jan 1995 14:41:51 +0000 (14:41 +0000)]
.
Jim Meyering [Fri, 27 Jan 1995 05:39:25 +0000 (05:39 +0000)]
.
Jim Meyering [Fri, 27 Jan 1995 05:37:03 +0000 (05:37 +0000)]
.
Jim Meyering [Fri, 27 Jan 1995 05:36:14 +0000 (05:36 +0000)]
Remove/rewrite some comments.
Jim Meyering [Fri, 27 Jan 1995 05:22:23 +0000 (05:22 +0000)]
.
Jim Meyering [Wed, 25 Jan 1995 04:32:58 +0000 (04:32 +0000)]
.
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.
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.
Jim Meyering [Tue, 17 Jan 1995 13:57:22 +0000 (13:57 +0000)]
Don't use `legal' when you mean `valid'.
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)]
.