fcntl: add O_CLOEXEC/FD_CLOEXEC support

This commit is contained in:
chao.an
2020-02-03 22:21:54 +08:00
committed by Gregory Nutt
parent c015e42602
commit d07afc934e
6 changed files with 71 additions and 18 deletions
+1
View File
@@ -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 */
/* Unsupported, but required open flags */