checkpoint

This commit is contained in:
Antonio SJ Musumeci 2021-03-28 12:34:30 -04:00
parent d9ab18282f
commit 0bb55624a4
361 changed files with 21008 additions and 1617 deletions

View file

@ -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_);
}
}