]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - usr.bin/top/top.h
top(1): unconditionally provide 'FreeBSD' as a version
[FreeBSD/FreeBSD.git] / usr.bin / top / top.h
1 /*
2  * $FreeBSD$
3  */
4 /*
5  *  Top - a top users display for Berkeley Unix
6  *
7  *  General (global) definitions
8  */
9
10 #ifndef TOP_H
11 #define TOP_H
12
13 /* Current major version number */
14 #define VERSION         3
15
16 /* Number of lines of header information on the standard screen */
17 extern int Header_lines;        /* 7 */
18
19 /* Maximum number of columns allowed for display */
20 #define MAX_COLS        512
21
22 /* Log base 2 of 1024 is 10 (2^10 == 1024) */
23 #define LOG1024         10
24
25 char *itoa();
26 char *itoa7();
27
28 /* Special atoi routine returns either a non-negative number or one of: */
29 #define Infinity        -1
30 #define Invalid         -2
31
32 /* maximum number we can have */
33 #define Largest         0x7fffffff
34
35 /*
36  * The entire display is based on these next numbers being defined as is.
37  */
38
39 #define NUM_AVERAGES    3
40
41 enum displaymodes { DISP_CPU = 0, DISP_IO, DISP_MAX };
42
43 /*
44  * Format modifiers
45  */
46 #define FMT_SHOWARGS 0x00000001
47
48 extern enum displaymodes displaymode;
49
50 extern int pcpu_stats;
51
52 #endif /* TOP_H */