From 9806a4f3bb81f71c46735a2b378cb074fef6e27b Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 26 Oct 2020 08:59:58 +0000 Subject: Prepare for 2.9.4.0; add open*coe() functions. --- src/libstddjb/open_writecoe.c | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/libstddjb/open_writecoe.c (limited to 'src/libstddjb/open_writecoe.c') diff --git a/src/libstddjb/open_writecoe.c b/src/libstddjb/open_writecoe.c new file mode 100644 index 0000000..d04c4c5 --- /dev/null +++ b/src/libstddjb/open_writecoe.c @@ -0,0 +1,10 @@ +/* ISC license. */ + +#include +#include +#include + +int open_writecoe (char const *fn) +{ + return open2(fn, O_WRONLY | O_NONBLOCK | O_CLOEXEC) ; +} -- cgit v1.2.3