glo.h

来自「一个简单的操作系统minix的核心代码」· C头文件 代码 · 共 36 行

H
36
字号
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
				src/fs/glo.h	 	 
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

19900	/* EXTERN should be extern except for the table file */
19901	#ifdef _TABLE
19902	#undef EXTERN
19903	#define EXTERN
19904	#endif
19905	
19906	/* File System global variables */
19907	EXTERN struct fproc *fp;        /* pointer to caller's fproc struct */
19908	EXTERN int super_user;          /* 1 if caller is super_user, else 0 */
19909	EXTERN int dont_reply;          /* normally 0; set to 1 to inhibit reply */
19910	EXTERN int susp_count;          /* number of procs suspended on pipe */
19911	EXTERN int nr_locks;            /* number of locks currently in place */
19912	EXTERN int reviving;            /* number of pipe processes to be revived */
19913	EXTERN off_t rdahedpos;         /* position to read ahead */
19914	EXTERN struct inode *rdahed_inode;      /* pointer to inode to read ahead */
19915	
19916	/* The parameters of the call are kept here. */
19917	EXTERN message m;               /* the input message itself */
19918	EXTERN message m1;              /* the output message used for reply */
19919	EXTERN int who;                 /* caller's proc number */
19920	EXTERN int fs_call;             /* system call number */
19921	EXTERN char user_path[PATH_MAX];/* storage for user path name */
19922	
19923	/* The following variables are used for returning results to the caller. */
19924	EXTERN int err_code;            /* temporary storage for error number */
19925	EXTERN int rdwt_err;            /* status of last disk i/o request */
19926	
19927	/* Data which need initialization. */
19928	extern _PROTOTYPE (int (*call_vector[]), (void) ); /* sys call table */
19929	extern int max_major;  /* maximum major device (+ 1) */
19930	extern char dot1[2];   /* dot1 (&dot1[0]) and dot2 (&dot2[0]) have a special */
19931	extern char dot2[3];   /* meaning to search_dir: no access permission check. */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?