Changeset View
Changeset View
Standalone View
Standalone View
head/usr.bin/top/top.h
/*- | /*- | ||||
* Top - a top users display for Berkeley Unix | * Top - a top users display for Berkeley Unix | ||||
* | * | ||||
* $FreeBSD$ | * $FreeBSD$ | ||||
*/ | */ | ||||
#ifndef TOP_H | #ifndef TOP_H | ||||
#define TOP_H | #define TOP_H | ||||
#include <unistd.h> | #include <unistd.h> | ||||
#include <stdbool.h> | |||||
/* Number of lines of header information on the standard screen */ | /* Number of lines of header information on the standard screen */ | ||||
extern int Header_lines; | extern int Header_lines; | ||||
/* Special atoi routine returns either a non-negative number or one of: */ | /* Special atoi routine returns either a non-negative number or one of: */ | ||||
#define Infinity -1 | #define Infinity -1 | ||||
#define Invalid -2 | #define Invalid -2 | ||||
Show All 10 Lines | |||||
*/ | */ | ||||
#define FMT_SHOWARGS 0x00000001 | #define FMT_SHOWARGS 0x00000001 | ||||
extern enum displaymodes displaymode; | extern enum displaymodes displaymode; | ||||
extern int pcpu_stats; | extern int pcpu_stats; | ||||
extern int overstrike; | extern int overstrike; | ||||
extern pid_t mypid; | extern pid_t mypid; | ||||
extern bool utf8flag; | |||||
extern const char * myname; | extern const char * myname; | ||||
extern int (*compares[])(const void*, const void*); | extern int (*compares[])(const void*, const void*); | ||||
const char* kill_procs(char *); | const char* kill_procs(char *); | ||||
const char* renice_procs(char *); | const char* renice_procs(char *); | ||||
Show All 25 Lines |