panic() cleanup.
[minix.git] / servers / iso9660fs / buf.h
blobf61880f64ae47eb6ef167e0caa8395fdd00e4b8a
1 #include <sys/dir.h> /* need struct direct */
2 #include <dirent.h>
4 PUBLIC struct buf {
5 union {
6 char b__data[_MAX_BLOCK_SIZE]; /* ordinary user data */
7 struct direct b__dir[NR_DIR_ENTRIES(_MAX_BLOCK_SIZE)];/* directory block */
8 } b;
10 block_t b_blocknr; /* block number of its (minor) device */
11 char b_count; /* number of users of this buffer */
12 } buf[NR_BUFS];
14 /* A block is free if b_dev == NO_DEV. */
16 #define NIL_BUF ((struct buf *) 0) /* indicates absence of a buffer */
18 /* These defs make it possible to use to bp->b_data instead of bp->b.b__data */
19 #define b_data b.b__data
20 #define b_dir b.b__dir
22 #define INODE_BLOCK 0 /* inode block */
23 #define DIRECTORY_BLOCK 1 /* directory block */