summaryrefslogtreecommitdiff
path: root/nuttx/include/fcntl.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-02-12 14:05:30 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-02-12 14:05:30 +0000
commitaf1de0e25af56158bdd259a4999c5abfde57bf14 (patch)
treec35d2a7e50ab59b127068cedc7b349dad6c1da4e /nuttx/include/fcntl.h
parent5e92f8bf9f902ac2866d70180b448dc0b4228318 (diff)
downloadpx4-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.h7
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 */