<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/src/dd.c, branch v7.6</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://git.shady.money/coreutils/atom?h=v7.6</id>
<link rel='self' href='https://git.shady.money/coreutils/atom?h=v7.6'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/'/>
<updated>2009-09-10T10:25:04Z</updated>
<entry>
<title>dd conv=unblock: print final newline consistently</title>
<updated>2009-09-10T10:25:04Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2009-09-09T14:48:02Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=0bbb9d7785957437182fc633b2d387cc51ee918e'/>
<id>urn:sha1:0bbb9d7785957437182fc633b2d387cc51ee918e</id>
<content type='text'>
* src/dd.c (dd_copy) [C_UNBLOCK]: Always print the final newline for
non-empty output, not just when output size is a multiple of cbs.
* doc/coreutils.texi (dd invocation) [conv=unblock]: Mention that dd
prints a newline after each output record, not just when replacing
trailing spaces.
Reported by Ulrich Drepper.
* tests/dd/unblock: New file.  Test for this.
* tests/Makefile.am (TESTS): Add it.
* NEWS (Bug fixes): Mention it.
</content>
</entry>
<entry>
<title>maint: dd: remove unnecessary initialization</title>
<updated>2009-09-01T10:10:07Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2009-08-31T15:05:46Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=e579a697b213109ac846696ba6a2de743e9d30f9'/>
<id>urn:sha1:e579a697b213109ac846696ba6a2de743e9d30f9</id>
<content type='text'>
* src/dd.c (skip): Remove set-but-never-used variable, soffset.
</content>
</entry>
<entry>
<title>dd: detect closed stderr</title>
<updated>2009-08-28T18:56:51Z</updated>
<author>
<name>Eric Blake</name>
<email>ebb9@byu.net</email>
</author>
<published>2009-08-28T16:59:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=31fa922e5765a24786061a4dfbd048869457cf84'/>
<id>urn:sha1:31fa922e5765a24786061a4dfbd048869457cf84</id>
<content type='text'>
* src/dd.c (maybe_close_stdout): Always flush stderr; regression
introduced in commit 381e69ea.
* tests/misc/close-stdout (p): Use consistent style.
* tests/dd/stderr: New test, borrowing from misc/close-stdout.
* tests/Makefile.am (TESTS): Run it.
* NEWS: Mention this.
</content>
</entry>
<entry>
<title>global: convert indentation-TABs to spaces</title>
<updated>2009-08-25T07:21:00Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2009-08-22T16:56:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=5e778f7c8d1ecf3d8f11385db013af2ba026e2a5'/>
<id>urn:sha1:5e778f7c8d1ecf3d8f11385db013af2ba026e2a5</id>
<content type='text'>
Transformed via this shell code:
t=$'\t'
git ls-files \
  | grep -vE '(^|/)((GNU)?[Mm]akefile|ChangeLog)|\.(am|mk)$' \
  | grep -vE 'tests/pr/|help2man' \
  | xargs grep -lE "^ *$t" \
  | xargs perl -MText::Tabs -ni -le \
    '$m=/^( *\t[ \t]*)(.*)/; print $m ? expand($1) . $2 : $_'
</content>
</entry>
<entry>
<title>dd: fix a signal handling race</title>
<updated>2009-08-13T15:06:50Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2009-08-13T13:37:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=e4caea57759495847dc52f7a7d062500dd711a96'/>
<id>urn:sha1:e4caea57759495847dc52f7a7d062500dd711a96</id>
<content type='text'>
* src/dd.c (main): Install the signal handlers at startup
rather than just before the copy starts. In this way signals
received before the copy (like during a slow truncate for e.g.)
will be deferred and handled consistently.
* THANKS: Add Bernhard's email address.
* NEWS: Mention the fix.
Reported by Bernhard Voelker.
</content>
</entry>
<entry>
<title>dd: preserve semantics of O_DIRECT even for final block</title>
<updated>2009-08-07T14:21:35Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2009-08-07T14:21:35Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=ff159a605e5bc10fe871109f66cba5ee410c9138'/>
<id>urn:sha1:ff159a605e5bc10fe871109f66cba5ee410c9138</id>
<content type='text'>
* src/dd.c: Include "ignore-value.h"
(iwrite): When disabling O_DIRECT, try to compensate
via POSIX_FADV_DONTNEED and fsync.
Suggested by Eric Sandeen.
</content>
</entry>
<entry>
<title>dd: work around buffer length restrictions with oflag=direct (O_DIRECT)</title>
<updated>2009-08-06T07:41:50Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2009-08-04T17:54:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=5929322ccb1f9d27c1b07b746d37419d17a7cbf6'/>
<id>urn:sha1:5929322ccb1f9d27c1b07b746d37419d17a7cbf6</id>
<content type='text'>
dd oflag=direct would fail to copy a file with size that is
not a multiple of 512 (destination file system specific)

* NEWS (Bug fixes): Mention it.
* src/dd.c (iwrite): Turn off O_DIRECT for any
smaller-than-obs-sized write.  Don't bother to restore it.
* tests/dd/direct: New test for the above.
* tests/Makefile.am (TESTS): Add dd/direct.
* doc/coreutils.texi (dd invocation): Mention oflag=direct
buffer size restriction.
Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/17586
Reported by Eric Sandeen.
</content>
</entry>
<entry>
<title>dd: remove unnecessary #if HAVE_FTRUNCATE</title>
<updated>2009-08-04T18:06:03Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2009-08-04T18:05:45Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=365fb90eaae52c92d6af8e87769e72b872492f4a'/>
<id>urn:sha1:365fb90eaae52c92d6af8e87769e72b872492f4a</id>
<content type='text'>
* src/dd.c (main): Remove unnecessary cpp directives.
Gnulib guarantees that ftruncate is usable.
</content>
</entry>
<entry>
<title>maint: Clarify ambiguous refs to Linux kernels or GNU/Linux systems</title>
<updated>2009-04-07T17:57:53Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2009-04-06T06:43:49Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=9fdf5845fc87135c4f68bce79f72a25d07130240'/>
<id>urn:sha1:9fdf5845fc87135c4f68bce79f72a25d07130240</id>
<content type='text'>
* README-prereq: s_linux_GNU/Linux_ or s_linux_Linux kernel_
* README-valgrind: ditto
* src/chown-core.c: ditto
* src/dd.c: ditto
* src/df.c: ditto
* src/ls.c: ditto
* src/mv.c: ditto
* src/pwd.c: ditto
* src/remove.c: ditto
* src/shred.c: ditto
* src/stat.c: ditto
* src/su.c: ditto
* src/system.h: ditto
* src/timeout.c: ditto
* src/truncate.c: ditto
</content>
</entry>
<entry>
<title>dd: use a more portable definition of O_FULLBLOCK</title>
<updated>2009-03-20T14:16:50Z</updated>
<author>
<name>Eric Blake</name>
<email>ebb9@byu.net</email>
</author>
<published>2009-03-19T19:14:26Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=0b47305caa39c0b11f0488f0cc115fd6b09f7922'/>
<id>urn:sha1:0b47305caa39c0b11f0488f0cc115fd6b09f7922</id>
<content type='text'>
* src/dd.c (O_FULLBLOCK): Compute its value without using a 180KB
macro.  This avoids triggering a compilation failure with HP-UX's cc.
Reported by Matthew Woehlke.
</content>
</entry>
</feed>
