home *** CD-ROM | disk | FTP | other *** search
- #ifndef STRUCT_FILE_H
- #define STRUCT_FILE_H
-
- /* On any supported system, you can #include "structfile.h" any number */
- /* of times safely to get a complete definition of struct file. */
-
- /* On an optimal system, this file would contain solely: */
- /* #include <sys/file.h> */
-
- #include "confconvexsysfile.h"
- #include "confetcconfhfileh.h"
- #include <sys/types.h>
- #include <sys/param.h> /* ultrix lock_t dorks */
- #define KERNEL
- #ifdef ETCCONFHFILEH
- #include "/etc/conf/h/file.h"
- #else
- #ifdef CONVEXSYSFILE
- #include <sys/ucred.h> /* fer cryin' out loud... */
- #ifndef FHLOCAL
- #include <sys/dmonfh.h> /* idiots */
- #endif
- #endif
- #include <sys/file.h>
- #endif
- #undef KERNEL
- #include "confodofe.h"
- #ifdef ODOFE
- /* XXX
- * This is from sys/user.h. It's ifdef KERNEL, though, and defining
- * KERNEL for user.h breaks other things.
- * Open-file table extension object structure.
- */
- struct ofile_ext {
- struct ofile_ext *oe_next; /* list of unused entries */
- short oe_nofile; /* # ofile entries */
- short oe_refcnt; /* # proc's sharing this ext */
- short oe_ccount; /* # sharing proc's in memory */
- swblk_t oe_swaddr; /* disk address when swapped */
- sema_t oe_mutex; /* misc mutex */
- struct ofile *oe_ofile; /* array of open files */
- };
- #endif
-
- #endif
-