From 005d20f04dff3665c9533417bdad06d7d208bf9a Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Fri, 4 Nov 2005 22:52:26 +0000 Subject: Sync up w/ glibc --- include/sys/syslog.h | 31 ++++++++++++++++++++++--------- 1 file changed, 22 insertions(+), 9 deletions(-) (limited to 'include/sys/syslog.h') diff --git a/include/sys/syslog.h b/include/sys/syslog.h index 940ee2dec..ace88a097 100644 --- a/include/sys/syslog.h +++ b/include/sys/syslog.h @@ -168,24 +168,37 @@ CODE facilitynames[] = __BEGIN_DECLS -/* Close desriptor used to write to system logger. */ -extern void closelog (void) __THROW; +/* Close desriptor used to write to system logger. -/* Open connection to system logger. */ -extern void openlog (__const char *__ident, int __option, int __facility) - __THROW; + This function is a possible cancellation point and therefore not + marked with __THROW. */ +extern void closelog (void); + +/* Open connection to system logger. + + This function is a possible cancellation point and therefore not + marked with __THROW. */ +extern void openlog (__const char *__ident, int __option, int __facility); /* Set the log mask level. */ extern int setlogmask (int __mask) __THROW; -/* Generate a log message using FMT string and option arguments. */ -extern void syslog (int __pri, __const char *__fmt, ...) __THROW +/* Generate a log message using FMT string and option arguments. + + This function is a possible cancellation point and therefore not + marked with __THROW. */ +extern void syslog (int __pri, __const char *__fmt, ...) __attribute__ ((__format__(__printf__, 2, 3))); #ifdef __USE_BSD -/* Generate a log message using FMT and using arguments pointed to by AP. */ +/* Generate a log message using FMT and using arguments pointed to by AP. + + This function is not part of POSIX and therefore no official + cancellation point. But due to similarity with an POSIX interface + or due to the implementation it is a cancellation point and + therefore not marked with __THROW. */ extern void vsyslog (int __pri, __const char *__fmt, __gnuc_va_list __ap) - __THROW __attribute__ ((__format__(__printf__, 2, 0))); + __attribute__ ((__format__(__printf__, 2, 0))); #endif __END_DECLS -- cgit v1.2.3