From f674a10f7ebc55de6181007a5216a297e3dc3365 Mon Sep 17 00:00:00 2001 From: Kamil Dudka Date: Wed, 23 Jul 2008 11:29:21 +0200 Subject: dd: new option: iflag=fullblock to accumulate full input blocks * src/dd.c (iread_fullblock): New function for reading full blocks. (scanargs): Check for new parameter iflag=fullblock. (skip): Use iread_fnc pointer instead of iread function. (dd_copy): Use iread_fnc pointer instead of iread function. * tests/dd/misc: Add test for dd - read full blocks. * doc/coretuils.texi: Mention new parameter iflag=fullblock. * NEWS: Mentioned the change. --- doc/coreutils.texi | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'doc') diff --git a/doc/coreutils.texi b/doc/coreutils.texi index 81e3b911c..b95f8dc50 100644 --- a/doc/coreutils.texi +++ b/doc/coreutils.texi @@ -7719,6 +7719,12 @@ platforms that distinguish binary from text I/O. Use text I/O. Like @samp{binary}, this option has no effect on standard platforms. +@item fullblock +@opindex fullblock +Read full blocks from input if possible. read() may return early +if a full block is not available, so retry until data is available +or end of file is reached. This flag can be used only for the iflag option. + @end table These flags are not supported on all systems, and @samp{dd} rejects -- cgit v1.2.3-54-g00ecf