=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/top/top.c,v retrieving revision 1.75 retrieving revision 1.76 diff -c -r1.75 -r1.76 *** src/usr.bin/top/top.c 2010/04/24 22:02:14 1.75 --- src/usr.bin/top/top.c 2011/12/16 14:50:24 1.76 *************** *** 1,4 **** ! /* $OpenBSD: top.c,v 1.75 2010/04/24 22:02:14 deraadt Exp $ */ /* * Top users/processes display for Unix --- 1,4 ---- ! /* $OpenBSD: top.c,v 1.76 2011/12/16 14:50:24 jsing Exp $ */ /* * Top users/processes display for Unix *************** *** 125,131 **** extern char *__progname; fprintf(stderr, ! "usage: %s [-1bCIinqSTu] [-d count] [-g string] [-o field] " "[-p pid] [-s time]\n\t[-U user] [number]\n", __progname); } --- 125,131 ---- extern char *__progname; fprintf(stderr, ! "usage: %s [-1bCHIinqSu] [-d count] [-g string] [-o field] " "[-p pid] [-s time]\n\t[-U user] [number]\n", __progname); } *************** *** 136,142 **** char *endp; int i; ! while ((i = getopt(ac, av, "1STICbinqus:d:p:U:o:g:")) != -1) { switch (i) { case '1': combine_cpus = 1; --- 136,142 ---- char *endp; int i; ! while ((i = getopt(ac, av, "1SHICbinqus:d:p:U:o:g:")) != -1) { switch (i) { case '1': combine_cpus = 1; *************** *** 173,179 **** old_system = !old_system; break; ! case 'T': /* show threads */ ps.threads = Yes; old_threads = Yes; break; --- 173,179 ---- old_system = !old_system; break; ! case 'H': /* show threads */ ps.threads = Yes; old_threads = Yes; break; *************** *** 540,546 **** int change, i; struct pollfd pfd[1]; uid_t uid; ! static char command_chars[] = "\f qh?en#sdkriIuSopCTg+P1"; /* * assume valid command unless told --- 540,546 ---- int change, i; struct pollfd pfd[1]; uid_t uid; ! static char command_chars[] = "\f qh?en#sdkriIuSopCHg+P1"; /* * assume valid command unless told