summaryrefslogtreecommitdiff
path: root/nuttx/lib/lib_fflush.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-03-01 21:05:55 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-03-01 21:05:55 +0000
commit08680a039b6ffc922731d9a1cfdff20ef204dbba (patch)
tree25bb704377c624f2d63c4bb5ad1df332d44aa78a /nuttx/lib/lib_fflush.c
parent129dd27cc4deb042d2f88c65927adc49c338756d (diff)
downloadpx4-nuttx-08680a039b6ffc922731d9a1cfdff20ef204dbba.tar.gz
px4-nuttx-08680a039b6ffc922731d9a1cfdff20ef204dbba.tar.bz2
px4-nuttx-08680a039b6ffc922731d9a1cfdff20ef204dbba.zip
This creates a 8051 build that can run in 24Kb of RAM
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@26 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/lib/lib_fflush.c')
-rw-r--r--nuttx/lib/lib_fflush.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/nuttx/lib/lib_fflush.c b/nuttx/lib/lib_fflush.c
index dc2c99673..d0f74bd2b 100644
--- a/nuttx/lib/lib_fflush.c
+++ b/nuttx/lib/lib_fflush.c
@@ -42,9 +42,6 @@
************************************************************/
#include <nuttx/config.h> /* for CONFIG_STDIO_BUFFER_SIZE */
-
-#if CONFIG_NFILE_STREAMS > 0
-
#include <stdio.h>
#include <errno.h>
#include <nuttx/fs.h>
@@ -83,10 +80,13 @@
************************************************************/
/************************************************************
- * fflush
+ * Name: lib_fflushall
+ *
+ * Description:
+ * Called by the OS when a task exits
************************************************************/
-/* Called by the OS when a task exits */
+#if CONFIG_NFILE_STREAMS > 0
void lib_flushall(FAR struct streamlist *list)
{
@@ -114,6 +114,10 @@ void lib_flushall(FAR struct streamlist *list)
}
}
+/************************************************************
+ * Name: fflush
+ ************************************************************/
+
int fflush(FILE *stream)
{
#if CONFIG_STDIO_BUFFER_SIZE > 0