OpenBSD CVS

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


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.29 / (download) - annotate - [select for diffs], Sat Sep 22 17:10:28 2018 UTC (5 years, 7 months ago) by millert
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, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, HEAD
Changes since 1.28: +1 -17 lines
Diff to previous 1.28 (colored)

Remove unused Table_size define and digits() function.

Revision 1.28 / (download) - annotate - [select for diffs], Sat Sep 22 16:50:35 2018 UTC (5 years, 7 months ago) by millert
Branch: MAIN
Changes since 1.27: +2 -2 lines
Diff to previous 1.27 (colored)

Use user_from_uid() and uid_from_user() directly.  The wrappers
in username.c are now so simple there is no longer a good reason
to use them.  OK deraadt@

Revision 1.27 / (download) - annotate - [select for diffs], Thu Sep 13 15:23:32 2018 UTC (5 years, 8 months ago) by millert
Branch: MAIN
Changes since 1.26: +2 -2 lines
Diff to previous 1.26 (colored)

Fix warnings caused by user_from_uid() and group_from_gid() now
returning const char *.

Revision 1.26 / (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_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.25: +2 -2 lines
Diff to previous 1.25 (colored)

annoying whitespace die die die

Revision 1.25 / (download) - annotate - [select for diffs], Fri Jan 16 06:40:13 2015 UTC (9 years, 4 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
Changes since 1.24: +3 -2 lines
Diff to previous 1.24 (colored)

Replace <sys/param.h> with <limits.h> and other less dirty headers where
possible.  Annotate <sys/param.h> lines with their current reasons.  Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc.  Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution.  These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)

Revision 1.24 / (download) - annotate - [select for diffs], Tue Apr 2 06:04:50 2013 UTC (11 years, 1 month ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.23: +3 -3 lines
Diff to previous 1.23 (colored)

Handle big time_t

ok deraadt@

Revision 1.23 / (download) - annotate - [select for diffs], Sun Apr 10 03:20:59 2011 UTC (13 years, 1 month ago) by guenther
Branch: MAIN
CVS Tags: 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
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored)

Switch back from KERN_PROC2/kinfo_proc2 to KERN_PROC/kinfo_proc now
that we've got name we want for the API we want

"ZAP!" deraadt@

Revision 1.22 / (download) - annotate - [select for diffs], Fri Jan 29 00:36:09 2010 UTC (14 years, 3 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored)

Allow sorting by command and pid.  Also, allow partial matches with strncmp.
ok jmc otto

Revision 1.21 / (download) - annotate - [select for diffs], Mon Oct 1 09:15:44 2007 UTC (16 years, 7 months ago) by otto
Branch: MAIN
CVS Tags: 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
Changes since 1.20: +3 -3 lines
Diff to previous 1.20 (colored)

typos in comment; from Pierre Riteau

Revision 1.20 / (download) - annotate - [select for diffs], Fri Jul 27 13:57:50 2007 UTC (16 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored)

replace a few more malloc(n*m) idioms with calloc(n,m) for safety;
inspired by zinovik@cs.karelia.ru

Revision 1.19 / (download) - annotate - [select for diffs], Mon Jul 16 15:14:33 2007 UTC (16 years, 10 months ago) by otto
Branch: MAIN
Changes since 1.18: +3 -2 lines
Diff to previous 1.18 (colored)

fix percentage computation of wrapping numbers; from Willem Dijkstra
via henning@ with a twist by me

Revision 1.18 / (download) - annotate - [select for diffs], Wed Apr 4 19:22:46 2007 UTC (17 years, 1 month ago) by otto
Branch: MAIN
Changes since 1.17: +1 -2 lines
Diff to previous 1.17 (colored)

unneeded include; -Wall -Wmissing-prototypes is happy; from Mark Lumsden

Revision 1.17 / (download) - annotate - [select for diffs], Tue Feb 27 16:27:39 2007 UTC (17 years, 2 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.16: +8 -4 lines
Diff to previous 1.16 (colored)

an atoi() -> strtonum() conversion from Mark Lumsden; ok simon@ ray@

Revision 1.16 / (download) - annotate - [select for diffs], Wed Jun 8 22:36:43 2005 UTC (18 years, 11 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.15: +9 -6 lines
Diff to previous 1.15 (colored)

Multi-cpu support for top.  Each cpu now gets its own stats line.
Based on work by todd@ at the hackathon.

Revision 1.15 / (download) - annotate - [select for diffs], Mon Nov 22 15:26:53 2004 UTC (19 years, 6 months ago) by pat
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.14: +3 -3 lines
Diff to previous 1.14 (colored)

simplify loop iteration

ok otto millert

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

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

Revision 1.13 / (download) - annotate - [select for diffs], Mon Jul 7 21:36:52 2003 UTC (20 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.12: +2 -1 lines
Diff to previous 1.12 (colored)

protos

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
Changes since 1.11: +5 -5 lines
Diff to previous 1.11 (colored)

some cleanings recommended by lint

Revision 1.11 / (download) - annotate - [select for diffs], Thu Jun 19 22:40:45 2003 UTC (20 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.10: +17 -52 lines
Diff to previous 1.10 (colored)

o get rid of strecpy() and use strlcpy() and/or snprintf() instead.
o make itoa() just use snprintf()
o rename itoa7() to format_uid() and use snprintf()
o max username len is _PW_NAME_LEN, not 8

Revision 1.10 / (download) - annotate - [select for diffs], Thu Jun 12 23:09:30 2003 UTC (20 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.9: +221 -275 lines
Diff to previous 1.9 (colored)

knf

Revision 1.9 / (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.8: +21 -48 lines
Diff to previous 1.8 (colored)

cleanup; ok deraadt

Revision 1.8 / (download) - annotate - [select for diffs], Fri Apr 25 23:58:36 2003 UTC (21 years ago) by deraadt
Branch: MAIN
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)

comment

Revision 1.7 / (download) - annotate - [select for diffs], Fri Apr 25 21:40:52 2003 UTC (21 years ago) by deraadt
Branch: MAIN
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

comment fix

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], Mon Jun 3 20:41:22 2002 UTC (21 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

strlcpy

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

kill more registers

millert@ ok

Revision 1.3 / (download) - annotate - [select for diffs], Sun Sep 20 06:19:14 1998 UTC (25 years, 8 months ago) by niklas
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
Changes since 1.2: +8 -8 lines
Diff to previous 1.2 (colored)

cp_time is long, deal with it.

Revision 1.2 / (download) - annotate - [select for diffs], Fri Aug 22 07:16:31 1997 UTC (26 years, 9 months ago) by downsj
Branch: MAIN
CVS Tags: OPENBSD_2_3_BASE, OPENBSD_2_3, OPENBSD_2_2_BASE, OPENBSD_2_2
Changes since 1.1: +21 -50 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:27 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.