1 /* This is the per-process information. A slot is reserved for each potential
2 * process. Thus NR_PROCS must be the same as in the kernel. It is not possible
3 * or even necessary to tell when a slot is free here.
4 */
5
6
7 EXTERN struct fproc {
8 mode_t fp_umask; /* mask set by umask system call */
9 struct inode *fp_workdir; /* pointer to working directory's inode */
10 struct inode *fp_rootdir; /* pointer to current root dir (see chroot) */
11 struct filp *fp_filp[OPEN_MAX];/* the file descriptor table */
12 uid_t fp_realuid; /* real user id */
13 uid_t fp_effuid; /* effective user id */
14 gid_t fp_realgid; /* real group id */
15 gid_t fp_effgid; /* effective group id */
16 dev_t fp_tty; /* major/minor of controlling tty */
17 int fp_fd; /* place to save fd if rd/wr can't finish */
18 char *fp_buffer; /* place to save buffer if rd/wr can't finish*/
19 int fp_nbytes; /* place to save bytes if rd/wr can't finish */
20 int fp_cum_io_partial; /* partial byte count if rd/wr can't finish */
21 signed char fp_suspended; /* set to indicate process hanging */
22 signed char fp_revived; /* set to indicate process being revived */
23 signed char fp_task; /* which task is proc suspended on */
24 signed char fp_sesldr; /* true if proc is a session leader */
25 pid_t fp_pid; /* process id */
26 long fp_cloexec; /* bit map for POSIX Table 6-2 FD_CLOEXEC */
27 } fproc[NR_PROCS];
28
29 /* Field values. */
30 #define NOT_SUSPENDED 0 /* process is not suspended on pipe or task */
31 #define SUSPENDED 1 /* process is suspended on pipe or task */
32 #define NOT_REVIVING 0 /* process is not being revived */
33 #define REVIVING 1 /* process is being revived from suspension */
34
This page was automatically generated by the
LXR engine.
Visit the LXR main site for more
information.