home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.muug.mb.ca
/
2014.06.ftp.muug.mb.ca.tar
/
ftp.muug.mb.ca
/
pub
/
src
/
top
/
top.h
< prev
next >
Wrap
C/C++ Source or Header
|
1992-02-01
|
1KB
|
45 lines
/*
* Top - a top users display for Berkeley Unix
*
* General (global) definitions
*/
/* Number of lines of header information on the standard screen */
#define Header_lines 6
/* Number of columns needed for display */
#define Display_width 80
/* Log base 2 of 1024 is 10 (2^10 == 1024) */
#define LOG1024 10
/* Convert clicks (kernel pages) to kbytes ... */
/* If there is no PGSHIFT defined, assume it is 11 */
/* Is this needed for compatability with some old flavor of 4.2 or 4.1? */
#ifndef PGSHIFT
#define pagetok(size) ((size) << 1)
#else
#if PGSHIFT>10
#define pagetok(size) ((size) << (PGSHIFT - LOG1024))
#else
#define pagetok(size) ((size) >> (LOG1024 - PGSHIFT))
#endif
#endif
extern double logcpu;
double log();
double exp();
char *itoa();
char *itoa7();
/* Special atoi routine returns either a non-negative number or one of: */
#define Infinity -1
#define Invalid -2
/* Special hack to return the length of a converted string */
#define idigits(str) (int)((str)[-1])
extern char (* screenbuf)[Display_width];