From 00eea3f8a07190dc6d2c4d0e927fed3e47502424 Mon Sep 17 00:00:00 2001 From: David 'Digit' Turner Date: Sun, 26 Sep 2010 20:03:16 +0200 Subject: [PATCH] libc: add missing O_CLOEXEC from Change-Id: Ie7ad57898e67800a9fe92bb52589d67ec30e1cd9 --- libc/include/fcntl.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libc/include/fcntl.h b/libc/include/fcntl.h index 59e7135cd..7219dd744 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);