xref: /csrg-svn/usr.bin/tail/extern.h (revision 62295)
150448Sbostic /*-
2*62295Sbostic  * Copyright (c) 1991, 1993
3*62295Sbostic  *	The Regents of the University of California.  All rights reserved.
450448Sbostic  *
550448Sbostic  * %sccs.include.redist.c%
650448Sbostic  *
7*62295Sbostic  *	@(#)extern.h	8.1 (Berkeley) 06/06/93
850448Sbostic  */
950448Sbostic 
1050448Sbostic #define	WR(p, size) \
1150448Sbostic 	if (write(STDOUT_FILENO, p, size) != size) \
1250448Sbostic 		oerr();
1350448Sbostic 
1450448Sbostic enum STYLE { NOTSET = 0, FBYTES, FLINES, RBYTES, RLINES, REVERSE };
1550448Sbostic 
1652837Sbostic void forward __P((FILE *, enum STYLE, long, struct stat *));
1752837Sbostic void reverse __P((FILE *, enum STYLE, long, struct stat *));
1850448Sbostic 
1952837Sbostic void bytes __P((FILE *, off_t));
2052837Sbostic void lines __P((FILE *, off_t));
2150448Sbostic 
2252837Sbostic void err __P((int fatal, const char *fmt, ...));
2352837Sbostic void ierr __P((void));
2452837Sbostic void oerr __P((void));
2550448Sbostic 
2650448Sbostic extern int fflag, rflag, rval;
2750448Sbostic extern char *fname;
28