2012-02-13 16:28:04 +01:00
|
|
|
#ifndef __VFS_FS_H__
|
|
|
|
#define __VFS_FS_H__
|
|
|
|
|
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 */
|
|
|
|
|
2009-05-08 15:56:41 +02:00
|
|
|
#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); \
|
2010-03-05 16:05:11 +01:00
|
|
|
panic("sanity check failed"); \
|
2009-05-08 15:56:41 +02:00
|
|
|
} \
|
|
|
|
} 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 <sys/types.h>
|
|
|
|
#include <minix/const.h>
|
|
|
|
#include <minix/type.h>
|
2005-08-02 17:29:17 +02:00
|
|
|
#include <minix/dmap.h>
|
2010-04-08 15:41:35 +02:00
|
|
|
#include <minix/ds.h>
|
2010-04-09 23:56:44 +02:00
|
|
|
#include <minix/rs.h>
|
2005-04-21 16:53:53 +02:00
|
|
|
|
|
|
|
#include <limits.h>
|
|
|
|
#include <errno.h>
|
2010-11-23 20:34:56 +01:00
|
|
|
#include <unistd.h>
|
2005-04-21 16:53:53 +02:00
|
|
|
|
|
|
|
#include <minix/syslib.h>
|
2005-07-19 15:21:51 +02:00
|
|
|
#include <minix/sysutil.h>
|
2010-07-09 14:58:18 +02:00
|
|
|
#include <minix/timers.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"
|
2012-02-13 16:28:04 +01:00
|
|
|
#include "threads.h"
|
2005-04-21 16:53:53 +02:00
|
|
|
#include "glo.h"
|
2012-02-13 16:28:04 +01:00
|
|
|
#include "comm.h"
|
|
|
|
#include "vmnt.h"
|
|
|
|
|
|
|
|
#endif
|