Revision 807a91b7a697e6dee1e41babc4c12ad8d73a4ac1 authored by Ken Thompson on 06 November 1973, 02:13:05 UTC, committed by Ken Thompson on 06 November 1973, 02:13:05 UTC
Work on file man/man5/core.5

Co-Authored-By: Dennis Ritchie <dmr@research.uucp>
Synthesized-from: v4
1 parent 14428c7
Raw File
buf.h
struct buf {
	int	b_flags;
	struct	buf *b_forw;
	struct	buf *b_back;
	struct	buf *av_forw;
	struct	buf *av_back;
	int	b_dev;
	int	b_wcount;
	char	*b_addr;
	char	*b_blkno;
} buf[NBUF];

/*
 * forw and back are shared with "buf" struct.
 */
struct devtab {
	char	d_active;
	char	d_errcnt;
	struct	buf *b_forw;
	struct	buf *b_back;
	struct	buf *d_actf;
	struct 	buf *d_actl;
} devtab[NMAJ];

struct	buf bfreelist;

#define	B_READ	01
#define	B_DONE	02
#define	B_ERROR	04
#define	B_BUSY	010
#define	B_XMEM	060
#define	B_WANTED 0100
#define	B_RELOC	0200
#define	B_ASYNC	0400
#define	B_DELWRI 01000
back to top