00001
00002
00003
00004 #define _POSIX_SOURCE 1
00005 #define _MINIX 1
00006 #define _SYSTEM 1
00007
00008 #define DO_SANITYCHECKS 0
00009
00010 #if DO_SANITYCHECKS
00011 #define SANITYCHECK do { \
00012 if(!check_vrefs() || !check_pipe()) { \
00013 printf("VFS:%s:%d: call_nr %d who_e %d\n", \
00014 __FILE__, __LINE__, call_nr, who_e); \
00015 panic(__FILE__, "sanity check failed", NO_NUM); \
00016 } \
00017 } while(0)
00018 #else
00019 #define SANITYCHECK
00020 #endif
00021
00022
00023 #include <minix/config.h>
00024 #include <ansi.h>
00025 #include <sys/types.h>
00026 #include <minix/const.h>
00027 #include <minix/type.h>
00028 #include <minix/dmap.h>
00029
00030 #include <limits.h>
00031 #include <errno.h>
00032
00033 #include <minix/syslib.h>
00034 #include <minix/sysutil.h>
00035
00036 #include "const.h"
00037 #include "dmap.h"
00038 #include "proto.h"
00039 #include "glo.h"