top.h revision 244180
156043Syokota/* 256043Syokota * $FreeBSD: head/contrib/top/top.h 244180 2012-12-13 06:45:45Z rpaulo $ 356043Syokota */ 456043Syokota/* 556043Syokota * Top - a top users display for Berkeley Unix 656043Syokota * 756043Syokota * General (global) definitions 856043Syokota */ 956043Syokota 1056043Syokota/* Current major version number */ 1156043Syokota#define VERSION 3 1256043Syokota 1356043Syokota/* Number of lines of header information on the standard screen */ 1456043Syokotaextern int Header_lines; /* 7 */ 1556043Syokota 1656043Syokota/* Maximum number of columns allowed for display */ 1756043Syokota#define MAX_COLS 512 1856043Syokota 1956043Syokota/* Log base 2 of 1024 is 10 (2^10 == 1024) */ 2056043Syokota#define LOG1024 10 2156043Syokota 2256043Syokotachar *itoa(); 2356043Syokotachar *itoa7(); 2456043Syokota 2556043Syokotachar *version_string(); 2656043Syokota 2756043Syokota/* Special atoi routine returns either a non-negative number or one of: */ 28119420Sobrien#define Infinity -1 29119420Sobrien#define Invalid -2 30119420Sobrien 3156043Syokota/* maximum number we can have */ 3256043Syokota#define Largest 0x7fffffff 3356043Syokota 3456043Syokota/* 35164033Srwatson * The entire display is based on these next numbers being defined as is. 36181905Sed */ 3756043Syokota 38199881Sed#define NUM_AVERAGES 3 3956043Syokota 40268366Srayenum displaymodes { DISP_CPU = 0, DISP_IO, DISP_MAX }; 4166834Sphk 4266860Sphk/* 4356043Syokota * Format modifiers 4456043Syokota */ 4556043Syokota#define FMT_SHOWARGS 0x00000001 4656043Syokota 4756043Syokotaextern enum displaymodes displaymode; 4856043Syokota 4956043Syokotaextern int pcpu_stats; 5056043Syokota