xref: /original-bsd/usr.bin/pascal/src/iorec.h (revision a91856c6)
1 /*-
2  * Copyright (c) 1980 The Regents of the University of California.
3  * All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  *
7  *	@(#)iorec.h	5.2 (Berkeley) 04/16/91
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