source: branches/minix3-book/servers/fs/glo.h@ 11

Last change on this file since 11 was 4, checked in by Mattia Monga, 14 years ago

Importazione sorgenti libro

File size: 1.5 KB
RevLine 
[4]1/* EXTERN should be extern except for the table file */
2#ifdef _TABLE
3#undef EXTERN
4#define EXTERN
5#endif
6
7/* File System global variables */
8EXTERN struct fproc *fp; /* pointer to caller's fproc struct */
9EXTERN int super_user; /* 1 if caller is super_user, else 0 */
10EXTERN int susp_count; /* number of procs suspended on pipe */
11EXTERN int nr_locks; /* number of locks currently in place */
12EXTERN int reviving; /* number of pipe processes to be revived */
13EXTERN off_t rdahedpos; /* position to read ahead */
14EXTERN struct inode *rdahed_inode; /* pointer to inode to read ahead */
15EXTERN Dev_t root_dev; /* device number of the root device */
16EXTERN time_t boottime; /* time in seconds at system boot */
17
18/* The parameters of the call are kept here. */
19EXTERN message m_in; /* the input message itself */
20EXTERN message m_out; /* the output message used for reply */
21EXTERN int who; /* caller's proc number */
22EXTERN int call_nr; /* system call number */
23EXTERN char user_path[PATH_MAX];/* storage for user path name */
24
25/* The following variables are used for returning results to the caller. */
26EXTERN int err_code; /* temporary storage for error number */
27EXTERN int rdwt_err; /* status of last disk i/o request */
28
29/* Data initialized elsewhere. */
30extern _PROTOTYPE (int (*call_vec[]), (void) ); /* sys call table */
31extern char dot1[2]; /* dot1 (&dot1[0]) and dot2 (&dot2[0]) have a special */
32extern char dot2[3]; /* meaning to search_dir: no access permission check. */
Note: See TracBrowser for help on using the repository browser.