Merge "libc: add missing O_CLOEXEC from <fcntl.h>" into gingerbread
This commit is contained in:

committed by
Android (Google) Code Review

commit
032a713549
@@ -39,6 +39,10 @@ __BEGIN_DECLS
|
|||||||
#define O_ASYNC FASYNC
|
#define O_ASYNC FASYNC
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef O_CLOEXEC
|
||||||
|
#define O_CLOEXEC 02000000
|
||||||
|
#endif
|
||||||
|
|
||||||
extern int open(const char* path, int mode, ...);
|
extern int open(const char* path, int mode, ...);
|
||||||
extern int openat(int fd, 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);
|
extern int unlinkat(int dirfd, const char *pathname, int flags);
|
||||||
|
Reference in New Issue
Block a user