From f70900a811d6d1840883f8ac3735fb5b1af8cdfd Mon Sep 17 00:00:00 2001 From: patacongo Date: Sat, 14 May 2011 15:21:04 +0000 Subject: [PATCH] Implemented line-oriented buffering for std output git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3606 42af7a65-404d-4744-a932-0658087f49c3 --- Documentation/NuttxPortingGuide.html | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/NuttxPortingGuide.html b/Documentation/NuttxPortingGuide.html index 3771d370d1..1ff52940b1 100644 --- a/Documentation/NuttxPortingGuide.html +++ b/Documentation/NuttxPortingGuide.html @@ -3413,6 +3413,13 @@ build CONFIG_STDIO_BUFFER_SIZE: Size of the buffer to allocate on fopen. (Only if CONFIG_NFILE_STREAMS > 0) +
  • + CONFIG_STDIO_LINEBUFFER: + If standard C buffered I/O is enabled (CONFIG_STDIO_BUFFER_SIZE > 0), + then this option may be added to force automatic, line-oriented flushing the output buffer + for printf() >, fprintf() >, and vfprintf() >. + When a newline character is encountered in the format string, the output buffer will be flushed. + This (slightly) increases the NuttX footprint but supports the kind of behavior that people expect for printf.
  • CONFIG_NUNGET_CHARS: Number of characters that can be buffered by ungetc() (Only if CONFIG_NFILE_STREAMS > 0)