NetBSD/bin
jym 234ccf064a Add a new command to dd(1): msgfmt. The command modifies the
output of the information summary returned by dd(1). This can be used
to specify messages in a more usable (or parseable) format like
human-readable values.

My intent is to re-use this for building image files and quick I/O
benchmarking.

Reviewed by tsutsui@ on tech-userlevel. See also
http://mail-index.netbsd.org/tech-userlevel/2010/12/03/msg004179.html

Some examples:

 $ dd if=/dev/zero of=/dev/null bs=1m count=1 msgfmt=human
1+0 records in
1+0 records out
1048576 bytes (1,0 MB) transferred in 0.001 secs (1048576000 bytes/sec - 1,0 GB/sec)

 $ dd if=/dev/zero of=/dev/null count=1 msgfmt='
 > <speed>%E</speed>
 > <time>%s</time>
 > <bytes>%b</bytes>
 > '
<speed>500 KB/sec</speed>
<time>0.001</time>
<bytes>512</bytes>
2011-11-06 21:22:23 +00:00
..
cat
chio Use __dead 2011-08-29 14:51:17 +00:00
chmod Use __dead 2011-08-29 14:51:17 +00:00
cp Remove warning about system extended attributes that cannot be copied, since 2011-08-18 08:11:58 +00:00
csh csh has no business using TTYHOG 2011-09-24 14:44:11 +00:00
date Annotate dead functions 2011-08-27 12:55:09 +00:00
dd Add a new command to dd(1): msgfmt. The command modifies the 2011-11-06 21:22:23 +00:00
df Use the same column spacing for the -h output as with the normal output, 2011-08-29 17:30:28 +00:00
domainname Use __dead 2011-08-29 14:51:17 +00:00
echo
ed Use __dead 2011-08-29 14:51:17 +00:00
expr Mark yyerror as dead. 2011-08-25 01:11:47 +00:00
hostname Use __dead 2011-08-29 14:51:17 +00:00
kill Use __dead 2011-08-29 14:51:17 +00:00
ksh Fix typo. 2011-10-18 12:36:31 +00:00
ln note what "other ln implementations" is. 2011-10-24 16:15:46 +00:00
ls Move usage and mark it static+dead 2011-08-29 14:44:21 +00:00
mkdir static + __dead 2011-08-29 14:45:28 +00:00
mt static + __dead 2011-08-29 14:45:28 +00:00
mv static + __dead 2011-08-29 14:45:28 +00:00
pax Accept -X - 2011-11-03 21:59:45 +00:00
ps Use __dead 2011-08-29 14:51:17 +00:00
pwd Use __dead 2011-08-29 14:51:17 +00:00
rcmd Sort options in SYNOPSIS, sort option descriptions, remove some extra 2011-05-31 11:31:10 +00:00
rcp Fix up seriously borked mallocing of a static buffer, which seems to 2009-08-31 07:11:16 +00:00
rm static + __dead 2011-08-29 14:47:47 +00:00
rmdir static + __dead 2011-08-29 14:47:47 +00:00
sh print the flag too next to the units like bash does. 2011-10-11 15:27:11 +00:00
sleep Use __dead 2011-08-29 14:51:17 +00:00
stty Use __dead 2011-08-29 14:51:17 +00:00
sync
test Use __dead 2011-08-29 14:51:17 +00:00
Makefile
Makefile.inc Default to WARNS=4 (except for rcp & ksh) 2009-02-14 08:31:13 +00:00