xref: /original-bsd/usr.bin/pascal/src/iorec.h (revision b4971bb3)
1 /*-
2  * Copyright (c) 1980, 1993
3  *	The Regents of the University of California.  All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  *
7  *	@(#)iorec.h	8.1 (Berkeley) 06/06/93
8  */
9 
10 #include <stdio.h>
11 #define NAMSIZ 76
12 
13 struct iorec {
14 	char		*fileptr;	/* ptr to file window */
15 	long		lcount;		/* number of lines printed */
16 	long		llimit;		/* maximum number of text lines */
17 	FILE		*fbuf;		/* FILE ptr */
18 	struct iorec	*fchain;	/* chain to next file */
19 	long		*flev;		/* ptr to associated file variable */
20 	char		*pfname;	/* ptr to name of file */
21 	long		funit;		/* file status flags */
22 	long		size;		/* size of elements in the file */
23 	char		fname[NAMSIZ];	/* name of associated UNIX file */
24 	char		buf[BUFSIZ];	/* I/O buffer */
25 	char		window[1];	/* file window element */
26 };
27