libc: add missing O_CLOEXEC from <fcntl.h>
Change-Id: Ie7ad57898e67800a9fe92bb52589d67ec30e1cd9
This commit is contained in:
parent
b9e49ad56e
commit
00eea3f8a0
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue