You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2020/02/20 03:22:37 UTC

[GitHub] [incubator-nuttx] xiaoxiang781216 commented on a change in pull request #326: fcntl: add O_CLOEXEC flag

xiaoxiang781216 commented on a change in pull request #326: fcntl: add O_CLOEXEC flag
URL: https://github.com/apache/incubator-nuttx/pull/326#discussion_r381708225
 
 

 ##########
 File path: include/fcntl.h
 ##########
 @@ -66,6 +66,7 @@
 #define O_DSYNC     O_SYNC          /* Equivalent to OSYNC in NuttX */
 #define O_BINARY    (1 << 8)        /* Open the file in binary (untranslated) mode. */
 #define O_DIRECT    (1 << 9)        /* Avoid caching, write directly to hardware */
+#define O_CLOEXEC   (1 << 10)       /* Close on execute */
 
 Review comment:
   Because, this flag isn't very critical, some application just add this flag when it call open, but don't care the difference really.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services