freebsd-nq/usr.bin
Poul-Henning Kamp e796e00de3 Some cleanups related to timecounters and weird ifdefs in <sys/time.h>.
Clean up (or if antipodic: down) some of the msgbuf stuff.

Use an inline function rather than a macro for timecounter delta.

Maintain process "on-cpu" time as 64 bits of microseconds to avoid
needless second rollover overhead.

Avoid calling microuptime the second time in mi_switch() if we do
not pass through _idle in cpu_switch()

This should reduce our context-switch overhead a bit, in particular
on pre-P5 and SMP systems.

WARNING:  Programs which muck about with struct proc in userland
will have to be fixed.

Reviewed, but found imperfect by:       bde
1998-05-28 09:30:28 +00:00
..
apply .Sh ENVIRONMENT VARIABLES -> .Sh ENVIRONMENT 1998-05-13 07:57:49 +00:00
ar ELF preparation step 1: 1998-05-25 17:34:42 +00:00
at Permit double digit year values to be used in the next millenium. 1998-05-05 01:53:15 +00:00
banner .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 07:48:45 +00:00
basename PR: 4866 1998-04-14 22:08:48 +00:00
biff -Wall cleanup. 1997-12-29 00:09:06 +00:00
brandelf Add a forgotten 'static'. 1998-04-21 02:44:12 +00:00
c89 Added -D_ANSI_SOURCE as discussed with bde, 1997-10-05 18:44:37 +00:00
calendar Update to reflect the current Jewish calendar. 1998-02-08 22:57:59 +00:00
cap_mkdb Finish importing Lite2's src/usr.bin, except for ex, diff, grep, mail, 1997-07-06 06:54:14 +00:00
chat merge ppp-2.3.3 changes onto mainline 1998-03-21 20:47:53 +00:00
checknr Add prototypes to functions. Make -Wall happy. 1997-06-24 06:54:43 +00:00
chflags Finish importing Lite2's src/usr.bin, except for ex, diff, grep, mail, 1997-07-06 06:54:14 +00:00
chkey Fixed missing DPADD. 1997-12-16 14:42:08 +00:00
chpass Fixed `make -j9' by putting generated headers in ${SRCS}. Removed bogus 1998-04-26 16:31:14 +00:00
cksum cksum does a 32-bit checksum, so it needs to use u_int32_t variables, 1998-03-10 05:03:49 +00:00
cmp "EOF of file..." is written to stderr and not stdout. 1998-05-26 00:39:12 +00:00
col compare return value from getopt against -1 rather than EOF, per the final 1997-03-29 04:34:07 +00:00
colcrt -Wall cleanup. 1997-12-29 00:09:06 +00:00
colldef Added y.tab.h to SRCS. This should have been used to get dependencies 1998-05-05 13:16:35 +00:00
colrm -Wall cleanup. 1997-12-29 00:09:06 +00:00
column Fix example to match ls(1)'s output. 1997-08-20 02:05:29 +00:00
comm Teach comm(1) and uniq(1) about an option for case-insensitive work. 1997-09-07 15:09:22 +00:00
compile_et Simplified using new yacc rules and by not generating y.tab.h. The 1998-05-04 18:40:18 +00:00
compress Uncompress is under .Nm not .Ar. 1997-06-30 06:44:07 +00:00
cpp Revert $FreeBSD$ to $Id$ 1997-02-22 19:58:13 +00:00
ctags Ctags write to buffer beyond the end of it when the source file 1998-04-19 18:00:49 +00:00
cut Use err(3) instead of local redefinition. Change argument name in man 1997-06-30 06:48:46 +00:00
dig Update for bind-8 1998-05-03 05:16:58 +00:00
dirname compare return value from getopt against -1 rather than EOF, per the final 1997-03-29 04:34:07 +00:00
dnsquery Update for bind-8 1998-05-03 05:16:58 +00:00
doscmd ELF preparation step 2: 1998-05-26 20:12:56 +00:00
du .Sh ENVIRONMENT VARIABLES -> .Sh ENVIRONMENT 1998-05-13 07:57:49 +00:00
ee Use NL_CAT_LOCALE to activate LC_MESSAGES 1998-04-30 12:49:11 +00:00
env Add usage(). 1997-06-30 06:51:20 +00:00
error .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 07:48:45 +00:00
expand PR: bin/5529 1998-02-02 07:10:59 +00:00
f2c Fixed `make -jN' for large N. Just put all generated headers in SRCS. 1998-03-06 13:51:18 +00:00
false
fetch Fix my last change: the .Fx macro doesn't do anything useful without an 1998-05-09 21:39:49 +00:00
file .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 07:48:45 +00:00
file2c Nm does not always need an argument. 1997-07-02 06:30:51 +00:00
find Add cross references for find(1), locate(1), whereis(1) and which(1). 1998-05-15 11:22:42 +00:00
finger Document the bogus standard requirement of delaying the close. 1997-08-01 20:26:47 +00:00
fmt Ooops, the Makefile was not supposed to be changed. Unspam this. 1997-09-30 19:42:55 +00:00
fold Add usage(), use err(3). 1997-07-08 10:59:50 +00:00
fpr
from Add usage(), use err(3). 1997-07-08 10:59:50 +00:00
fsplit .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 07:48:45 +00:00
fstat Include correct header to get definition of struct sockaddr_un. 1998-05-16 21:35:37 +00:00
ftp Fix a few minor typos and style nits. 1998-03-01 18:58:03 +00:00
gcore Add missing argument detected by "-Wformat". Make messages more 1997-11-18 03:50:25 +00:00
gencat Add (unsigned char) cast to ctype macros 1998-04-30 10:31:38 +00:00
getopt compare return value from getopt against -1 rather than EOF, per the final 1997-03-29 04:34:07 +00:00
global Don't create an unused obj directory. 1998-02-20 11:18:57 +00:00
gprof Revert to original style. 1997-07-15 08:04:40 +00:00
gprof4 Implemented non-statistical kernel profiling. This is based on 1995-12-29 15:30:05 +00:00
head Setting eval to 1 after calling warn was the original behaviour. 1997-07-11 06:13:18 +00:00
hexdump Localize it 1997-11-04 05:33:15 +00:00
host Update for bind-8 1998-05-03 05:16:58 +00:00
id Use .Nm id' instead of .Nm' for the synopsis lines. 1998-02-28 21:37:54 +00:00
indent Support integer constant unsigned-suffix and long-long-suffix. 1998-05-19 20:41:20 +00:00
ipcrm Add rcsid. Cosmetic in usage string. Typo in man page. 1997-07-15 09:54:34 +00:00
ipcs .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 07:48:45 +00:00
join Require all compatability options to begin with '-'. 1997-08-19 15:58:15 +00:00
jot Random data is no longer based on the time of day, rather the random 1998-01-24 03:32:33 +00:00
kdump Use err(3). Correct incomplete man page. 1997-07-16 06:49:49 +00:00
key .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 07:48:45 +00:00
keyinfo .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 07:48:45 +00:00
keyinit .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 07:48:45 +00:00
keylogin Fixed DPADD. 1997-12-16 17:37:23 +00:00
keylogout Add rcsid, remove unused #includes, change exit(-1). 1998-01-14 07:14:11 +00:00
killall .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 07:48:45 +00:00
ktrace Delete truss manpage link. We have now a real truss command. 1997-12-06 23:40:13 +00:00
kzip .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 07:48:45 +00:00
lam Use err(3) instead of local redefintion. Add usage() as a separate 1997-07-18 06:43:15 +00:00
last Reviewed by: Peter Hawkins <thepish@FreeBSD.org> 1998-05-28 00:58:29 +00:00
lastcomm Cosmetic in usage string. 1997-07-21 12:01:47 +00:00
ldd Add ELF support. 1998-05-01 08:40:11 +00:00
leave Don't let secs variable wrap if <= 2. 1998-04-14 00:23:54 +00:00
lex Simplified by using new yacc rules. The new lex rules can't be used 1998-05-04 19:10:20 +00:00
limits In the SEE ALSO section, {get,set}rlimit are said to be in the section 1998-05-08 14:46:23 +00:00
locate Add cross references for find(1), locate(1), whereis(1) and which(1). 1998-05-15 11:22:42 +00:00
lock Use err(3). Add usage(). 1997-07-21 12:09:34 +00:00
lockf .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 07:48:45 +00:00
logger Use err(3). 1997-07-22 07:33:48 +00:00
login *blush*, typo during last minute editing.. 1998-04-30 16:50:07 +00:00
logname Show the real revision date and not the date that this 1997-06-23 04:03:49 +00:00
look revert: The warning was supposed to irritate someone into fixing this. 1997-09-15 11:02:10 +00:00
lorder Typo. 1997-07-23 06:48:01 +00:00
lsvfs Started getting rid of the compatibility cruft for the Lite1 mount() 1998-01-17 16:24:27 +00:00
m4 .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 07:48:45 +00:00
mail Document the use of sendmail options on the commandline. 1998-04-14 00:59:29 +00:00
make Add a graceful jumping off point with a new .error directive. 1998-05-25 03:28:37 +00:00
makewhatis Fix a minor nit in the .Dd macro invocation so that 1997-06-23 04:52:13 +00:00
mesg Add usage(). 1997-07-24 07:00:17 +00:00
minigzip Add SEE ALSO section including ref to gzip. Add .An. 1998-01-05 07:14:54 +00:00
mk_cmds Added y.tab.h to SRCS. This should have been used to get dependencies 1998-05-05 13:16:35 +00:00
mkdep .Nm mkdep -> .Nm. 1997-07-24 07:01:18 +00:00
mkfifo Add includes and prototype. 1997-07-24 07:02:55 +00:00
mklocale Added y.tab.h to SRCS. This should have been used to get dependencies 1998-05-05 13:16:35 +00:00
mkstr Add #include <string.h> to get prototypes. 1998-02-20 04:48:37 +00:00
mktemp Add usage() and rcsid. Remove unused #include. -Wall. 1998-05-05 06:13:47 +00:00
modstat .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 07:48:45 +00:00
more .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 07:48:45 +00:00
msgs Use err(3). 1997-07-29 06:47:18 +00:00
mt mt should report the compression status. 1998-04-19 17:28:14 +00:00
ncal fix ncal.1 grammar 1998-04-26 06:21:29 +00:00
netstat Make "netstat -s" display stats on fast-forwarded packets. 1998-05-19 16:00:55 +00:00
newkey Replace incomplete malloc prototype with #include <stdlib.h> 1998-02-20 04:38:20 +00:00
nfsstat Merged from Lite2. This was mostly already done, mostly indirectly 1998-01-20 12:27:38 +00:00
nice .Nm nice -> .Nm. 1998-03-23 07:45:40 +00:00
nm ELF preparation step 1: 1998-05-25 17:34:42 +00:00
nohup Use err(3). 1997-07-31 06:54:45 +00:00
objformat Convert to more canonical format.. It seems that both Soren and I were 1998-05-27 15:43:24 +00:00
opieinfo Revert $FreeBSD$ to $Id$ 1997-02-22 19:58:13 +00:00
opiekey Revert $FreeBSD$ to $Id$ 1997-02-22 19:58:13 +00:00
opiepasswd Revert $FreeBSD$ to $Id$ 1997-02-22 19:58:13 +00:00
pagesize Revert $FreeBSD$ to $Id$ 1997-02-22 19:58:13 +00:00
passwd Use the correct name of the login.conf(5) capability (`passwordperiod' -> 1998-05-19 03:48:07 +00:00
paste Add #include <stdlib.h> to get prototype for malloc(). Without this, 1998-02-20 04:21:46 +00:00
pr Cosmetic and typos. 1997-08-04 06:39:19 +00:00
printenv environmental -> environment. 1997-08-04 06:40:41 +00:00
printf Back out revision 1.10. It broke the build of sh, which compiles 1997-11-18 15:23:23 +00:00
quota Converted to Lite2 mount interface - decide filesystem types by name 1998-01-20 12:53:43 +00:00
ranlib ELF preparation step 1: 1998-05-25 17:34:42 +00:00
rdist Simplified by using new yacc rules and by not generating y.tab.h. 1998-05-04 19:25:41 +00:00
renice Use err(3). Add usage() and prototypes. 1997-08-05 06:42:48 +00:00
rev Document that multiple args are allowed, i.e Ar file -> Ar file ... 1997-08-05 06:44:28 +00:00
rlogin Rats. I was too fast here. Re-enable SUID mode for the non-Kerberos 1998-03-26 19:43:06 +00:00
rpcgen Fix a #ifndef that became a #ifdef and changed the default 1998-03-07 05:43:59 +00:00
rpcinfo Use err(3), cosmetic in usage(). 1997-08-06 06:49:06 +00:00
rs Add #include <string.h> to get prototypes. 1998-02-20 04:48:37 +00:00
rsh Add const to rcsid. 1998-03-23 07:46:23 +00:00
rup PR: bin/6193 1998-04-01 21:34:10 +00:00
ruptime Small formatting change to interval() to align columns so that: 1997-03-31 09:36:59 +00:00
rusers Proper casting for clnt_broadcast() args. 1997-09-15 09:47:16 +00:00
rwall Use err(3). Add usage(). 1997-08-08 12:18:16 +00:00
rwho Be picky about the format of the commandline and cleanup 1998-05-03 23:22:37 +00:00
sasc .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 07:48:45 +00:00
script Rewrite script as a select loop rather than as a twin reader/write process. 1998-03-08 14:19:18 +00:00
sed Make 'y' command 8bit clean 1998-04-29 21:58:36 +00:00
shar more sanity check before making output. 1997-08-29 00:44:34 +00:00
showmount Added an replacement for callrpc that uses tcp as primary transport method. 1997-09-04 21:21:56 +00:00
size ELF preparation step 1: 1998-05-25 17:34:42 +00:00
soelim Use err(3). Add prototype. 1997-08-11 07:29:17 +00:00
split Cosmetic in err() string. 1997-08-11 07:30:22 +00:00
strings ELF preparation step 1: 1998-05-25 17:34:42 +00:00
strip ELF preparation step 1: 1998-05-25 17:34:42 +00:00
su PR: 1904 1998-05-26 06:39:08 +00:00
symorder Use err(3) instead of local redefinition. Add prototypes. 1997-08-12 06:46:56 +00:00
systat Correctly display the interrupt counts. 1998-05-27 21:01:37 +00:00
tail Add a new -F flag which is a superset of -f. It will cause tail to 1998-04-06 16:13:49 +00:00
talk Add #include <string.h> to get prototype for memcpy(). 1998-02-15 04:15:47 +00:00
tclsh use -I${DESTDIR}/usr/include/tcl, not -I/usr/include/tcl 1997-08-18 11:39:19 +00:00
tconv change `ingored'' to `ignored'' in two places. I noticed this typo 1997-12-08 21:36:25 +00:00
tcopy Use err(3). Correct usage string. Change default tape to /dev/rst0. 1997-08-14 06:41:00 +00:00
tee Use err(3) instead of local redefinition. Add usage(). 1997-08-14 06:42:43 +00:00
telnet Remove unneeded crud. 1998-03-26 17:55:27 +00:00
tftp Add #include <string.h> to get prototypes. 1998-02-20 04:33:03 +00:00
time Add usage() and use err(3). 1997-08-14 06:48:59 +00:00
tip Remove special global tags support; we don't do it that way anymore. 1998-03-26 16:12:14 +00:00
tn3270 Add usage. Use /usr/share/misc/map3270 instead of /etc/map3270. 1997-08-18 07:21:48 +00:00
top Some cleanups related to timecounters and weird ifdefs in <sys/time.h>. 1998-05-28 09:30:28 +00:00
touch Cosmetic. 1997-08-18 07:22:53 +00:00
tput Finish importing Lite2's src/usr.bin, except for ex, diff, grep, mail, 1997-07-06 06:54:14 +00:00
tr Submitted by: Joachim Kuebart, thanks. 1997-10-12 09:52:49 +00:00
true Nm true -> Nm. 1997-08-18 07:25:50 +00:00
truss Add a sysmk -> /dev/null definition ready for a coming change to 1998-01-25 09:09:48 +00:00
tset Many places in the code NULL is used in integer context, where 1997-09-18 14:08:40 +00:00
tsort Nm tsort -> Nm. 1997-08-18 07:28:50 +00:00
tty Add usage(). 1997-08-18 07:30:15 +00:00
ul Main() returns int. 1997-08-26 11:08:24 +00:00
uname Add a -p option which is the same as the -m option but provided 1998-02-24 16:57:49 +00:00
unexpand Add #include <string.h> to get prototypes. 1998-02-20 04:33:03 +00:00
unifdef Main() returns int. 1997-08-26 11:08:24 +00:00
uniq Localize it 1998-03-08 20:56:43 +00:00
units .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 07:48:45 +00:00
unvis Main() returns int. 1997-08-26 11:08:24 +00:00
users Main() returns int. 1997-08-26 11:08:24 +00:00
uudecode Allow spaces in the filename to be decoded to. 1998-05-25 06:27:09 +00:00
uuencode Add two new options: 1998-01-25 19:26:05 +00:00
vacation Add const to copyright string. Hide sccsid string. 1997-11-03 07:51:05 +00:00
vgrind Change the name of a variable from _start to s_start. On alpha there 1998-05-15 09:26:28 +00:00
vi Polish message catalogs for vi. 1997-09-22 23:14:37 +00:00
vis Use err(3). Add usage() and prototypes. 1997-08-25 06:37:37 +00:00
vmstat Support a couple of new "-s" stats. 1998-03-07 23:40:23 +00:00
w Cosmetic fix. Compute header field widths from UT_{HOST,LINE,NAME}SIZE 1998-05-21 08:46:48 +00:00
wall Add rcsid. Sort #includes. 1998-03-23 07:47:31 +00:00
wc Sync usage string according to man page. Silent -Wall. 1997-08-25 06:44:59 +00:00
what Make compatible with standard what command: 1998-05-04 22:26:56 +00:00
whereis Add cross references for find(1), locate(1), whereis(1) and which(1). 1998-05-15 11:22:42 +00:00
which Sort SEE ALSO section alphabetically. 1998-05-22 11:09:01 +00:00
who Back out Steve's fix, as this was already fixed by me in revision 1.6 1998-05-25 12:04:47 +00:00
whois Make it more convenient to query NICs other than InterNIC. Explain in the 1998-02-19 19:07:50 +00:00
window Define '\t' as a printable character, so it can be displayed on the 1998-04-20 13:37:29 +00:00
write Allow backspace too 1997-09-15 00:42:04 +00:00
xargs Submitted by: Peter Hawkins <peter@clari.net.au> 1997-12-13 06:34:47 +00:00
xinstall Converted to Lite2 mount interface - don't use numeric filesystem 1998-01-20 13:52:32 +00:00
xlint Put y.tab.h back in SRCS. This used to be the best way to get 1998-05-05 13:00:26 +00:00
xstr Use err(3). Add usage and prototypes. Use getopt(). Document -v flag. 1997-08-28 06:28:08 +00:00
yacc Add #include <string.h> to get prototypes. 1998-02-20 04:33:03 +00:00
yes
ypcat .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 07:48:45 +00:00
ypmatch .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 07:48:45 +00:00
ypwhich .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 07:48:45 +00:00
Makefile ELF preparation step 1: 1998-05-25 17:34:42 +00:00
Makefile.inc