OpenBSD CVS

CVS log for src/usr.bin/top/commands.c


[BACK] Up to [local] / src / usr.bin / top

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.33 / (download) - annotate - [select for diffs], Tue Oct 8 07:26:59 2019 UTC (4 years, 7 months ago) by kn
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, HEAD
Changes since 1.32: +5 -5 lines
Diff to previous 1.32 (colored)

Replace "boolean.h" with <stdbool.h>

Be consistent with other programs in base and unify variable usage as
follows to improve readability:

bool = (bool == No) ? Yes : No  ->  bool = !bool
if (bool == Yes)                ->  if (bool)
if (bool == No)                 ->  if (!bool)
bool = Maybe                    ->  bool = -1

OK millert

Revision 1.32 / (download) - annotate - [select for diffs], Wed Mar 15 04:24:14 2017 UTC (7 years, 2 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.31: +4 -4 lines
Diff to previous 1.31 (colored)

annoying whitespace die die die

Revision 1.31 / (download) - annotate - [select for diffs], Thu Nov 28 18:24:55 2013 UTC (10 years, 5 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.30: +6 -6 lines
Diff to previous 1.30 (colored)

unsigned char for ctype
ok krw okan

Revision 1.30 / (download) - annotate - [select for diffs], Thu Apr 1 05:05:19 2010 UTC (14 years, 1 month ago) by lum
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.29: +26 -14 lines
Diff to previous 1.29 (colored)

Allow top to accept tab characters as input in interactive mode
while using the kill and renice commands. This removes a bug
where process numbers that came after a tab character in the
input string would not be affected by the corresponding command.

ok tedu@ otto@

Revision 1.29 / (download) - annotate - [select for diffs], Tue Mar 23 16:16:09 2010 UTC (14 years, 1 month ago) by lum
Branch: MAIN
Changes since 1.28: +45 -22 lines
Diff to previous 1.28 (colored)

Fix pointer usage with the renice and kill error message structure. Pointer was used without allocating memory. ok beck@ otto@

Revision 1.28 / (download) - annotate - [select for diffs], Tue May 29 00:56:56 2007 UTC (16 years, 11 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.27: +5 -67 lines
Diff to previous 1.27 (colored)

Instead of using hand-crafted redraws minimizing screen updates, use curses.
Enables nice things like process highlighting without hurting the brain.
ok deraadt@

Revision 1.27 / (download) - annotate - [select for diffs], Fri Feb 23 13:31:45 2007 UTC (17 years, 2 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.26: +4 -8 lines
Diff to previous 1.26 (colored)

Use sys_signame[] from libc instead of creating a top-specific
signame name to number table.  Also use strcasecmp() when matching
signal names for consistency with /bin/kill.
OK deraadt@ henning@ simon@

Revision 1.26 / (download) - annotate - [select for diffs], Wed Feb 14 08:29:28 2007 UTC (17 years, 3 months ago) by jmc
Branch: MAIN
Changes since 1.25: +5 -5 lines
Diff to previous 1.25 (colored)

more refinements for the interactive commands section; ok otto

Revision 1.25 / (download) - annotate - [select for diffs], Fri Feb 9 21:15:18 2007 UTC (17 years, 3 months ago) by jmc
Branch: MAIN
Changes since 1.24: +19 -19 lines
Diff to previous 1.24 (colored)

document how signalling via `k' works, after some help from theo and miod;

Revision 1.24 / (download) - annotate - [select for diffs], Fri Feb 9 20:57:15 2007 UTC (17 years, 3 months ago) by jmc
Branch: MAIN
Changes since 1.23: +19 -19 lines
Diff to previous 1.23 (colored)

sync somewhat to the man page;
started by a diff from Mark Lumsden

Revision 1.23 / (download) - annotate - [select for diffs], Tue Feb 6 06:53:13 2007 UTC (17 years, 3 months ago) by otto
Branch: MAIN
Changes since 1.22: +3 -7 lines
Diff to previous 1.22 (colored)

Compact help screen a bit so it fits in 24 lines again. Based on a
diff from Mark Lumsden.

Revision 1.22 / (download) - annotate - [select for diffs], Sun Feb 4 19:17:14 2007 UTC (17 years, 3 months ago) by otto
Branch: MAIN
Changes since 1.21: +2 -1 lines
Diff to previous 1.21 (colored)

Introducing the '+' interactive command to reset all filters.
From Mark Lumsden. ok millert@ deraadt@ simon@

Revision 1.21 / (download) - annotate - [select for diffs], Fri Jan 5 09:46:12 2007 UTC (17 years, 4 months ago) by otto
Branch: MAIN
Changes since 1.20: +11 -15 lines
Diff to previous 1.20 (colored)

tidy & sort help display

Revision 1.20 / (download) - annotate - [select for diffs], Fri Jan 5 07:26:46 2007 UTC (17 years, 4 months ago) by otto
Branch: MAIN
Changes since 1.19: +2 -1 lines
Diff to previous 1.19 (colored)

add new g command to interactive help; from Mark Lumsden

Revision 1.19 / (download) - annotate - [select for diffs], Sun Dec 4 23:10:06 2005 UTC (18 years, 5 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.18: +2 -1 lines
Diff to previous 1.18 (colored)

support for toggling thread viewing.
ok brad, hints from jmc

Revision 1.18 / (download) - annotate - [select for diffs], Fri Oct 7 17:46:13 2005 UTC (18 years, 7 months ago) by hshoexer
Branch: MAIN
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

sync help message with reality:  sort acceptes keyword "pri"

ok deraadt@

Revision 1.17 / (download) - annotate - [select for diffs], Fri Jun 17 09:40:48 2005 UTC (18 years, 11 months ago) by markus
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.16: +2 -1 lines
Diff to previous 1.16 (colored)

add a 'C' command ) that toggles the display of the full cmdline;
with Jared Yanovich; ok deraadt

Revision 1.16 / (download) - annotate - [select for diffs], Thu Oct 7 06:26:12 2004 UTC (19 years, 7 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.15: +3 -2 lines
Diff to previous 1.15 (colored)

introduce -p option and p command to only show a single process.
From Patrick Latifi. ok deraadt@ millert@

Revision 1.15 / (download) - annotate - [select for diffs], Sun Jun 27 00:48:22 2004 UTC (19 years, 10 months ago) by marc
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.14: +7 -7 lines
Diff to previous 1.14 (colored)

errno struct member -> err; ok millert@

Revision 1.14 / (download) - annotate - [select for diffs], Sun May 9 22:14:15 2004 UTC (20 years ago) by deraadt
Branch: MAIN
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)

spaces

Revision 1.13 / (download) - annotate - [select for diffs], Fri Sep 19 10:32:24 2003 UTC (20 years, 8 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.12: +4 -5 lines
Diff to previous 1.12 (colored)

commands.c: add `o' and `S' to internal help, sort options
top.1: sort options and SYNOPSIS
       add description of `o' (from Patrick Latifi)
top.c: sync usage() with SYNOPSIS

ok deraadt@

Revision 1.12 / (download) - annotate - [select for diffs], Fri Jun 20 16:53:15 2003 UTC (20 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

some cleanings recommended by lint

Revision 1.11 / (download) - annotate - [select for diffs], Tue Jun 17 00:51:29 2003 UTC (20 years, 11 months ago) by jfb
Branch: MAIN
Changes since 1.10: +6 -3 lines
Diff to previous 1.10 (colored)

properly typecast to uid_t the return value of proc_owner() and report
ESRCH instead of EACCES if it returns -1

ok millert@

Revision 1.10 / (download) - annotate - [select for diffs], Sun Jun 15 16:24:44 2003 UTC (20 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.9: +5 -3 lines
Diff to previous 1.9 (colored)

use uid_t and fix some sign compare warnings; OK krw@ and deraadt@

Revision 1.9 / (download) - annotate - [select for diffs], Fri Jun 13 21:52:24 2003 UTC (20 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.8: +240 -316 lines
Diff to previous 1.8 (colored)

readable code

Revision 1.8 / (download) - annotate - [select for diffs], Thu Jun 12 22:30:23 2003 UTC (20 years, 11 months ago) by pvalchev
Branch: MAIN
Changes since 1.7: +26 -46 lines
Diff to previous 1.7 (colored)

cleanup; ok deraadt

Revision 1.7 / (download) - annotate - [select for diffs], Sun Apr 6 20:39:20 2003 UTC (21 years, 1 month ago) by tdeval
Branch: MAIN
Changes since 1.6: +22 -35 lines
Diff to previous 1.6 (colored)

strcat -> strlcat fix.  ok tedu@, deraadt@

Revision 1.6 / (download) - annotate - [select for diffs], Mon Jul 15 17:20:36 2002 UTC (21 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.5: +22 -5 lines
Diff to previous 1.5 (colored)

license change from William LeFebvre <wnl@groupsys.com>; top is now BSD
licensed.  this same license will show up on his next release as well.

Revision 1.5 / (download) - annotate - [select for diffs], Wed May 29 18:33:40 2002 UTC (21 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.4: +3 -2 lines
Diff to previous 1.4 (colored)

strlcat

Revision 1.4 / (download) - annotate - [select for diffs], Sat Feb 16 21:27:55 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.3: +7 -7 lines
Diff to previous 1.3 (colored)

Part one of userland __P removal.  Done with a simple regexp with some minor hand editing to make comments line up correctly.  Another pass is forthcoming that handles the cases that could not be done automatically.

Revision 1.3 / (download) - annotate - [select for diffs], Mon Nov 19 19:02:17 2001 UTC (22 years, 6 months ago) by mpech
Branch: MAIN
Changes since 1.2: +18 -18 lines
Diff to previous 1.2 (colored)

kill more registers

millert@ ok

Revision 1.2 / (download) - annotate - [select for diffs], Fri Aug 22 07:16:26 1997 UTC (26 years, 9 months ago) by downsj
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0, OPENBSD_2_9_BASE, OPENBSD_2_9, OPENBSD_2_8_BASE, OPENBSD_2_8, OPENBSD_2_7_BASE, OPENBSD_2_7, OPENBSD_2_6_BASE, OPENBSD_2_6, OPENBSD_2_5_BASE, OPENBSD_2_5, OPENBSD_2_4_BASE, OPENBSD_2_4, OPENBSD_2_3_BASE, OPENBSD_2_3, OPENBSD_2_2_BASE, OPENBSD_2_2
Changes since 1.1: +30 -23 lines
Diff to previous 1.1 (colored)

First sweep.  Prototype, type fixes, long fixes, mostly compiles with
-Wall.

Revision 1.1 / (download) - annotate - [select for diffs], Thu Aug 14 14:00:20 1997 UTC (26 years, 9 months ago) by downsj
Branch: MAIN

top 3.4, with a few changes.  Still needs more work.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.