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/include/fcntl.h | |
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/include/fcntl.h')
-rw-r--r-- | nuttx/include/fcntl.h | 15 |
1 files changed, 10 insertions, 5 deletions
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 */ |