summaryrefslogtreecommitdiff
path: root/nuttx/lib/lib_fflush.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-01-29 20:13:18 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-01-29 20:13:18 +0000
commit0af596b1f19b3345984fefef55dc7831770b1752 (patch)
tree66cf981fcdd5a835b0de72413eb648bb1d3bb83a /nuttx/lib/lib_fflush.c
parent47d740d94dc4d326cd4237603af74e17589b0759 (diff)
downloadpx4-nuttx-0af596b1f19b3345984fefef55dc7831770b1752.tar.gz
px4-nuttx-0af596b1f19b3345984fefef55dc7831770b1752.tar.bz2
px4-nuttx-0af596b1f19b3345984fefef55dc7831770b1752.zip
Fix some Z16F serial bugs
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@582 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/lib/lib_fflush.c')
-rw-r--r--nuttx/lib/lib_fflush.c56
1 files changed, 28 insertions, 28 deletions
diff --git a/nuttx/lib/lib_fflush.c b/nuttx/lib/lib_fflush.c
index 1af9305fb..c9751df61 100644
--- a/nuttx/lib/lib_fflush.c
+++ b/nuttx/lib/lib_fflush.c
@@ -1,7 +1,7 @@
-/************************************************************
+/****************************************************************************
* lib_fflush.c
*
- * Copyright (C) 2007 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
* Redistribution and use in source and binary forms, with or without
@@ -14,7 +14,7 @@
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
- * 3. Neither the name Gregory Nutt nor the names of its contributors may be
+ * 3. Neither the name NuttX nor the names of its contributors may be
* used to endorse or promote products derived from this software
* without specific prior written permission.
*
@@ -31,15 +31,15 @@
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
- ************************************************************/
+ ****************************************************************************/
-/************************************************************
+/****************************************************************************
* Compilation Switches
- ************************************************************/
+ ****************************************************************************/
-/************************************************************
+/****************************************************************************
* Included Files
- ************************************************************/
+ ****************************************************************************/
#include <nuttx/config.h> /* for CONFIG_STDIO_BUFFER_SIZE */
#include <stdio.h>
@@ -49,44 +49,44 @@
#include <nuttx/fs.h>
#include "lib_internal.h"
-/************************************************************
+/****************************************************************************
* Definitions
- ************************************************************/
+ ****************************************************************************/
-/************************************************************
+/****************************************************************************
* Private Type Declarations
- ************************************************************/
+ ****************************************************************************/
-/************************************************************
+/****************************************************************************
* Private Function Prototypes
- ************************************************************/
+ ****************************************************************************/
-/************************************************************
+/****************************************************************************
* Global Constant Data
- ************************************************************/
+ ****************************************************************************/
-/************************************************************
+/****************************************************************************
* Global Variables
- ************************************************************/
+ ****************************************************************************/
-/************************************************************
+/****************************************************************************
* Private Constant Data
- ************************************************************/
+ ****************************************************************************/
-/************************************************************
+/****************************************************************************
* Private Variables
- ************************************************************/
+ ****************************************************************************/
-/************************************************************
+/****************************************************************************
* Global Functions
- ************************************************************/
+ ****************************************************************************/
-/************************************************************
+/****************************************************************************
* Name: lib_fflushall
*
* Description:
* Called by the OS when a task exits
- ************************************************************/
+ ****************************************************************************/
void lib_flushall(FAR struct streamlist *list)
{
@@ -115,9 +115,9 @@ void lib_flushall(FAR struct streamlist *list)
}
}
-/************************************************************
+/****************************************************************************
* Name: fflush
- ************************************************************/
+ ****************************************************************************/
int fflush(FILE *stream)
{