version 1.23, 2003/06/16 17:24:44 |
version 1.24, 2003/06/18 08:36:31 |
|
|
#include <stdio.h> |
#include <stdio.h> |
#include <ctype.h> |
#include <ctype.h> |
#include <signal.h> |
#include <signal.h> |
#include <setjmp.h> |
|
#include <string.h> |
#include <string.h> |
#include <stdlib.h> |
#include <stdlib.h> |
#include <unistd.h> |
#include <unistd.h> |
|
|
static void reset_display(void); |
static void reset_display(void); |
int rundisplay(void); |
int rundisplay(void); |
|
|
/* values which need to be accessed by signal handlers */ |
|
static int max_topn; /* maximum displayable processes */ |
static int max_topn; /* maximum displayable processes */ |
|
|
/* miscellaneous things */ |
|
jmp_buf jmp_int; |
|
|
|
extern int (*proc_compares[])(const void *, const void *); |
extern int (*proc_compares[])(const void *, const void *); |
int order_index; |
int order_index; |
|
|
|
|
double delay = Default_DELAY; |
double delay = Default_DELAY; |
char *order_name = NULL; |
char *order_name = NULL; |
int topn = Default_TOPN; |
int topn = Default_TOPN; |
int no_command = 1; |
int no_command = Yes; |
|
|
#if Default_TOPN == Infinity |
#if Default_TOPN == Infinity |
char topn_specified = No; |
char topn_specified = No; |