summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
1995-02-24.Jim Meyering
1995-02-23(restore_cwd): Test whether fchdir return value is non-zero, not negative.Jim Meyering
Be consistent!
1995-02-23(save_cwd) [!HAVE_FCHDIR]: Avoid a core dump via abort() which occurredJim Meyering
because cwd->desc was uninitialed. (restore_cwd) [!HAVE_FCHDIR]: Remove unnecessary redefinition of fchdir. Both from Bruno Haible.
1995-02-21(count_entry): Fix bug in polarity of safe-stat status test.Jim Meyering
1995-02-21(save_cwd, restore_cwd): New functions.Jim Meyering
(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.
1995-02-16update from FSFJim Meyering
1995-02-16(wc): Fix off-by-one error when counting lines.Jim Meyering
1995-02-11.Jim Meyering
1995-02-11(SOURCES): Add memcmp.c, memcpy.c, and memset.c.Jim Meyering
1995-02-11.Jim Meyering
1995-02-11(copy): Use memset, not bzero.Jim Meyering
(copy_simple): Use memcpy, not bcopy.
1995-02-11Remove index/rindex and bcmp/bcopy/bzero references.Jim Meyering
Separate errno declaration from STDC_HEADERS.
1995-02-11.Jim Meyering
1995-02-11Fix example in comment.Jim Meyering
1995-02-10(wc): Eliminate fstat call -- using lseek is sufficient.Jim Meyering
Detect/handle case in which CURR position > EOF.
1995-02-10(wc): Handle separately the cases in which words needJim Meyering
not be counted. Suggested by Karl Heuer. (wc): Use memchr.c instead.
1995-02-09(wc): Add a separate loop for counting only lines or lines and bytes.Jim Meyering
From Karl Heuer.
1995-02-09(wc): Don't overcount the number of bytes when reading fromJim Meyering
a regular file on stdin with file pointer not at BOF. From Karl Heuer.
1995-01-29.Jim Meyering
1995-01-29(parse_old_offset): Use strchr, not index.Jim Meyering
1995-01-29(extract_regexp): Use strrchr, not rindex.Jim Meyering
1995-01-28.Jim Meyering
1995-01-28.Jim Meyering
1995-01-28(substr): Don't allocate a byte for trailing NUL in resultJim Meyering
since the result needn't be NUL-terminated. Don't NUL terminate it.
1995-01-28(pipe_lines, pipe_bytes): Use memcpy instead of bcopy.Jim Meyering
1995-01-28(append_equiv_class): Use memcpy instead of bcopy.Jim Meyering
(card_of_complement, set_initialize): Use memset, not bzero.
1995-01-28(tac): Use memmove instead of bcopy.Jim Meyering
(output): Use memcpy instead of bcopy.
1995-01-28(main): Use memset, not bzero.Jim Meyering
(line_bytes_split): Use memmove instead of bcopy.
1995-01-28(checkfp, mergefps): Use memcpy instead of bcopy.Jim Meyering
(fillbuf): Use memmove instead of bcopy.
1995-01-28(decode_format_string): Use memmove instead of bcopy.Jim Meyering
[EQUAL_BLOCKS]: Use memcmp, not bcmp. (dump): Use memset, not bzero.
1995-01-28(fold_file): Use memmove instead of bcopy.Jim Meyering
1995-01-28.Jim Meyering
1995-01-28(isopen, isclose, isperiod): Use strchr, not index.Jim Meyering
(flush_paragraph): Use memmove instead of bcopy.
1995-01-28(load_buffer): Use memcpy rather than bcopy.Jim Meyering
1995-01-28(cat): Use memmove rather than bcopy.Jim Meyering
1995-01-27.Jim Meyering
1995-01-27(get_fs_usage, statfs): Use safe_read, and safe_stat rather thanJim Meyering
bare read and stat.
1995-01-27Declare errno if it's not defined.Jim Meyering
Rename SAFE_STAT to safe_stat.
1995-01-27Declare errno if it's not defined.Jim Meyering
1995-01-27(DEFS): Remove -Dlint.Jim Meyering
(DISTFILES): Add error.h.
1995-01-27Rename SAFE_STAT to safe_stat.Jim Meyering
1995-01-27Rename SAFE_STAT to safe_stat.Jim Meyering
1995-01-27Rename SAFE_STAT to safe_stat.Jim Meyering
1995-01-27Rename SAFE_STAT and SAFE_LSTAT to lower case names.Jim Meyering
1995-01-27.Jim Meyering
1995-01-27(basename): Use strrchr, not rindex.Jim Meyering
[!STDC_HEADERS && !HAVE_STRING_H]: Define strrchr to rindex.
1995-01-27.Jim Meyering
1995-01-27.Jim Meyering
1995-01-27.Jim Meyering
1995-01-27.Jim Meyering