summaryrefslogtreecommitdiff
path: root/nuttx/include/syslog.h
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-10-08 17:16:41 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-10-08 17:16:41 -0600
commitbfc59b202544b8824f72f7a21563663a43f16fda (patch)
treeb5743f75e74aa1733f2c3442c2661d1f616c7108 /nuttx/include/syslog.h
parentc271a9977ee1798762c72a4c11daa51556616114 (diff)
downloadpx4-nuttx-bfc59b202544b8824f72f7a21563663a43f16fda.tar.gz
px4-nuttx-bfc59b202544b8824f72f7a21563663a43f16fda.tar.bz2
px4-nuttx-bfc59b202544b8824f72f7a21563663a43f16fda.zip
Move syslog logic from libc/misc and libc/stdio to libc/syslog
Diffstat (limited to 'nuttx/include/syslog.h')
-rw-r--r--nuttx/include/syslog.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/nuttx/include/syslog.h b/nuttx/include/syslog.h
index c71d95176..e57595fe1 100644
--- a/nuttx/include/syslog.h
+++ b/nuttx/include/syslog.h
@@ -124,7 +124,6 @@ extern "C"
#if 0 /* Not supported */
void openlog(FAR const char *ident, int option, int facility);
void closelog(void);
-int setlogmask(int mask);
#endif
/* These low-level debug APIs are provided by the NuttX library. These are
@@ -162,6 +161,12 @@ int lowvsyslog(int priority, FAR const char *format, va_list ap);
# define lowvsyslog(p,f,a) vsyslog(p,f,a)
#endif
+/* The setlogmask() function sets the logmask and returns the previous
+ * mask. If the mask argument is 0, the current logmask is not modified.
+ */
+
+int setlogmask(int mask);
+
/* Enable or disable syslog output */
#ifdef CONFIG_SYSLOG_ENABLE /* Non-standard */