From bfc59b202544b8824f72f7a21563663a43f16fda Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Wed, 8 Oct 2014 17:16:41 -0600 Subject: Move syslog logic from libc/misc and libc/stdio to libc/syslog --- nuttx/include/syslog.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'nuttx/include') 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 */ -- cgit v1.2.3