reorganize window management to allow display routines to set
[unix-history] / usr / src / usr.bin / systat / systat.h
/* systat.h 1.2 83/10/02 */
#include <sys/param.h>
#include <sys/dir.h>
#include <sys/user.h>
#include <sys/proc.h>
#include <sys/timeb.h>
#include <sys/vm.h>
#include <sys/file.h>
#include <sys/map.h>
#include <sys/conf.h>
#include <sys/text.h>
#include <machine/pte.h>
#include <nlist.h>
#include <pwd.h>
#include <math.h>
#include <curses.h>
#include <signal.h>
#include <ctype.h>
struct p_times {
short pt_pid;
float pt_pctcpu;
int pt_uid;
int pt_paddr;
struct proc *pt_pp;
} *pt;
struct procs {
int pid;
char cmd[16];
} procs[200];
int numprocs;
struct users {
int k_uid;
char k_name[16];
} known[30];
struct cmdtab {
char *c_name; /* command name */
int (*c_refresh)(); /* display refresh */
int (*c_fetch)(); /* sets up data structures */
int (*c_label)(); /* label display */
int (*c_init)(); /* initialize namelist, etc. */
WINDOW *(*c_open)(); /* open display */
int (*c_close)(); /* close display */
char c_flags; /* been initialized (right now) */
};
struct cmdtab *curcmd;
struct cmdtab cmdtab[];
char *kmemf;
char *memf;
char *swapf;
int kmem;
int mem;
int swap;
int col;
long nproc;
long procp;
struct proc *kprocp;
long ntext;
long textp;
struct text *xtext;
double ccpu;
double lccpu;
char *malloc();
char *calloc();
char *namp;
char *strncpy();
char c;
char hostname[32];
int numprocs;
int numknown;
int naptime;
int maxind;
long getw();
float total;
int factor;
double lave;
int dellave;
struct passwd *getpwuid();
char pidname[30];
struct pte *usrpt;
struct pte *Usrptma;
WINDOW *wnd;