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/include/fcntl.h | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'nuttx/include/fcntl.h') diff --git a/nuttx/include/fcntl.h b/nuttx/include/fcntl.h index 0d423a5d0..c13bd90f9 100644 --- a/nuttx/include/fcntl.h +++ b/nuttx/include/fcntl.h @@ -79,12 +79,17 @@ #define _O_MAXBIT 8 -/* Synonyms historically used as F_SETFL flags (BSD). Also FASYNC. */ +/* Synonyms historically used as F_SETFL flags (BSD). */ -#define FNDELAY O_NONBLOCK -#define FNONBLOCK O_NONBLOCK -#define FAPPEND O_APPEND -#define FSYNC O_SYNC +#define FNDELAY O_NONBLOCK /* Don't wait for data */ +#define FNONBLOCK O_NONBLOCK /* Don't wait for data */ +#define FAPPEND O_APPEND /* Keep contents, append to end */ +#define FSYNC O_SYNC /* Synchronize output on write */ +#define FASYNC 0 /* No counterpart in NuttX */ + +/* FFCNTL is all the bits that may be set via fcntl. */ + +#define FFCNTL (FNONBLOCK | FNDELAY | FAPPEND | FSYNC | FASYNC) /* fcntl() commands */ -- cgit v1.2.3