about summary refs log tree commit diff
path: root/src/stdio/funlockfile.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-04-04 16:24:49 -0400
committerRich Felker <dalias@aerifal.cx>2011-04-04 16:24:49 -0400
commitbd57e2b43a5b56c00a82adbde0e33e5820c81164 (patch)
tree38cbea7e455183a890bc2293ca1f959816158fa2 /src/stdio/funlockfile.c
parent5600088d387491bd0af1879aa64e5d388805d8ec (diff)
downloadmusl-bd57e2b43a5b56c00a82adbde0e33e5820c81164.tar.gz
musl-bd57e2b43a5b56c00a82adbde0e33e5820c81164.tar.xz
musl-bd57e2b43a5b56c00a82adbde0e33e5820c81164.zip
use a local temp buffer for unbuffered streams in vfprintf
this change makes it so most calls to fprintf(stderr, ...) will result
in a single writev syscall, as opposed to roughly 2*N syscalls (and
possibly more) where N is the number of format specifiers. in
principle we could use a much larger buffer, but it's best not to
increase the stack requirements too much. most messages are under 80
chars.
Diffstat (limited to 'src/stdio/funlockfile.c')
0 files changed, 0 insertions, 0 deletions