Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 2370 → Rev 2371

/branches/fs/uspace/fs/glo.c
0,0 → 1,28
/* Global variables declaring. */
 
 
#include "fs.h"
#include "file.h"
#include "fproc.h"
#include "inode.h"
#include "../share/message.h"
 
 
/* File System global variables. */
fproc_t *fp; /* pointer to caller's fproc struct */
fproc_t fproc[NR_PROCS]; /* per process information table */
filp_t filp[NR_FILPS]; /* filp table */
 
/* The parameters of the call are kept here. */
message_params_t message_params; /* parameters of the input message */
int rd_phone; /* call number of RAMDISK driver task */
int con_phone; /* call number of CONSOLE service */
char user_path[PATH_MAX]; /* storage for user path name */
 
/* Data needed for communication with RAMDISK. */
void *buffer; /* buffer for storing data retrieved from RAMDISK */
 
/* The following variables are used for returning results to the caller. */
int err_code; /* temporary storage for error number */
int status; /* status of last disk i/o request */
 
/branches/fs/uspace/fs/glo.h
0,0 → 1,29
/* Global variables */
 
 
#ifndef _GLO_H
#define _GLO_H
 
#include "fproc.h"
#include "../share/message.h"
 
/* File System global variables. */
extern fproc_t *fp; /* pointer to caller's fproc struct */
 
/* The parameters of the call are kept here. */
extern message_params_t message_params; /* parameters of the input message */
extern int rd_phone; /* call number of RAMDISK driver task */
extern int con_phone; /* call number of CONSOLE service */
extern char user_path[PATH_MAX]; /* storage for user path name */
 
/* Data needed for communication with RAMDISK. */
extern void *buffer; /* buffer storing copied data */
 
/* The following variables are used for returning results to the caller */
extern int err_code; /* temporary storage for error number */
extern int status; /* status of last disk i/o request */
 
/* Data which need initialization. */
extern int (*call_vector[])(void); /* sys call table */
 
#endif /* _GLO_H */