]> Savannah Git Hosting - gnulib.git/commit
vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
authorBruno Haible <bruno@clisp.org>
Sat, 7 Oct 2017 12:07:41 +0000 (14:07 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 7 Oct 2017 12:07:41 +0000 (14:07 +0200)
commit7f56e496c731f8da732d5a3cc2afddad86cda5be
treeb8941d0ef66539e396cec8966bccfc710d957f0b
parent1e79c6c34369192a103bf71eff17b5d6da555388
vma-iter: Fix truncated result on Linux (regression from 2017-09-26).

* lib/vma-iter.c (MIN_LEFTOVER): New macro.
(STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
(rof_open): On Linux, do multiple read() calls and make sure
MIN_LEFTOVER bytes are left when read() returns.
ChangeLog
lib/vma-iter.c