diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2005-11-04 22:52:26 +0000 |
---|---|---|
committer | Peter S. Mazinger <ps.m@gmx.net> | 2005-11-04 22:52:26 +0000 |
commit | 005d20f04dff3665c9533417bdad06d7d208bf9a (patch) | |
tree | bfe0aa8c46149f67794cd45a4fdb259c57b521cf /include/sys/syslog.h | |
parent | d8059900ddf188607828b12a174b83decade3d61 (diff) |
Sync up w/ glibc
Diffstat (limited to 'include/sys/syslog.h')
-rw-r--r-- | include/sys/syslog.h | 31 |
1 files changed, 22 insertions, 9 deletions
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 |