diff options
author | Florian Weimer <fweimer@redhat.com> | 2022-12-19 18:56:55 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2022-12-19 18:56:55 +0100 |
commit | af7f4165512ea242b5f711ee03a04f6afe22232d (patch) | |
tree | c4fd7778fa2e513af3105bc97eccddbb60d31ef7 /libio/libc_fatal.c | |
parent | fb9bd841b8e8b22a42fd68c56355c2ddd211db21 (diff) | |
download | glibc-af7f4165512ea242b5f711ee03a04f6afe22232d.tar glibc-af7f4165512ea242b5f711ee03a04f6afe22232d.tar.gz glibc-af7f4165512ea242b5f711ee03a04f6afe22232d.tar.bz2 glibc-af7f4165512ea242b5f711ee03a04f6afe22232d.zip |
libio: Convert __vasprintf_internal to buffers
The buffer resizing algorithm is slightly different. The initial
buffer is on the stack, and small buffers are directly allocated
on the heap using the exact required size. The overhead of the
additional copy is compensated by the lowered setup cost for buffers
compared to libio streams.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'libio/libc_fatal.c')
0 files changed, 0 insertions, 0 deletions