OSDN Git Service
(root)
/
android-x86
/
bionic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9e49ad
)
libc: add missing O_CLOEXEC from <fcntl.h>
author
David 'Digit' Turner
<digit@google.com>
Sun, 26 Sep 2010 18:03:16 +0000
(20:03 +0200)
committer
David 'Digit' Turner
<digit@google.com>
Mon, 27 Sep 2010 15:33:40 +0000
(17:33 +0200)
Change-Id: Ie7ad57898e67800a9fe92bb52589d67ec30e1cd9
libc/include/fcntl.h
patch
|
blob
|
history
diff --git
a/libc/include/fcntl.h
b/libc/include/fcntl.h
index
59e7135
..
7219dd7
100644
(file)
--- 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);