summaryrefslogtreecommitdiff
path: root/src/tail.c
AgeCommit message (Collapse)Author
1995-11-27s/non-zero/nonzero/gJim Meyering
1995-10-16Protoize.Jim Meyering
Reorder functions to obviate forward dcls. Remove forward dcls.
1995-08-07Annotate localizable strings with _(...). From Franc,ois.Jim Meyering
1995-07-27(tail_bytes) [from_start]: For regular files, seekJim Meyering
relative to the initial input file pointer position, not necessarily from the beginning of the file. [!from_start]: Don't back up past the initial position of the input file pointer. (tail_lines): Call file_lines only if FD refers to a regular file with its file pointer positioned at beginning of file. Otherwise, call pipe_lines. This is a kludge. Once there's a decent test suite, fix this properly. Before, (echo 1; echo 2) > k; sh -c 'read x; tail' < k would output both lines of the input file even though the first had already been read. Reported by John Roll (john@panic.harvard.edu).
1995-07-12(tail): Explicitly cast to long the N_UNITS argumennt inJim Meyering
call to tail_lines. Otherwise, NetBSD lost because N_UNITS (of type off_t, a 64-bit type on NetBSD) wasn't converted to the target type, long. Reported by Dan Hagerty (hag@gnu.ai.it.edu).
1995-06-18merge with 1.12Jim Meyering
1995-05-28(main): Remove dcl of and statements that set now-unused variable.Jim Meyering
1995-05-25(tail_lines): Change one more `long' to `off_t'.Jim Meyering
Otherwise, tail didn't work on NetBSD. From by Arne H. Juul.
1995-05-13(usage): Include one- or two-line synopsis in --help output.Jim Meyering
From Karl Berry.
1995-03-09add 1995 to Copyright datesJim Meyering
1995-01-28(pipe_lines, pipe_bytes): Use memcpy instead of bcopy.Jim Meyering
1994-12-22(main): Update xstrtol calls to be consistent with new decl.Jim Meyering
1994-12-20(numerous functions): Give char* filename arguments the const attribute.Jim Meyering
1994-12-16Include "error.h" instead of simply declaring `void error ();'.Jim Meyering
(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-11* (<most functions>): Change the type of n_units/n_lines/n_bytesJim Meyering
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-11-30name changes: number->n_lines|n_bytesJim Meyering
1994-11-17(dump_remainder): Flush standard output just beforeJim Meyering
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.
1994-11-16Use BUFSIZ instead of BUFSIZE.Jim Meyering
1994-11-03merge with 1.9.1j2Jim Meyering
1994-11-01(XWRITE): Guard against calling xwrite with n_bytes == 0.Jim Meyering
1994-11-01(XWRITE): Allow n_bytes to be zero in assertion. Otherwise `tail /dev/null'Jim Meyering
gets failed assertion.
1994-10-19merge with 1.9.1hJim Meyering
1994-09-12.Jim Meyering
1994-05-06.Jim Meyering
1994-04-13.Jim Meyering
1994-01-09safe_read and full_write + join patchJim Meyering
1993-10-24merge with 1.8hJim Meyering
1993-10-24merge with 1.8gJim Meyering
1993-10-23merge with 1.8d+Jim Meyering
1993-10-21merge with 1.8dJim Meyering
1993-10-05merge with 1.8aJim Meyering
1993-05-22merge with 1.5.2Jim Meyering
1993-04-29add --version and --helpJim Meyering
1993-01-20merge with 1.4Jim Meyering
1992-12-10Merge with pre-release 1.3.6.Jim Meyering
1992-12-07Remove inclusion of <ctype.h> and definitions of is* ctype macros to system.h.Jim Meyering
Change a few more uses of is* ctype macros to (protected) upper case versions.
1992-12-02Convert static declarations of struct option to use new macros fromJim Meyering
getopt.h: no_argument, required_argument, and optional_argument.
1992-11-19Merged in changes for 1.3.5.Jim Meyering
1992-11-08Declared lots of external functions and variables static.Jim Meyering
Made several statically-initialized arrays `const'
1992-11-08Initial revisionJim Meyering