• Home
  • Raw
  • Download

Lines Matching refs:error_code

66 std::error_code widenPath(const Twine &Path8,
91 if (std::error_code EC = llvm::sys::fs::current_path(CurPath))
163 std::error_code current_path(SmallVectorImpl<char> &result) {
185 std::error_code create_directory(const Twine &path, bool IgnoreExisting,
189 if (std::error_code ec = widenPath(path, path_utf16))
198 return std::error_code();
202 std::error_code create_link(const Twine &to, const Twine &from) {
206 if (std::error_code ec = widenPath(from, wide_from))
208 if (std::error_code ec = widenPath(to, wide_to))
214 return std::error_code();
217 std::error_code remove(const Twine &path, bool IgnoreNonExisting) {
221 if (std::error_code EC = status(path, ST)) {
224 return std::error_code();
227 if (std::error_code ec = widenPath(path, path_utf16))
232 std::error_code EC = mapWindowsError(::GetLastError());
236 return std::error_code();
239 std::error_code EC = mapWindowsError(::GetLastError());
243 return std::error_code();
246 std::error_code rename(const Twine &from, const Twine &to) {
250 if (std::error_code ec = widenPath(from, wide_from))
252 if (std::error_code ec = widenPath(to, wide_to))
255 std::error_code ec = std::error_code();
265 return std::error_code();
278 return std::error_code();
290 std::error_code resize_file(int FD, uint64_t Size) {
296 return std::error_code(error, std::generic_category());
299 std::error_code access(const Twine &Path, AccessMode Mode) {
302 if (std::error_code EC = widenPath(Path, PathUtf16))
319 return std::error_code();
338 std::error_code equivalent(const Twine &A, const Twine &B, bool &result) {
340 if (std::error_code ec = status(A, fsA))
342 if (std::error_code ec = status(B, fsB))
345 return std::error_code();
373 static std::error_code getStatus(HANDLE FileHandle, file_status &Result) {
385 return std::error_code();
391 return std::error_code();
394 return std::error_code();
410 return std::error_code();
425 std::error_code status(const Twine &path, file_status &result) {
432 return std::error_code();
435 if (std::error_code ec = widenPath(path8, path_utf16))
466 std::error_code status(int FD, file_status &Result) {
471 std::error_code setLastModificationAndAccessTime(int FD, TimeValue Time) {
480 return std::error_code();
483 std::error_code mapped_file_region::init(int FD, uint64_t Offset,
506 std::error_code ec = mapWindowsError(GetLastError());
522 std::error_code ec = mapWindowsError(GetLastError());
531 std::error_code ec = mapWindowsError(GetLastError());
542 return std::error_code();
546 uint64_t offset, std::error_code &ec)
579 std::error_code detail::directory_iterator_construct(detail::DirIterState &it,
583 if (std::error_code ec = widenPath(path, path_utf16))
617 if (std::error_code ec =
627 return std::error_code();
630 std::error_code detail::directory_iterator_destruct(detail::DirIterState &it) {
636 return std::error_code();
639 std::error_code detail::directory_iterator_increment(detail::DirIterState &it) {
656 if (std::error_code ec =
662 return std::error_code();
665 std::error_code openFileForRead(const Twine &Name, int &ResultFD) {
668 if (std::error_code EC = widenPath(Name, PathUTF16))
677 std::error_code EC = mapWindowsError(LastError);
695 return std::error_code();
698 std::error_code openFileForWrite(const Twine &Name, int &ResultFD,
706 if (std::error_code EC = widenPath(Name, PathUTF16))
727 std::error_code EC = mapWindowsError(LastError);
752 return std::error_code();
835 std::error_code UTF8ToUTF16(llvm::StringRef utf8,
858 return std::error_code();
862 std::error_code UTF16ToCodePage(unsigned codepage, const wchar_t *utf16,
888 return std::error_code();
891 std::error_code UTF16ToUTF8(const wchar_t *utf16, size_t utf16_len,
896 std::error_code UTF16ToCurCP(const wchar_t *utf16, size_t utf16_len,