mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-25 12:11:10 +00:00
29c21e4900
* misc/sys/syslog.h: Include <bits/syslog.h> for fortification. * misc/Makefile (headers): Add bits/syslog.h. * include/sys/syslog.h: Add __vsyslog_chk prototype and hidden_proto. * sysdeps/generic/syslog.c: Change vsyslog function to __vsyslog_chk. Call __vfprintf_chk if necessary. Make vsyslog a wrapper. Add __syslog_chk. * misc/Versions: Export __syslog_chk and __vsyslog_chk. * nis/nis_xdr.c: Help gcc to avoid generating unnecessary wrapper functions.
10 lines
272 B
C
10 lines
272 B
C
#include <misc/sys/syslog.h>
|
|
|
|
libc_hidden_proto (syslog)
|
|
libc_hidden_proto (vsyslog)
|
|
|
|
extern void __vsyslog_chk (int __pri, int __flag, __const char *__fmt,
|
|
__gnuc_va_list __ap)
|
|
__attribute__ ((__format__ (__printf__, 3, 0)));
|
|
libc_hidden_proto (__vsyslog_chk)
|