top.h revision 301836
1/* 2 * $FreeBSD: stable/10/contrib/top/top.h 301836 2016-06-12 05:57:42Z ngie $ 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 */ 17extern 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 25char *itoa(); 26char *itoa7(); 27 28char *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 43enum displaymodes { DISP_CPU = 0, DISP_IO, DISP_MAX }; 44 45/* 46 * Format modifiers 47 */ 48#define FMT_SHOWARGS 0x00000001 49 50extern enum displaymodes displaymode; 51 52extern int pcpu_stats; 53 54#endif /* TOP_H */ 55