diff options
-rw-r--r-- | libc/include/fcntl.h | 4 |
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); |