From 37b42c179bb00d05cb47c739cb95283548f84fb2 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 30 May 2022 19:51:44 +0000 Subject: Add openc_*at functions Signed-off-by: Laurent Bercot --- src/libunixonacid/openc_readat.c | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/libunixonacid/openc_readat.c (limited to 'src/libunixonacid/openc_readat.c') diff --git a/src/libunixonacid/openc_readat.c b/src/libunixonacid/openc_readat.c new file mode 100644 index 0000000..dc092b6 --- /dev/null +++ b/src/libunixonacid/openc_readat.c @@ -0,0 +1,10 @@ +/* ISC license. */ + +#include + +#include + +int openc_readat (int fd, char const *name) +{ + return open2_at(fd, name, O_RDONLY | O_NONBLOCK | O_CLOEXEC) ; +} -- cgit v1.2.3