aboutsummaryrefslogtreecommitdiff
path: root/include/printf_buffer.h
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2022-08-18 08:49:54 +0200
committerFlorian Weimer <fweimer@redhat.com>2022-12-12 15:39:05 +0100
commit2deb7d2cffb76dbcaf7ba051e616ccb7e275ed54 (patch)
tree4bdd40fadbebb0f28bd561bb37bd1766c1c2eaa0 /include/printf_buffer.h
parent214908c0def333495c359630d7822e7ccb6b8154 (diff)
downloadglibc-2deb7d2cffb76dbcaf7ba051e616ccb7e275ed54.tar.xz
glibc-2deb7d2cffb76dbcaf7ba051e616ccb7e275ed54.zip
libio: Convert __vdprintf_internal to buffers
The internal buffer size is set to 2048 bytes. This is less than the original BUFSIZ value used by buffered_vfprintf before the conversion, but it hopefully covers all cases where write boundaries matter.
Diffstat (limited to 'include/printf_buffer.h')
-rw-r--r--include/printf_buffer.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/printf_buffer.h b/include/printf_buffer.h
index 47e252b52e..3d4ef1d06c 100644
--- a/include/printf_buffer.h
+++ b/include/printf_buffer.h
@@ -49,6 +49,7 @@ enum __printf_buffer_mode
__printf_buffer_mode_sprintf_chk,
__printf_buffer_mode_to_file,
__printf_buffer_mode_asprintf,
+ __printf_buffer_mode_dprintf,
__printf_buffer_mode_strfmon,
__printf_buffer_mode_fp, /* For __printf_fp_l_buffer. */
__printf_buffer_mode_fp_to_wide, /* For __wprintf_fp_l_buffer. */
@@ -305,6 +306,9 @@ void __printf_buffer_flush_to_file (struct __printf_buffer_to_file *)
struct __printf_buffer_asprintf;
void __printf_buffer_flush_asprintf (struct __printf_buffer_asprintf *)
attribute_hidden;
+struct __printf_buffer_dprintf;
+void __printf_buffer_flush_dprintf (struct __printf_buffer_dprintf *)
+ attribute_hidden;
struct __printf_buffer_fp;
void __printf_buffer_flush_fp (struct __printf_buffer_fp *)
attribute_hidden;