Commit | Line | Data |
---|---|---|
506a359f KT |
1 | struct proc { |
2 | char p_stat; | |
3 | char p_flag; | |
4 | char p_pri; | |
5 | char p_sig; | |
6 | char p_ndis; | |
7 | char p_cook; | |
8 | int p_ttyp; | |
9 | int p_pid; | |
10 | int p_ppid; | |
11 | int p_addr; | |
12 | int p_size; | |
13 | int p_wchan; | |
14 | int *p_textp; | |
15 | } proc[NPROC]; | |
16 | ||
17 | /* stat codes */ | |
18 | #define SSLEEP 1 | |
19 | #define SWAIT 2 | |
20 | #define SRUN 3 | |
21 | #define SIDL 4 | |
22 | #define SZOMB 5 | |
23 | ||
24 | /* flag codes */ | |
25 | #define SLOAD 01 | |
26 | #define SSYS 02 | |
27 | #define SLOCK 04 | |
28 | #define SSWAP 010 |