version 1.57, 2007/02/04 14:58:45 |
version 1.58, 2007/04/04 19:24:18 |
|
|
#include "loadavg.h" |
#include "loadavg.h" |
|
|
static int swapmode(int *, int *); |
static int swapmode(int *, int *); |
|
static char *state_abbr(struct kinfo_proc2 *); |
|
static char *format_comm(struct kinfo_proc2 *); |
|
|
/* get_process_info passes back a handle. This is what it looks like: */ |
/* get_process_info passes back a handle. This is what it looks like: */ |
|
|
|
|
|
|
char fmt[MAX_COLS]; /* static area where result is built */ |
char fmt[MAX_COLS]; /* static area where result is built */ |
|
|
char * |
static char * |
state_abbr(struct kinfo_proc2 *pp) |
state_abbr(struct kinfo_proc2 *pp) |
{ |
{ |
static char buf[10]; |
static char buf[10]; |
|
|
return buf; |
return buf; |
} |
} |
|
|
char * |
static char * |
format_comm(struct kinfo_proc2 *kp) |
format_comm(struct kinfo_proc2 *kp) |
{ |
{ |
#define ARG_SIZE 60 |
#define ARG_SIZE 60 |