summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@google.com>2010-09-28 00:12:13 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-09-28 00:12:13 -0700
commit032a713549c12b79b5dde6ef3dff323b7698110d (patch)
treead23a23ec5aca0c370f2c055cfe66f1fab428b0d
parent223ddfcfc4cb354641e70da31a60556248db5036 (diff)
parent00eea3f8a07190dc6d2c4d0e927fed3e47502424 (diff)
downloadbionic-032a713549c12b79b5dde6ef3dff323b7698110d.zip
bionic-032a713549c12b79b5dde6ef3dff323b7698110d.tar.gz
bionic-032a713549c12b79b5dde6ef3dff323b7698110d.tar.bz2
Merge "libc: add missing O_CLOEXEC from <fcntl.h>" into gingerbread
-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);