From 1798adad65ccf1c62ca1461872ee5dd4db324672 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Tue, 6 Feb 2024 23:59:20 -0600 Subject: [PATCH] fs_openat.hpp --- src/fs_openat.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/fs_openat.hpp b/src/fs_openat.hpp index bfbd5bbd..bca489ef 100644 --- a/src/fs_openat.hpp +++ b/src/fs_openat.hpp @@ -56,6 +56,16 @@ namespace fs return ((rv == -1) ? -errno : rv); } + static + inline + int + openat(const int dirfd_, + const ghc::filesystem::path &pathname_, + const int flags_) + { + return fs::openat(dirfd_,pathname_.string().c_str(),flags_); + } + static inline int