]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - contrib/top/top.h
MFC r368207,368607:
[FreeBSD/stable/10.git] / contrib / 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 char *version_string();
29
30 /* Special atoi routine returns either a non-negative number or one of: */
31 #define Infinity        -1
32 #define Invalid         -2
33
34 /* maximum number we can have */
35 #define Largest         0x7fffffff
36
37 /*
38  * The entire display is based on these next numbers being defined as is.
39  */
40
41 #define NUM_AVERAGES    3
42
43 enum displaymodes { DISP_CPU = 0, DISP_IO, DISP_MAX };
44
45 /*
46  * Format modifiers
47  */
48 #define FMT_SHOWARGS 0x00000001
49
50 extern enum displaymodes displaymode;
51
52 extern int pcpu_stats;
53
54 #endif /* TOP_H */