summaryrefslogtreecommitdiff
path: root/nuttx/lib
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-09-13 19:04:13 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-09-13 19:04:13 +0000
commit18d4d71fbd502bffaaadacb4ab9087426cce7047 (patch)
tree8b5feff5e248672c6f5eb77960459e66ab05a85c /nuttx/lib
parent911a1d2fafcd6eff4c99765b184a6e82f816b312 (diff)
downloadpx4-nuttx-18d4d71fbd502bffaaadacb4ab9087426cce7047.tar.gz
px4-nuttx-18d4d71fbd502bffaaadacb4ab9087426cce7047.tar.bz2
px4-nuttx-18d4d71fbd502bffaaadacb4ab9087426cce7047.zip
Add CDC ACM serial class device driver
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3953 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/lib')
-rw-r--r--nuttx/lib/stdio/lib_fopen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/lib/stdio/lib_fopen.c b/nuttx/lib/stdio/lib_fopen.c
index 4f841aefc..f90951fe2 100644
--- a/nuttx/lib/stdio/lib_fopen.c
+++ b/nuttx/lib/stdio/lib_fopen.c
@@ -108,14 +108,14 @@ static int lib_mode2oflags(FAR const char *mode)
{
/* Read from the beginning of the file; write to the end */
- oflags |= O_RDWR|O_CREAT;
+ oflags |= O_RDWR|O_CREAT|O_APPEND;
mode++;
}
else
{
/* Write to the end of the file */
- oflags |= O_WROK|O_CREAT;
+ oflags |= O_WROK|O_CREAT|O_APPEND;
}
break;