h15774
s 00005/00007/00021
d D 1.3 82/09/13 12:59:14 ross 3 2
c Change old mx driver references to new ones.
e
s 00000/00000/00028
d D 1.2 82/09/13 11:04:11 ross 2 1
c 
e
s 00028/00000/00000
d D 1.1 82/09/13 10:16:17 ross 1 0
e
u
U
t
T
I 1
/*
 * One file structure is allocated
 * for each open/creat/pipe call.
 * Main use is to hold the read/write
 * pointer associated with each open
 * file.
 */
struct	file
{
	char	f_flag;
D 3
	char	f_count;	/* reference count */
	struct inode *f_inode;	/* pointer to inode structure */
E 3
I 3
	char	f_count;			/* reference count */
	struct inode *f_inode;			/* pointer to inode structure */
E 3
	union {
D 3
		off_t	f_offset;	/* read/write character pointer */
		struct chan *f_chan;	/* mpx channel pointer */
E 3
I 3
		off_t	f_offset;		/* read/write character pointer */
		struct	mxchan	*f_chan;	/* mx file chan ptr */
E 3
	} f_un;
};

extern struct file file[];	/* The file table itself */

/* flags */
#define	FREAD	01
#define	FWRITE	02
#define	FPIPE	04
D 3
#define FMPX	010
#define	FMPY	020
#define	FMP	030
E 3
I 3
#define	FMX	010
E 3
#define	FKERNEL	040
E 1
