From af1de0e25af56158bdd259a4999c5abfde57bf14 Mon Sep 17 00:00:00 2001 From: patacongo Date: Tue, 12 Feb 2013 14:05:30 +0000 Subject: 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 --- nuttx/include/fcntl.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'nuttx/include/fcntl.h') 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 */ -- cgit v1.2.3