Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: [netbsd-7] src/bin/dd
Module Name: src
Committed By: martin
Date: Thu Mar 26 11:08:43 UTC 2015
Modified Files:
src/bin/dd [netbsd-7]: Makefile args.c dd.1 dd.c dd.h extern.h
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.17.12.1 src/bin/dd/Makefile
cvs rdiff -u -r1.38 -r1.38.6.1 src/bin/dd/args.c
cvs rdiff -u -r1.25 -r1.25.12.1 src/bin/dd/dd.1
cvs rdiff -u -r1.49 -r1.49.12.1 src/bin/dd/dd.c
cvs rdiff -u -r1.15 -r1.15.24.1 src/bin/dd/dd.h
cvs rdiff -u -r1.22 -r1.22.20.1 src/bin/dd/extern.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index