summaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorOndrej Oprala <ooprala@redhat.com>2013-01-22 14:21:23 +0100
committerPádraig Brady <P@draigBrady.com>2013-04-14 01:00:45 +0100
commit8901e010fa24ba375d53e3e37fc7819621adcf19 (patch)
tree1f20f49bb0c455525b042e838462d4396c97a314 /bootstrap
parent4114c93af398d7aecb5eb253f90d9b4cc0785643 (diff)
downloadcoreutils-8901e010fa24ba375d53e3e37fc7819621adcf19.tar.xz
dd: avoid buffer allocations unless needed
* 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.
Diffstat (limited to 'bootstrap')
0 files changed, 0 insertions, 0 deletions