BSD 4_3_Reno release
[unix-history] / usr / src / usr.bin / systat / systat.h
index 74afc03..ec648ba 100644 (file)
@@ -1,24 +1,24 @@
-/*      systat.h     1.3     83/10/02     */
+/*
+ * Copyright (c) 1980, 1989 Regents of the University of California.
+ * All rights reserved.  The Berkeley software License Agreement
+ * specifies the terms and conditions for redistribution.
+ *
+ *     @(#)systat.h    5.4 (Berkeley) 3/12/90
+ */
+
+#include <netdb.h>
+#include <nlist.h>
+#include <signal.h>
+#include <curses.h>
+#include <math.h>
 
 #include <sys/param.h>
 
 #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/types.h>
 #include <sys/file.h>
 #include <sys/file.h>
-#include <sys/map.h>
-#include <sys/conf.h>
-#include <sys/text.h>
-
-#include <machine/pte.h>
+#include <sys/dkstat.h>
 
 
-#include <nlist.h>
-#include <pwd.h>
-#include <math.h>
-#include <curses.h>
-#include <signal.h>
-#include <ctype.h>
+#include <netinet/in.h>
+#include <arpa/inet.h>
 
 struct p_times {
         short   pt_pid;
 
 struct p_times {
         short   pt_pid;
@@ -27,6 +27,8 @@ struct p_times {
         int     pt_paddr;
         struct  proc *pt_pp;
 } *pt;
         int     pt_paddr;
         struct  proc *pt_pp;
 } *pt;
+long    nproc, procp;
+struct proc *kprocp;
 
 struct procs {
         int     pid;
 
 struct procs {
         int     pid;
@@ -38,6 +40,7 @@ struct users {
         int     k_uid;
         char    k_name[16];
 } known[30];
         int     k_uid;
         char    k_name[16];
 } known[30];
+int     numknown;
 
 struct  cmdtab {
         char    *c_name;               /* command name */
 
 struct  cmdtab {
         char    *c_name;               /* command name */
@@ -47,45 +50,46 @@ struct  cmdtab {
        int     (*c_init)();            /* initialize namelist, etc. */
        WINDOW  *(*c_open)();           /* open display */
        int     (*c_close)();           /* close display */
        int     (*c_init)();            /* initialize namelist, etc. */
        WINDOW  *(*c_open)();           /* open display */
        int     (*c_close)();           /* close display */
-       char    c_flags;                /* been initialized (right now) */
+       int     (*c_cmd)();             /* display command interpreter */
+       char    c_flags;                /* see below */
 };
 
 };
 
+#define        CF_INIT         0x1             /* been initialized */
+#define        CF_LOADAV       0x2             /* display w/ load average */
+
 struct cmdtab *curcmd;
 struct cmdtab cmdtab[];
 struct cmdtab *curcmd;
 struct cmdtab cmdtab[];
+struct cmdtab *lookup();
 
 
-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;
+int     kmem, mem, swap;
+int     naptime, col;
+
+long   ntext, textp;
 struct text *xtext;
 struct text *xtext;
-double  ccpu;
+
+int    fscale;
 double  lccpu;
 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];
+double avenrun[3];
+
+char    *kmemf, *memf, *swapf;
+int    hz, phz;
+char   **dr_name;
+int    dk_ndrive;
+int    *dk_select;
+float  *dk_mspw;
+char    c, *namp, hostname[MAXHOSTNAMELEN];
+
+int    nports;
+int    nhosts;
+int    protos;
+#define        TCP     0x1
+#define        UDP     0x2
+
 struct  pte *usrpt;
 struct  pte *Usrptma;
 
 WINDOW  *wnd;
 struct  pte *usrpt;
 struct  pte *Usrptma;
 
 WINDOW  *wnd;
+int    CMDLINE;
+
+char    *malloc(), *calloc(), *strncpy();
+long    getw();