diff options
author | Ondrej Oprala <ooprala@redhat.com> | 2013-01-22 14:21:23 +0100 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2013-04-14 01:00:45 +0100 |
commit | 8901e010fa24ba375d53e3e37fc7819621adcf19 (patch) | |
tree | 1f20f49bb0c455525b042e838462d4396c97a314 /tests/misc/nohup.sh | |
parent | 4114c93af398d7aecb5eb253f90d9b4cc0785643 (diff) | |
download | coreutils-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 'tests/misc/nohup.sh')
0 files changed, 0 insertions, 0 deletions