mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-22 21:10:07 +00:00
124fc732c1
__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. Tested for powerpc and powerpc64le.
17 lines
459 B
C
17 lines
459 B
C
#ifndef _LIBC_SYS_SYSLOG_H
|
|
#define _LIBC_SYS_SYSLOG_H 1
|
|
#include <misc/sys/syslog.h>
|
|
#ifndef _ISOMAC
|
|
|
|
libc_hidden_proto (syslog)
|
|
|
|
/* __vsyslog_internal uses the same mode_flags bits as
|
|
__v*printf_internal; see libio/libioP.h. */
|
|
extern void __vsyslog_internal (int pri, const char *fmt, __gnuc_va_list ap,
|
|
unsigned int mode_flags)
|
|
attribute_hidden
|
|
__attribute__ ((__format__ (__printf__, 2, 0)));
|
|
|
|
#endif /* _ISOMAC */
|
|
#endif /* syslog.h */
|