xref: /original-bsd/usr.bin/pascal/src/iorec.h (revision 55330032)
1 /* Copyright (c) 1979 Regents of the University of California */
2 
3 /* static	char sccsid[] = "@(#)iorec.h 1.1 08/27/80"; */
4 
5 #include <stdio.h>
6 #define NAMSIZ 76
7 
8 struct iorec {
9 	char		*fileptr;	/* ptr to file window */
10 	long		lcount;		/* number of lines printed */
11 	long		llimit;		/* maximum number of text lines */
12 	FILE		*fbuf;		/* FILE ptr */
13 	struct iorec	*fchain;	/* chain to next file */
14 	long		*flev;		/* ptr to associated file variable */
15 	char		*pfname;	/* ptr to name of file */
16 	long		funit;		/* file status flags */
17 	long		size;		/* size of elements in the file */
18 	char		fname[NAMSIZ];	/* name of associated UNIX file */
19 	char		buf[BUFSIZ];	/* I/O buffer */
20 	char		window[1];	/* file window element */
21 };
22