aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBrent Cook <busterb@gmail.com>2017-01-16 09:56:20 -0600
committerBrent Cook <busterb@gmail.com>2017-01-16 10:59:15 -0600
commitf21bd20c7e1d073db7a5e6b37928caae492eb1c5 (patch)
tree4652e8e2db4de4bb89525d021fbbb7454d887cec /include
parent51a53876b623f751e076fa66cdf2b99df06b2028 (diff)
downloadportable-f21bd20c7e1d073db7a5e6b37928caae492eb1c5.tar.gz
portable-f21bd20c7e1d073db7a5e6b37928caae492eb1c5.tar.bz2
portable-f21bd20c7e1d073db7a5e6b37928caae492eb1c5.zip
add open(2) shim to handle O_BINARY and O_CLOEXEC
Diffstat (limited to 'include')
-rw-r--r--include/compat/fcntl.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/compat/fcntl.h b/include/compat/fcntl.h
index 99c2d58..edc468a 100644
--- a/include/compat/fcntl.h
+++ b/include/compat/fcntl.h
@@ -29,4 +29,10 @@
29#define FD_CLOEXEC 1 29#define FD_CLOEXEC 1
30#endif 30#endif
31 31
32int posix_open(const char *path, ...);
33
34#ifndef NO_REDEF_POSIX_FUNCTIONS
35#define open(path, ...) posix_open(path, __VA_ARGS__)
36#endif
37
32#endif 38#endif