2004-07-01 10:12:38 +01:00
|
|
|
/*
|
|
|
|
* $FreeBSD$
|
|
|
|
*/
|
1997-03-23 18:51:21 +00:00
|
|
|
/*
|
|
|
|
* Top - a top users display for Berkeley Unix
|
|
|
|
*
|
|
|
|
* General (global) definitions
|
|
|
|
*/
|
|
|
|
|
2016-06-12 06:57:42 +01:00
|
|
|
#ifndef TOP_H
|
|
|
|
#define TOP_H
|
|
|
|
|
1997-03-23 18:51:21 +00:00
|
|
|
/* Current major version number */
|
|
|
|
#define VERSION 3
|
|
|
|
|
|
|
|
/* Number of lines of header information on the standard screen */
|
2008-01-18 01:43:14 +00:00
|
|
|
extern int Header_lines; /* 7 */
|
1997-03-23 18:51:21 +00:00
|
|
|
|
|
|
|
/* Maximum number of columns allowed for display */
|
2012-12-13 06:45:45 +00:00
|
|
|
#define MAX_COLS 512
|
1997-03-23 18:51:21 +00:00
|
|
|
|
|
|
|
/* 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
|
|
|
|
|
2004-07-01 10:12:38 +01:00
|
|
|
enum displaymodes { DISP_CPU = 0, DISP_IO, DISP_MAX };
|
|
|
|
|
2007-04-14 11:16:52 +01:00
|
|
|
/*
|
|
|
|
* Format modifiers
|
|
|
|
*/
|
|
|
|
#define FMT_SHOWARGS 0x00000001
|
|
|
|
|
2004-07-01 10:12:38 +01:00
|
|
|
extern enum displaymodes displaymode;
|
2008-01-18 01:43:14 +00:00
|
|
|
|
|
|
|
extern int pcpu_stats;
|
2016-06-12 06:57:42 +01:00
|
|
|
|
|
|
|
#endif /* TOP_H */
|