From 1393061400a6851b97f34c3e62831210cf8c08bf Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Wed, 8 Feb 2017 11:47:12 -0600 Subject: [PATCH] Update some comments --- libc/Kconfig | 6 ++++-- libc/stdio/lib_setvbuf.c | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/libc/Kconfig b/libc/Kconfig index c3db169d9d1..e1781e41cf6 100644 --- a/libc/Kconfig +++ b/libc/Kconfig @@ -16,8 +16,10 @@ config STDIO_LINEBUFFER bool "STDIO line buffering" default y ---help--- - Flush buffer I/O whenever a newline character is found in - the output data stream. + Sets the default behavior to flush buffered I/O whenever a newline + character is found in the output data stream. This setting just + sets the initial default behavior of all streams. The behavior of + an individual stream can be changed via setvbuf(). config NUNGET_CHARS int "Number unget() characters" diff --git a/libc/stdio/lib_setvbuf.c b/libc/stdio/lib_setvbuf.c index 4da52ff77d5..ece2b09a71b 100644 --- a/libc/stdio/lib_setvbuf.c +++ b/libc/stdio/lib_setvbuf.c @@ -135,7 +135,7 @@ int setvbuf(FAR FILE *stream, FAR char *buffer, int mode, size_t size) goto errout; } -#if 1 /* REVISIT */ +#if 1 /* REVISIT: _IONBF not yet supported */ /* Not all features are be available. Without some additional logic, * we cannot disable buffering if CONFIG_STDIO_BUFFER_SIZE > 0 */