NetBSD/bin/dd
martin 88e41e77d5 Pull up following revision(s) (requested by manu in ticket #640):
bin/dd/extern.h: revision 1.23
	bin/dd/dd.1: revision 1.26
	bin/dd/dd.1: revision 1.27
	bin/dd/dd.h: revision 1.16
	bin/dd/dd.c: revision 1.50
	bin/dd/Makefile: revision 1.18
	bin/dd/args.c: revision 1.39
Add iflag and oflag operands to dd(1)

Like GNU dd(1) similar operands, iflag and oflag allow specifying the
O_* flags given to open(2) for the input and the output file. The values
are comma-sepratated, lower-case, O_ prefix-stripped constants documented
in open(2).

Since iflag and oflag override default values, specifying oflag means
O_CREATE is not set by default and must be specified explicitely.
Some values do not make sense (e.g.: iflag=directory) but are still used
and will raise a warning. For oflag, values rdonly, rdwr and wronly are
filtered out with a warning (dd(1) attempts open(2) with O_RDWR and
then O_WRONLY on failure).

Specifying oflag=trunc along with (seek, oseek or conv=notrunc) is
contradictory and will raise an error.

iflag and oflag are disabled if building with -DMALLPROG

New sentence, new line. Fix typos. Bump date for previous.
2015-03-26 11:08:43 +00:00
..
Makefile Pull up following revision(s) (requested by manu in ticket #640): 2015-03-26 11:08:43 +00:00
args.c Pull up following revision(s) (requested by manu in ticket #640): 2015-03-26 11:08:43 +00:00
conv.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 09:05:01 +00:00
conv_tab.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 09:05:01 +00:00
dd.1 Pull up following revision(s) (requested by manu in ticket #640): 2015-03-26 11:08:43 +00:00
dd.c Pull up following revision(s) (requested by manu in ticket #640): 2015-03-26 11:08:43 +00:00
dd.h Pull up following revision(s) (requested by manu in ticket #640): 2015-03-26 11:08:43 +00:00
dd_hostops.c Remove the rif/rof options and add rump.dd. This makes usage 2011-02-04 19:42:12 +00:00
dd_rumpops.c Remove the rif/rof options and add rump.dd. This makes usage 2011-02-04 19:42:12 +00:00
extern.h Pull up following revision(s) (requested by manu in ticket #640): 2015-03-26 11:08:43 +00:00
misc.c As suggested by Enami, rework the msgfmt logic a bit: 2011-11-07 22:24:23 +00:00
position.c Add two new operands: "rif" and "rof". They operate exactly like 2010-11-22 21:04:27 +00:00