Subversion Repositories HelenOS

Rev

Rev 2404 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2404 Rev 2435
Line 30... Line 30...
30
 * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
30
 * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
31
 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
31
 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
32
 * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
32
 * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
33
 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33
 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34
 */
34
 */
35
 
35
 
36
/* This is the per-process information.  A slot is reserved for each potential
36
/** @addtogroup FileSystemImpl
-
 
37
* @{
-
 
38
*/
-
 
39
 
-
 
40
/**
37
 * process.
41
 * @file    fproc.h
-
 
42
 * @brief Per-process information definition
38
 */
43
 */
39
 
44
 
40
   
45
   
41
#ifndef _FPROC_H
46
#ifndef _FPROC_H
42
#define _FPROC_H
47
#define _FPROC_H
43
 
48
 
-
 
49
/**
-
 
50
 * This is the per-process information.  A slot is reserved for each potential process.
-
 
51
 */      
44
typedef struct {
52
typedef struct {
45
      inode_t *fp_workdir;     /* pointer to working directory's inode */
53
      inode_t *fp_workdir;     /**< pointer to working directory's inode */
46
      inode_t *fp_rootdir;     /* pointer to current root dir (see chroot) */
54
      inode_t *fp_rootdir;     /**< pointer to current root dir (see chroot) */
47
      filp_t *fp_filp[OPEN_MAX];/* the file descriptor table */
55
      filp_t *fp_filp[OPEN_MAX];/**< the file descriptor table */
48
      int fp_cum_io_partial;    /* partial byte count if read can't finish */
56
      int fp_cum_io_partial;    /**< partial byte count if read can't finish */
49
      pid_t fp_pid;             /* process id */
57
      pid_t fp_pid;             /**< process id */
50
      int connected;        /* is connection valid? */
58
      int connected;        /**< is connection valid? */
51
      void *buffer;         /* buffer for data */
59
      void *buffer;         /**< buffer for data */
52
    } fproc_t;
60
    } fproc_t;
53
 
61
 
54
extern fproc_t fproc[NR_PROCS];
62
extern fproc_t fproc[NR_PROCS];
55
 
63
 
56
#endif /* _FPROC_H */
64
#endif /* _FPROC_H */
57
 
65
 
-
 
66
 
-
 
67
/**
-
 
68
 * }
-
 
69
 */
-
 
70