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