date and time created 83/10/02 21:41:07 by sam
[unix-history] / usr / src / usr.bin / systat / systat.h
CommitLineData
d830bff6 1/* systat.h 1.2 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[];
55
b50325b5
SL
56char *kmemf;
57char *memf;
58char *swapf;
59int kmem;
60int mem;
61int swap;
b50325b5
SL
62int col;
63long nproc;
64long procp;
d830bff6
SL
65struct proc *kprocp;
66long ntext;
67long textp;
68struct text *xtext;
b50325b5
SL
69double ccpu;
70double lccpu;
71char *malloc();
d830bff6 72char *calloc();
b50325b5
SL
73char *namp;
74char *strncpy();
75char c;
76char hostname[32];
77int numprocs;
78int numknown;
79int naptime;
80int maxind;
81long getw();
82float total;
83int factor;
84double lave;
85int dellave;
86struct passwd *getpwuid();
87char pidname[30];
88struct pte *usrpt;
89struct pte *Usrptma;
90
91WINDOW *wnd;