/*  Channel status information block  */

struct cstat {
	short	c_csw;		/* Channel status word */
	short	c_sblk;		/* Starting block number */
	short	c_leng;		/* Length of file */
	short	c_used;		/* Highest block written */
	short	c_unit;		/* Device unit number */
	short	c_pdev;		/* Physical device name */
};


/* CSW bits */

#define	C_HERR	0000001
#define	C_INDEX	0000076
#define	C_RENAM	0000100
#define	C_ENTER	0000200
#define	C_DSEG	0017600
#define	C_EOF	0020000
#define	C_ACTV	0100000
