summaryrefslogtreecommitdiff
path: root/libio/iovsprintf.c
diff options
context:
space:
mode:
authorZack Weinberg <zackw@panix.com>2018-03-07 09:03:26 -0500
committerZack Weinberg <zackw@panix.com>2018-05-31 21:28:17 -0400
commit665a5665924b44f5de0938e4c1a077d5bcfee061 (patch)
tree9ceebbf131abc4342debc3f54773d916d02161fd /libio/iovsprintf.c
parent13b3f8489601ab34d12382c34ea2f21843656716 (diff)
downloadglibc-665a5665924b44f5de0938e4c1a077d5bcfee061.tar.gz
Add __vsyslog_internal, with same flags as __v*printf_internal.
__nldbl___vsyslog_chk will ultimately want to pass PRINTF_LDBL_IS_DBL down to __vfprintf_internal *as well as* possibly setting PRINTF_FORTIFY. To make that possible, we need a __vsyslog_internal that takes the same flags as printf. The code in misc/syslog.c does also get a little simpler. * misc/syslog.c: Include libioP.h, not iolibio.h. (__vsyslog_internal): New function with the former body of __vsyslog_chk; takes mode_flags argument same as __v*printf_internal. Call __vfprintf_internal directly. (__vsyslog_chk): Now a wrapper around __vsyslog_internal. Remove libc_hidden_def. (__syslog, __syslog_chk): Use __vsyslog_internal. (__vsyslog): Move to just below __syslog. Use __vsyslog_internal. * include/sys/syslog.h: Add multiple inclusion guard. Add prototype for __vsyslog_internal. Remove libc_hidden_proto for __vsyslog_chk. * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk): Use __vsyslog_internal.
Diffstat (limited to 'libio/iovsprintf.c')
0 files changed, 0 insertions, 0 deletions