12#include <sys/utsname.h>
28 return ::fopen(
p.c_str(), mode);
30 return ::fopen(
p.utf8string().c_str(), mode);
34fs::path
AbsPathJoin(
const fs::path& base,
const fs::path& path)
36 assert(base.is_absolute());
37 return path.empty() ? base : fs::path(base / path);
Bridge operations to C stdio.
FILE * fopen(const fs::path &p, const char *mode)
fs::path AbsPathJoin(const fs::path &base, const fs::path &path)
Helper function for joining two paths.
static std::string GetErrorReason()
std::string SysErrorString(int err)
Return system error string from errno value.
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.