Lines Matching refs:m_ec
43 void set_or_throw(std::error_code const& m_ec, std::error_code* ec, in set_or_throw() argument
47 *ec = m_ec;
51 __throw_filesystem_error(msg_s, p, p2, m_ec);
69 file_status create_file_status(std::error_code& m_ec, path const& p, in create_file_status() argument
73 if (ec) *ec = m_ec; in create_file_status()
74 if (m_ec && (m_ec.value() == ENOENT || m_ec.value() == ENOTDIR)) { in create_file_status()
77 else if (m_ec) { in create_file_status()
78 set_or_throw(m_ec, ec, "posix_stat", p); in create_file_status()
101 std::error_code m_ec; in posix_stat() local
103 m_ec = detail::capture_errno(); in posix_stat()
104 return create_file_status(m_ec, p, path_stat, ec); in posix_stat()
115 std::error_code m_ec; in posix_lstat() local
117 m_ec = detail::capture_errno(); in posix_lstat()
118 return create_file_status(m_ec, p, path_stat, ec); in posix_lstat()
183 std::error_code m_ec; in __copy() local
186 ? detail::posix_lstat(from, f_st, &m_ec) in __copy()
187 : detail::posix_stat(from, f_st, &m_ec); in __copy()
188 if (m_ec) in __copy()
189 return set_or_throw(m_ec, ec, "copy", from, to); in __copy()
192 const file_status t = sym_status ? detail::posix_lstat(to, t_st, &m_ec) in __copy()
193 : detail::posix_stat(to, t_st, &m_ec); in __copy()
196 return set_or_throw(m_ec, ec, "copy", from, to); in __copy()
250 std::error_code m_ec; in __copy() local
251 for (; it != directory_iterator(); it.increment(m_ec)) { in __copy()
252 if (m_ec) return set_or_throw(m_ec, ec, "copy", from, to); in __copy()
266 std::error_code m_ec; in __copy_file() local
267 auto from_st = detail::posix_stat(from, &m_ec); in __copy_file()
269 if (not m_ec) in __copy_file() local
270 m_ec = make_error_code(errc::not_supported); in __copy_file()
271 set_or_throw(m_ec, ec, "copy_file", from, to); in __copy_file()
275 auto to_st = detail::posix_stat(to, &m_ec); in __copy_file()
277 set_or_throw(m_ec, ec, "copy_file", from, to); in __copy_file()
324 std::error_code m_ec; in __create_directories() local
325 auto const st = detail::posix_stat(p, &m_ec); in __create_directories()
327 set_or_throw(m_ec, ec, "create_directories", p); in __create_directories()
342 const file_status parent_st = status(parent, m_ec); in __create_directories()
344 set_or_throw(m_ec, ec, "create_directories", p); in __create_directories()
447 std::error_code m_ec; in __file_size() local
449 file_status fst = detail::posix_stat(p, st, &m_ec); in __file_size()
451 if (!m_ec) in __file_size()
452 m_ec = make_error_code(errc::not_supported); in __file_size()
453 set_or_throw(m_ec, ec, "file_size", p); in __file_size()
463 std::error_code m_ec; in __hard_link_count() local
465 detail::posix_stat(p, st, &m_ec); in __hard_link_count()
466 if (m_ec) { in __hard_link_count()
467 set_or_throw(m_ec, ec, "hard_link_count", p); in __hard_link_count()
478 std::error_code m_ec; in __fs_is_empty() local
480 auto st = detail::posix_stat(p, pst, &m_ec); in __fs_is_empty()
481 if (m_ec) { in __fs_is_empty()
482 set_or_throw(m_ec, ec, "is_empty", p); in __fs_is_empty()
486 m_ec = make_error_code(errc::not_supported); in __fs_is_empty()
487 set_or_throw(m_ec, ec, "is_empty"); in __fs_is_empty()
662 std::error_code m_ec; in __last_write_time() local
664 detail::posix_stat(p, st, &m_ec); in __last_write_time()
665 if (m_ec) { in __last_write_time()
666 set_or_throw(m_ec, ec, "last_write_time", p); in __last_write_time()
683 std::error_code m_ec; in __last_write_time() local
692 file_status fst = detail::posix_stat(p, st, &m_ec); in __last_write_time()
693 if (m_ec && !status_known(fst)) { in __last_write_time()
694 set_or_throw(m_ec, ec, "last_write_time", p); in __last_write_time()
710 m_ec = detail::capture_errno(); in __last_write_time()
725 m_ec = detail::capture_errno(); in __last_write_time()
728 if (m_ec) in __last_write_time()
729 set_or_throw(m_ec, ec, "last_write_time", p); in __last_write_time()
747 std::error_code m_ec; in __permissions() local
748 file_status st = resolve_symlinks ? detail::posix_stat(p, &m_ec) in __permissions()
749 : detail::posix_lstat(p, &m_ec); in __permissions()
751 if (m_ec) return set_or_throw(m_ec, ec, "permissions", p); in __permissions()
780 std::error_code m_ec; in __read_symlink() local
897 std::error_code m_ec; in __temp_directory_path() local
898 if (!exists(p, m_ec) || !is_directory(p, m_ec)) { in __temp_directory_path()
899 if (!m_ec || m_ec == make_error_code(errc::no_such_file_or_directory)) in __temp_directory_path()
900 m_ec = make_error_code(errc::not_a_directory); in __temp_directory_path()
901 set_or_throw(m_ec, ec, "temp_directory_path"); in __temp_directory_path()