[BACK]Return to top.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / top

Diff for /src/usr.bin/top/top.c between version 1.46 and 1.47

version 1.46, 2007/02/04 15:01:11 version 1.47, 2007/02/04 19:17:14
Line 129 
Line 129 
 #define CMD_command     18  #define CMD_command     18
 #define CMD_threads     19  #define CMD_threads     19
 #define CMD_grep        20  #define CMD_grep        20
   #define CMD_add         21
   
 static void  static void
 usage(void)  usage(void)
Line 528 
Line 529 
         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#sdkriIuSopCTg";          static char command_chars[] = "\f qh?en#sdkriIuSopCTg+";
   
         /*          /*
          * assume valid command unless told           * assume valid command unless told
Line 890 
Line 891 
                                 clear_message();                                  clear_message();
                         break;                          break;
   
                   case CMD_add:
                           ps.uid = (uid_t)-1;     /* uid */
                           ps.pid = (pid_t)-1;     /* pid */
                           ps.system = old_system;
                           ps.command = NULL;      /* grep */
                           break;
   
                 default:                  default:
                         new_message(MT_standout, " BAD CASE IN SWITCH!");                          new_message(MT_standout, " BAD CASE IN SWITCH!");
                         if (putchar('\r') == EOF)                          if (putchar('\r') == EOF)

Legend:
Removed from v.1.46  
changed lines
  Added in v.1.47