diff options
author | "Steven J. Hill" <sjhill@realitydiluted.com> | 2005-11-17 03:10:29 +0000 |
---|---|---|
committer | "Steven J. Hill" <sjhill@realitydiluted.com> | 2005-11-17 03:10:29 +0000 |
commit | 164a928b77f596b6617a4bbf43a2c06bc35a5602 (patch) | |
tree | 8d1f20c152e2eec919c58e3259a20cc038b5d7c4 /include/sys/syslog.h | |
parent | 8c325ee38bf779dc5d51e41281d3b8230c3af971 (diff) | |
download | uClibc-alpine-164a928b77f596b6617a4bbf43a2c06bc35a5602.tar.bz2 uClibc-alpine-164a928b77f596b6617a4bbf43a2c06bc35a5602.tar.xz |
Merge from trunk.
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 |