[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.88 and 1.89

version 1.88, 2015/11/05 17:17:13 version 1.89, 2017/03/15 04:24:14
Line 711 
Line 711 
                                         new_message(MT_standout,                                          new_message(MT_standout,
                                             "Processes should be a "                                              "Processes should be a "
                                             "non-negative number");                                              "non-negative number");
                                         putr();                                          putr();
                                         no_command = Yes;                                          no_command = Yes;
                                 }                                  }
                         } else                          } else
Line 811 
Line 811 
                                         }                                          }
                                 } else if ((uid = userid(tempbuf)) == (uid_t)-1) {                                  } else if ((uid = userid(tempbuf)) == (uid_t)-1) {
                                                 new_message(MT_standout,                                                  new_message(MT_standout,
                                                     " %s: unknown user", tempbuf);                                                      " %s: unknown user", tempbuf);
                                                 no_command = Yes;                                                  no_command = Yes;
                                 } else {                                  } else {
                                         ps.uid = uid;                                          ps.uid = uid;
Line 880 
Line 880 
                 case CMD_command:                  case CMD_command:
                         show_args = (show_args == No) ? Yes : No;                          show_args = (show_args == No) ? Yes : No;
                         break;                          break;
   
                 case CMD_threads:                  case CMD_threads:
                         ps.threads = !ps.threads;                          ps.threads = !ps.threads;
                         old_threads = ps.threads;                          old_threads = ps.threads;
Line 934 
Line 934 
                 case CMD_add:                  case CMD_add:
                         ps.uid = (uid_t)-1;     /* uid */                          ps.uid = (uid_t)-1;     /* uid */
                         ps.huid = (uid_t)-1;                          ps.huid = (uid_t)-1;
                         ps.pid = (pid_t)-1;     /* pid */                          ps.pid = (pid_t)-1;     /* pid */
                         ps.system = old_system;                          ps.system = old_system;
                         ps.command = NULL;      /* grep */                          ps.command = NULL;      /* grep */
                         hlpid = -1;                          hlpid = -1;

Legend:
Removed from v.1.88  
changed lines
  Added in v.1.89