25#if defined(OPENVPN_PLATFORM_LINUX)
28 const std::uint64_t nanoseconds_since_epooch)
30 struct timespec times[2];
31 times[0].tv_sec = nanoseconds_since_epooch / std::uint64_t(1000000000);
32 times[0].tv_nsec = nanoseconds_since_epooch % std::uint64_t(1000000000);
34 if (::utimensat(AT_FDCWD, filename.c_str(), times, 0) == -1)
40 const std::uint64_t nanoseconds_since_epooch)
42 struct timespec times[2];
43 times[0].tv_sec = nanoseconds_since_epooch / std::uint64_t(1000000000);
44 times[0].tv_nsec = nanoseconds_since_epooch % std::uint64_t(1000000000);
46 if (::futimens(fd, times) == -1)
54 const std::uint64_t nanoseconds_since_epooch)
60 const std::uint64_t nanoseconds_since_epooch)
Support deferred server-side state creation when client connects.
int update_file_mod_time_nanoseconds(const std::string &filename, const std::uint64_t nanoseconds_since_epooch)