vm: fix potential null deref
[minix.git] / servers / ext2 / glo.h
blob2f20f8c8de3f2a9f2fd2721588becf53eab56cc4
1 /* EXTERN should be extern except for the table file */
3 #ifndef EXT2_GLO_H
4 #define EXT2_GLO_H
6 #ifdef _TABLE
7 #undef EXTERN
8 #define EXTERN
9 #endif
11 #include <minix/vfsif.h>
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 */
17 EXTERN int cch[NR_INODES];
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. */
22 extern int(*fs_call_vec[]) (void);
24 EXTERN message fs_m_in;
25 EXTERN message fs_m_out;
26 EXTERN vfs_ucred_t credentials;
28 EXTERN uid_t caller_uid;
29 EXTERN gid_t caller_gid;
31 EXTERN int req_nr;
33 EXTERN endpoint_t SELF_E;
35 EXTERN char user_path[PATH_MAX+1]; /* pathname to be processed */
37 EXTERN dev_t fs_dev; /* The device that is handled by this FS proc
39 EXTERN char fs_dev_label[16]; /* Name of the device driver that is handled
40 * by this FS proc.
42 EXTERN int unmountdone;
43 EXTERN int exitsignaled;
45 /* Little hack for syncing group descriptors. */
46 EXTERN int group_descriptors_dirty;
48 EXTERN struct opt opt; /* global options */
50 /* On ext2 metadata is stored in little endian format, so we shoud take
51 * care about byte swapping, when have BE CPU. */
52 EXTERN int le_CPU; /* little/big endian, if TRUE do not swap bytes */
54 #endif /* EXT2_GLO_H */