tools/llvm: Do not build with symbols
[minix3.git] / lib / libpuffs / glo.h
blobb38c7634660ab0aacb6978e10813432c1fd72054
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 <fs/puffs/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 char user_path[PATH_MAX+1]; /* pathname to be processed */
48 EXTERN dev_t fs_dev; /* The device that is handled by this FS proc
50 EXTERN char fs_name[PATH_MAX+1];
52 EXTERN int unmountdone;
53 EXTERN int exitsignaled;
55 #endif /* LIBPUFFS_GLO_H */