summaryrefslogtreecommitdiff
path: root/include/sys/syslog.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sys/syslog.h')
-rw-r--r--include/sys/syslog.h31
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