diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2018-12-14 20:55:18 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2018-12-14 20:55:18 +0000 |
commit | ce87d1ef93cfa0f8fb749924abaef5329572418e (patch) | |
tree | 5e7a21170284b6eb3b4735c4edada28d19092e3f /lib/libc/stdio/flockfile.c | |
parent | 7b18a5a4ceff0514de182c2a998068ede9c4b142 (diff) |
Revisit the optimization for unbuffered I/O. We can use the buffer
passed to fread(3) directly in the FILE * and call __srefill() in
a loop without the memcpy(). This preserves the expected behavior
in all cases. OK semarie@, "This is neat" tedu@
Diffstat (limited to 'lib/libc/stdio/flockfile.c')
0 files changed, 0 insertions, 0 deletions