NetBSD/usr.bin
riastradh 6290b0987e Rework rndsink(9) abstraction and adapt arc4random(9) and cprng(9).
rndsink(9):
- Simplify API.
- Simplify locking scheme.
- Add a man page.
- Avoid races in destruction.
- Avoid races in requesting entropy now and scheduling entropy later.

Periodic distribution of entropy to sinks reduces the need for the
last one, but this way we don't need to rely on periodic distribution
(e.g., in a future tickless NetBSD).

rndsinks_lock should probably eventually merge with the rndpool lock,
but we'll put that off for now.

cprng(9):
- Make struct cprng_strong opaque.
- Move rndpseudo.c parts that futz with cprng guts to subr_cprng.c.
- Fix kevent locking.  (Is kevent locking documented anywhere?)
- Stub out rump cprng further until we can rumpify rndsink instead.
- Strip code to grovel through struct cprng_strong in fstat.
2013-06-23 02:35:23 +00:00
..
apply
apropos
asa
at Use __dead 2011-08-29 14:24:03 +00:00
audio PR/45384: Henning Petersen: Swapped arguments in lseek 2011-09-21 14:32:14 +00:00
audiocfg
awk remove most of the remaining HAVE_GCC tests that are always true in 2011-06-20 07:43:56 +00:00
banner Sync usage with man page. From Bug Hunting in PR 46102. 2012-02-29 08:55:25 +00:00
basename Use __dead 2011-08-29 14:24:03 +00:00
bdes
biff Add EXIT STATUS section. From Ryan Kavanagh via jmc@openbsd. 2013-04-28 12:43:51 +00:00
bthset Add __printflike attribution to use vprintf and friends with an argument 2012-03-15 02:02:20 +00:00
btkey Use __dead 2011-08-29 14:24:03 +00:00
btpin static + __dead 2011-08-29 13:47:16 +00:00
bzip2 Adapt to repository move of dist from external/bsd/bzip2 to 2012-05-07 08:51:47 +00:00
bzip2recover Adapt to repository move of dist from external/bsd/bzip2 to 2012-05-07 08:51:47 +00:00
cal static + __dead 2011-08-29 13:55:22 +00:00
calendar add release dates for 6.0.1 and 6.1 2013-05-22 01:29:59 +00:00
cap_mkdb PR/32591: JuanRP: Also remove the file we are going to be building to prevent 2013-03-26 20:58:35 +00:00
cdplay -make digital mode work in non-interactive mode (init sighandler 2012-01-04 17:26:21 +00:00
checknr
chflags - Sort option list; 2012-12-12 13:30:06 +00:00
chpass Add capfile(5) to describe the termcap format. 2012-04-21 12:27:24 +00:00
cksum Remove unknown \*(tN and \*(sP macros. 2013-03-28 22:54:25 +00:00
cleantags Move .Op macro to its own line. Fix SYNOPSIS rendering with mandoc. 2013-04-26 17:12:10 +00:00
cmp Remove unused header. From Henning Petersen in PR 45658. 2011-11-28 10:10:10 +00:00
col Fix whitespace nits. Suggested by Bug Hunting. 2012-03-22 07:58:16 +00:00
colcrt Change or add history. I checked the 1bsd archives and this first 2012-05-12 14:52:57 +00:00
colrm Change or add history. I checked the 1bsd archives and this first 2012-05-12 14:52:57 +00:00
column
comm Use getc instead of fgetc. 2012-09-05 04:01:23 +00:00
compress Use __printflike and __dead 2011-08-30 23:08:05 +00:00
config Don't support sysctl for the tools version of config. It is too complicated 2012-08-31 01:23:49 +00:00
crunch Document section stripping. 2013-06-10 19:40:53 +00:00
csplit static + __dead 2011-08-31 13:35:46 +00:00
ctags Remove many HAVE_GCC || HAVE_PCC conditionals as the options also apply 2012-08-10 12:10:27 +00:00
cut - remove trailing white space; 2012-06-20 17:53:39 +00:00
db Fix typo. Bump date for previous. 2012-02-17 11:43:24 +00:00
deroff Use __dead. Be a bit more consistent about static.__dead. Be a bit more 2011-08-31 13:38:19 +00:00
dirname Use __dead 2011-09-16 15:39:25 +00:00
du Add EXIT STATUS section and bump date. 2012-05-14 21:14:14 +00:00
eject racd *should* be ejectable. Kernel side to come 2012-07-14 20:41:27 +00:00
elf2aout Remove dead xrefs to obsolete kvm_mkdb(8). 2012-03-05 10:57:18 +00:00
elf2ecoff Remove dead xrefs to obsolete kvm_mkdb(8). 2012-03-05 10:57:18 +00:00
env minor KNF nits. 2010-11-16 02:53:49 +00:00
error Don't use non-literal format strings. Split it up depending on the 2012-02-29 23:37:07 +00:00
expand Change or add history. I checked the 1bsd archives and this first 2012-05-12 14:52:57 +00:00
extattr Fix off-by-one in hexdump display (getextattr -x), which displayed a 2012-06-17 08:09:29 +00:00
false
fdformat Remove unnecessary Bk/Ek pairs from SYNOPSIS. 2012-04-08 22:00:37 +00:00
fgen static + __dead 2011-09-01 13:37:33 +00:00
fincore SEE ALSO and CAVEATS 2012-01-04 16:18:11 +00:00
find find(1): Compare timestamp in nsec scale in -anewer/-cnewer/-newer. 2013-05-04 06:29:32 +00:00
finger - Don't dump core or print random junk on corrupt utmp entries. 2013-01-18 22:10:31 +00:00
flock Don't crash if "flock" is used to lock a file descriptor e.g. via 2013-02-07 13:57:40 +00:00
fmt add -w as an alias to -m 2012-06-30 21:31:15 +00:00
fold Remove trailing whitespace. 2012-05-12 15:17:15 +00:00
fpr Fix whitespace nits. Suggested by Bug Hunting. 2012-03-22 07:58:16 +00:00
from
fsplit Assert equality, not assignment, in fsplit, and say who guarantees it. 2013-01-23 20:39:46 +00:00
fstat Rework rndsink(9) abstraction and adapt arc4random(9) and cprng(9). 2013-06-23 02:35:23 +00:00
ftp Version 20130220: restart fix, SYST response parsing improvement 2013-05-05 10:40:19 +00:00
gcore Fix whitespace nits. Suggested by Bug Hunting. 2012-03-22 07:58:16 +00:00
genassym Use __builtin_offsetof if __GNUC__ >= 4 2011-07-05 05:19:02 +00:00
gencat Improve the handling of quoted messages. 2012-03-09 18:54:28 +00:00
getconf Xref limits(3). 2011-08-09 18:11:37 +00:00
getent Add __printflike attribution to use vprintf and friends with an argument 2012-03-15 02:02:20 +00:00
getopt
gprof
grep Fix memory leak in file_matching(). 2013-01-21 03:24:43 +00:00
gzip add copyright 2011-09-30 01:32:21 +00:00
head
hesinfo Use C89 function definitions 2012-03-20 20:34:57 +00:00
hexdump "dcl" is not "dc1". 2013-02-09 02:49:36 +00:00
iconv conform -> conforms - this is the file that was supposed to be changed. 2013-05-12 12:25:12 +00:00
id Use __dead 2011-09-16 15:39:25 +00:00
indent Remove a few unneeded Pp macros. 2012-10-13 14:18:16 +00:00
infocmp Fix spelling, mark up NULL. Closes PR 44381 by Ryo HAYASAKA. 2011-01-14 14:21:36 +00:00
innetgr Use C89 function definitions 2012-03-20 20:34:57 +00:00
ipcrm
ipcs Remove unnecessary Bk/Ek pairs from SYNOPSIS. 2012-04-08 22:00:37 +00:00
join Remove unnecessary Bk/Ek pairs from SYNOPSIS. 2012-04-08 22:00:37 +00:00
jot Remove unnecessary Bk/Ek pairs from SYNOPSIS. 2012-04-08 22:00:37 +00:00
kdump * Don't re-generate kdump-ioctl.c during install. 2013-04-06 13:48:12 +00:00
klist
ktrace use O_CLOEXEC. 2013-01-24 17:47:58 +00:00
ktruss mremap(2) return an pointer just like mmap(2). 2012-07-17 14:39:08 +00:00
lam Adjust case of example to match usage (and code) 2012-12-13 21:09:34 +00:00
last Change or add history. I checked the 1bsd archives and this first 2012-05-12 14:52:57 +00:00
lastcomm Sync usage with man page. 2012-01-31 21:53:42 +00:00
ldd include symver.c 2013-05-07 13:00:35 +00:00
leave Now that window(1) is gone, use tmux(1) for xref. 2012-02-21 15:01:51 +00:00
locale Remove code for CITRUS!=yes. 2012-01-20 16:31:29 +00:00
locate ANSIfy + static + __dead 2011-09-04 20:28:09 +00:00
lock Use C89 function definitions 2012-03-20 20:34:57 +00:00
logger Small typo in macro. 2012-05-13 17:08:31 +00:00
login - use __dead consistently. 2012-05-19 00:02:44 +00:00
logname ANSIfy + static + __dead 2011-09-04 20:29:12 +00:00
look Don't use while-loop with empty body. 2012-02-23 22:57:53 +00:00
lorder Fix whitespace nits. Suggested by Bug Hunting. 2012-03-22 07:58:16 +00:00
m4 Fix wrong loop index leading to infinite loop 2012-04-25 18:23:58 +00:00
machine
mail Document more environment settings. 2013-03-09 19:43:20 +00:00
make Use a #define for the variable name we put in environment to pass .MAKE.LEVEL 2013-06-18 20:06:09 +00:00
man document _machine 2012-04-29 03:46:43 +00:00
menuc Add capfile(5) to describe the termcap format. 2012-04-21 12:27:24 +00:00
mesg
midiplay - accept "midi0" as an alias for "0" to the -d flag 2011-11-25 01:39:47 +00:00
mixerctl Fix indent and style. no functional changes. 2012-10-28 02:01:15 +00:00
mkcsmapper Use __dead 2011-09-16 15:39:25 +00:00
mkdep Conditionally include the depend files. 2013-03-05 21:57:47 +00:00
mkesdb Use __dead 2011-09-16 15:39:25 +00:00
mkfifo ANSIfy + static + __dead 2011-09-04 20:29:12 +00:00
mklocale
mkstr Change or add history. I checked the 1bsd archives and this first 2012-05-12 14:52:57 +00:00
mktemp Reorganise, consolidate duplicated information, clarify wording, 2012-11-04 10:10:03 +00:00
mkubootimage add missing prototype for crc32v 2012-12-29 16:18:08 +00:00
moduli static + __dead 2011-09-04 20:55:43 +00:00
msgc Remove the advertising clause with the explicit ok from Perry E. Metzger. 2012-03-06 16:26:01 +00:00
msgs Fix whitespace nits. Suggested by Bug Hunting. 2012-03-22 07:58:16 +00:00
nbperf Retire OSI network stack. OK core@ 2013-03-01 18:25:13 +00:00
nbsvtool New sentence, new line. 2011-04-28 17:14:45 +00:00
netgroup Use C89 function definitions 2012-03-20 20:34:57 +00:00
netstat Not all pointers are 64bit - use uintptr_t instead of uint64_t. 2013-06-20 10:43:18 +00:00
newgrp fix type or rval. 2013-01-24 17:46:30 +00:00
newsyslog PR/46608: Jim Bernard: Add xz conversion "X" 2012-06-17 03:52:32 +00:00
nfsstat ANSIfy, static + __dead. 2011-09-06 18:19:58 +00:00
nice Fix whitespace nits. Suggested by Bug Hunting. 2012-03-22 07:58:16 +00:00
nl PR/47789: Eitan Adler: small nits 2013-05-01 20:53:59 +00:00
nohup Punctuation. 2012-03-29 18:33:19 +00:00
nvi Use WARNS=4 2012-03-21 05:44:39 +00:00
pagesize
passwd Keep the built-in support for passwd -k, but don't make the kpasswd link or 2013-02-13 23:19:14 +00:00
paste Remove second NetBSD RCS Id. 2013-04-07 17:43:01 +00:00
patch Add comma after i.e. 2013-01-29 09:30:11 +00:00
pathchk Use __dead 2011-09-16 15:39:25 +00:00
pkill Formatting fix. 2013-06-03 21:59:41 +00:00
pmap fix format string 2012-10-29 16:25:25 +00:00
pmc
pr - Fix optional argument options (e, i, n, s) in SYNOPSIS and DESCRIPTION 2012-08-01 02:36:17 +00:00
printenv static + __dead 2011-09-06 18:26:55 +00:00
printf document non-literal format strings 2011-08-16 10:35:03 +00:00
progress Clean up #includes in progress(1). 2012-06-27 22:07:36 +00:00
pwhash Use __dead 2011-09-16 15:39:25 +00:00
qsubst
quota Bump date for previous. 2012-05-12 21:42:38 +00:00
radioctl static + __dead 2011-09-06 18:26:55 +00:00
rdist Fix whitespace nits. Suggested by Bug Hunting. 2012-03-22 07:58:16 +00:00
renice emove duplicate RCS Id. Bump date for previous. 2012-12-06 07:52:12 +00:00
rev Use __dead 2011-09-16 15:39:25 +00:00
revoke
rfcomm_sppd - use poll() instead of select() 2011-07-18 21:51:06 +00:00
rlogin Sync usage with man page. 2013-03-02 18:37:19 +00:00
rpcgen If /usr/bin/cpp is not executable and RPCGEN_CPP was not set, try 2013-06-05 13:54:26 +00:00
rpcinfo 0 == local 2013-05-24 23:09:45 +00:00
rs ANSIfy, static + __dead 2011-09-06 18:28:58 +00:00
rsh static + __dead 2011-08-29 14:22:46 +00:00
rump_allserver Use __dead 2011-09-16 15:39:25 +00:00
rump_dhcpclient Don't use const foo const as type, one const is enough. 2012-09-13 21:44:49 +00:00
rump_halt Use __dead 2011-09-16 15:39:25 +00:00
rump_server Allow to specify -d hostpath offset,size with disklabel. 2011-02-04 20:06:23 +00:00
rup Apply casts to cases where xdrproc_t is expected but is not 2011-08-30 17:06:20 +00:00
ruptime ANSIfy, static + __dead 2011-09-06 18:28:58 +00:00
rusers Fix whitespace nits. Suggested by Bug Hunting. 2012-03-22 07:58:16 +00:00
rwall
rwho
script static + __dead 2011-09-06 18:29:35 +00:00
sdiff reinstate NULL cast by request, where the NULL was being passed as a vararg 2011-09-01 07:18:50 +00:00
sdpquery Use __dead 2011-09-16 15:39:25 +00:00
sed - Reference tr(1) in `SEE ALSO' section; 2013-05-29 15:05:43 +00:00
seq * Punctuation 2013-04-07 17:37:45 +00:00
shar Fix whitespace nits. Suggested by Bug Hunting. 2012-03-22 07:58:16 +00:00
shlock cross reference flock(1) 2012-11-02 16:47:42 +00:00
shmif_dumpbus Use __dead 2011-09-16 15:39:25 +00:00
showmount Use static and __dead. 2011-09-06 18:30:56 +00:00
shuffle Use __dead 2011-09-16 15:39:25 +00:00
skey Use __dead 2011-09-16 15:39:25 +00:00
skeyinfo
skeyinit Fix capitalisation (again, last time the wrong sentence). 2013-05-06 13:44:17 +00:00
sockstat Document that localsocket may be of type SOCK_SEQPACKET 2011-05-29 04:54:45 +00:00
soelim Change or add history. I checked the 1bsd archives and this first 2012-05-12 14:52:57 +00:00
sort - Remove redundant argument to non-first `.Nm' macro; 2013-05-29 15:00:35 +00:00
spell Add capfile(5) to describe the termcap format. 2012-04-21 12:27:24 +00:00
split Use __dead 2011-09-16 15:39:25 +00:00
stat Unset HAVE_DEVNAME for tools build. 2013-01-03 13:28:41 +00:00
su - don't re-use the va list twice, leads to coredumps. 2013-06-20 20:54:02 +00:00
systat bufmem is unsigned. 2012-11-23 15:35:57 +00:00
tabs Sort sections. Remove superfluous Ns macro. 2012-04-22 10:22:08 +00:00
tail Add comma after i.e. 2013-01-31 23:09:06 +00:00
talk - use warn/err 2012-12-29 23:44:22 +00:00
tcopy ANSIfy + static + __dead 2011-09-06 18:32:26 +00:00
tee use more appropriate types 2013-03-06 11:44:11 +00:00
telnet Remove many HAVE_GCC || HAVE_PCC conditionals as the options also apply 2012-08-10 12:10:27 +00:00
tftp Work around "variable might be clobbered by longjmp" gcc warning when compiling with CPUFLAGS=-march=armv7. Should be fixed properly one day... 2013-03-29 18:53:21 +00:00
tic Revert, there is a more fundamental issue with util.h. 2012-12-08 23:29:28 +00:00
time Sort sections, use Aq, add comma in enumeration. 2011-11-09 19:42:27 +00:00
tip PR/47877: Michael van Elst: Disable and enable software flow control properly 2013-06-02 13:18:12 +00:00
touch Note that -d, -r, and -t are mutually exclusive and only the last one 2012-10-24 02:46:25 +00:00
tpfmt make the result stable. 2012-02-03 05:06:08 +00:00
tput Use putp(3) to output our strings. 2013-02-05 11:31:56 +00:00
tr Expand "it's", and fix fix convention notation. 2013-05-29 15:08:30 +00:00
true
tset Change or add history. I checked the 1bsd archives and this first 2012-05-12 14:52:57 +00:00
tsort ANSIfy, static + __dead 2011-09-06 18:34:37 +00:00
tty ANSIfy + __dead 2011-09-06 18:34:57 +00:00
ul Add capfile(5) to describe the termcap format. 2012-04-21 12:27:24 +00:00
uname ANSIfy + __dead 2011-09-06 18:34:57 +00:00
unexpand
unifdef PR/47068: unifdef(1) with cpp directive on last line without newline 2012-10-13 18:26:03 +00:00
uniq - synchronize `usage' message with man page. 2012-08-26 14:14:16 +00:00
units Sort options in man page SYNOPSIS and sync usage with it. 2013-01-06 00:19:13 +00:00
unvis RFC 1866 does not define any "URI encoding". It defines HTML 2.0 that 2012-12-15 02:08:13 +00:00
unzip error_count is unsigned, so use %ju 2011-09-06 18:43:41 +00:00
usbhidaction use O_CLOEXEC 2013-01-24 17:46:00 +00:00
usbhidctl Use __dead 2011-09-16 15:39:25 +00:00
users Use C89 function definitions 2012-03-20 20:34:57 +00:00
utoppya Sprinkle const. Use __dead. 2011-09-05 18:11:53 +00:00
uudecode Support both "-" and "/dev/stdout" as references to standard 2013-01-28 19:50:30 +00:00
uuencode Document today's changes to uudecode: 2013-01-28 16:08:02 +00:00
uuidgen Use __dead 2011-09-16 15:39:25 +00:00
vacation PR/47689: rudolf: reference to sendmail(8) instead of (1) in vacation(1) 2013-03-24 21:00:22 +00:00
vgrind Add capfile(5) to describe the termcap format. 2012-04-21 12:27:24 +00:00
videoctl Use __dead 2011-09-16 15:39:25 +00:00
vis Add missing .El macro. 2013-03-14 19:17:23 +00:00
vmstat fix operation on core files: cur_drive.io_name is an embedded array 2012-11-13 14:09:58 +00:00
vndcompress Make partial read/write error messages more consistent in vndcompress. 2013-05-06 22:53:24 +00:00
w Remove stale proc_compare code and use the shared one in libutil. 2011-10-21 02:26:09 +00:00
wall static + __dead 2011-09-06 18:45:21 +00:00
wc Use __dead 2011-09-16 15:39:25 +00:00
what ANSIfy, static + __dead 2011-09-06 18:45:49 +00:00
whatis static + __dead 2011-09-06 18:46:03 +00:00
whereis
who
whois It helps to separate arguments from the query. 2013-02-20 09:27:52 +00:00
write static + __dead 2011-09-06 18:46:35 +00:00
xargs Remove a few unneeded Pp macros. 2012-10-13 14:18:16 +00:00
xinstall Remove unnecessary Bk/Ek pairs from SYNOPSIS. 2012-04-08 22:00:37 +00:00
xlint commit test 2013-05-10 15:41:44 +00:00
xstr Use __dead 2011-09-16 15:39:25 +00:00
yes
ypcat New sentence, new line. Wording. 2012-03-04 11:54:06 +00:00
ypmatch New sentence, new line. Wording. 2012-03-04 11:54:06 +00:00
ypwhich Apply casts to cases where xdrproc_t is expected but is not 2011-08-30 17:06:20 +00:00
Makefile put back soelim, if MKGROFF is no so that we don't break the sets. 2013-02-11 17:24:21 +00:00
Makefile.inc Default to WARNS=5 2012-03-21 05:47:53 +00:00