Merge from vendor branch BIND:
[dragonfly.git] / contrib / top / top.h
1 /*
2  *  Top - a top users display for Berkeley Unix
3  *
4  *  General (global) definitions
5  */
6
7 /* Current major version number */
8 #define VERSION         3
9
10 /* Number of lines of header information on the standard screen */
11 #define Header_lines    (7 + n_cpus - 1)
12 extern int n_cpus;
13
14 /* Maximum number of columns allowed for display */
15 #define MAX_COLS        128
16
17 /* Log base 2 of 1024 is 10 (2^10 == 1024) */
18 #define LOG1024         10
19
20 extern int screen_width;
21
22 char *itoa();
23 char *itoa7();
24
25 char *version_string();
26
27 /* Special atoi routine returns either a non-negative number or one of: */
28 #define Infinity        -1
29 #define Invalid         -2
30
31 /* maximum number we can have */
32 #define Largest         0x7fffffff
33
34 /*
35  * The entire display is based on these next numbers being defined as is.
36  */
37
38 #define NUM_AVERAGES    3
39