some coverity fixes.
[minix.git] / lib / libpuffs / glo.h
blob231817bd038d701bda762109e4b85fdf321fb75d
1 /* EXTERN should be extern except for the table file */
3 #ifndef LIBPUFFS_GLO_H
4 #define LIBPUFFS_GLO_H
6 #ifdef _TABLE
7 #undef EXTERN
8 #define EXTERN
9 #endif
11 #include <minix/vfsif.h>
13 #include "puffs_msgif.h"
15 EXTERN struct puffs_usermount *global_pu;
17 EXTERN int is_readonly_fs;
18 EXTERN int is_root_fs;
19 EXTERN int buildpath;
21 /* Sometimes user can call exit. If we received a message,
22 * report a failure to VFS before exiting. Especially on mount
23 * and unmount.
25 * Either transid of last request or 0.
27 EXTERN int last_request_transid;
29 /* The following variables are used for returning results to the caller. */
30 EXTERN int err_code; /* temporary storage for error number */
32 /* TODO: it duplicates caller_uid and caller_gid */
33 EXTERN struct puffs_kcred global_kcred;
35 extern int(*fs_call_vec[]) (void);
37 EXTERN message fs_m_in;
38 EXTERN message fs_m_out;
39 EXTERN vfs_ucred_t credentials;
41 EXTERN uid_t caller_uid;
42 EXTERN gid_t caller_gid;
44 EXTERN int req_nr;
46 EXTERN endpoint_t SELF_E;
48 EXTERN char user_path[PATH_MAX+1]; /* pathname to be processed */
50 EXTERN dev_t fs_dev; /* The device that is handled by this FS proc
52 EXTERN char fs_name[PATH_MAX+1];
54 EXTERN int unmountdone;
55 EXTERN int exitsignaled;
57 #endif /* LIBPUFFS_GLO_H */