version 1.39, 2005/06/08 22:36:43 |
version 1.40, 2005/06/17 09:40:48 |
|
|
int topn = Default_TOPN; |
int topn = Default_TOPN; |
int no_command = Yes; |
int no_command = Yes; |
int old_system = No; |
int old_system = No; |
|
int show_args = No; |
|
|
#if Default_TOPN == Infinity |
#if Default_TOPN == Infinity |
char topn_specified = No; |
char topn_specified = No; |
|
|
#define CMD_system 15 |
#define CMD_system 15 |
#define CMD_order 16 |
#define CMD_order 16 |
#define CMD_pid 17 |
#define CMD_pid 17 |
|
#define CMD_command 18 |
|
|
static void |
static void |
usage(void) |
usage(void) |
|
|
int change, i; |
int change, i; |
struct pollfd pfd[1]; |
struct pollfd pfd[1]; |
uid_t uid; |
uid_t uid; |
static char command_chars[] = "\f qh?en#sdkriIuSop"; |
static char command_chars[] = "\f qh?en#sdkriIuSopC"; |
|
|
/* |
/* |
* assume valid command unless told |
* assume valid command unless told |
|
|
exit(1); |
exit(1); |
} else |
} else |
clear_message(); |
clear_message(); |
|
break; |
|
|
|
case CMD_command: |
|
show_args = (show_args == No) ? Yes : No; |
break; |
break; |
|
|
default: |
default: |