Up to [local] / src / usr.bin / top
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.21, Sat Sep 22 16:50:35 2018 UTC (5 years, 8 months ago) by millert
Branch: MAIN
CVS Tags: HEAD
Changes since 1.20: +1 -1 lines
FILE REMOVED
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.20 / (download) - annotate - [select for diffs], Sat Sep 22 02:18:19 2018 UTC (5 years, 8 months ago) by procter
Branch: MAIN
Changes since 1.19: +5 -3 lines
Diff to previous 1.19 (colored) to selected 1.16 (colored)
fix uid -> username lookup ok deraadt@
Revision 1.19 / (download) - annotate - [select for diffs], Sun Sep 16 02:44:06 2018 UTC (5 years, 8 months ago) by millert
Branch: MAIN
Changes since 1.18: +4 -7 lines
Diff to previous 1.18 (colored) to selected 1.16 (colored)
Use uid_from_user(3) and gid_from_group(3) in utilities that do repeated lookups. OK tb@
Revision 1.18 / (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.17: +2 -2 lines
Diff to previous 1.17 (colored) to selected 1.16 (colored)
Fix warnings caused by user_from_uid() and group_from_gid() now returning const char *.
Revision 1.17 / (download) - annotate - [select for diffs], Mon Oct 26 13:56:18 2015 UTC (8 years, 7 months ago) by tedu
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,
OPENBSD_6_0_BASE,
OPENBSD_6_0,
OPENBSD_5_9_BASE,
OPENBSD_5_9
Changes since 1.16: +2 -87 lines
Diff to previous 1.16 (colored)
remove the silly username cache here and use libc user_from_uid. libc isn't (yet) any better, but it can improve with time.
Revision 1.16 / (download) - annotate - [selected], Wed Jul 22 15:27:52 2009 UTC (14 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: 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,
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,
OPENBSD_4_7_BASE,
OPENBSD_4_7
Changes since 1.15: +7 -12 lines
Diff to previous 1.15 (colored)
enter_user() is only called in one way, rendering the third parameter useless; from mark@cyodesigns.com
Revision 1.15 / (download) - annotate - [select for diffs], Wed Apr 2 16:41:24 2008 UTC (16 years, 2 months ago) by deraadt
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
Changes since 1.14: +1 -30 lines
Diff to previous 1.14 (colored) to selected 1.16 (colored)
using getpwent() in a loop is so 1980; ok millert
Revision 1.14 / (download) - annotate - [select for diffs], Sun May 9 22:14:15 2004 UTC (20 years, 1 month ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE,
OPENBSD_4_3,
OPENBSD_4_2_BASE,
OPENBSD_4_2,
OPENBSD_4_1_BASE,
OPENBSD_4_1,
OPENBSD_4_0_BASE,
OPENBSD_4_0,
OPENBSD_3_9_BASE,
OPENBSD_3_9,
OPENBSD_3_8_BASE,
OPENBSD_3_8,
OPENBSD_3_7_BASE,
OPENBSD_3_7,
OPENBSD_3_6_BASE,
OPENBSD_3_6
Changes since 1.13: +3 -3 lines
Diff to previous 1.13 (colored) to selected 1.16 (colored)
spaces
Revision 1.13 / (download) - annotate - [select for diffs], Mon Jul 7 21:36:52 2003 UTC (20 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: 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) to selected 1.16 (colored)
protos
Revision 1.12 / (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.11: +5 -9 lines
Diff to previous 1.11 (colored) to selected 1.16 (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.11 / (download) - annotate - [select for diffs], Sun Jun 15 16:24:44 2003 UTC (21 years ago) by millert
Branch: MAIN
Changes since 1.10: +6 -6 lines
Diff to previous 1.10 (colored) to selected 1.16 (colored)
use uid_t and fix some sign compare warnings; OK krw@ and deraadt@
Revision 1.10 / (download) - annotate - [select for diffs], Fri Jun 13 21:52:25 2003 UTC (21 years ago) by deraadt
Branch: MAIN
Changes since 1.9: +1 -12 lines
Diff to previous 1.9 (colored) to selected 1.16 (colored)
readable code
Revision 1.9 / (download) - annotate - [select for diffs], Thu Jun 12 23:09:30 2003 UTC (21 years ago) by deraadt
Branch: MAIN
Changes since 1.8: +78 -87 lines
Diff to previous 1.8 (colored) to selected 1.16 (colored)
knf
Revision 1.8 / (download) - annotate - [select for diffs], Thu Jun 12 22:30:23 2003 UTC (21 years ago) by pvalchev
Branch: MAIN
Changes since 1.7: +12 -21 lines
Diff to previous 1.7 (colored) to selected 1.16 (colored)
cleanup; ok deraadt
Revision 1.7 / (download) - annotate - [select for diffs], Mon Jul 15 17:20:36 2002 UTC (21 years, 11 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.6: +22 -5 lines
Diff to previous 1.6 (colored) to selected 1.16 (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.6 / (download) - annotate - [select for diffs], Sun Jun 23 03:07:22 2002 UTC (21 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored) to selected 1.16 (colored)
uid_t and gid_t are unsigned
Revision 1.5 / (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.4: +3 -3 lines
Diff to previous 1.4 (colored) to selected 1.16 (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.4 / (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.3: +7 -7 lines
Diff to previous 1.3 (colored) to selected 1.16 (colored)
kill more registers millert@ ok
Revision 1.3 / (download) - annotate - [select for diffs], Fri Jul 27 17:04:06 2001 UTC (22 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE,
OPENBSD_3_0
Changes since 1.2: +3 -2 lines
Diff to previous 1.2 (colored) to selected 1.16 (colored)
more careful handling; i.mcwilliam@uws.edu.au
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_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: +14 -9 lines
Diff to previous 1.1 (colored) to selected 1.16 (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, 10 months ago) by downsj
Branch: MAIN
Diff to selected 1.16 (colored)
top 3.4, with a few changes. Still needs more work.