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

1.12    ! deraadt     1: /*     $OpenBSD: extern.h,v 1.11 2003/06/03 02:56:17 millert 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.
1.11      millert    16:  * 3. Neither the name of the University nor the names of its contributors
1.1       deraadt    17:  *    may be used to endorse or promote products derived from this software
                     18:  *    without specific prior written permission.
                     19:  *
                     20:  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
                     21:  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
                     22:  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
                     23:  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
                     24:  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
                     25:  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
                     26:  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
                     27:  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
                     28:  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
                     29:  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
                     30:  * SUCH DAMAGE.
                     31:  *
                     32:  *      @(#)extern.h   8.1 (Berkeley) 6/6/93
                     33:  */
                     34:
                     35: #include <sys/cdefs.h>
                     36: #include <fcntl.h>
                     37: #include <kvm.h>
                     38:
                     39: extern struct  cmdtab *curcmd;
                     40: extern struct  cmdtab cmdtab[];
                     41: extern struct  text *xtext;
                     42: extern WINDOW  *wnd;
                     43: extern char    **dr_name;
                     44: extern char    c, *namp, hostname[];
                     45: extern double  avenrun[3];
                     46: extern float   *dk_mspw;
                     47: extern kvm_t   *kd;
                     48: extern long    ntext, textp;
                     49: extern int     *dk_select;
1.4       millert    50: extern long    CMDLINE;
1.1       deraadt    51: extern int     dk_ndrive;
                     52: extern int     hz, stathz;
                     53: extern int     naptime, col;
                     54: extern int     nhosts;
                     55: extern int     nports;
                     56: extern int     protos;
                     57: extern int     verbose;
                     58:
                     59: struct inpcb;
                     60:
1.10      millert    61: int     checkhost(struct inpcb *);
                     62: int     checkport(struct inpcb *);
                     63: void    closeiostat(WINDOW *);
                     64: void    closekre(WINDOW *);
                     65: void    closembufs(WINDOW *);
                     66: void    closenetstat(WINDOW *);
                     67: void    closepigs(WINDOW *);
                     68: void    closeswap(WINDOW *);
                     69: int     cmdiostat(char *, char *);
                     70: int     cmdkre(char *, char *);
                     71: int     cmdnetstat(char *, char *);
                     72: struct  cmdtab *lookup(char *);
                     73: void    command(char *);
                     74: void    sigdie(int);
1.12    ! deraadt    75: void    sigtstp(int);
1.10      millert    76: void    die(void);
                     77: void    sigdisplay(int);
                     78: void    display(void);
                     79: int     dkinit(int);
                     80: int     dkcmd(char *, char *);
                     81: void    error(const char *fmt, ...);
                     82: void    fetchiostat(void);
                     83: void    fetchkre(void);
                     84: void    fetchmbufs(void);
                     85: void    fetchnetstat(void);
                     86: void    fetchpigs(void);
                     87: void    fetchswap(void);
                     88: int     initiostat(void);
                     89: int     initkre(void);
                     90: int     initmbufs(void);
                     91: int     initnetstat(void);
                     92: int     initpigs(void);
                     93: int     initswap(void);
                     94: void    keyboard(void);
                     95: int     kvm_ckread(void *, void *, int);
                     96: void    labeliostat(void);
                     97: void    labelkre(void);
                     98: void    labelmbufs(void);
                     99: void    labelnetstat(void);
                    100: void    labelpigs(void);
                    101: void    labels(void);
                    102: void    labelswap(void);
                    103: void    load(void);
                    104: int     netcmd(char *, char *);
                    105: void    nlisterr(struct nlist []);
                    106: WINDOW *openiostat(void);
                    107: WINDOW *openkre(void);
                    108: WINDOW *openmbufs(void);
                    109: WINDOW *opennetstat(void);
                    110: WINDOW *openpigs(void);
                    111: WINDOW *openswap(void);
                    112: int     prefix(char *, char *);
                    113: void    sigwinch(int);
                    114: void    showiostat(void);
                    115: void    showkre(void);
                    116: void    showmbufs(void);
                    117: void    shownetstat(void);
                    118: void    showpigs(void);
                    119: void    showswap(void);
                    120: void    status(void);
                    121: void    gethz(void);
1.9       deraadt   122:
                    123: extern volatile sig_atomic_t gotdie;
                    124: extern volatile sig_atomic_t gotdisplay;
                    125: extern volatile sig_atomic_t gotwinch;
1.12    ! deraadt   126: extern volatile sig_atomic_t gottstp;
1.9       deraadt   127:
                    128: extern double dellave;
                    129: extern WINDOW *wload;