diff options
| author | Pádraig Brady <P@draigBrady.com> | 2016-12-22 14:31:44 +0000 |
|---|---|---|
| committer | Pádraig Brady <P@draigBrady.com> | 2016-12-26 12:57:16 +0000 |
| commit | e17e5f40b81447a2af65b0e64a3295d5e2e86753 (patch) | |
| tree | 762ad410249552a67b467941acbcde0f8d3019a2 /tests/misc/seq-io-errors.sh | |
| parent | maint: correct the version for the previous bug fix (diff) | |
| download | coreutils-e17e5f40b81447a2af65b0e64a3295d5e2e86753.tar.gz coreutils-e17e5f40b81447a2af65b0e64a3295d5e2e86753.zip | |
wc: with only --bytes, determine size more efficiently
* src/wc.c (wc): Avoid reading the end of the file
when the size is not a multiple of PAGE_SIZE,
as the special case handling for files in /proc and /sys
is only required when st_size is 0 or a multiple of PAGE_SIZE.
* tests/misc/wc-proc.sh: Add a test case.
Diffstat (limited to 'tests/misc/seq-io-errors.sh')
0 files changed, 0 insertions, 0 deletions
