(no message)
[unix-history] / usr / src / usr.bin / systat / systat.h
CommitLineData
27e2345d 1/* systat.h 1.3 83/10/02 */
b50325b5
SL
2
3#include <sys/param.h>
4#include <sys/dir.h>
5#include <sys/user.h>
6#include <sys/proc.h>
7#include <sys/timeb.h>
8#include <sys/vm.h>
9#include <sys/file.h>
d830bff6
SL
10#include <sys/map.h>
11#include <sys/conf.h>
12#include <sys/text.h>
b50325b5
SL
13
14#include <machine/pte.h>
15
16#include <nlist.h>
17#include <pwd.h>
18#include <math.h>
19#include <curses.h>
20#include <signal.h>
21#include <ctype.h>
22
b50325b5
SL
23struct p_times {
24 short pt_pid;
25 float pt_pctcpu;
26 int pt_uid;
27 int pt_paddr;
28 struct proc *pt_pp;
29} *pt;
30
31struct procs {
32 int pid;
33 char cmd[16];
34} procs[200];
35int numprocs;
36
37struct users {
38 int k_uid;
39 char k_name[16];
40} known[30];
41
d830bff6
SL
42struct cmdtab {
43 char *c_name; /* command name */
44 int (*c_refresh)(); /* display refresh */
45 int (*c_fetch)(); /* sets up data structures */
46 int (*c_label)(); /* label display */
47 int (*c_init)(); /* initialize namelist, etc. */
48 WINDOW *(*c_open)(); /* open display */
49 int (*c_close)(); /* close display */
50 char c_flags; /* been initialized (right now) */
51};
52
53struct cmdtab *curcmd;
54struct cmdtab cmdtab[];
4fefc2e5 55struct cmdtab *lookup();
d830bff6 56
b50325b5
SL
57char *kmemf;
58char *memf;
59char *swapf;
60int kmem;
61int mem;
62int swap;
b50325b5
SL
63int col;
64long nproc;
65long procp;
d830bff6
SL
66struct proc *kprocp;
67long ntext;
68long textp;
69struct text *xtext;
b50325b5
SL
70double ccpu;
71double lccpu;
72char *malloc();
d830bff6 73char *calloc();
b50325b5
SL
74char *namp;
75char *strncpy();
76char c;
77char hostname[32];
78int numprocs;
79int numknown;
80int naptime;
81int maxind;
82long getw();
83float total;
84int factor;
85double lave;
86int dellave;
87struct passwd *getpwuid();
88char pidname[30];
89struct pte *usrpt;
90struct pte *Usrptma;
91
92WINDOW *wnd;