[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.10

1.10    ! millert     1: /*     $OpenBSD: extern.h,v 1.9 2001/12/07 09:18:08 deraadt 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:
1.10    ! millert    65: int     checkhost(struct inpcb *);
        !            66: int     checkport(struct inpcb *);
        !            67: void    closeiostat(WINDOW *);
        !            68: void    closekre(WINDOW *);
        !            69: void    closembufs(WINDOW *);
        !            70: void    closenetstat(WINDOW *);
        !            71: void    closepigs(WINDOW *);
        !            72: void    closeswap(WINDOW *);
        !            73: int     cmdiostat(char *, char *);
        !            74: int     cmdkre(char *, char *);
        !            75: int     cmdnetstat(char *, char *);
        !            76: struct  cmdtab *lookup(char *);
        !            77: void    command(char *);
        !            78: void    sigdie(int);
        !            79: void    die(void);
        !            80: void    sigdisplay(int);
        !            81: void    display(void);
        !            82: int     dkinit(int);
        !            83: int     dkcmd(char *, char *);
        !            84: void    error(const char *fmt, ...);
        !            85: void    fetchiostat(void);
        !            86: void    fetchkre(void);
        !            87: void    fetchmbufs(void);
        !            88: void    fetchnetstat(void);
        !            89: void    fetchpigs(void);
        !            90: void    fetchswap(void);
        !            91: int     initiostat(void);
        !            92: int     initkre(void);
        !            93: int     initmbufs(void);
        !            94: int     initnetstat(void);
        !            95: int     initpigs(void);
        !            96: int     initswap(void);
        !            97: void    keyboard(void);
        !            98: int     kvm_ckread(void *, void *, int);
        !            99: void    labeliostat(void);
        !           100: void    labelkre(void);
        !           101: void    labelmbufs(void);
        !           102: void    labelnetstat(void);
        !           103: void    labelpigs(void);
        !           104: void    labels(void);
        !           105: void    labelswap(void);
        !           106: void    load(void);
        !           107: int     netcmd(char *, char *);
        !           108: void    nlisterr(struct nlist []);
        !           109: WINDOW *openiostat(void);
        !           110: WINDOW *openkre(void);
        !           111: WINDOW *openmbufs(void);
        !           112: WINDOW *opennetstat(void);
        !           113: WINDOW *openpigs(void);
        !           114: WINDOW *openswap(void);
        !           115: int     prefix(char *, char *);
        !           116: void    sigwinch(int);
        !           117: void    showiostat(void);
        !           118: void    showkre(void);
        !           119: void    showmbufs(void);
        !           120: void    shownetstat(void);
        !           121: void    showpigs(void);
        !           122: void    showswap(void);
        !           123: void    status(void);
        !           124: void    suspend(int);
        !           125: void    gethz(void);
1.9       deraadt   126:
                    127: extern volatile sig_atomic_t gotdie;
                    128: extern volatile sig_atomic_t gotdisplay;
                    129: extern volatile sig_atomic_t gotwinch;
                    130:
                    131: extern double dellave;
                    132: extern WINDOW *wload;