summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@google.com>2010-09-26 20:03:16 +0200
committerDavid 'Digit' Turner <digit@google.com>2010-09-27 17:33:40 +0200
commit00eea3f8a07190dc6d2c4d0e927fed3e47502424 (patch)
tree93e11a2dd3474816b6afbbcb1776c17946e806f8
parentb9e49ad56e5776ace7c6eab2e997d5b7acb16792 (diff)
downloadbionic-00eea3f8a07190dc6d2c4d0e927fed3e47502424.zip
bionic-00eea3f8a07190dc6d2c4d0e927fed3e47502424.tar.gz
bionic-00eea3f8a07190dc6d2c4d0e927fed3e47502424.tar.bz2
libc: add missing O_CLOEXEC from <fcntl.h>
Change-Id: Ie7ad57898e67800a9fe92bb52589d67ec30e1cd9
-rw-r--r--libc/include/fcntl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libc/include/fcntl.h b/libc/include/fcntl.h
index 59e7135..7219dd7 100644
--- a/libc/include/fcntl.h
+++ b/libc/include/fcntl.h
@@ -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);