Merge of VFS by Balasz Gerofi with Minix trunk.
[minix3.git] / servers / vfs / glo.h
blob454425cd73dc8692fc9c95d89103040dd973643c
1 /* EXTERN should be extern except for the table file */
2 #ifdef _TABLE
3 #undef EXTERN
4 #define EXTERN
5 #endif
7 /* File System global variables */
8 EXTERN struct fproc *fp; /* pointer to caller's fproc struct */
9 EXTERN int super_user; /* 1 if caller is super_user, else 0 */
10 EXTERN int susp_count; /* number of procs suspended on pipe */
11 EXTERN int nr_locks; /* number of locks currently in place */
12 EXTERN int reviving; /* number of pipe processes to be revived */
14 EXTERN Dev_t root_dev; /* device number of the root device */
15 EXTERN int ROOT_FS_E; /* kernel endpoint of the root FS proc */
16 EXTERN int last_login_fs_e; /* endpoint of the FS proc that logged in
17 before the corresponding mount request */
18 EXTERN time_t boottime; /* time in seconds at system boot */
20 /* The parameters of the call are kept here. */
21 EXTERN message m_in; /* the input message itself */
22 EXTERN message m_out; /* the output message used for reply */
23 EXTERN int who_p, who_e; /* caller's proc number, endpoint */
24 EXTERN int call_nr; /* system call number */
25 EXTERN message mount_m_in; /* the input message itself */
27 EXTERN char user_fullpath[PATH_MAX]; /* storage for user path name */
28 EXTERN short cum_path_processed; /* number of characters processed */
30 /* The following variables are used for returning results to the caller. */
31 EXTERN int err_code; /* temporary storage for error number */
32 EXTERN int rdwt_err; /* status of last disk i/o request */
34 /* Data initialized elsewhere. */
35 extern _PROTOTYPE (int (*call_vec[]), (void) ); /* sys call table */
36 extern char dot1[2]; /* dot1 (&dot1[0]) and dot2 (&dot2[0]) have a special */
37 extern char dot2[3]; /* meaning to search_dir: no access permission check. */