mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-12-05 06:10:10 -05:00
checkpoint
This commit is contained in:
parent
d9ab18282f
commit
0bb55624a4
361 changed files with 21008 additions and 1617 deletions
|
|
@ -18,6 +18,8 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "ghc/filesystem.hpp"
|
||||
|
||||
#include <string>
|
||||
|
||||
#include <fcntl.h>
|
||||
|
|
@ -34,7 +36,11 @@ namespace fs
|
|||
const struct timespec times_[2],
|
||||
const int flags_)
|
||||
{
|
||||
return ::utimensat(dirfd_,pathname_,times_,flags_);
|
||||
int rv;
|
||||
|
||||
rv = ::utimensat(dirfd_,pathname_,times_,flags_);
|
||||
|
||||
return ((rv == -1) ? -errno : rv);
|
||||
}
|
||||
|
||||
static
|
||||
|
|
@ -47,4 +53,15 @@ namespace fs
|
|||
{
|
||||
return fs::utimensat(dirfd_,pathname_.c_str(),times_,flags_);
|
||||
}
|
||||
|
||||
static
|
||||
inline
|
||||
int
|
||||
utimensat(const int dirfd_,
|
||||
const ghc::filesystem::path &pathname_,
|
||||
const struct timespec times_[2],
|
||||
const int flags_)
|
||||
{
|
||||
return fs::utimensat(dirfd_,pathname_.c_str(),times_,flags_);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue