Home
last modified time | relevance | path

Searched refs:errc (Results 1 – 25 of 43) sorted by relevance

12

/external/libcxx/test/std/diagnostics/syserr/
Derrc.pass.cpp18 static_assert(static_cast<int>(std::errc::address_family_not_supported) == EAFNOSUPPORT, ""); in main()
19 static_assert(static_cast<int>(std::errc::address_in_use) == EADDRINUSE, ""); in main()
20 static_assert(static_cast<int>(std::errc::address_not_available) == EADDRNOTAVAIL, ""); in main()
21 static_assert(static_cast<int>(std::errc::already_connected) == EISCONN, ""); in main()
22 static_assert(static_cast<int>(std::errc::argument_list_too_long) == E2BIG, ""); in main()
23 static_assert(static_cast<int>(std::errc::argument_out_of_domain) == EDOM, ""); in main()
24 static_assert(static_cast<int>(std::errc::bad_address) == EFAULT, ""); in main()
25 static_assert(static_cast<int>(std::errc::bad_file_descriptor) == EBADF, ""); in main()
26 static_assert(static_cast<int>(std::errc::bad_message) == EBADMSG, ""); in main()
27 static_assert(static_cast<int>(std::errc::broken_pipe) == EPIPE, ""); in main()
[all …]
/external/llvm/include/llvm/Support/
DErrc.h36 enum class errc { enum
37 argument_list_too_long = int(std::errc::argument_list_too_long),
38 argument_out_of_domain = int(std::errc::argument_out_of_domain),
39 bad_address = int(std::errc::bad_address),
40 bad_file_descriptor = int(std::errc::bad_file_descriptor),
41 broken_pipe = int(std::errc::broken_pipe),
42 device_or_resource_busy = int(std::errc::device_or_resource_busy),
43 directory_not_empty = int(std::errc::directory_not_empty),
44 executable_format_error = int(std::errc::executable_format_error),
45 file_exists = int(std::errc::file_exists),
[all …]
/external/libcxx/test/std/experimental/utilities/syserror/header.system_error.synop/
Dis_error_condition_enum.pass.cpp22 static_assert(ex::is_error_condition_enum_v<std::errc>, ""); in main()
24 static_assert(ex::is_error_condition_enum_v<std::errc> == in main()
25 std::is_error_condition_enum <std::errc>::value, ""); in main()
28 std::is_same<decltype(ex::is_error_condition_enum_v<std::errc>), in main()
/external/libcxx/test/std/diagnostics/syserr/syserr.errcondition/syserr.errcondition.constructors/
DErrorConditionEnum.pass.cpp22 std::error_condition ec(std::errc::not_a_directory); in main()
23 assert(ec.value() == static_cast<int>(std::errc::not_a_directory)); in main()
/external/libcxx/test/std/diagnostics/syserr/syserr.errcode/syserr.errcode.nonmembers/
Dmake_error_code.pass.cpp22 std::error_code ec = make_error_code(std::errc::operation_canceled); in main()
23 assert(ec.value() == static_cast<int>(std::errc::operation_canceled)); in main()
/external/libcxx/test/std/diagnostics/syserr/syserr.errcondition/syserr.errcondition.modifiers/
DErrorConditionEnum.pass.cpp23 ec = std::errc::not_enough_memory; in main()
24 assert(ec.value() == static_cast<int>(std::errc::not_enough_memory)); in main()
/external/libcxx/test/std/diagnostics/syserr/syserr.errcondition/syserr.errcondition.nonmembers/
Dmake_error_condition.pass.cpp22 const std::error_condition ec1 = std::make_error_condition(std::errc::message_size); in main()
23 assert(ec1.value() == static_cast<int>(std::errc::message_size)); in main()
/external/llvm/tools/dsymutil/
DBinaryHolder.cpp55 return make_error_code(errc::no_such_file_or_directory); in GetArchiveMemberBuffer()
59 return make_error_code(errc::no_such_file_or_directory); in GetArchiveMemberBuffer()
73 return make_error_code(errc::no_such_file_or_directory); in GetArchiveMemberBuffer()
/external/libcxx/test/std/diagnostics/syserr/syserr.errcat/syserr.errcat.virtuals/
Ddefault_error_condition.pass.cpp22 …std::error_condition e_cond = e_cat.default_error_condition(static_cast<int>(std::errc::not_a_dire… in main()
24 assert(e_cond.value() == static_cast<int>(std::errc::not_a_directory)); in main()
/external/libcxx/test/std/thread/futures/futures.errors/
Ddefault_error_condition.pass.cpp24 …std::error_condition e_cond = e_cat.default_error_condition(static_cast<int>(std::errc::not_a_dire… in main()
26 assert(e_cond.value() == static_cast<int>(std::errc::not_a_directory)); in main()
/external/libcxx/test/std/diagnostics/syserr/syserr.syserr/syserr.syserr.members/
Dctor_int_error_category.pass.cpp24 std::system_error se(static_cast<int>(std::errc::not_a_directory), in main()
26 assert(se.code() == std::make_error_code(std::errc::not_a_directory)); in main()
Dctor_error_code.pass.cpp24 std::system_error se(static_cast<int>(std::errc::not_a_directory), in main()
26 assert(se.code() == std::make_error_code(std::errc::not_a_directory)); in main()
Dctor_error_code_string.pass.cpp25 std::system_error se(make_error_code(std::errc::not_a_directory), what_arg); in main()
26 assert(se.code() == std::make_error_code(std::errc::not_a_directory)); in main()
Dctor_int_error_category_string.pass.cpp25 std::system_error se(static_cast<int>(std::errc::not_a_directory), in main()
27 assert(se.code() == std::make_error_code(std::errc::not_a_directory)); in main()
Dctor_error_code_const_char_pointer.pass.cpp25 std::system_error se(make_error_code(std::errc::not_a_directory), what_arg.c_str()); in main()
26 assert(se.code() == std::make_error_code(std::errc::not_a_directory)); in main()
Dctor_int_error_category_const_char_pointer.pass.cpp25 std::system_error se(static_cast<int>(std::errc::not_a_directory), in main()
27 assert(se.code() == std::make_error_code(std::errc::not_a_directory)); in main()
/external/libcxx/include/
Dsystem_error117 enum class errc
199 template <> struct is_error_condition_enum<errc>
202 error_code make_error_code(errc e) noexcept;
203 error_condition make_error_condition(errc e) noexcept;
248 //enum class errc
249 _LIBCPP_DECLARE_STRONG_ENUM(errc)
346 _LIBCPP_DECLARE_STRONG_ENUM_EPILOG(errc)
349 struct _LIBCPP_TYPE_VIS_ONLY is_error_condition_enum<errc>
354 struct _LIBCPP_TYPE_VIS_ONLY is_error_condition_enum<errc::__lx>
466 make_error_condition(errc __e) _NOEXCEPT
[all …]
/external/valgrind/drd/tests/
Dstd_thread.cpp53 throw system_error(make_error_code(errc::operation_not_permitted), in _M_start_thread()
56 __throw_system_error(int(errc::operation_not_permitted)); in _M_start_thread()
Dstd_thread2.cpp58 throw system_error(make_error_code(errc::operation_not_permitted), in _M_start_thread()
61 __throw_system_error(int(errc::operation_not_permitted)); in _M_start_thread()
/external/libcxx/test/std/input.output/iostreams.base/ios.base/ios.types/ios_failure/
Dctor_string_error_code.pass.cpp24 std::ios_base::failure se(what_arg, make_error_code(std::errc::is_a_directory)); in main()
25 assert(se.code() == std::make_error_code(std::errc::is_a_directory)); in main()
Dctor_char_pointer_error_code.pass.cpp24 std::ios_base::failure se(what_arg.c_str(), make_error_code(std::errc::is_a_directory)); in main()
25 assert(se.code() == std::make_error_code(std::errc::is_a_directory)); in main()
/external/llvm/lib/Support/
DLockFileManager.cpp116 Error = make_error_code(errc::no_space_on_device); in LockFileManager()
129 if (EC != errc::file_exists) { in LockFileManager()
202 errc::no_such_file_or_directory) { in waitForUnlock()
/external/clang/lib/Basic/
DVirtualFileSystem.cpp238 if (Status || Status.getError() != llvm::errc::no_such_file_or_directory) in status()
241 return make_error_code(llvm::errc::no_such_file_or_directory); in status()
249 if (Result || Result.getError() != llvm::errc::no_such_file_or_directory) in openFileForRead()
252 return make_error_code(llvm::errc::no_such_file_or_directory); in openFileForRead()
271 if (EC && EC != errc::no_such_file_or_directory) in incrementFS()
525 EC = std::error_code(static_cast<int>(errc::not_a_directory), in dir_begin()
887 return make_error_code(llvm::errc::invalid_argument); in lookupPath()
894 if (Result || Result.getError() != llvm::errc::no_such_file_or_directory) in lookupPath()
897 return make_error_code(llvm::errc::no_such_file_or_directory); in lookupPath()
910 return make_error_code(llvm::errc::no_such_file_or_directory); in lookupPath()
[all …]
/external/llvm/unittests/Support/
DErrorOrTest.cpp20 ErrorOr<int> t2() { return errc::invalid_argument; } in t2()
34 EXPECT_EQ(a.getError(), errc::invalid_argument); in TEST()
DPath.cpp399 errc::no_such_file_or_directory); in TEST_F()
402 EXPECT_EQ(EC, errc::no_such_file_or_directory); in TEST_F()
407 errc::no_such_file_or_directory); in TEST_F()
431 errc::no_such_file_or_directory); in TEST_F()
442 errc::invalid_argument); in TEST_F()
458 errc::file_exists); in TEST_F()
477 errc::file_exists); in TEST_F()
501 ASSERT_EQ(fs::create_directory(Twine(LongDir), false), errc::file_exists); in TEST_F()

12