minix/servers/vfs/fs.h

40 lines
1 KiB
C
Raw Normal View History

2005-04-21 16:53:53 +02:00
/* This is the master header for fs. It includes some other files
* and defines the principal constants.
*/
#define _POSIX_SOURCE 1 /* tell headers to include POSIX stuff */
#define _MINIX 1 /* tell headers to include MINIX stuff */
#define _SYSTEM 1 /* tell headers that this is the kernel */
#define DO_SANITYCHECKS 0
#if DO_SANITYCHECKS
#define SANITYCHECK do { \
if(!check_vrefs() || !check_pipe()) { \
printf("VFS:%s:%d: call_nr %d who_e %d\n", \
__FILE__, __LINE__, call_nr, who_e); \
panic("sanity check failed"); \
} \
} while(0)
#else
#define SANITYCHECK
#endif
2005-08-03 13:53:36 +02:00
2005-04-21 16:53:53 +02:00
/* The following are so basic, all the *.c files get them automatically. */
#include <minix/config.h> /* MUST be first */
#include <ansi.h> /* MUST be second */
#include <sys/types.h>
#include <minix/const.h>
#include <minix/type.h>
#include <minix/dmap.h>
2005-04-21 16:53:53 +02:00
#include <limits.h>
#include <errno.h>
#include <minix/syslib.h>
#include <minix/sysutil.h>
2005-04-21 16:53:53 +02:00
#include "const.h"
2007-08-07 14:52:47 +02:00
#include "dmap.h"
2005-04-21 16:53:53 +02:00
#include "proto.h"
#include "glo.h"