home *** CD-ROM | disk | FTP | other *** search
- #ifndef GETNODE_H
- #define GETNODE_H
-
- #include "confdevt.h"
-
- /* don't give me any crap about one statement per line. */
- /* this is a lot more readable on half a page than on two. */
-
- /* names can be 0 for not found. */
-
- #define NODE_ID_INO 0
- #define NODE_ID_DEV 1
- #define NODE_ID_FIFOINO 2
- #define NODE_ID_FIFO 3
-
- struct nodebuf
- {
- char *type; /* e.g., chr, blk, reg */
- int flagdev; /* one of the NODE_ID settings */
- union
- {
- /* XXX for inum/dev types here */
- struct { unsigned inum; unsigned DEV_T dev; char *name; int flagnfs; } ino;
- struct { int maj; int min; char *name; } dev;
- }
- id; /* inode or device */
- }
- ;
-
- extern int getnode();
- extern int getnodeinit();
-
- #endif
-