summaryrefslogtreecommitdiff
path: root/nuttx/tools
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-05-14 15:21:04 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-05-14 15:21:04 +0000
commitf62084035feaf8b9a22804821b22e2a3c15e6eda (patch)
treee2d1548a5bf0d8e33386a178103c756473b90ad6 /nuttx/tools
parent6f8fd8927787deda605f6fb070bab21ee4022084 (diff)
downloadpx4-nuttx-f62084035feaf8b9a22804821b22e2a3c15e6eda.tar.gz
px4-nuttx-f62084035feaf8b9a22804821b22e2a3c15e6eda.tar.bz2
px4-nuttx-f62084035feaf8b9a22804821b22e2a3c15e6eda.zip
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
Diffstat (limited to 'nuttx/tools')
-rw-r--r--nuttx/tools/mkconfig.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/nuttx/tools/mkconfig.c b/nuttx/tools/mkconfig.c
index c8a6fb261..13598938c 100644
--- a/nuttx/tools/mkconfig.c
+++ b/nuttx/tools/mkconfig.c
@@ -184,6 +184,13 @@ int main(int argc, char **argv, char **envp)
printf("# undef CONFIG_NUNGET_CHARS\n");
printf("# define CONFIG_NUNGET_CHARS 0\n");
printf("#endif\n\n");
+ printf("/* If no standard C buffered I/O is not supported, then line-oriented buffering\n");
+ printf(" * cannot be supported.\n");
+ printf(" */\n\n");
+ printf("#if CONFIG_STDIO_BUFFER_SIZE == 0\n");
+ printf("# undef CONFIG_STDIO_LINEBUFFER\n");
+ printf("# define CONFIG_STDIO_LINEBUFFER 0\n");
+ printf("#endif\n\n");
printf("/* If the maximum message size is zero, then we assume that message queues\n");
printf(" * support should be disabled\n");
printf(" */\n\n");