diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-02-12 16:28:33 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-02-12 16:28:33 +0000 |
commit | c1213384ab756969548a669629f1b173a15582ec (patch) | |
tree | 7078ea7005669f6334dab78a2b9e4e9828637b24 /nuttx/fs/fs_fcntl.c | |
parent | af1de0e25af56158bdd259a4999c5abfde57bf14 (diff) | |
download | px4-nuttx-c1213384ab756969548a669629f1b173a15582ec.tar.gz px4-nuttx-c1213384ab756969548a669629f1b173a15582ec.tar.bz2 px4-nuttx-c1213384ab756969548a669629f1b173a15582ec.zip |
Add EMC register definitions for the LPC1788
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5644 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/fs/fs_fcntl.c')
-rw-r--r-- | nuttx/fs/fs_fcntl.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/nuttx/fs/fs_fcntl.c b/nuttx/fs/fs_fcntl.c index b4d095705..20c05a439 100644 --- a/nuttx/fs/fs_fcntl.c +++ b/nuttx/fs/fs_fcntl.c @@ -53,9 +53,6 @@ * Pre-processor Definitions ****************************************************************************/ -#define ACCESS_MODES (O_RDONLY | O_WRONLY | O_RDWR) -#define CREATION_MODES (O_CREAT | O_EXCL | O_APPEND | O_TRUNC) - /**************************************************************************** * Private Functions ****************************************************************************/ @@ -152,8 +149,8 @@ static inline int file_vfcntl(int fildes, int cmd, va_list ap) { int oflags = va_arg(ap, int); - oflags &= ~(ACCESS_MODES | CREATION_MODES); - this_file->f_oflags &= (ACCESS_MODES | CREATION_MODES); + oflags &= FFCNTL; + this_file->f_oflags &= ~FFCNTL; this_file->f_oflags |= oflags; } break; |