<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/src/dd.c, branch v7.1</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://git.shady.money/coreutils/atom?h=v7.1</id>
<link rel='self' href='https://git.shady.money/coreutils/atom?h=v7.1'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/'/>
<updated>2009-02-19T11:45:18Z</updated>
<entry>
<title>doc: dd: document that the default block size is 512 bytes</title>
<updated>2009-02-19T11:45:18Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2009-02-19T11:35:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=0c91ae335d45250ed9024ededd36aac40e071d7b'/>
<id>urn:sha1:0c91ae335d45250ed9024ededd36aac40e071d7b</id>
<content type='text'>
* src/dd.c (usage): Document the default block size.
* doc/coreutils.texi (dd invocation): Document that the default
block size (bs, ibs, obs) is 512 bytes.
Reported by Petr Uzel.
</content>
</entry>
<entry>
<title>update copyright dates from recent changes</title>
<updated>2009-02-02T08:37:48Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2008-11-20T10:28:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=04d49874a23f40e38ba4f302b5b8025f43cba3c5'/>
<id>urn:sha1:04d49874a23f40e38ba4f302b5b8025f43cba3c5</id>
<content type='text'>
* src/dd.c: Add 2009 to list of copyright years.
* tests/dd/seek-skip-past-file: Likewise.
* tests/dd/seek-skip-past-dev: Likewise.
* m4/xattr.m4: Likewise.
* src/copy.h: Likewise.
</content>
</entry>
<entry>
<title>dd: Better handle user specified offsets that are too big</title>
<updated>2009-01-28T15:14:57Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2008-11-20T10:28:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=460ebb078ed7bf249af745d8725d6c37e7f15b57'/>
<id>urn:sha1:460ebb078ed7bf249af745d8725d6c37e7f15b57</id>
<content type='text'>
Following are the before and after operations for seekable files,
for the various erroneous offsets handled by this patch:

skip beyond end of file
  before: immediately exit(0);
  after : immediately printf("cannot skip to specified offset"); exit(0);

skip &gt; max file size
  before: read whole file and exit(0);
  after : immediately printf("cannot skip: Invalid argument"); exit(1);
seek &gt; max file size
  before: immediately printf("truncate error: EFBIG"); exit(1);
  after : immediately printf("truncate error: EFBIG"); exit(1);

skip &gt; OFF_T_MAX
  before: read whole device/file and exit(0);
  after : immediately printf("cannot skip:"); exit(1);
seek &gt; OFF_T_MAX
  before: immediately printf("truncate error: offset too large"); exit(1);
  after : immediately printf("truncate error: offset too large"); exit(1);

skip &gt; device size
  before: read whole device and exit(0);
  after : immediately printf("cannot skip: Invalid argument"); exit(1);
seek &gt; device size
  before: read whole device and printf("write error: ENOSPC"); exit(1);
  after : immediately printf("cannot seek: Invalid argument"); exit(1);

