diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-02-12 14:05:30 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-02-12 14:05:30 +0000 |
commit | af1de0e25af56158bdd259a4999c5abfde57bf14 (patch) | |
tree | c35d2a7e50ab59b127068cedc7b349dad6c1da4e /nuttx/include/fcntl.h | |
parent | 5e92f8bf9f902ac2866d70180b448dc0b4228318 (diff) | |
download | px4-nuttx-af1de0e25af56158bdd259a4999c5abfde57bf14.tar.gz px4-nuttx-af1de0e25af56158bdd259a4999c5abfde57bf14.tar.bz2 px4-nuttx-af1de0e25af56158bdd259a4999c5abfde57bf14.zip |
Preserve access and creation flags with fcntl(F_SETFL)
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5643 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include/fcntl.h')
-rw-r--r-- | nuttx/include/fcntl.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/nuttx/include/fcntl.h b/nuttx/include/fcntl.h index 382c5be16..0d423a5d0 100644 --- a/nuttx/include/fcntl.h +++ b/nuttx/include/fcntl.h @@ -79,6 +79,13 @@ #define _O_MAXBIT 8 +/* Synonyms historically used as F_SETFL flags (BSD). Also FASYNC. */ + +#define FNDELAY O_NONBLOCK +#define FNONBLOCK O_NONBLOCK +#define FAPPEND O_APPEND +#define FSYNC O_SYNC + /* fcntl() commands */ #define F_DUPFD 0 /* Duplicate a file descriptor */ |