From ad90bc1107ef9a76f4ca530cc41e86d4f352e3d9 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 26 Oct 2020 12:52:31 +0000 Subject: Change new function names to openc_*; update deps.mak --- src/libstddjb/openbc_read.c | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/libstddjb/openbc_read.c (limited to 'src/libstddjb/openbc_read.c') diff --git a/src/libstddjb/openbc_read.c b/src/libstddjb/openbc_read.c new file mode 100644 index 0000000..4783780 --- /dev/null +++ b/src/libstddjb/openbc_read.c @@ -0,0 +1,10 @@ +/* ISC license. */ + +#include +#include +#include + +int openbc_read (char const *fn) +{ + return open2(fn, O_RDONLY | O_CLOEXEC) ; +} -- cgit v1.2.3