<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/src/dd.c, branch v8.22</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://git.shady.money/coreutils/atom?h=v8.22</id>
<link rel='self' href='https://git.shady.money/coreutils/atom?h=v8.22'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/'/>
<updated>2013-07-19T10:23:12Z</updated>
<entry>
<title>dd: make status=none suppress all diagnostics</title>
<updated>2013-07-19T10:23:12Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2013-07-18T17:39:55Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=e6fc265b755eef0eae425caec3f93b8e28dbdddb'/>
<id>urn:sha1:e6fc265b755eef0eae425caec3f93b8e28dbdddb</id>
<content type='text'>
* src/dd.c (STATUS_NONE): Simplify the enum so that
it's more general than just suppressing transfer counts.
Then test this in all locations where non fatal diagnostics
are output.
* tests/dd/misc.sh: Ensure the diagnostic about
being unable to skip past the end of input is suppressed.
* NEWS: Mention the change in behavior.
Fixes http://bugs.gnu.org/14897
</content>
</entry>
<entry>
<title>dd: avoid buffer allocations unless needed</title>
<updated>2013-04-14T00:00:45Z</updated>
<author>
<name>Ondrej Oprala</name>
<email>ooprala@redhat.com</email>
</author>
<published>2013-01-22T13:21:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=8901e010fa24ba375d53e3e37fc7819621adcf19'/>
<id>urn:sha1:8901e010fa24ba375d53e3e37fc7819621adcf19</id>
<content type='text'>
* src/dd.c: Add new static global variable ibuf.
(alloc_ibuf, alloc_obuf): New functions factored from dd_copy().
(dd_copy): Call the new functions to allocate memory for
ibuf and obuf when necessary.
(skip): Likewise.
* tests/dd/no-allocate.sh: New test.
* tests/local.mk: Reference the test.
</content>
</entry>
<entry>
<title>maint: improve error messages upon failed read, write, access, close</title>
<updated>2013-02-06T15:57:34Z</updated>
<author>
<name>Benno Schulenberg</name>
<email>bensberg@justemail.net</email>
</author>
<published>2013-01-04T21:45:34Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=a1ee5cd714c0825b0244d09bbaa0a61c883ac18f'/>
<id>urn:sha1:a1ee5cd714c0825b0244d09bbaa0a61c883ac18f</id>
<content type='text'>
Note we use "failed to {access,close}" for those single operations,
and "error {read,writ}ing" for those partial operation failures.

* src/copy.c: Improve error messages for failing read, write and close.
* src/cp.c: Improve error messages for failing access.
* src/dd.c: Improve error messages for failing read, write and open.
* src/head.c: Improve error message for failing close.
* src/install.c: Improve error messages for failing access.
* src/ln.c: Likewise.
* src/mv.c: Likewise.
* src/touch.c: Improve error message for failing close.
* src/truncate.c: Likewise.
</content>
</entry>
<entry>
<title>maint: update all copyright year number ranges</title>
<updated>2013-01-01T03:51:20Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2013-01-01T02:54:51Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=77da73c75432f3c5b4beebae7b0797a1e33160bc'/>
<id>urn:sha1:77da73c75432f3c5b4beebae7b0797a1e33160bc</id>
<content type='text'>
Run "make update-copyright", but then also run this,
  perl -pi -e 's/2\d\d\d-//' tests/sample-test
