Subversion Repositories HelenOS

Rev

Rev 2369 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2369 Rev 2404
-
 
1
/*
-
 
2
 * Copyright (c) 1987,1997, Prentice Hall
-
 
3
 * All rights reserved.
-
 
4
 *
-
 
5
 * Redistribution and use of the MINIX operating system in source and
-
 
6
 * binary forms, with or without modification, are permitted provided
-
 
7
 * that the following conditions are met:
-
 
8
 
-
 
9
 * - Redistributions of source code must retain the above copyright
-
 
10
 *   notice, this list of conditions and the following disclaimer.
-
 
11
 
-
 
12
 * - Redistributions in binary form must reproduce the above
-
 
13
 *   copyright notice, this list of conditions and the following
-
 
14
 *   disclaimer in the documentation and/or other materials provided
-
 
15
 *   with the distribution.
-
 
16
 
-
 
17
 * - Neither the name of Prentice Hall nor the names of the software
-
 
18
 *   authors or contributors may be used to endorse or promote
-
 
19
 *   products derived from this software without specific prior
-
 
20
 *   written permission.
-
 
21
 
-
 
22
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS, AUTHORS, AND
-
 
23
 * CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
-
 
24
 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-
 
25
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-
 
26
 * IN NO EVENT SHALL PRENTICE HALL OR ANY AUTHORS OR CONTRIBUTORS BE
-
 
27
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-
 
28
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-
 
29
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
-
 
30
 * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-
 
31
 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
-
 
32
 * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-
 
33
 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
 
34
 */
-
 
35
 
1
/* This is the per-process information.  A slot is reserved for each potential
36
/* This is the per-process information.  A slot is reserved for each potential
2
 * process.
37
 * process.
3
 */
38
 */
4
 
39
 
5
   
40
   
6
#ifndef _FPROC_H
41
#ifndef _FPROC_H
7
#define _FPROC_H
42
#define _FPROC_H
8
 
43
 
9
typedef struct {
44
typedef struct {
10
      inode_t *fp_workdir;     /* pointer to working directory's inode */
45
      inode_t *fp_workdir;     /* pointer to working directory's inode */
11
      inode_t *fp_rootdir;     /* pointer to current root dir (see chroot) */
46
      inode_t *fp_rootdir;     /* pointer to current root dir (see chroot) */
12
      filp_t *fp_filp[OPEN_MAX];/* the file descriptor table */
47
      filp_t *fp_filp[OPEN_MAX];/* the file descriptor table */
13
      int fp_cum_io_partial;    /* partial byte count if read can't finish */
48
      int fp_cum_io_partial;    /* partial byte count if read can't finish */
14
      pid_t fp_pid;             /* process id */
49
      pid_t fp_pid;             /* process id */
15
      int connected;        /* is connection valid? */
50
      int connected;        /* is connection valid? */
16
      void *buffer;         /* buffer for data */
51
      void *buffer;         /* buffer for data */
17
    } fproc_t;
52
    } fproc_t;
18
 
53
 
19
extern fproc_t fproc[NR_PROCS];
54
extern fproc_t fproc[NR_PROCS];
20
 
55
 
21
#endif /* _FPROC_H */
56
#endif /* _FPROC_H */
22
 
57
 
23
 
58