The NetBSD Project

CVS log for src/bin/dd/args.c

[BACK] Up to [cvs.NetBSD.org] / src / bin / dd

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: netbsd-7-1-RELEASE


Revision 1.38.6.1 / (download) - annotate - [select for diffs], Thu Mar 26 11:08:43 2015 UTC (9 years ago) by martin
Branch: netbsd-7
CVS Tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0
Changes since 1.38: +116 -2 lines
Diff to previous 1.38 (colored) next main 1.39 (colored)

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.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>