summaryrefslogtreecommitdiff
path: root/nuttx/include/nuttx/streams.h
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-10-08 19:08:26 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-10-08 19:08:26 -0600
commited717b37b0161e4989f04ae3f7f75df3f66724b5 (patch)
tree8ee1b4e2de4c1ef933b7b0b84c8d55938f531a53 /nuttx/include/nuttx/streams.h
parentf21b58a5486e00a067ab193427cbc91f9abca17c (diff)
downloadnuttx-ed717b37b0161e4989f04ae3f7f75df3f66724b5.tar.gz
nuttx-ed717b37b0161e4989f04ae3f7f75df3f66724b5.tar.bz2
nuttx-ed717b37b0161e4989f04ae3f7f75df3f66724b5.zip
Implement setlogmask(); move some syslog logic from libc/syslog to fs/syslog
Diffstat (limited to 'nuttx/include/nuttx/streams.h')
-rw-r--r--nuttx/include/nuttx/streams.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/nuttx/include/nuttx/streams.h b/nuttx/include/nuttx/streams.h
index 01ec965c3..139741ff0 100644
--- a/nuttx/include/nuttx/streams.h
+++ b/nuttx/include/nuttx/streams.h
@@ -372,6 +372,51 @@ void lib_nulloutstream(FAR struct lib_outstream_s *nulloutstream);
void lib_syslogstream(FAR struct lib_outstream_s *stream);
#endif
+/****************************************************************************
+ * Name: lib_noflush
+ *
+ * Description:
+ * lib_noflush() provides a common, dummy flush method for output streams
+ * that are not flushable. Only used if CONFIG_STDIO_LINEBUFFER is selected.
+ *
+ * Return:
+ * Always returns OK
+ *
+ ****************************************************************************/
+
+#ifdef CONFIG_STDIO_LINEBUFFER
+int lib_noflush(FAR struct lib_outstream_s *stream);
+#endif
+
+/****************************************************************************
+ * Name: lib_snoflush
+ *
+ * Description:
+ * lib_snoflush() provides a common, dummy flush method for seekable output
+ * streams that are not flushable. Only used if CONFIG_STDIO_LINEBUFFER
+ * is selected.
+ *
+ * Return:
+ * Always returns OK
+ *
+ ****************************************************************************/
+
+#ifdef CONFIG_STDIO_LINEBUFFER
+int lib_snoflush(FAR struct lib_sostream_s *this);
+#endif
+
+/****************************************************************************
+ * Name: lib_sprintf and lib_vsprintf
+ *
+ * Description:
+ * Stream-oriented versions of sprintf and vsprintf.
+ *
+ ****************************************************************************/
+
+int lib_sprintf(FAR struct lib_outstream_s *obj, FAR const char *fmt, ...);
+int lib_vsprintf(FAR struct lib_outstream_s *obj,
+ FAR const char *src, va_list ap);
+
#undef EXTERN
#if defined(__cplusplus)
}