MFS - Fix mmap issues with files under MFS
[dragonfly.git] / contrib / top / top.h
blob78b2e571a95a8f8f3f3984fe331fba8308d43768
1 /*
2 * Top - a top users display for Berkeley Unix
4 * General (global) definitions
5 */
7 /* Current major version number */
8 #define VERSION 3
10 /* Number of lines of header information on the standard screen */
11 #define Header_lines (7 + n_cpus - 1)
12 extern int n_cpus;
14 /* Maximum number of columns allowed for display */
15 #define MAX_COLS 128
17 /* Log base 2 of 1024 is 10 (2^10 == 1024) */
18 #define LOG1024 10
20 extern int screen_width;
22 char *version_string(void);
24 /* Special atoi routine returns either a non-negative number or one of: */
25 #define Infinity -1
26 #define Invalid -2
28 /* maximum number we can have */
29 #define Largest 0x7fffffff
32 * The entire display is based on these next numbers being defined as is.
35 #define NUM_AVERAGES 3