From c1213384ab756969548a669629f1b173a15582ec Mon Sep 17 00:00:00 2001 From: patacongo Date: Tue, 12 Feb 2013 16:28:33 +0000 Subject: 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 --- nuttx/fs/fs_fcntl.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'nuttx/fs/fs_fcntl.c') 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; -- cgit v1.2.3