freebsd-skq/contrib/top/top.h
Alfred Perlstein db6bb7fc01 New feature, provide a display that shows the amount of IO processes
are doing.  Toggle this mode by hitting "m" or passing the command line
option "-m io" to top(1).  This allows one to identify disk bandwidth
hogs much easier.
2004-07-01 09:12:38 +00:00

43 lines
835 B
C

/*
* $FreeBSD$
*/
/*
* Top - a top users display for Berkeley Unix
*
* General (global) definitions
*/
/* Current major version number */
#define VERSION 3
/* Number of lines of header information on the standard screen */
#define Header_lines 7
/* Maximum number of columns allowed for display */
#define MAX_COLS 128
/* Log base 2 of 1024 is 10 (2^10 == 1024) */
#define LOG1024 10
char *itoa();
char *itoa7();
char *version_string();
/* Special atoi routine returns either a non-negative number or one of: */
#define Infinity -1
#define Invalid -2
/* maximum number we can have */
#define Largest 0x7fffffff
/*
* The entire display is based on these next numbers being defined as is.
*/
#define NUM_AVERAGES 3
enum displaymodes { DISP_CPU = 0, DISP_IO, DISP_MAX };
extern enum displaymodes displaymode;