* NEWS: Summarize this change in behavior.
* src/dd.c (skip): Add error checking for large seek/skip offsets on
seekable files, rather than deferring to using read() to advance offset.
(dd_copy): Print a warning if skip past EOF, as per FIXME comment.
* test/Makefile.am: Add 2 new tests.
* tests/dd/seek-skip-past-file: Add tests for first 3 cases above.
* tests/dd/seek-skip-past-dev: Add root only test for last case above.
</content>
</entry>
<entry>
<title>maint: ensure dd's computation of O_FULLBLOCK uses all O_ symbol names</title>
<updated>2008-12-26T11:08:51Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2008-12-26T11:00:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=0c65638b0fe521a47e72f318edfb12c5b3b850f5'/>
<id>urn:sha1:0c65638b0fe521a47e72f318edfb12c5b3b850f5</id>
<content type='text'>
* src/dd.c (O_FULLBLOCK): Use a more uniform initializer, that makes
it easier to extract all O_ symbol names.
* maint.mk (syntax-check-rules): Also search for sc_ rules in cfg.mk.
(sc_root_tests): Ensure that this rule sets $diff.
* cfg.mk (sc_dd_O_FLAGS): New rule.
</content>
</entry>
<entry>
<title>dd: add support for opening files in Concurrent I/O (CIO) mode</title>
<updated>2008-12-26T09:57:05Z</updated>
<author>
<name>Matt Harden</name>
<email>matth@mindspring.com</email>
</author>
<published>2008-12-22T04:06:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=5c065bb0cb979dff21c474c0ff45b0c9013791d4'/>
<id>urn:sha1:5c065bb0cb979dff21c474c0ff45b0c9013791d4</id>
<content type='text'>
* src/dd.c (O_CIO): New flag.
* src/dd.c (O_FULLBLOCK): Add O_CIO to the list of flags that
O_FULLBLOCK should be greater than.
* src/dd.c (flags): Give the name "cio" to the new O_CIO flag, mirroring
the treatment of O_DIRECT.
* src/dd.c (usage): Add a description of the new flag when it is available.
* doc/coreutils.text (dd invocation): Describe the new flag.
* NEWS: Mention the new feature.
</content>
</entry>
<entry>
<title>Revert part of "dd: avoid unnecessary memory copies"</title>
<updated>2008-11-22T09:20:31Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2008-11-21T22:17:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=d5ab05998ca068b9a2e217285b15318ad2e5bdb8'/>
<id>urn:sha1:d5ab05998ca068b9a2e217285b15318ad2e5bdb8</id>
<content type='text'>
This reverts part of commit fbd87029cfc494a72bb73ade27ef46382c5bc832.
Paul Eggert noticed the problem in
http://lists.gnu.org/archive/html/bug-coreutils/2008-11/msg00153.html
* doc/coreutils.texi (dd invocation): Clarify.
</content>
</entry>
<entry>
<title>dd: avoid unnecessary memory copies</title>
<updated>2008-11-21T11:50:59Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2008-11-20T22:49:02Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=fbd87029cfc494a72bb73ade27ef46382c5bc832'/>
<id>urn:sha1:fbd87029cfc494a72bb73ade27ef46382c5bc832</id>
<content type='text'>
* src/dd.c (scanargs): When not otherwise required (e.g. for
conversion), use two-buffer mode only when the input and output
buffer sizes differ.  Before, some of the most basic invocations of
dd, e.g., dd &lt; in &gt; out, would unnecessarily use separate buffers
and perform memory copies between them.
</content>
</entry>
<entry>
<title>use new global, "Version", rather than macro, VERSION</title>
<updated>2008-08-26T16:45:06Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2008-08-13T20:30:14Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=0c1fc1c715aa18605eb11c6c25867277824e8f8d'/>
<id>urn:sha1:0c1fc1c715aa18605eb11c6c25867277824e8f8d</id>
<content type='text'>
With this change, a version-string update no longer
forces recompilation of 100+ src/*.o files.
* src/version.c (Version): New global.  New file.
* src/version.h: Declare it.
* src/Makefile.am: Put it in a library that everyone links to.
(noinst_LIBRARIES, libver_a_SOURCES): Define.
(LDADD): Add libver.a.
(sc_tight_scope): Use perl (was sed), and a more relaxed regexp
to build the global-variable-name-recognizing regexp list.
* src/system.h: Include "version.h".
(case_GETOPT_VERSION_CHAR): Use Version rather than VERSION.
* src/basename.c (main): Use Version rather than VERSION.
* src/chroot.c (main): Likewise.
* src/cksum.c (main): Likewise.
* src/dd.c (main): Likewise.
* src/dirname.c (main): Likewise.
* src/echo.c (main): Likewise.
* src/hostid.c (main): Likewise.
* src/hostname.c (main): Likewise.
* src/link.c (main): Likewise.
* src/logname.c (main): Likewise.
* src/nice.c (main): Likewise.
* src/nohup.c (main): Likewise.
* src/printenv.c (main): Likewise.
* src/printf.c (main): Likewise.
* src/pwd.c (main): Likewise.
* src/setuidgid.c (main): Likewise.
* src/sleep.c (main): Likewise.
* src/sync.c (main): Likewise.
* src/test.c (main): Likewise.
* src/timeout.c (main): Likewise.
* src/true.c (main): Likewise.
* src/tsort.c (main): Likewise.
* src/unlink.c (main): Likewise.
* src/uptime.c (main): Likewise.
* src/users.c (main): Likewise.
* src/whoami.c (main): Likewise.
* src/yes.c (main): Likewise.
</content>
</entry>
<entry>
<title>dd: clarify meaning of multiplication factors; put xM in order</title>
<updated>2008-08-11T07:47:01Z</updated>
<author>
<name>Benno Schulenberg</name>
<email>bensberg@justemail.net</email>
</author>
<published>2008-08-08T11:33:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=4ebf956b4e6e005112b7cdbc917abebfa9f31021'/>
<id>urn:sha1:4ebf956b4e6e005112b7cdbc917abebfa9f31021</id>
<content type='text'>
</content>
</entry>
<entry>
<title>dd.c: reduce duplication in new O_FULLBLOCK-defining code</title>
<updated>2008-08-09T14:56:01Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2008-08-07T21:01:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=2a2d3f237b256e43d55c9c0149d5ceba750f30f8'/>
<id>urn:sha1:2a2d3f237b256e43d55c9c0149d5ceba750f30f8</id>
<content type='text'>
* src/dd.c (MULTIPLE_BITS_SET): New macro, extracted from...
(multiple_bits_set): ...this function.
Use a single-line, and far simpler expression (no need to list all
O_* symbols again) to validate the derived O_FULLBLOCK value.
</content>
</entry>
</feed>
