1 $DragonFly: src/contrib/top/patches/Attic/top.c.patch,v 1.1 2004/05/29 05:11:15 hmp Exp $
2 Index: contrib/top/top.c
3 ===================================================================
4 RCS file: /cvs/DragonFly/src/contrib/top/top.c,v
5 retrieving revision 1.2
6 diff -u -p -u -r1.2 top.c
7 --- contrib/top/top.c 17 Jun 2003 04:24:07 -0000 1.2
8 +++ contrib/top/top.c 29 May 2004 01:02:10 -0000
9 @@ -193,9 +193,9 @@ char *argv[];
13 - static char command_chars[] = "\f qh?en#sdkriIuto";
14 + static char command_chars[] = "\f qh?en#sdkriIutTSo";
16 - static char command_chars[] = "\f qh?en#sdkriIut";
17 + static char command_chars[] = "\f qh?en#sdkriIutTS";
19 /* these defines enumerate the "strchr"s of the commands in command_chars */
21 @@ -215,8 +215,10 @@ char *argv[];
22 #define CMD_idletog2 13
24 #define CMD_selftog 15
25 +#define CMD_threads 16
26 +#define CMD_system 17
32 /* set the buffer for stdout */
33 @@ -245,6 +247,7 @@ char *argv[];
41 @@ -271,7 +274,7 @@ char *argv[];
45 - while ((i = getopt(ac, av, "SIbinquvs:d:U:o:t")) != EOF)
46 + while ((i = getopt(ac, av, "SITNbinquvs:d:U:o:t")) != EOF)
50 @@ -300,6 +303,10 @@ char *argv[];
51 case 'I': /* show idle processes */
56 + ps.threads = !ps.threads; /* show threads */
59 case 'i': /* go interactive regardless */
61 @@ -928,6 +935,22 @@ restart:
66 + ps.threads = !ps.threads;
67 + new_message(MT_standout | MT_delayed,
68 + " %sisplaying threads.",
69 + ps.threads ? "D" : "Not d");
74 + ps.system = !ps.system;
75 + new_message(MT_standout | MT_delayed,
76 + " %sisplaying system processes.",
77 + ps.system ? "D" : "Not d");
82 new_message(MT_standout,
83 "Username to show: ");