freebsd_amp_hwpstate/usr.bin
Kenneth D. Merry 2a888f938e Add a prioritization field to the devstat_add_entry() call so that
peripheral drivers can determine where in the devstat(9) list they are
inserted.

This requires recompilation of libdevstat, systat, vmstat, rpc.rstatd, and
any ports that depend on the devstat code, since the size of the devstat
structure has changed.  The devstat version number has been incremented as
well to reflect the change.

This sorts devices in the devstat list in "more interesting" to "less
interesting" order.  So, for instance, da devices are now more important
than floppy drives, and so will appear before floppy drives in the default
output from systat, iostat, vmstat, etc.

The order of devices is, for now, kept in a central table in devicestat.h.
If individual drivers were able to make a meaningful decision on what
priority they should be at attach time, we could consider splitting the
priority information out into the various drivers.  For now, though, they
have no way of knowing that, so it's easier to put them in an easy to find
table.

Also, move the checkversion() call in vmstat(8) to a more logical place.

Thanks to Bruce and David O'Brien for suggestions, for reviewing this, and
for putting up with the long time it has taken me to commit it.  Bruce did
object somewhat to the central priority table (he would rather the
priorities be distributed in each driver), so his objection is duly noted
here.

Reviewed by:	bde, obrien
1999-02-10 00:04:13 +00:00
..
apply Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]). 1998-12-06 22:58:23 +00:00
ar Eliminate compiler warnings from -Wall 1998-12-06 07:36:44 +00:00
at Eliminate compiler warnings from -Wall 1998-12-06 07:42:09 +00:00
banner Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]). 1998-12-06 22:58:23 +00:00
basename Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]). 1998-12-06 22:58:23 +00:00
biff Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]). 1998-12-06 22:58:23 +00:00
brandelf Added "SVR4" as an acceptable brand 1999-01-30 06:16:48 +00:00
c89
calendar Fixed gratuitous unformatting in rev.1.8. 1998-10-22 18:17:30 +00:00
cap_mkdb Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]). 1998-12-06 22:58:23 +00:00
chat Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]). 1998-12-06 22:58:23 +00:00
checknr Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]). 1998-12-06 22:58:23 +00:00
chflags Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]). 1998-12-06 22:58:23 +00:00
chkey
chpass Allow two digit years 1969-2068 1999-01-18 22:15:09 +00:00
cksum Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]). 1998-12-06 22:58:23 +00:00
cmp Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]). 1998-12-06 22:58:23 +00:00
col Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]). 1998-12-06 22:58:23 +00:00
colcrt Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]). 1998-12-06 22:58:23 +00:00
colldef Euro support, part 2. 1999-01-21 19:41:38 +00:00
colrm Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]). 1998-12-06 22:58:23 +00:00
column Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]). 1998-12-06 22:58:23 +00:00
comm Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]). 1998-12-06 22:58:23 +00:00
compile_et Unbreak K&R support, and generate code that works in K&R C as well as 1998-12-18 14:29:51 +00:00
compress Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]). 1998-12-06 22:58:23 +00:00
cpp
ctags Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]). 1998-12-06 22:58:23 +00:00
cut Merge from NetBSD: cut.1 rev 1.6 to 1.8 1999-02-02 15:48:04 +00:00
dig
dirname Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]). 1998-12-06 22:58:23 +00:00
dnsquery
doscmd Use the new variable NEED_LIBNAMES instead of including 1999-01-22 12:45:27 +00:00
du Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]). 1998-12-06 22:58:23 +00:00
ee Typo. 1999-01-15 02:38:33 +00:00
enigma Typo. 1999-01-28 19:22:22 +00:00
env Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]). 1998-12-06 22:58:23 +00:00
error Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]). 1998-12-06 22:58:23 +00:00
expand Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]). 1998-12-06 22:58:23 +00:00
f2c Update to the most recent version. Among other things, this also solves 1999-02-03 17:23:49 +00:00
false
fetch Remove the FTP_PASSIVE_MODE "fix"; libftpio handles this. 1999-02-05 01:01:17 +00:00
file Add Hitachi SH-3, SH-4, ARM, PPC, 68k PA-ARCH and a few others to PE 1999-01-09 00:43:27 +00:00
file2c
find Typo - "the -delete primary do not.." -> "the -delete primary does not.." 1998-12-31 16:21:51 +00:00
finger
fmt
fold
fpr
from
fsplit
fstat
ftp Better error checking. 1998-12-09 20:49:20 +00:00
gcore Fix errors detected by -Wformat. 1998-11-01 06:35:36 +00:00
gencat Updated gencat(1) page from T. Lambert: 1998-11-18 04:30:53 +00:00
gensetdefs Fixed 7 style bugs. The contents of such a simple Makefile is entirely 1998-10-14 10:21:10 +00:00
getopt
global Fixed breakage of `make checkdpadd' in previous commit. 1999-01-19 00:23:25 +00:00
gprof
gprof4
head fread() returns 0 on eof or error, not EOF. This fixes the following 1998-10-09 10:33:46 +00:00
hexdump PR: bin/9016 1998-12-13 06:40:18 +00:00
host
id
indent PR: 7583 1998-10-18 04:46:24 +00:00
ipcrm
ipcs
join
jot
kdump Generate code to interpret ioctl numbers for all ioctls defined in 1998-10-16 15:33:17 +00:00
key
keyinfo Remove useless `BINOWN=root' now that it is the default. 1998-09-19 22:42:06 +00:00
keyinit Remove useless `BINOWN=root' now that it is the default. 1998-09-19 22:42:06 +00:00
keylogin
keylogout
killall Added myself as maintainer. 1999-02-09 17:23:03 +00:00
ktrace
kzip
lam
last
lastcomm
ldd
leave
lex Backed out "fix for PR 7575". It was bogus. 1998-10-01 19:40:27 +00:00
limits Remove useless `BINOWN=root' now that it is the default. 1998-09-19 22:42:06 +00:00
locate Added myself as maintainer. 1999-02-09 17:23:03 +00:00
lock Remove useless `BINOWN=root' now that it is the default. 1998-09-19 22:42:06 +00:00
lockf
logger
login Added xref to nologin(5) 1999-02-01 21:04:15 +00:00
logname
look
lorder
lsvfs
m4 Change the wording to reflect that only the first character of the two 1998-12-13 23:15:50 +00:00
mail Allocate aligned memory according to sizeof(char *). 1999-01-13 10:37:22 +00:00
make Don't allow pointer underrun in loop. 1999-01-08 18:37:34 +00:00
makewhatis
mesg
minigzip
mk_cmds
mkdep
mkfifo
mklocale Added support for DIS 8859-15 based locales using patch 1998-12-14 02:59:15 +00:00
mkstr
mktemp
modstat
more
msgs
mt Print relative (mt_fileno, mt_blkno) position, if known. 1999-02-05 02:46:21 +00:00
ncal
netstat Make the ipx part of netstat work again. 1999-02-06 19:12:48 +00:00
newkey Calls one or more of malloc(), warn(), err(), syslog(), execlp() or 1998-10-13 14:52:33 +00:00
nfsstat Backout out previous commit. The bug was in the kernel. 1998-10-25 10:59:44 +00:00
nice
nm
nohup
objformat Link objformat statically by default. This makes it possible to 1998-11-01 02:37:40 +00:00
opieinfo
opiekey
opiepasswd
pagesize
passwd Back out the new crypt(3) stuff untill we can go through an independant 1999-01-23 08:36:38 +00:00
paste
pr
printenv
printf Fixed warnx format errors in printf and csh, and snprintf format errors 1998-12-07 12:14:04 +00:00
quota Remove useless `BINOWN=root' now that it is the default. 1998-09-19 22:42:06 +00:00
ranlib Don't build or install ${MAN1}. It's just a copy of ${MAN1aout} and 1998-10-10 12:48:48 +00:00
rdist Fix formatting bug. 1998-10-15 05:04:28 +00:00
renice
rev
rlogin Use KJH's auth.conf parser to turn on/off Kerberos in userland. 1998-10-09 06:47:57 +00:00
rpcgen Backed out previous commit. The bug was in rev.1.49 of src/Makefile.inc1, 1999-01-04 12:36:23 +00:00
rpcinfo
rs
rsh Use KJH's auth.conf parser to turn on/off Kerberos in userland. 1998-10-09 06:47:57 +00:00
rup
ruptime
rusers
rwall PR: bin/8680 1998-12-13 03:44:19 +00:00
rwho Fixed typo. 1998-12-20 02:52:30 +00:00
sasc Removed all `vector xxxintr' specifications. Interrupt handlers are now 1998-10-22 15:53:06 +00:00
script Mention default time between output flushes in manual page. 1998-09-29 01:49:49 +00:00
sed Fix a new bug introduced by the previous bug fix 1998-12-08 21:29:22 +00:00
shar
showmount
size
soelim
split Print usage via fprintf(stderr, ..) instead of errx() to avoid progname prefix. 1999-02-05 00:42:14 +00:00
strings
strip
su Add JKH's auth.conf parser to turn on/off Kerberos in userland 1998-10-09 20:14:48 +00:00
symorder
systat Include discrete ozfod as well as ozfod/zfod percentage. 1999-02-08 02:39:45 +00:00
tail
talk
tconv
tcopy Update tcopy for CAM. (/dev/rst0 -> /dev/rsa0) 1998-11-16 00:05:46 +00:00
tee
telnet Add "-N" option to supress reverse name lookup. 1998-12-14 22:40:39 +00:00
tftp Rename a function name so that it doesn't conflict with a future system call. 1998-10-30 16:17:50 +00:00
time Calls one or more of malloc(), warn(), err(), syslog(), execlp() or 1998-10-13 14:52:33 +00:00
tip Some 64bit portability fixes. 1998-10-03 11:01:39 +00:00
tn3270 Calls one or more of malloc(), warn(), err(), syslog(), execlp() or 1998-10-13 14:52:33 +00:00
top Don't dump core when p_stat is not in the expected range. This is 1999-02-06 16:58:50 +00:00
touch Merge from 2_2 man page change. 1999-01-05 10:13:54 +00:00
tput
tr
true
truss Flush the output file before exiting; short-lived programs don't even fill 1998-12-21 06:34:50 +00:00
tset
tsort
tty
ul
uname
unexpand
unifdef
uniq
units Install using ${INSTALL}, not using `install'. 1998-09-20 21:38:12 +00:00
unvis
users
uudecode
uuencode
vacation Calls one or more of malloc(), warn(), err(), syslog(), execlp() or 1998-10-13 14:52:33 +00:00
vgrind
vi The perlinterp option builds and works, but I'm not so sure how it'll go 1998-12-16 04:02:56 +00:00
vis
vmstat Add a prioritization field to the devstat_add_entry() call so that 1999-02-10 00:04:13 +00:00
w Fix the annoying bug introduced in rev 1.18 that caused each line to be 1999-01-10 15:28:37 +00:00
wall PR: bin/8680 1998-12-13 03:42:51 +00:00
wc
what
whereis Also look in /usr/src/contrib. 1998-10-04 10:33:37 +00:00
which Added myself as maintainer. 1999-02-09 17:23:03 +00:00
who
whois Add -R for .RU domains 1999-02-02 01:49:14 +00:00
window One vfork() changed to fork(); one execl() changed to execv(). The 1998-10-13 15:14:37 +00:00
write
xargs Calls one or more of malloc(), warn(), err(), syslog(), execlp() or 1998-10-13 14:52:33 +00:00
xinstall Free memory from setmode. 1998-12-16 04:51:27 +00:00
xlint Use __XSTRING() from cdefs.h instead of rolling my own. 1999-01-25 11:25:24 +00:00
xstr
yacc "19%02", tm.year -> "%d", tm.year+1900 1999-01-18 22:42:05 +00:00
yes
ypcat
ypmatch
ypwhich
Makefile Fixed disorder. 1998-11-10 12:19:26 +00:00
Makefile.inc