Deleted Added
full compact
commands.c (223936) commands.c (242888)
1/*
2 * Top users/processes display for Unix
3 * Version 3
4 *
5 * This program may be freely redistributed,
6 * but this entire comment MUST remain intact.
7 *
8 * Copyright (c) 1984, 1989, William LeFebvre, Rice University
9 * Copyright (c) 1989, 1990, 1992, William LeFebvre, Northwestern University
10 *
1/*
2 * Top users/processes display for Unix
3 * Version 3
4 *
5 * This program may be freely redistributed,
6 * but this entire comment MUST remain intact.
7 *
8 * Copyright (c) 1984, 1989, William LeFebvre, Rice University
9 * Copyright (c) 1989, 1990, 1992, William LeFebvre, Northwestern University
10 *
11 * $FreeBSD: head/contrib/top/commands.c 223936 2011-07-11 16:48:52Z jhb $
11 * $FreeBSD: head/contrib/top/commands.c 242888 2012-11-11 08:22:58Z rpaulo $
12 */
13
14/*
15 * This file contains the routines that implement some of the interactive
16 * mode commands. Note that some of the commands are implemented in-line
17 * in "main". This is necessary because they change the global state of
18 * "top" (i.e.: changing the number of processes to display).
19 */

--- 55 unchanged lines hidden (view full) ---

75i or I - toggle the displaying of idle processes\n\
76j - toggle the displaying of jail ID\n\
77k - kill processes; send a signal to a list of processes\n\
78m - toggle the display between 'cpu' and 'io' modes\n\
79n or # - change number of processes to display\n", stdout);
80#ifdef ORDER
81 if (displaymode == DISP_CPU)
82 fputs("\
12 */
13
14/*
15 * This file contains the routines that implement some of the interactive
16 * mode commands. Note that some of the commands are implemented in-line
17 * in "main". This is necessary because they change the global state of
18 * "top" (i.e.: changing the number of processes to display).
19 */

--- 55 unchanged lines hidden (view full) ---

75i or I - toggle the displaying of idle processes\n\
76j - toggle the displaying of jail ID\n\
77k - kill processes; send a signal to a list of processes\n\
78m - toggle the display between 'cpu' and 'io' modes\n\
79n or # - change number of processes to display\n", stdout);
80#ifdef ORDER
81 if (displaymode == DISP_CPU)
82 fputs("\
83o - specify sort order (pri, size, res, cpu, time, threads, jid)\n",
83o - specify sort order (pri, size, res, cpu, time, threads, jid, pid)\n",
84 stdout);
85 else
86 fputs("\
84 stdout);
85 else
86 fputs("\
87o - specify sort order (vcsw, ivcsw, read, write, fault, total, jid)\n",
87o - specify sort order (vcsw, ivcsw, read, write, fault, total, jid, pid)\n",
88 stdout);
89#endif
90 fputs("\
91P - toggle the displaying of per-CPU statistics\n\
92r - renice a process\n\
93s - change number of seconds to delay between updates\n\
94S - toggle the displaying of system processes\n\
95a - toggle the displaying of process titles\n\

--- 431 unchanged lines hidden ---
88 stdout);
89#endif
90 fputs("\
91P - toggle the displaying of per-CPU statistics\n\
92r - renice a process\n\
93s - change number of seconds to delay between updates\n\
94S - toggle the displaying of system processes\n\
95a - toggle the displaying of process titles\n\

--- 431 unchanged lines hidden ---