4.4BSD snapshot (revision 8.1); add 1993 to copyright
[unix-history] / usr / src / usr.bin / tail / extern.h
CommitLineData
621fa23e 1/*-
746bd9b6
KB
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. All rights reserved.
621fa23e
KB
4 *
5 * %sccs.include.redist.c%
6 *
746bd9b6 7 * @(#)extern.h 8.1 (Berkeley) %G%
621fa23e
KB
8 */
9
10#define WR(p, size) \
11 if (write(STDOUT_FILENO, p, size) != size) \
12 oerr();
13
14enum STYLE { NOTSET = 0, FBYTES, FLINES, RBYTES, RLINES, REVERSE };
15
61faf995
KB
16void forward __P((FILE *, enum STYLE, long, struct stat *));
17void reverse __P((FILE *, enum STYLE, long, struct stat *));
621fa23e 18
61faf995
KB
19void bytes __P((FILE *, off_t));
20void lines __P((FILE *, off_t));
621fa23e 21
61faf995
KB
22void err __P((int fatal, const char *fmt, ...));
23void ierr __P((void));
24void oerr __P((void));
621fa23e
KB
25
26extern int fflag, rflag, rval;
27extern char *fname;