/llvm-project/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.last_write_time/ |
H A D | last_write_time.pass.cpp | 20 // file_time_type last_write_time(const path& p); 21 // file_time_type last_write_time(const path& p, std::error_code& ec) noexcept; 22 // void last_write_time(const path& p, file_time_type new_time); 23 // void last_write_time(const path& p, file_time_type new_type, 47 using Sec = std::chrono::duration<file_time_type::rep>; 50 using MilliSec = std::chrono::duration<file_time_type::rep, std::milli>; 51 using MicroSec = std::chrono::duration<file_time_type::rep, std::micro>; 52 using NanoSec = std::chrono::duration<file_time_type::rep, std::nano>; 112 bool ConvertToTimeSpec(TimeSpec& ts, file_time_type ft) { in ConvertToTimeSpec() 137 bool ConvertFromTimeSpec(file_time_type [all...] |
/llvm-project/libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.obs/ |
H A D | last_write_time.pass.cpp | 37 static_assert(std::is_same<decltype(e.last_write_time()), file_time_type>::value, in signatures() 39 static_assert(std::is_same<decltype(e.last_write_time(ec)), file_time_type>::value, in signatures() 56 file_time_type expect = last_write_time(ent); in basic() 67 file_time_type expect = last_write_time(ent); in basic() 78 file_time_type expect = last_write_time(sym); in basic() 112 assert(ent.last_write_time(ec) == file_time_type::min()); in error_reporting() 125 file_time_type expect_bad = last_write_time(static_env.BadSymlink, ec); in error_reporting() 126 assert(expect_bad == file_time_type::min()); in error_reporting() 149 file_time_type expect_good = last_write_time(file); in error_reporting() 158 assert(ent.last_write_time(ec) == file_time_type::min()); in error_reporting() [all …]
|
/llvm-project/libcxx/test/libcxx/input.output/filesystems/class.directory_entry/directory_entry.mods/ |
H A D | last_write_time.pass.cpp | 53 file_time_type old_time = last_write_time(file); in last_write_time_not_representable_error() 56 file_time_type start_time = file_time_type::clock::now() - hours(1); in last_write_time_not_representable_error() 62 file_time_type rep_value; in last_write_time_not_representable_error() 79 assert(ent.last_write_time(ec) == file_time_type::min()); in last_write_time_not_representable_error() 83 assert(last_write_time(file, ec) == file_time_type::min()); in last_write_time_not_representable_error()
|
/llvm-project/libcxx/docs/DesignDocs/ |
H A D | FileTimeType.rst | 14 write time of a file or directory. The interfaces use the ``file_time_type`` 21 that the resolution and range of file_time_type reflect the operating 54 using file_time_type = _FilesystemClock::time_point; 72 ``file_time_type`` to be less than that of nanoseconds. This is what libc++'s 73 initial implementation of ``file_time_type`` did; it's also what 130 file_time_type tp = last_write_time(p); // BAD! Throws value_too_large. 152 We should also consider the opposite problem of having a ``file_time_type`` 160 values which cause this are ``file_time_type::min()`` and 161 ``file_time_type::max()``. As a result, the following code would throw: 166 last_write_time("/tmp/foo", file_time_type::max()); // Throws [all …]
|
/llvm-project/libcxx/test/std/input.output/filesystems/fs.filesystem.synopsis/ |
H A D | file_time_type.pass.cpp | 29 using Clock = file_time_type::clock; in test_trivial_clock() 31 ASSERT_SAME_TYPE(decltype(Clock::now()), file_time_type); in test_trivial_clock() 32 ASSERT_SAME_TYPE(Clock::time_point, file_time_type); in test_trivial_clock()
|
H A D | file_time_type_resolution.compile.pass.cpp | 27 using Dur = file_time_type::duration;
|
/llvm-project/libcxx/include/__filesystem/ |
H A D | directory_entry.h | 17 #include <__filesystem/file_time_type.h> 153 _LIBCPP_HIDE_FROM_ABI file_time_type last_write_time() const { return __get_write_time(); } in last_write_time() 155 _LIBCPP_HIDE_FROM_ABI file_time_type last_write_time(error_code& __ec) const noexcept { 215 file_time_type __write_time_; 228 __write_time_ = file_time_type::min(); in __create_iter_result() 249 __create_iter_cached_result(file_type __ft, uintmax_t __size, perms __perm, file_time_type __write_time) { 423 _LIBCPP_HIDE_FROM_ABI file_time_type __get_write_time(error_code* __ec = nullptr) const { in __dir_element_proxy() 437 if (filesystem::exists(__st) && __data_.__write_time_ == file_time_type::min())
|
H A D | operations.h | 17 #include <__filesystem/file_time_type.h> 60 _LIBCPP_EXPORTED_FROM_ABI file_time_type __last_write_time(const path&, error_code* __ec = nullptr); 61 _LIBCPP_EXPORTED_FROM_ABI void __last_write_time(const path&, file_time_type __new_time, error_code* __ec = nullptr); 215 inline _LIBCPP_HIDE_FROM_ABI file_time_type last_write_time(const path& __p) { return __last_write_time(__p); } in last_write_time() 216 inline _LIBCPP_HIDE_FROM_ABI file_time_type last_write_time(const path& __p, error_code& __ec) noexcept { in last_write_time() 219 inline _LIBCPP_HIDE_FROM_ABI void last_write_time(const path& __p, file_time_type __t) { __last_write_time(__p, __t); } in last_write_time() 220 inline _LIBCPP_HIDE_FROM_ABI void last_write_time(const path& __p, file_time_type __t, error_code& __ec) noexcept { in last_write_time()
|
H A D | file_time_type.h | 25 typedef chrono::time_point<_FilesystemClock> file_time_type; typedef
|
/llvm-project/libcxx/src/filesystem/ |
H A D | error.h | 70 inline constexpr file_time_type error_value<file_time_type>() { in __win_err_to_errc() 71 return file_time_type::min(); in __win_err_to_errc()
|
H A D | time_utils.h | 271 using fs_time = time_util<file_time_type, int64_t, TimeSpec>; 273 using fs_time = time_util<file_time_type, time_t, TimeSpec>; 334 inline file_time_type __extract_last_write_time(const path& p, const StatT& st, error_code* ec) { 336 ErrorHandler<file_time_type> err("last_write_time", ec, &p);
|
H A D | file_descriptor.h | 99 inline file_time_type get_write_time(const WIN32_FIND_DATAW& data) { 104 return file_time_type::min();
|
H A D | operations.cpp | 683 file_time_type __last_write_time(const path& p, error_code* ec) { in __read_symlink() 685 ErrorHandler<file_time_type> err("last_write_time", ec, &p); in __read_symlink() 695 void __last_write_time(const path& p, file_time_type new_time, error_code* ec) { in __remove()
|
/llvm-project/libcxx/test/libcxx/input.output/filesystems/ |
H A D | convert_file_time.pass.cpp | 34 using fs::file_time_type; 38 static_assert(sizeof(fs::file_time_type::rep) <= 8, ""); 282 { assert((test_case<file_time_type, time_t, struct timespec>::test())); } in main()
|
/llvm-project/libcxx/include/ |
H A D | filesystem | 215 file_time_type last_write_time() const; 216 file_time_type last_write_time(error_code& ec) const noexcept; 369 typedef chrono::time_point<trivial-clock> file_time_type; 470 file_time_type last_write_time(const path& p); 471 file_time_type last_write_time(const path& p, error_code& ec) noexcept; 472 void last_write_time(const path& p, file_time_type new_time); 473 void last_write_time(const path& p, file_time_type new_time, 547 # include <__filesystem/file_time_type.h>
|
H A D | CMakeLists.txt | 353 __filesystem/file_time_type.h 1408 __cxx03/__filesystem/file_time_type.h
|
H A D | module.modulemap | 1227 module file_time_type { header "__filesystem/file_time_type.h" }
|
/llvm-project/libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.mods/ |
H A D | refresh.pass.cpp | 320 CHECK_ACCESS(last_write_time, file_time_type::min()); in access_cache_after_refresh_fails() 337 CHECK_ACCESS(last_write_time, file_time_type::min()); in access_cache_after_refresh_fails() 355 CHECK_ACCESS(last_write_time, file_time_type::min()); in access_cache_after_refresh_fails()
|
/llvm-project/clang/lib/Tooling/Inclusions/Stdlib/ |
H A D | StdTsSymbolMap.inc | 22 SYMBOL(file_time_type, std::experimental::filesystem::, <experimental/filesystem>)
|
H A D | StdSymbolMap.inc | 3530 SYMBOL(file_time_type, std::filesystem::, <filesystem>)
|
/llvm-project/libcxx/modules/std/ |
H A D | filesystem.inc | 49 using std::filesystem::file_time_type;
|
/llvm-project/llvm/utils/gn/secondary/libcxx/include/ |
H A D | BUILD.gn | 748 "__cxx03/__filesystem/file_time_type.h", 1316 "__filesystem/file_time_type.h",
|