BSD 3 development
[unix-history] / usr / include / psout.h
CommitLineData
aaf9b08d
BJ
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
11struct psout {
12 dev_t o_ttyd; /* u_ttyd */
13 short o_pid; /* p_pid */
14 char o_tty[2]; /* 1st 2 chars of tty name with 'tty' stripped, if present */
15 char o_flag; /* p_flag */
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 float o_pctcpu; /* ??? */
22 char o_pri; /* p_pri */
23 char o_nice; /* p_nice */
24 short o_addr0; /* p_addr[0] */
25 short o_size; /* p_size */
26 caddr_t o_wchan; /* p_wchan */
27 time_t o_utime; /* u_utime */
28 time_t o_stime; /* u_stime */
29 time_t o_cutime; /* u_cutime */
30 time_t o_cstime; /* u_cstime */
31 short int o_pgrp; /* p_pgrp */
32 size_t o_dsize; /* p_dsize */
33 size_t o_ssize; /* p_ssize */
34 size_t o_rssize; /* p_rssize */
35 char o_time; /* p_time */
36 char o_slptime; /* p_slptime */
37 unsigned o_stksize; /* computed - size of stack */
38 int o_minorflt; /* u_minorflt */
39 int o_majorflt; /* u_majorflt */
40 short o_aveflt; /* p_aveflt */
41 char *o_text; /* p_textp */
42 size_t o_swrss; /* p_swrss */
43 size_t o_xsize; /* xp_size from text.h */
44 short o_xrssize; /* xp_rssize from text.h */
45 int o_sigs; /* sum of SIGINT & SIGQUIT, if == 2 proc is ignoring both.*/
46 char o_comm[15]; /* u_comm */
47 char o_args[128]; /* best guess at args to process */
48};