Home
last modified time | relevance | path

Searched refs:system_category (Results 1 – 25 of 33) sorted by relevance

12

/llvm-project-15.0.7/llvm/lib/Support/
H A DRandomNumberGenerator.cpp77 return std::error_code(GetLastError(), std::system_category()); in getRandomBytes()
84 Ret = std::error_code(errno, std::system_category()); in getRandomBytes()
86 Ret = std::error_code(EIO, std::system_category()); in getRandomBytes()
88 Ret = std::error_code(errno, std::system_category()); in getRandomBytes()
92 return std::error_code(errno, std::system_category()); in getRandomBytes()
H A DErrorHandling.cpp302 return std::error_code(EV, std::system_category()); in mapWindowsError()
/llvm-project-15.0.7/libcxx/test/std/diagnostics/syserr/syserr.errcat/syserr.errcat.objects/
H A Dsystem_category.pass.cpp27 const std::error_category& e_cat1 = std::system_category(); in test_message_for_bad_value()
40 const std::error_category& e_cat1 = std::system_category(); in main()
46 assert(e_cond.category() == std::system_category()); in main()
/llvm-project-15.0.7/libcxx/test/std/diagnostics/syserr/syserr.compare/
H A Deq_error_code_error_code.pass.cpp28 std::error_code e_code2(5, std::system_category()); in main()
30 std::error_code e_code4(6, std::system_category()); in main()
32 std::error_condition e_condition2(5, std::system_category()); in main()
34 std::error_condition e_condition4(6, std::system_category()); in main()
/llvm-project-15.0.7/libcxx/test/std/diagnostics/syserr/syserr.errcondition/syserr.errcondition.modifiers/
H A Dclear.pass.cpp24 ec.assign(6, std::system_category()); in main()
26 assert(ec.category() == std::system_category()); in main()
H A Dassign.pass.cpp24 ec.assign(6, std::system_category()); in main()
26 assert(ec.category() == std::system_category()); in main()
/llvm-project-15.0.7/libcxx/test/std/diagnostics/syserr/syserr.errcondition/syserr.errcondition.constructors/
H A Dint_error_category.pass.cpp23 std::error_condition ec(6, std::system_category()); in main()
25 assert(ec.category() == std::system_category()); in main()
/llvm-project-15.0.7/libcxx/test/std/diagnostics/syserr/syserr.errcode/syserr.errcode.constructors/
H A Dint_error_category.pass.cpp23 std::error_code ec(6, std::system_category()); in main()
25 assert(ec.category() == std::system_category()); in main()
H A Ddefault.pass.cpp24 assert(ec.category() == std::system_category()); in main()
/llvm-project-15.0.7/libcxx/test/std/diagnostics/syserr/syserr.errcode/syserr.errcode.modifiers/
H A Dassign.pass.cpp24 ec.assign(6, std::system_category()); in main()
26 assert(ec.category() == std::system_category()); in main()
H A Dclear.pass.cpp29 assert(ec.category() == std::system_category()); in main()
/llvm-project-15.0.7/lldb/source/Host/common/
H A DFile.cpp105 return std::error_code(ENOTSUP, std::system_category()); in Read()
108 return std::error_code(ENOTSUP, std::system_category()); in Write()
121 return std::error_code(ENOTSUP, std::system_category()); in GetFileSpec()
130 *error_ptr = std::error_code(ENOTSUP, std::system_category()); in SeekFromStart()
136 *error_ptr = std::error_code(ENOTSUP, std::system_category()); in SeekFromCurrent()
142 *error_ptr = std::error_code(ENOTSUP, std::system_category()); in SeekFromEnd()
147 return std::error_code(ENOTSUP, std::system_category()); in Read()
151 return std::error_code(ENOTSUP, std::system_category()); in Write()
236 error = std::error_code(ENOTSUP, std::system_category()); in GetPermissions()
H A DFileSystem.cpp72 std::system_category()); in DirBegin()
87 std::system_category()); in GetStatus()
464 std::error_code(errno, std::system_category())); in Open()
/llvm-project-15.0.7/libcxx/src/
H A Dsystem_error.cpp204 return error_condition(ev, system_category()); in default_error_condition()
210 system_category() noexcept in system_category() function
290 throw system_error(error_code(ev, system_category()), what_arg); in __throw_system_error()
/llvm-project-15.0.7/libcxx/test/std/diagnostics/syserr/syserr.errcondition/syserr.errcondition.observers/
H A Dvalue.pass.cpp22 const std::error_condition ec(6, std::system_category()); in main()
/llvm-project-15.0.7/libcxx/test/std/diagnostics/syserr/syserr.errcode/syserr.errcode.observers/
H A Dvalue.pass.cpp22 const std::error_code ec(6, std::system_category()); in main()
H A Ddefault_error_condition.pass.cpp28 const std::error_code ec(6, std::system_category()); in main()
/llvm-project-15.0.7/libcxx/test/std/diagnostics/syserr/syserr.errcat/syserr.errcat.nonvirtuals/
H A Deq.pass.cpp24 const std::error_category& e_cat3 = std::system_category(); in main()
H A Dneq.pass.cpp24 const std::error_category& e_cat3 = std::system_category(); in main()
H A Dlt.pass.cpp24 const std::error_category& e_cat3 = std::system_category(); in main()
/llvm-project-15.0.7/libcxx/test/std/diagnostics/syserr/syserr.errcat/syserr.errcat.derived/
H A Dmessage.pass.cpp26 const std::error_category& e_cat2 = std::system_category(); in main()
/llvm-project-15.0.7/libcxx/test/std/diagnostics/syserr/syserr.hash/
H A Derror_code.pass.cpp34 T ec(i, std::system_category()); in test()
H A Derror_condition.pass.cpp34 T ec(i, std::system_category()); in test()
/llvm-project-15.0.7/lldb/unittests/Host/
H A DFileSystemTest.cpp302 EXPECT_EQ(code.category(), std::system_category()); in TEST()
313 EXPECT_EQ(ec.category(), std::system_category()); in TEST()
320 EXPECT_EQ(status.getError().category(), std::system_category()); in TEST()
/llvm-project-15.0.7/libcxx/include/
H A Dsystem_error40 const error_category& system_category() noexcept;
243 _LIBCPP_FUNC_VIS const error_category& system_category() _NOEXCEPT;
322 error_code() _NOEXCEPT : __val_(0), __cat_(&system_category()) {}
356 __cat_ = &system_category();

12