Home | History | Annotate | Download | only in Windows

Lines Matching full:error_code

50   error_code UTF8ToUTF16(StringRef utf8, SmallVectorImpl<wchar_t> &utf16) {
72 return error_code::success();
75 error_code UTF16ToUTF8(const wchar_t *utf16, size_t utf16_len,
102 return error_code::success();
105 error_code TempDir(SmallVectorImpl<wchar_t> &result) {
118 return error_code::success();
134 static error_code createUniqueEntity(const Twine &model, int &result_fd,
143 if (error_code ec = UTF8ToUTF16(m, model_utf16)) return ec;
151 if (error_code ec = TempDir(temp_dir)) return ec;
205 error_code ec = windows_error(::GetLastError());
230 error_code EC = make_error_code(windows_error(::GetLastError()));
239 error_code EC = windows_error(::GetLastError());
248 if (error_code ec = UTF16ToUTF8(random_path_utf16.begin(),
263 return error_code::success();
295 error_code current_path(SmallVectorImpl<char> &result) {
336 return error_code::success();
339 error_code create_directory(const Twine &path, bool &existed) {
343 if (error_code ec = UTF8ToUTF16(path.toStringRef(path_storage),
348 error_code ec = windows_error(::GetLastError());
356 return error_code::success();
359 error_code create_hard_link(const Twine &to, const Twine &from) {
369 if (error_code ec = UTF8ToUTF16(f, wide_from)) return ec;
370 if (error_code ec = UTF8ToUTF16(t, wide_to)) return ec;
375 return error_code::success();
378 error_code create_symlink(const Twine &to, const Twine &from) {
392 if (error_code ec = UTF8ToUTF16(f, wide_from)) return ec;
393 if (error_code ec = UTF8ToUTF16(t, wide_to)) return ec;
398 return error_code::success();
401 error_code remove(const Twine &path, bool &existed) {
406 error_code EC = status(path, st);
411 return error_code::success();
416 if (error_code ec = UTF8ToUTF16(path.toStringRef(path_storage),
422 error_code ec = windows_error(::GetLastError());
430 error_code ec = windows_error(::GetLastError());
438 return error_code::success();
441 error_code rename(const Twine &from, const Twine &to) {
451 if (error_code ec = UTF8ToUTF16(f, wide_from)) return ec;
452 if (error_code ec = UTF8ToUTF16(t, wide_to)) return ec;
454 error_code ec = error_code::success();
458 return error_code::success();
471 error_code resize_file(const Twine &path, uint64_t size) {
475 if (error_code ec = UTF8ToUTF16(path.toStringRef(path_storage),
481 return error_code(errno, generic_category());
488 return error_code(error, generic_category());
491 error_code exists(const Twine &path, bool &result) {
495 if (error_code ec = UTF8ToUTF16(path.toStringRef(path_storage),
503 error_code ec = make_error_code(windows_error(::GetLastError()));
510 return error_code::success();
547 error_code equivalent(const Twine &A, const Twine &B, bool &result) {
549 if (error_code ec = status(A, fsA)) return ec;
550 if (error_code ec = status(B, fsB)) return ec;
552 return error_code::success();
578 static error_code getStatus(HANDLE FileHandle, file_status &Result) {
590 return error_code::success();
596 return error_code::success();
599 return error_code::success();
615 return error_code::success();
619 error_code EC = windows_error(::GetLastError());
630 error_code status(const Twine &path, file_status &result) {
637 return error_code::success();
640 if (error_code ec = UTF8ToUTF16(path8, path_utf16))
671 error_code status(int FD, file_status &Result) {
676 error_code setLastModificationAndAccessTime(int FD, TimeValue Time) {
685 return error_code::success();
688 error_code get_magic(const Twine &path, uint32_t len,
695 if (error_code ec = UTF8ToUTF16(path.toStringRef(path_storage),
716 error_code ec = windows_error(::GetLastError());
727 return error_code::success();
730 error_code mapped_file_region::init(int FD, bool CloseFD, uint64_t Offset) {
756 error_code ec = windows_error(GetLastError());
777 error_code ec = windows_error(GetLastError());
791 error_code ec = windows_error(GetLastError());
812 return error_code::success();
819 error_code &ec)
864 error_code &ec)
934 error_code detail::directory_iterator_construct(detail::DirIterState &it,
938 if (error_code ec = UTF8ToUTF16(path,
963 error_code ec = windows_error(::GetLastError());
973 if (error_code ec = UTF16ToUTF8(FirstFind.cFileName,
983 return error_code::success();
986 error_code detail::directory_iterator_destruct(detail::DirIterState &it) {
992 return error_code::success();
995 error_code detail::directory_iterator_increment(detail::DirIterState &it) {
998 error_code ec = windows_error(::GetLastError());
1012 if (error_code ec = UTF16ToUTF8(FindData.cFileName,
1018 return error_code::success();
1021 error_code map_file_pages(const Twine &path, off_t file_offset, size_t size,
1027 error_code unmap_file_pages(void *base, size_t size) {
1032 error_code openFileForRead(const Twine &Name, int &ResultFD) {
1036 if (error_code EC = UTF8ToUTF16(Name.toStringRef(PathStorage),
1044 error_code EC = windows_error(::GetLastError());
1051 return error_code(errc::is_a_directory, posix_category());
1062 return error_code::success();
1065 error_code openFileForWrite(const Twine &Name, int &ResultFD,
1074 if (error_code EC = UTF8ToUTF16(Name.toStringRef(PathStorage),
1091 error_code EC = windows_error(::GetLastError());
1098 return error_code(errc::is_a_directory, posix_category());
1116 return error_code::success();