diff options
author | Ulrich Drepper <drepper@redhat.com> | 2005-07-30 06:00:43 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2005-07-30 06:00:43 +0000 |
commit | 29c21e490099c35fb3e35c2c493b6b480b211e72 (patch) | |
tree | 7dc69b6d2492e181c548e5b6714bb9bb62a2119e /include | |
parent | 155c581323f45dd7657ff011be1590a5ffdc4fa0 (diff) | |
download | glibc-29c21e490099c35fb3e35c2c493b6b480b211e72.tar glibc-29c21e490099c35fb3e35c2c493b6b480b211e72.tar.gz glibc-29c21e490099c35fb3e35c2c493b6b480b211e72.tar.bz2 glibc-29c21e490099c35fb3e35c2c493b6b480b211e72.zip |
* misc/bits/syslog.h: New file.
* 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.
Diffstat (limited to 'include')
-rw-r--r-- | include/sys/syslog.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/sys/syslog.h b/include/sys/syslog.h index e018225333..8b0d59dad6 100644 --- a/include/sys/syslog.h +++ b/include/sys/syslog.h @@ -2,3 +2,8 @@ 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) |