1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00
freebsd/usr.bin
Bruce Evans 9e53fb7dc8 Use floating point instead of unsigned long longs in percentage
calculations.  Long longs should never be used, since they break compiling
with C90 compilers and don't necessarily work any better than longs for
avoiding overflow.

Print percentages with another digit of precision since they can be small
and this is easy to do now that the format is floating point.

Restored some more of the old -m output:
Print the percentage of allocated memory that is in use.  This is the
amount of memory in active mbufs and mbuf clusters relative to the
total amount of memory soft-allocated for mbufs and mbuf clusters.

Print the percentage of allocated memory that is wired (cached).  The
old mbuf allocator never freed memory so printing this value wasn't
useful.  A previous version of netstat for the new allocator printed
the in-use amount as a percentage of the wired amount.

Fixed some nearby style bugs (excessive parenthesization and a redundant
return).

Reviewed by:	alfred
2003-12-29 08:25:32 +00:00
..
alias Mark bits that do not require an object directory as such. 2003-04-01 12:37:54 +00:00
apply Revert previous commit, from Bruce: 2003-06-09 19:21:35 +00:00
asa
at Explain the format of the at.allow and at.deny files in detail. 2003-03-26 02:38:18 +00:00
atm Build the NgATM user space SSCOP tool (unless NOATM is defined). 2003-10-29 10:30:54 +00:00
awk Use 2003-06-06 13:46:55 +00:00
banner
basename ANSIify function definitions. 2002-09-04 23:29:10 +00:00
biff Bump document date for the 'beep only' change. 2002-08-16 03:08:25 +00:00
bluetooth Fix a couple of stylistic issues 2003-12-22 22:50:21 +00:00
brandelf Remove MAINTAINER lines. 2003-06-14 19:32:52 +00:00
bzip2 /rescue/b{,un}zip exists, so build this dynamically now. 2003-11-17 05:19:37 +00:00
bzip2recover Remove MAINTAINER lines. 2003-06-14 19:32:52 +00:00
c89
c99 mdoc(7) police: overhaul. 2002-12-11 17:26:53 +00:00
calendar Add my birthdate (gifts are welcome :-)). 2003-12-28 18:13:57 +00:00
cap_mkdb ANSIify function definitions to avoid a warning. 2002-07-28 14:41:26 +00:00
catman Add (unsigned char) cast to ctype macros 2003-06-10 02:18:00 +00:00
chat Rename logf --> chat_logf to avoid naming conflicts 2003-10-31 06:22:03 +00:00
checknr Close files after opening them to avoiding leaking descriptors and memory. 2003-06-01 06:15:30 +00:00
chkey Use strchr() instead of index(). Use getopt(). Use err(). 2002-08-27 19:06:44 +00:00
chpass Do not compare unsigned int values with ULONG_MAX. The comparison is 2003-07-11 05:47:05 +00:00
cksum - For variables holding offset values, use off_t rather than 2003-03-13 23:32:28 +00:00
cmp phk added the -x option in May 2000, but only for regular files; for 2003-06-19 07:24:26 +00:00
col ANSIify function definitions. 2002-09-04 23:29:10 +00:00
colcrt Fixed the abuses of .Ql visible on stderr in troff mode. 2002-12-23 16:04:51 +00:00
colldef Get rid of duplicates. 2003-09-14 13:41:59 +00:00
colrm ANSIify function definitions to avoid a warning. 2002-07-28 15:22:43 +00:00
column ANSify function definitions to avoid a warning. 2002-07-28 15:25:15 +00:00
comm ANSIify function definitions to avoid a warning. 2002-07-28 15:28:38 +00:00
compile_et
compress Don't truncate the output file before making sure that we can 2003-06-14 13:41:31 +00:00
csplit mdoc(7) police: simplify. 2002-08-14 11:38:30 +00:00
ctags The .Xr files 2003-06-08 13:43:56 +00:00
cut Duplicate "from". 2003-05-03 15:55:23 +00:00
dig
dirname ANSIify function definitions to avoid a warning. 2002-07-28 15:50:38 +00:00
dnskeygen
dnsquery
doscmd Get rid of duplicates. 2003-09-14 13:41:59 +00:00
du -{h,k} are mutually exclisive. So only pay attention to the last of the 2003-03-30 21:25:16 +00:00
ee o Fix identation. 2003-06-30 11:51:21 +00:00
elf2aout Back out the totally unapproved backout of my commits. 2003-03-29 03:03:42 +00:00
elfdump Removed another spurious semicolon forgotten in the previous commit. 2003-09-06 11:55:05 +00:00
enigma Call crypt() directly instead of taking a detour through makekey. 2003-10-09 10:00:53 +00:00
env Removed (after the env(1)/printenv(1) split) extraneous arguments 2003-11-02 21:46:11 +00:00
expand mdoc(7) police: markup polishing. 2002-11-26 10:57:57 +00:00
false Consistently use FBSDID 2002-06-30 05:25:07 +00:00
fetch Finish the reversion of rev. 1.52. 2003-09-08 18:58:47 +00:00
file mdoc(7): Use the new feature of the .In macro. 2003-09-08 19:57:22 +00:00
file2c Consistently use FBSDID 2002-06-30 05:25:07 +00:00
find State that in -exec ... ; the semicolon should be quoted if invoked from 2003-07-25 17:32:43 +00:00
finger Add code to keep going if you're really intent on fingering someone, but 2003-06-28 23:11:41 +00:00
fmt Consistently use FBSDID 2002-06-30 05:25:07 +00:00
fold ANSIify function definitions. 2002-09-04 23:29:10 +00:00
from ANSIify function definitions. 2002-09-04 23:29:10 +00:00
fstat Do not cache and correctly free() dosmount entry in case of errors. 2003-09-23 16:44:17 +00:00
fsync Consistently use FBSDID 2002-06-30 05:25:07 +00:00
ftp Restore INET6 option from config.h. 2003-06-25 15:53:25 +00:00
gcore Add #include <sys/queue.h> for sparc64's benefit. The MD includes there 2002-09-13 18:24:59 +00:00
gencat Check NULL pointer to avoid SIGSEGV 2002-12-24 07:40:10 +00:00
getconf mdoc(7): Use the new feature of the .In macro. 2003-09-08 19:57:22 +00:00
getopt english(4) police. 2002-12-27 12:15:40 +00:00
gprof Remove MD bits for unsupported architectures. 2003-10-30 12:21:31 +00:00
head Remove duplicate __FBSDID() - spotted by trying to build with a non-GNU 2002-07-23 14:39:20 +00:00
hesinfo ANSIify function definitions. 2002-09-04 23:29:10 +00:00
hexdump Capitalize ASCII code names. 2002-12-05 08:50:00 +00:00
host
id ANSIify function definitions. 2002-09-04 23:29:10 +00:00
indent err() on allocation failure. WARNS=9 compliant 2003-06-15 09:28:17 +00:00
ipcrm Wrap long line. Use .Ar instead of .Nm where appropriate. 2003-02-05 14:15:02 +00:00
ipcs Cosmetic fix on some TIME related columns. 2003-10-30 16:52:14 +00:00
join mdoc(7) police: nit. 2002-11-26 11:25:04 +00:00
jot Fix jot so that 'jot -r -w %d 1 1 4' never prints 4. Previously, it 2003-08-01 16:23:24 +00:00
kdump First pass at attempted debrucification: 2003-12-08 22:47:59 +00:00
keylogin Consistently use FBSDID 2002-06-30 05:25:07 +00:00
keylogout Consistently use FBSDID 2002-06-30 05:25:07 +00:00
killall Use the 3-component version of the KERN_PROC_PROC sysctl. 2003-09-27 08:14:37 +00:00
ktrace Do not start err(3) strings with uppercase nor dot terminate them. 2003-02-05 14:25:43 +00:00
ktrdump Use strlcpy() instead of strcpy() to not overflow static buffers. 2002-10-06 23:52:06 +00:00
lam Back out my minorly disputed and possibly not well thought out changes to how 2002-07-01 18:03:30 +00:00
last Tidy up synopsis. 2003-08-17 10:24:53 +00:00
lastcomm Don't try to fseek before the beginning of the file; POSIX requires that 2003-01-27 18:16:32 +00:00
ldd Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/ 2002-12-30 21:18:15 +00:00
leave Fixed the abuses of .Ql visible on stderr in troff mode. 2002-12-23 16:04:51 +00:00
less Use 2003-06-06 13:46:55 +00:00
lessecho
lesskey
lex Point to the new C++ include files location. 2003-07-11 05:30:58 +00:00
limits Uniformly refer to a file system as "file system". 2002-12-12 17:26:04 +00:00
locale Grammar, spelling and punctuation sweep. 2003-11-26 08:38:32 +00:00
locate The .Xr utility 2003-06-08 13:45:37 +00:00
lock Eliminate last three uses of varargs.h in the tree. These three files 2003-09-01 04:12:18 +00:00
lockf Consistently use FBSDID 2002-06-30 05:25:07 +00:00
logger Clarify the describtion of the -A switch 2003-05-21 15:00:47 +00:00
login Remove utmp references, no longer done by login(1) in 5.x. 2003-07-08 13:01:28 +00:00
logname ANSIify function definitions. 2002-09-04 23:29:10 +00:00
look Introduce options definition the standard way. 2003-06-09 19:32:02 +00:00
lorder Give the -o option before any filename operands when invoking the sort 2003-06-01 22:37:38 +00:00
lsvfs Uniformly refer to a file system as "file system". 2002-12-12 17:26:04 +00:00
m4 Use .St -susv2 rather than "The Single UNIX specification". 2003-12-10 10:52:48 +00:00
mail Remove 2 more unused doc Makefiles. 2003-02-04 18:26:08 +00:00
make Change the select timeout from 100ms to 2 seconds now that SIGCHILD is 2003-12-19 11:18:37 +00:00
makewhatis Install /usr/libexec/makewhatis.local and /usr/libexec/catman.local. 2002-11-18 10:11:22 +00:00
mesg Introduce options definition the standard way. 2003-06-09 19:32:02 +00:00
minigzip mdoc(7) police: markup polishing. 2002-11-26 17:33:37 +00:00
ministat Attached is a small patch to ministat that separates the 2003-10-31 13:25:43 +00:00
mkdep english(4) police. 2002-12-27 12:15:40 +00:00
mkfifo ANSIify function definitions. 2002-09-04 23:29:10 +00:00
mklocale Update cross references after utf2/euc move. 2003-11-15 02:49:53 +00:00
mkstr - Document gencat(1) 2003-08-22 17:55:56 +00:00
mktemp Use proper article. 2002-07-16 05:38:26 +00:00
msgs Fix singular/plural confusion in a printf. 2003-02-06 22:39:44 +00:00
mt Change /dev/rsa0 and /dev/rwt0 references to sa0 and wt0. 2003-09-05 15:28:09 +00:00
ncal Teach ncal(1) about month names specified on the command line. 2002-10-02 12:31:10 +00:00
ncplist
ncplogin ANSIify function definitions. 2002-09-04 23:29:10 +00:00
netstat Use floating point instead of unsigned long longs in percentage 2003-12-29 08:25:32 +00:00
newgrp Use (char *)NULL to terminated to argument list for execl(). 2003-10-30 15:14:34 +00:00
newkey The .Nm utility 2002-07-14 15:12:00 +00:00
nfsstat
nice english(4) police. 2002-12-27 12:15:40 +00:00
nl Tidy up usage message. 2003-08-17 10:33:54 +00:00
nohup Make GCC 3.3 happy with rcsid[], sccs[], and copyright[]. 2003-05-03 19:44:46 +00:00
objformat mdoc(7) police: markup and spelling. 2002-11-26 17:34:25 +00:00
opieinfo
opiekey
opiepasswd
pagesize
passwd While I really liked the error message one received from `passwd' 2003-04-18 21:27:09 +00:00
paste Fixed the abuses of .Ql visible on stderr in troff mode. 2002-12-23 16:04:51 +00:00
pathchk Unbreak support for systems that have no limit on pathname length. 2002-12-15 00:40:47 +00:00
pr Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/ 2002-12-30 21:18:15 +00:00
printenv Split the env(1) manpage off from printenv(1); there is not much point 2003-06-01 06:29:47 +00:00
printf ANSIify function definitions. 2002-09-04 23:29:10 +00:00
quota Remove redundant declarations. 2003-08-05 06:50:28 +00:00
renice The usage string: renice [priority | [-n incr]] ... assumed that the part 2003-02-26 20:27:24 +00:00
rev ANSIify function definitions. 2002-09-04 23:29:10 +00:00
rlogin Use the POSIX tty interface instead of the old interface. This makes 2003-09-28 08:54:56 +00:00
rpcgen Fix broken -a functionality. 2003-06-19 09:19:51 +00:00
rpcinfo Add FBSDID. Use errx() instead of fprintf()/exit(). Call exit() at the end 2003-09-07 15:26:44 +00:00
rs Add section number to .Xr 2003-06-08 13:58:08 +00:00
rsh Remove duplicate #include. Do not \n terminate errx() arg. 2003-09-07 15:30:42 +00:00
rup More xdrproc_t warnings. 2003-10-26 04:57:32 +00:00
ruptime Forgot to update the date field; from David Magda <dmagda@magda.ca>. 2003-03-01 23:43:53 +00:00
rusers More xdrproc_t warnings. 2003-10-26 04:57:32 +00:00
rwall More xdrproc_t warnings. 2003-10-26 04:57:32 +00:00
rwho Modernise; ISOify, use __FBSDID(), use headers instead of hand-declaring. 2002-07-01 16:40:33 +00:00
sasc
script Introduce arguments the standard way. In .Ar command ..., ... is not an 2003-09-07 15:43:50 +00:00
sed Fix the case where the file is not in the current directory. 2003-11-04 22:39:25 +00:00
shar
showmount More xdrproc_t issues. 2003-10-26 04:58:44 +00:00
smbutil
sockstat make sockstat not print wierd addresses on not connected unix domain sockets 2003-07-19 06:23:56 +00:00
split Support larger files (at least 64-bit offsets) by using off_t instead of 2002-07-15 05:31:55 +00:00
stat Resolve conflicts 2003-10-06 01:55:17 +00:00
su Be sure to restore foreground group to parent su before parent su 2003-11-04 14:51:34 +00:00
systat Make systat -net aware of compressed time_wait sockets. 2003-12-24 08:54:53 +00:00
tabs mdoc(7) police: markup polishing. 2002-11-26 17:33:37 +00:00
tail Removed check of st_rdev changing in the -F support. st_rdev for regular 2003-08-14 11:02:03 +00:00
talk Use the new style struct sockaddr instead of osockaddr in system calls 2003-09-28 09:45:56 +00:00
tcopy Change /dev/rsa0 and /dev/rwt0 references to sa0 and wt0. 2003-09-05 15:28:09 +00:00
tee ANSIify function definitions. 2002-09-04 23:29:10 +00:00
telnet Make sure that a "make release" (more accurately the bit that makes 2003-07-24 17:19:15 +00:00
tftp Fix BSS buffer overflow in makeargv(). 2003-10-12 00:27:55 +00:00
time Uses wait4() instead of wait3() when waiting for a child process to exit. 2003-10-17 07:53:30 +00:00
tip Baud rate capability is br', not ba'. 2003-09-06 18:36:51 +00:00
top Changes to allow top to decide whether or not to show multiple threads per 2003-07-17 23:56:40 +00:00
touch ANSIify function definitions. 2002-09-04 23:29:10 +00:00
tput command -> utility. Add section number to .Xr 2003-06-08 14:38:02 +00:00
tr Back out [:upper:] and [:lower:] classes sorting, it is not required 2003-08-05 07:59:46 +00:00
true
truncate
truss Fix signal behaviour. 2003-12-28 01:20:03 +00:00
tset Add section number to .Xr 2003-06-08 13:58:08 +00:00
tsort Removed unused macro definition 2003-09-04 20:05:46 +00:00
tty
uac
ul Add section number to .Xr 2003-06-08 13:58:08 +00:00
uname Make the sysctlbyname stuff look like the 2-level MIB stuff. This 2003-07-01 20:15:28 +00:00
unexpand Fix off-by-one error processing the line after an empty line when the 2002-10-04 16:45:25 +00:00
unifdef Improve expression evaluation debugging output, tidy up the handling of 2003-07-01 15:30:43 +00:00
uniq Mention the environment variables that affect the execution of uniq. 2003-04-12 04:17:14 +00:00
units Add r_earth, r_moon, r_sun, representing the terrestrial, lunar, and 2003-11-05 22:29:48 +00:00
unvis ANSIify function definitions. 2002-09-04 23:29:10 +00:00
usbhidaction Assorted mdoc(7) fixes. 2003-05-30 21:27:29 +00:00
usbhidctl Remove uninitialized local variable in favor of global. 2003-05-26 04:58:26 +00:00
users ANSIify function definitions. 2002-09-04 23:29:10 +00:00
uudecode Make GCC 3.3 happy with rcsid[], sccs[], and copyright[]. 2003-05-03 19:44:46 +00:00
uuencode Make GCC 3.3 happy with rcsid[], sccs[], and copyright[]. 2003-05-03 19:44:46 +00:00
uuidgen The uuidgen(1) program is WARNS=6 clean, so flag it as such. 2003-12-07 21:34:56 +00:00
vacation Remove MAINTAINER= lines from individual Makefiles in favor of the 2003-07-07 03:54:04 +00:00
vgrind Fix warning about cgetent() argument. 2003-10-26 05:03:11 +00:00
vi FIx catalog name I overlook in prev. obsolete locales removing 2003-06-23 13:08:22 +00:00
vis ANSIify function definitions. 2002-09-04 23:29:10 +00:00
vmstat Remove an unused variable. 2003-12-25 01:32:55 +00:00
w Do not print the result of strftime() in case of failure, the content is 2003-09-07 16:31:32 +00:00
wall Remove "sleeper" nonsense. 2003-02-21 08:46:44 +00:00
wc mdoc(7) police: markup polishing. 2002-11-26 17:33:37 +00:00
what mdoc(7) police: markup polishing. 2002-11-26 17:33:37 +00:00
whereis Adjust max WARNs for sparc64. 2002-12-30 09:48:40 +00:00
which Handle relative and absolute pathnames (anything with a `/' in it) in the same 2002-06-30 06:02:39 +00:00
who Fix a warning that showed up on 64 bit systems. It was actually a real 2003-10-26 05:05:48 +00:00
whois Back out .SU workaround - people at whois-servers.net set up 2003-06-29 23:56:31 +00:00
window Fix a `cast to pointer from integer of different size' warning. 2003-09-17 03:58:52 +00:00
write ANSIify function definitions. 2002-09-04 23:29:10 +00:00
xargs - Use _PATH_TTY and _PATH_DEVNULL macros. 2003-06-13 17:05:41 +00:00
xinstall Since (x)install is pretty unhelpfull and just spits out a Usage 2003-07-11 20:51:16 +00:00
xlint The size of a long double is 16 bytes, not 12 bytes. 2003-11-03 05:09:57 +00:00
xstr Introduce options definition the standard way. Do not uppercase first 2003-06-09 19:35:56 +00:00
yacc Add __unused to the declaration of yyrcsid in a more portable way. 2003-02-12 18:03:55 +00:00
yes #include <err.h> to make yes warns clean again. 2002-11-09 21:00:39 +00:00
ypcat Stop gcc warnings 2003-10-26 05:28:01 +00:00
ypmatch Stop gcc warnings 2003-10-26 05:28:01 +00:00
ypwhich Fix up warnings. There were some biggies here. There seems to be two 2003-10-26 05:30:40 +00:00
Makefile Build lint(1) on ia64. 2003-11-03 05:14:47 +00:00
Makefile.inc