OSDN Git Service

libc: add missing O_CLOEXEC from <fcntl.h>
authorDavid 'Digit' Turner <digit@google.com>
Sun, 26 Sep 2010 18:03:16 +0000 (20:03 +0200)
committerDavid 'Digit' Turner <digit@google.com>
Mon, 27 Sep 2010 15:33:40 +0000 (17:33 +0200)
Change-Id: Ie7ad57898e67800a9fe92bb52589d67ec30e1cd9

libc/include/fcntl.h

index 59e7135..7219dd7 100644 (file)
@@ -39,6 +39,10 @@ __BEGIN_DECLS
 #define O_ASYNC  FASYNC
 #endif
 
+#ifndef O_CLOEXEC
+#define O_CLOEXEC  02000000
+#endif
+
 extern int  open(const char*  path, int  mode, ...);
 extern int  openat(int fd, const char*  path, int  mode, ...);
 extern int  unlinkat(int dirfd, const char *pathname, int flags);