1: /*
2: * psout: structure output by 'ps -r'.
3: * Most fields are copies of the proc (p_...) or user (u_...)
4: * structures for the given process, see <sys/user.h> & <sys/proc.h>
5: */
6:
7: #ifndef makedev
8: #include <sys/types.h>
9: #endif
10:
11: struct psout {
12: dev_t o_ttyd; /* u_ttyd */
13: int o_flag; /* p_flag */
14: short o_pid; /* p_pid */
15: char o_tty[9]; /* 1st few chars of tty name with 'tty' stripped, if present */
16: char o_stat; /* p_stat */
17: short o_uid; /* p_uid */
18: char o_uname[9]; /* login name of process owner */
19: short o_ppid; /* p_ppid */
20: char o_cpu; /* p_cpu */
21: char o_pri; /* p_pri */
22: char o_nice; /* p_nice */
23: short o_addr0; /* p_addr[0] */
24: short o_size; /* p_size */
25: caddr_t o_wchan; /* p_wchan */
26: time_t o_utime; /* u_utime */
27: time_t o_stime; /* u_stime */
28: time_t o_cutime; /* u_cutime */
29: time_t o_cstime; /* u_cstime */
30: short o_pgrp; /* p_pgrp */
31: int o_sigs; /* sum of SIGINT & SIGQUIT,
32: if == 2 proc is ignoring both.*/
33: char o_comm[15]; /* u_comm */
34: char o_args[64]; /* best guess at args to process */
35: };
Defined struct's
psout
defined in line
11; used 28 times
Usage of this include