Annotation of 43BSD/ucb/systat/systat.h, revision 1.1

1.1     ! root        1: /*
        !             2:  * Copyright (c) 1980 Regents of the University of California.
        !             3:  * All rights reserved.  The Berkeley software License Agreement
        !             4:  * specifies the terms and conditions for redistribution.
        !             5:  *
        !             6:  *     @(#)systat.h    5.1 (Berkeley) 5/30/85
        !             7:  */
        !             8: 
        !             9: #include <netdb.h>
        !            10: #include <nlist.h>
        !            11: #include <signal.h>
        !            12: #include <curses.h>
        !            13: 
        !            14: #include <sys/param.h>
        !            15: #include <sys/file.h>
        !            16: #include <sys/dk.h>
        !            17: 
        !            18: #include <netinet/in.h>
        !            19: #include <arpa/inet.h>
        !            20: 
        !            21: struct p_times {
        !            22:         short   pt_pid;
        !            23:         float   pt_pctcpu;
        !            24:         int     pt_uid;
        !            25:         int     pt_paddr;
        !            26:         struct  proc *pt_pp;
        !            27: } *pt;
        !            28: long    nproc, procp;
        !            29: struct proc *kprocp;
        !            30: 
        !            31: struct procs {
        !            32:         int     pid;
        !            33:         char    cmd[16];
        !            34: } procs[200];
        !            35: int     numprocs;
        !            36: 
        !            37: struct users {
        !            38:         int     k_uid;
        !            39:         char    k_name[16];
        !            40: } known[30];
        !            41: int     numknown;
        !            42: 
        !            43: struct  cmdtab {
        !            44:         char    *c_name;               /* command name */
        !            45:         int     (*c_refresh)();                /* display refresh */
        !            46:         int     (*c_fetch)();          /* sets up data structures */
        !            47:         int     (*c_label)();          /* label display */
        !            48:        int     (*c_init)();            /* initialize namelist, etc. */
        !            49:        WINDOW  *(*c_open)();           /* open display */
        !            50:        int     (*c_close)();           /* close display */
        !            51:        int     (*c_cmd)();             /* display command interpreter */
        !            52:        char    c_flags;                /* see below */
        !            53: };
        !            54: 
        !            55: #define        CF_INIT         0x1             /* been initialized */
        !            56: #define        CF_LOADAV       0x2             /* display w/ load average */
        !            57: 
        !            58: struct cmdtab *curcmd;
        !            59: struct cmdtab cmdtab[];
        !            60: struct cmdtab *lookup();
        !            61: 
        !            62: int     kmem, mem, swap;
        !            63: int     naptime, col;
        !            64: 
        !            65: long   ntext, textp;
        !            66: struct text *xtext;
        !            67: 
        !            68: double  lccpu;
        !            69: double avenrun[3];
        !            70: 
        !            71: char    *kmemf, *memf, *swapf;
        !            72: int    hz, phz;
        !            73: char   **dr_name;
        !            74: int    dk_ndrive;
        !            75: int    *dk_select;
        !            76: float  *dk_mspw;
        !            77: char    c, *namp, hostname[32];
        !            78: 
        !            79: int    nports;
        !            80: int    nhosts;
        !            81: int    protos;
        !            82: #define        TCP     0x1
        !            83: #define        UDP     0x2
        !            84: 
        !            85: struct  pte *usrpt;
        !            86: struct  pte *Usrptma;
        !            87: 
        !            88: WINDOW  *wnd;
        !            89: int    CMDLINE;
        !            90: 
        !            91: char    *malloc(), *calloc(), *strncpy();
        !            92: long    getw();

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.