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

Annotation of src/usr.bin/top/display.h, Revision 1.4

1.4     ! deraadt     1: /*     $OpenBSD: display.h,v 1.3 2002/02/16 21:27:55 millert Exp $     */
        !             2:
        !             3: /*
        !             4:  *  Top users/processes display for Unix
        !             5:  *  Version 3
        !             6:  *
        !             7:  * Copyright (c) 1984, 1989, William LeFebvre, Rice University
        !             8:  * Copyright (c) 1989, 1990, 1992, William LeFebvre, Northwestern University
        !             9:  *
        !            10:  * Redistribution and use in source and binary forms, with or without
        !            11:  * modification, are permitted provided that the following conditions
        !            12:  * are met:
        !            13:  * 1. Redistributions of source code must retain the above copyright
        !            14:  *    notice, this list of conditions and the following disclaimer.
        !            15:  * 2. Redistributions in binary form must reproduce the above copyright
        !            16:  *    notice, this list of conditions and the following disclaimer in the
        !            17:  *    documentation and/or other materials provided with the distribution.
        !            18:  *
        !            19:  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
        !            20:  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
        !            21:  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
        !            22:  * IN NO EVENT SHALL THE AUTHOR OR HIS EMPLOYER BE LIABLE FOR ANY DIRECT, INDIRECT,
        !            23:  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
        !            24:  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
        !            25:  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
        !            26:  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
        !            27:  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
        !            28:  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
        !            29:  */
1.1       downsj     30:
                     31: /* constants needed for display.c */
                     32:
                     33: /* "type" argument for new_message function */
                     34:
                     35: #define  MT_standout  1
                     36: #define  MT_delayed   2
                     37:
1.2       downsj     38: /* prototypes */
1.3       millert    39: extern int display_resize(void);
                     40: extern void i_loadave(int, double *);
                     41: extern void u_loadave(int, double *);
                     42: extern void i_timeofday(time_t *);
                     43: extern void i_procstates(int, int *);
                     44: extern void u_procstates(int, int *);
                     45: extern void i_cpustates(int *);
                     46: extern void u_cpustates(int *);
                     47: extern void z_cpustates(void);
                     48: extern void i_memory(int *);
                     49: extern void u_memory(int *);
                     50: extern void i_message(void);
                     51: extern void u_message(void);
                     52: extern void i_header(char *);
                     53: extern void u_header(char *);
                     54: extern void i_process(int, char *);
                     55: extern void u_process(int, char *);
                     56: extern void u_endscreen(int);
                     57: extern void display_header(int);
1.2       downsj     58: extern void new_message();     /* XXX */
1.3       millert    59: extern void clear_message(void);
                     60: extern int readline(char *, int, int);
                     61: extern char *printable(char *);