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_exclcoe.c | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/libstddjb/open_exclcoe.c (limited to 'src/libstddjb/open_exclcoe.c') diff --git a/src/libstddjb/open_exclcoe.c b/src/libstddjb/open_exclcoe.c new file mode 100644 index 0000000..b24786c --- /dev/null +++ b/src/libstddjb/open_exclcoe.c @@ -0,0 +1,10 @@ +/* ISC license. */ + +#include +#include +#include + +int open_exclcoe (char const *fn) +{ + return open3(fn, O_WRONLY | O_CREAT | O_EXCL | O_NONBLOCK | O_CLOEXEC, 0666) ; +} -- cgit v1.3.1