1 /* EXTERN should be extern except for the table file */ 2 3 #ifndef EXT2_GLO_H 4 #define EXT2_GLO_H 5 6 #ifdef _TABLE 7 #undef EXTERN 8 #define EXTERN 9 #endif 10 11 #include <minix/vfsif.h> 12 13 /* The following variables are used for returning results to the caller. */ 14 EXTERN int err_code; /* temporary storage for error number */ 15 EXTERN int rdwt_err; /* status of last disk i/o request */ 16 17 EXTERN int cch[NR_INODES]; 18 19 extern char dot1[2]; /* dot1 (&dot1[0]) and dot2 (&dot2[0]) have a special */ 20 extern char dot2[3]; /* meaning to search_dir: no access permission check. */ 21 22 extern int(*fs_call_vec[]) (void); 23 24 EXTERN message fs_m_in; 25 EXTERN message fs_m_out; 26 EXTERN vfs_ucred_t credentials; 27 28 EXTERN uid_t caller_uid; 29 EXTERN gid_t caller_gid; 30 31 EXTERN int req_nr; 32 33 EXTERN char user_path[PATH_MAX+1]; /* pathname to be processed */ 34 35 EXTERN dev_t fs_dev; /* The device that is handled by this FS proc 36 */ 37 EXTERN char fs_dev_label[16]; /* Name of the device driver that is handled 38 * by this FS proc. 39 */ 40 EXTERN int unmountdone; 41 EXTERN int exitsignaled; 42 43 /* Little hack for syncing group descriptors. */ 44 EXTERN int group_descriptors_dirty; 45 46 EXTERN struct opt opt; /* global options */ 47 48 /* On ext2 metadata is stored in little endian format, so we shoud take 49 * care about byte swapping, when have BE CPU. */ 50 EXTERN int le_CPU; /* little/big endian, if TRUE do not swap bytes */ 51 52 #endif /* EXT2_GLO_H */ 53