diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-02-05 18:13:13 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-02-05 18:13:13 +0000 |
commit | d1f1e007f149be8a8c3084d144599a7456d15aba (patch) | |
tree | dc4794aec1816bddcdf86ad50da6c7ebe86b4d51 /nuttx/lib/lib_fwrite.c | |
parent | e05c8208701c52f71abfda389c5dbbea8cf380a7 (diff) | |
download | px4-nuttx-d1f1e007f149be8a8c3084d144599a7456d15aba.tar.gz px4-nuttx-d1f1e007f149be8a8c3084d144599a7456d15aba.tar.bz2 px4-nuttx-d1f1e007f149be8a8c3084d144599a7456d15aba.zip |
Various fixes for buffered R/W I/O and seeking
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@630 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/lib/lib_fwrite.c')
-rw-r--r-- | nuttx/lib/lib_fwrite.c | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/nuttx/lib/lib_fwrite.c b/nuttx/lib/lib_fwrite.c index 3dd22ba8b..11d9c1eae 100644 --- a/nuttx/lib/lib_fwrite.c +++ b/nuttx/lib/lib_fwrite.c @@ -1,7 +1,7 @@ -/************************************************************ - * lib_fwrite.c +/**************************************************************************** + * lib/lib_fwrite.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,53 +31,53 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Compilation Switches - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Included Files - ************************************************************/ + ****************************************************************************/ #include <stdio.h> #include "lib_internal.h" -/************************************************************ +/**************************************************************************** * Definitions - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Private Type Declarations - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Private Function Prototypes - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Global Constant Data - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Global Variables - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Private Constant Data - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Private Variables - ************************************************************/ -/************************************************************ + ****************************************************************************/ +/**************************************************************************** * Global Functions - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * fwrite - ************************************************************/ + ****************************************************************************/ size_t fwrite(const void *ptr, size_t size, size_t n_items, FILE *stream) { |