Add support for FUSE passthrough
Some checks are pending
CodeQL / Analyze (push) Waiting to run
mkdocs / deploy (push) Waiting to run

This commit is contained in:
trapexit 2025-06-05 23:47:42 -05:00 • committed by GitHub
parent 92312c8507
commit e310d24615
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
412 changed files with 43707 additions and 17432 deletions

View file

@ -18,24 +18,56 @@
#pragma once
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <filesystem>
#include <string>
#include <errno.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
namespace fs
{
static
inline
int
openat(const int dirfd_,
const char *pathname_,
const int flags_)
openat(const int dirfd_,
const char *pathname_,
const int flags_,
const mode_t mode_ = 0)
{
int rv;
rv = ::openat(dirfd_,pathname_,flags_);
rv = ::openat(dirfd_,pathname_,flags_,mode_);
return ((rv == -1) ? -errno : rv);
}
static
inline
int
openat(const int dirfd_,
const std::string &pathname_,
const int flags_,
const mode_t mode_ = 0)
{
return fs::openat(dirfd_,
pathname_.c_str(),
flags_,
mode_);
}
static
inline
int
openat(const int dirfd_,
const std::filesystem::path &pathname_,
const int flags_,
const mode_t mode_ = 0)
{
return fs::openat(dirfd_,
pathname_.c_str(),
flags_,
mode_);
}
}