mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-12-01 20:36:37 -05:00
general code cleanup
This commit is contained in:
parent
5a1a60742e
commit
9d9ee7b71d
178 changed files with 5100 additions and 5255 deletions
|
|
@ -28,30 +28,30 @@ namespace fs
|
|||
static
|
||||
inline
|
||||
int
|
||||
access(const int dirfd,
|
||||
const std::string &path,
|
||||
const int mode,
|
||||
const int flags)
|
||||
access(const int dirfd_,
|
||||
const std::string &path_,
|
||||
const int mode_,
|
||||
const int flags_)
|
||||
{
|
||||
return ::faccessat(dirfd,path.c_str(),mode,flags);
|
||||
return ::faccessat(dirfd_,path_.c_str(),mode_,flags_);
|
||||
}
|
||||
|
||||
static
|
||||
inline
|
||||
int
|
||||
access(const std::string &path,
|
||||
const int mode,
|
||||
const int flags)
|
||||
access(const std::string &path_,
|
||||
const int mode_,
|
||||
const int flags_)
|
||||
{
|
||||
return fs::access(AT_FDCWD,path,mode,flags);
|
||||
return fs::access(AT_FDCWD,path_,mode_,flags_);
|
||||
}
|
||||
|
||||
static
|
||||
inline
|
||||
int
|
||||
eaccess(const std::string &path,
|
||||
const int mode)
|
||||
eaccess(const std::string &path_,
|
||||
const int mode_)
|
||||
{
|
||||
return fs::access(path,mode,AT_EACCESS);
|
||||
return fs::access(path_,mode_,AT_EACCESS);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue