Commit | Line | Data |
---|---|---|
b50325b5 SL |
1 | /* systat.h 1.1 83/10/01 */ |
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> | |
10 | ||
11 | #include <machine/pte.h> | |
12 | ||
13 | #include <nlist.h> | |
14 | #include <pwd.h> | |
15 | #include <math.h> | |
16 | #include <curses.h> | |
17 | #include <signal.h> | |
18 | #include <ctype.h> | |
19 | ||
20 | struct nlist nlst[]; | |
21 | ||
22 | struct p_times { | |
23 | short pt_pid; | |
24 | float pt_pctcpu; | |
25 | int pt_uid; | |
26 | int pt_paddr; | |
27 | struct proc *pt_pp; | |
28 | } *pt; | |
29 | ||
30 | struct procs { | |
31 | int pid; | |
32 | char cmd[16]; | |
33 | } procs[200]; | |
34 | int numprocs; | |
35 | ||
36 | struct users { | |
37 | int k_uid; | |
38 | char k_name[16]; | |
39 | } known[30]; | |
40 | ||
41 | char *kmemf; | |
42 | char *memf; | |
43 | char *swapf; | |
44 | int kmem; | |
45 | int mem; | |
46 | int swap; | |
47 | int pcbpf; | |
48 | int argaddr; | |
49 | int col; | |
50 | long nproc; | |
51 | long procp; | |
52 | double ccpu; | |
53 | double lccpu; | |
54 | char *malloc(); | |
55 | char *namp; | |
56 | char *strncpy(); | |
57 | char c; | |
58 | char hostname[32]; | |
59 | int numprocs; | |
60 | int numknown; | |
61 | int naptime; | |
62 | int maxind; | |
63 | long getw(); | |
64 | float total; | |
65 | int factor; | |
66 | double lave; | |
67 | int dellave; | |
68 | struct passwd *getpwuid(); | |
69 | char pidname[30]; | |
70 | struct pte *usrpt; | |
71 | struct pte *Usrptma; | |
72 | ||
73 | WINDOW *wnd; |