Lines Matching refs:detail

57 using detail::capture_errno;
58 using detail::ErrorHandler;
59 using detail::StatT;
60 using detail::TimeSpec;
87 …std::unique_ptr<path::value_type, decltype(&::free)> hold(detail::realpath(p.c_str(), nullptr), &:… in __canonical()
98 if ((ret = detail::realpath(p.c_str(), buff)) == nullptr) in __canonical()
114 …sym_status || sym_status2 ? detail::posix_lstat(from, f_st, &m_ec1) : detail::posix_stat(from, f_s… in __copy()
119 …const file_status t = sym_status ? detail::posix_lstat(to, t_st, &m_ec1) : detail::posix_stat(to, … in __copy()
125 (exists(t) && detail::stat_equivalent(f_st, t_st))) { in __copy()
178 namespace detail { namespace
260 using detail::FileDescriptor; in __copy_file()
281 file_status to_st = detail::posix_stat(to, to_stat_path, &m_ec); in __copy_file()
289 if (to_exists && detail::stat_equivalent(from_stat, to_stat_path)) in __copy_file()
297 auto from_time = detail::extract_mtime(from_stat); in __copy_file()
298 auto to_time = detail::extract_mtime(to_stat_path); in __copy_file()
325 if (!detail::stat_equivalent(to_stat_path, to_fd.get_stat())) in __copy_file()
329 if (detail::posix_fchmod(to_fd, from_stat, m_ec)) in __copy_file()
331 if (detail::posix_ftruncate(to_fd, 0, m_ec)) in __copy_file()
335 if (!detail::copy_file_impl(from_fd, to_fd, m_ec)) { in __copy_file()
361 auto const st = detail::posix_stat(p, &m_ec); in __create_directories()
393 if (detail::mkdir(p.c_str(), static_cast<int>(perms::all)) == 0) in __create_directory()
411 file_status st = detail::posix_stat(attributes, attr_stat, &mec); in __create_directory()
417 if (detail::mkdir(p.c_str(), attr_stat.st_mode) == 0) in __create_directory()
433 if (detail::symlink_dir(from.c_str(), to.c_str()) == -1) in __create_directory_symlink()
439 if (detail::link(from.c_str(), to.c_str()) == -1) in __create_hard_link()
445 if (detail::symlink_file(from.c_str(), to.c_str()) == -1) in __create_symlink()
487 unique_ptr<path::value_type, Deleter> hold(detail::getcwd(ptr, size), deleter); in __current_path()
496 if (detail::chdir(p.c_str()) == -1) in __current_path()
505 auto s1 = detail::posix_stat(p1.native(), st1, &ec1); in __equivalent()
508 auto s2 = detail::posix_stat(p2.native(), st2, &ec2); in __equivalent()
512 return detail::stat_equivalent(st1, st2); in __equivalent()
520 file_status fst = detail::posix_stat(p, st, &m_ec); in __file_size()
536 detail::posix_stat(p, st, &m_ec); in __hard_link_count()
547 auto st = detail::posix_stat(p, pst, &m_ec); in __fs_is_empty()
569 detail::posix_stat(p, st, &m_ec); in __last_write_time()
572 return detail::__extract_last_write_time(p, st, ec); in __last_write_time()
576 using detail::fs_time; in __last_write_time()
583 detail::WinHandle h(p.c_str(), FILE_WRITE_ATTRIBUTES, 0); in __last_write_time()
585 return err.report(detail::make_windows_error(GetLastError())); in __last_write_time()
588 return err.report(detail::make_windows_error(GetLastError())); in __last_write_time()
597 file_status fst = detail::posix_stat(p, st, &m_ec); in __last_write_time()
600 tbuf[0] = detail::extract_atime(st); in __last_write_time()
608 detail::set_file_times(p, tbuf, m_ec); in __last_write_time()
629 … file_status st = resolve_symlinks ? detail::posix_stat(p, &m_ec) : detail::posix_lstat(p, &m_ec); in __permissions()
641 const auto real_perms = static_cast<detail::ModeT>(prms & perms::mask); in __permissions()
645 if (detail::fchmodat(AT_FDCWD, p.c_str(), real_perms, flags) == -1) { in __permissions()
673 if (detail::lstat(p.c_str(), &sb) == -1) { in __read_symlink()
679 detail::SSizeT ret; in __read_symlink()
680 if ((ret = detail::readlink(p.c_str(), buff.get(), size)) == -1) in __read_symlink()
691 if (detail::remove(p.c_str()) == -1) { in __remove()
775 ec = detail::capture_errno(); in remove_all_impl()
784 auto [str, type] = detail::posix_readdir(stream, ec); in remove_all_impl()
797 ec = detail::capture_errno(); in remove_all_impl()
804 ec = detail::capture_errno(); in remove_all_impl()
820 ec = detail::capture_errno(); in remove_all_impl()
845 if (detail::rename(from.c_str(), to.c_str()) == -1) in __rename()
851 if (detail::truncate(p.c_str(), static_cast< ::off_t>(size)) == -1) in __resize_file()
858 detail::StatVFS m_svfs = {}; in __space()
859 if (detail::statvfs(p.c_str(), &m_svfs) == -1) { in __space()
876 file_status __status(const path& p, error_code* ec) { return detail::posix_stat(p, ec); } in __status()
878 file_status __symlink_status(const path& p, error_code* ec) { return detail::posix_lstat(p, ec); } in __symlink_status()
887 return err.report(detail::make_windows_error(GetLastError())); in __temp_directory_path()
913 file_status st = detail::posix_stat(p, &m_ec); in __temp_directory_path()