Annotation of src/usr.bin/top/layout.h, Revision 1.3
1.3 ! millert 1: /* $OpenBSD: layout.h,v 1.2 2002/07/15 17:20:36 deraadt Exp $ */
1.2 deraadt 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: /*
32: * Top - a top users display for Berkeley Unix
33: *
34: * This file defines the locations on tne screen for various parts of the
35: * display. These definitions are used by the routines in "display.c" for
36: * cursor addressing.
37: */
38:
39: #define x_lastpid 10
40: #define y_lastpid 0
41: #define x_loadave 33
42: #define x_loadave_nompid 15
43: #define y_loadave 0
44: #define x_procstate 0
45: #define y_procstate 1
46: #define x_brkdn 15
47: #define y_brkdn 1
48: #define x_mem 8
1.3 ! millert 49: extern int y_mem;
! 50: extern int y_message;
1.1 downsj 51: #define x_header 0
1.3 ! millert 52: extern int y_header;
1.1 downsj 53: #define x_idlecursor 0
1.3 ! millert 54: extern int y_idlecursor;
! 55: extern int y_procs;
1.1 downsj 56:
57: #define y_cpustates 2