mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
fs_openat.hpp
This commit is contained in:
parent
af4301f889
commit
287efc5923
1 changed files with 15 additions and 0 deletions
|
|
@ -38,4 +38,19 @@ namespace fs
|
|||
|
||||
return ((rv == -1) ? -errno : rv);
|
||||
}
|
||||
|
||||
static
|
||||
inline
|
||||
int
|
||||
openat(const int dirfd_,
|
||||
const char *pathname_,
|
||||
const int flags_,
|
||||
const mode_t mode_)
|
||||
{
|
||||
int rv;
|
||||
|
||||
rv = ::openat(dirfd_,pathname_,flags_);
|
||||
|
||||
return ((rv == -1) ? -errno : rv);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue