[BACK]Return to extern.h CVS log [TXT][DIR] Up to [local] / src / usr.bin / systat

Annotation of src/usr.bin/systat/extern.h, Revision 1.6

1.6     ! kstailey    1: /*     $OpenBSD: extern.h,v 1.5 1997/07/15 13:42:05 kstailey Exp $     */
1.2       deraadt     2: /*     $NetBSD: extern.h,v 1.3 1996/05/10 23:16:34 thorpej Exp $       */
1.1       deraadt     3:
                      4: /*-
                      5:  * Copyright (c) 1991, 1993
                      6:  *     The Regents of the University of California.  All rights reserved.
                      7:  *
                      8:  * Redistribution and use in source and binary forms, with or without
                      9:  * modification, are permitted provided that the following conditions
                     10:  * are met:
                     11:  * 1. Redistributions of source code must retain the above copyright
                     12:  *    notice, this list of conditions and the following disclaimer.
                     13:  * 2. Redistributions in binary form must reproduce the above copyright
                     14:  *    notice, this list of conditions and the following disclaimer in the
                     15:  *    documentation and/or other materials provided with the distribution.
                     16:  * 3. All advertising materials mentioning features or use of this software
                     17:  *    must display the following acknowledgement:
                     18:  *     This product includes software developed by the University of
                     19:  *     California, Berkeley and its contributors.
                     20:  * 4. Neither the name of the University nor the names of its contributors
                     21:  *    may be used to endorse or promote products derived from this software
                     22:  *    without specific prior written permission.
                     23:  *
                     24:  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
                     25:  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
                     26:  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
                     27:  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
                     28:  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
                     29:  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
                     30:  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
                     31:  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
                     32:  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
                     33:  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
                     34:  * SUCH DAMAGE.
                     35:  *
                     36:  *      @(#)extern.h   8.1 (Berkeley) 6/6/93
                     37:  */
                     38:
                     39: #include <sys/cdefs.h>
                     40: #include <fcntl.h>
                     41: #include <kvm.h>
                     42:
                     43: extern struct  cmdtab *curcmd;
                     44: extern struct  cmdtab cmdtab[];
                     45: extern struct  text *xtext;
                     46: extern WINDOW  *wnd;
                     47: extern char    **dr_name;
                     48: extern char    c, *namp, hostname[];
                     49: extern double  avenrun[3];
                     50: extern float   *dk_mspw;
                     51: extern kvm_t   *kd;
                     52: extern long    ntext, textp;
                     53: extern int     *dk_select;
1.4       millert    54: extern long    CMDLINE;
1.1       deraadt    55: extern int     dk_ndrive;
                     56: extern int     hz, stathz;
                     57: extern int     naptime, col;
                     58: extern int     nhosts;
                     59: extern int     nports;
                     60: extern int     protos;
                     61: extern int     verbose;
                     62:
                     63: struct inpcb;
                     64:
                     65: int     checkhost __P((struct inpcb *));
                     66: int     checkport __P((struct inpcb *));
                     67: void    closeiostat __P((WINDOW *));
                     68: void    closekre __P((WINDOW *));
                     69: void    closembufs __P((WINDOW *));
                     70: void    closenetstat __P((WINDOW *));
                     71: void    closepigs __P((WINDOW *));
                     72: void    closeswap __P((WINDOW *));
                     73: int     cmdiostat __P((char *, char *));
                     74: int     cmdkre __P((char *, char *));
                     75: int     cmdnetstat __P((char *, char *));
                     76: struct  cmdtab *lookup __P((char *));
                     77: void    command __P((char *));
                     78: void    die __P((int));
                     79: void    display __P((int));
1.2       deraadt    80: int     dkinit __P((int));
1.1       deraadt    81: int     dkcmd __P((char *, char *));
                     82: void    error __P((const char *fmt, ...));
                     83: void    fetchiostat __P((void));
                     84: void    fetchkre __P((void));
                     85: void    fetchmbufs __P((void));
                     86: void    fetchnetstat __P((void));
                     87: void    fetchpigs __P((void));
                     88: void    fetchswap __P((void));
                     89: int     initiostat __P((void));
                     90: int     initkre __P((void));
                     91: int     initmbufs __P((void));
                     92: int     initnetstat __P((void));
                     93: int     initpigs __P((void));
                     94: int     initswap __P((void));
1.5       kstailey   95: void    keyboard __P((void));
1.1       deraadt    96: int     kvm_ckread __P((void *, void *, int));
                     97: void    labeliostat __P((void));
                     98: void    labelkre __P((void));
                     99: void    labelmbufs __P((void));
                    100: void    labelnetstat __P((void));
                    101: void    labelpigs __P((void));
                    102: void    labels __P((void));
                    103: void    labelswap __P((void));
                    104: void    load __P((void));
                    105: int     netcmd __P((char *, char *));
                    106: void    nlisterr __P((struct nlist []));
                    107: WINDOW *openiostat __P((void));
                    108: WINDOW *openkre __P((void));
                    109: WINDOW *openmbufs __P((void));
                    110: WINDOW *opennetstat __P((void));
                    111: WINDOW *openpigs __P((void));
                    112: WINDOW *openswap __P((void));
                    113: int     prefix __P((char *, char *));
1.6     ! kstailey  114: void    resize __P((int));
1.1       deraadt   115: void    showiostat __P((void));
                    116: void    showkre __P((void));
                    117: void    showmbufs __P((void));
                    118: void    shownetstat __P((void));
                    119: void    showpigs __P((void));
                    120: void    showswap __P((void));
                    121: void    status __P((void));
                    122: void    suspend __P((int));