to make that one script use the single most recent year number.
</content>
</entry>
<entry>
<title>dd: fix a printf format mismatch in an error message</title>
<updated>2012-12-21T15:57:04Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2012-12-19T23:58:10Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=8220a17c93c8546b409587f0f6215337b498722d'/>
<id>urn:sha1:8220a17c93c8546b409587f0f6215337b498722d</id>
<content type='text'>
* src/dd.c (dd_copy): To print an off_t portably we need
to use PRIdMAX and cast to intmax_t, otherwise there
could be a mismatch between say a 32 bit off_t
and uintmax_t.  This was flagged by -Wformat on
a 64 bit host when compiling with CFLAGS=-m32.
</content>
</entry>
<entry>
<title>dd: new option, status=none to suppress output statistics</title>
<updated>2012-09-24T14:14:23Z</updated>
<author>
<name>Pozsár Balázs</name>
<email>pozsy@uhulinux.hu</email>
</author>
<published>2012-09-24T01:39:09Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=7331ab55fc28ac03c18cd683b7748a07dbd63f0f'/>
<id>urn:sha1:7331ab55fc28ac03c18cd683b7748a07dbd63f0f</id>
<content type='text'>
* src/dd.c (STATUS_NONE): A new bitmask combining all STATUS_
options, thus used to suppress all informational output.
(struct symbol_value statuses): Expose the "none" option,
corresponding to the STATUS_NONE bitmask above.
(print_stats): Return early if STATUS_NONE is specified.
Also move the call to gethrxtime() down so that it's only
called when needed.
(usage): Describe the new options.
* doc/coreutils.texi (dd invocation): Likewise.
* NEWS: Mention the new feature.
* tests/dd/misc.sh: Ensure the new option works.
</content>
</entry>
<entry>
<title>dd: remove references to the word BLOCKS from help and texi docs</title>
<updated>2012-09-18T15:14:05Z</updated>
<author>
<name>Benno Schulenberg</name>
<email>bensberg@justemail.net</email>
</author>
<published>2012-09-18T12:58:42Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=627412847ef8972e84d4ed957fe1bed4f018bd2c'/>
<id>urn:sha1:627412847ef8972e84d4ed957fe1bed4f018bd2c</id>
<content type='text'>
The renaming from BLOCKS to N was done in v8.15-38-g140eca1,
and documentation for N was added again in v8.17-26-g4f2e9d5
without noticing that.  Now, finally remove the word BLOCKS
from the documentation.

* src/dd.c (usage): Remove the word BLOCKS.
* doc/coreutils.texi (dd invocation): Likewise.

Improved by: Bernhard Voelker &lt;mail@bernhard-voelker.de&gt;
</content>
</entry>
<entry>
<title>doc: document multiplier for dd number options like count=N</title>
<updated>2012-06-22T11:16:04Z</updated>
<author>
<name>Bernhard Voelker</name>
<email>mail@bernhard-voelker.de</email>
</author>
<published>2012-06-21T11:23:35Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=4f2e9d503821c3eadc7344a7e85400779822bf0d'/>
<id>urn:sha1:4f2e9d503821c3eadc7344a7e85400779822bf0d</id>
<content type='text'>
* src/dd.c (usage): Add "N" to the description of multipliers.
* doc/coreutils.texi (dd invocation): Likewise.
</content>
</entry>
<entry>
<title>maint: refactor common mode bits used to create files</title>
<updated>2012-06-22T10:17:38Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2012-06-22T10:17:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=30a604e631291b80b9812e03e0f325489ae0d77e'/>
<id>urn:sha1:30a604e631291b80b9812e03e0f325489ae0d77e</id>
<content type='text'>
* src/system.h (MODE_RW_UGO): The new refactored define (666).
* src/mkfifo.c: Use the new define.
* src/mknod.c: Likewise.
* src/split.c: Likewise.
* src/system.h: Likewise.
* src/touch.c: Likewise.
* src/truncate.c: Likewise.

Suggested-by: Jim Meyering
</content>
</entry>
<entry>
<title>maint: handle file sizes more reliably</title>
<updated>2012-05-10T09:02:42Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2012-05-10T06:53:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=9d308df13271a852aee7d46c65432fa84145ea31'/>
<id>urn:sha1:9d308df13271a852aee7d46c65432fa84145ea31</id>
<content type='text'>
Problem reported by Samuel Thibault in &lt;http://bugs.gnu.org/11424&gt;.
* NEWS: Document this.
* src/dd.c (skip): Handle skipping past EOF on shared or typed
memory objects the same way as with regular files.
(dd_copy): It's OK to truncate shared memory objects.
* src/du.c (duinfo_add): Check for overflow.
(print_only_size): Report overflow.
(process_file): Ignore negative file sizes in the --apparent-size case.
* src/od.c (skip): Fix comment about st_size.
* src/split.c (main):
* src/truncate.c (do_ftruncate, main):
On files where st_size is not portable, fall back on using lseek
with SEEK_END to determine the size.  Although strictly speaking
POSIX says the behavior is implementation-defined, in practice
if lseek returns a nonnegative value it's a reasonable one to
use for the file size.
* src/system.h (usable_st_size): Symlinks have reliable st_size too.
* tests/misc/truncate-dir-fail: Don't assume that getting the size
of a dir is not allowed, as it's now allowed on many platforms,
e.g., GNU/Linux.
</content>
</entry>
</feed>
