freebsd-src/bin/dd
Enji Cooper 5c5d7b215f MFC r302500,r319339,r319543,r319544,r319551,r321138:
r302500 (by cem):

dd(1): Enable access to SIZE_T_MAX character devices

On machines where SIZE_T_MAX exceeds OFF_MAX (signed 64-bit), permit seeking
character devices to negative off_t values.  This enables dd(1) to interact
with kernel KVA in /dev/kmem on amd64, for example.

r319339 (by asomers):

Fix integer overflow detection in dd

dd(1) tried to detect whether the seek offset would overflow, but it failed
to account for the case where the provided argument was negative and the
file was a regular file (negative seeks are allowed for character devices).
I fixed it, and added a regression test.

CID:		1368659

r319543:

Stylistic tweaks

Move opening braces of functions from the last column to column 0.

MFC with:	r319339

r319544:

Mark :seek_overflow as an expected failure

MFC with:	r319339
PR:		219757

r319551 (by asomers):

Fix bin/dd/dd2_tests:seek_overflow on UFS and TMPFS

Split the postive and negative parts into separate test cases.  The positive
test case can only run on ZFS, because only ZFS supports files that large.

PR:		219757

r321138:

Remove unnecessary make logic added in r319339

This makes the change cleaner and easier to backport to ^/stable/10.
2017-07-18 17:36:25 +00:00
..
tests MFC r302500,r319339,r319543,r319544,r319551,r321138: 2017-07-18 17:36:25 +00:00
args.c MFC r302500,r319339,r319543,r319544,r319551,r321138: 2017-07-18 17:36:25 +00:00
conv_tab.c Make dd's signal handler async safe. 2013-05-10 18:43:36 +00:00
conv.c Remove clause 3 from the UCB licenses. 2004-04-06 20:06:54 +00:00
dd.1 MFC r306715 2017-03-30 02:23:02 +00:00
dd.c MFC r295749: 2016-04-19 07:34:31 +00:00
dd.h MFC r295749: 2016-04-19 07:34:31 +00:00
extern.h Make dd's signal handler async safe. 2013-05-10 18:43:36 +00:00
gen.c MFC r295749: 2016-04-19 07:34:31 +00:00
Makefile MFC r295749: 2016-04-19 07:34:31 +00:00
misc.c MFC r264059+264067: 2014-04-17 00:31:20 +00:00
position.c MFC r302500,r319339,r319543,r319544,r319551,r321138: 2017-07-18 17:36:25 +00:00
ref.ascii Add a test-target and reference vectors for the character converions. 2004-03-05 19:30:13 +00:00
ref.ebcdic Add a test-target and reference vectors for the character converions. 2004-03-05 19:30:13 +00:00
ref.ibm Add a test-target and reference vectors for the character converions. 2004-03-05 19:30:13 +00:00
ref.lcase Add a test-target and reference vectors for the character converions. 2004-03-05 19:30:13 +00:00
ref.obs_zeroes MFC r295749: 2016-04-19 07:34:31 +00:00
ref.oldascii Add a test-target and reference vectors for the character converions. 2004-03-05 19:30:13 +00:00
ref.oldebcdic Add a test-target and reference vectors for the character converions. 2004-03-05 19:30:13 +00:00
ref.oldibm Add a test-target and reference vectors for the character converions. 2004-03-05 19:30:13 +00:00
ref.pareven Teach dd(1) about parity bits. 2004-03-05 19:35:51 +00:00
ref.parnone Teach dd(1) about parity bits. 2004-03-05 19:35:51 +00:00
ref.parodd Teach dd(1) about parity bits. 2004-03-05 19:35:51 +00:00
ref.parset Teach dd(1) about parity bits. 2004-03-05 19:35:51 +00:00
ref.swab Add a test-target and reference vectors for the character converions. 2004-03-05 19:30:13 +00:00
ref.ucase Add a test-target and reference vectors for the character converions. 2004-03-05 19:30:13 +00:00