Lines Matching defs:ev
147 string do_strerror_r(int ev);
150 string do_strerror_r(int ev) {
152 if (::strerror_s(buffer, strerror_buff_size, ev) == 0)
154 std::snprintf(buffer, strerror_buff_size, "unknown error %d", ev);
192 string do_strerror_r(int ev) {
197 const char* error_message = handle_strerror_r_return(::strerror_r(ev, buffer, strerror_buff_size), buffer);
200 std::snprintf(buffer, strerror_buff_size, "Unknown error %d", ev);
228 string __do_message::message(int ev) const {
230 return string(::strerror(ev));
232 return do_strerror_r(ev);
239 virtual string message(int ev) const;
244 string __generic_error_category::message(int ev) const {
246 if (ev > _LIBCPP_ELAST)
249 return __do_message::message(ev);
265 virtual string message(int ev) const;
266 virtual error_condition default_error_condition(int ev) const noexcept;
271 string __system_error_category::message(int ev) const {
278 ev,
296 if (ev > _LIBCPP_ELAST)
299 return __do_message::message(ev);
303 error_condition __system_error_category::default_error_condition(int ev) const noexcept {
306 if (ev == 0)
308 if (auto maybe_errc = __win_err_to_errc(ev))
310 return error_condition(ev, system_category());
313 if (ev > _LIBCPP_ELAST)
314 return error_condition(ev, system_category());
316 return error_condition(ev, generic_category());
348 system_error::system_error(int ev, const error_category& ecat, const string& what_arg)
349 : runtime_error(make_error_str(error_code(ev, ecat), what_arg)), __ec_(error_code(ev, ecat)) {}
351 system_error::system_error(int ev, const error_category& ecat, const char* what_arg)
352 : runtime_error(make_error_str(error_code(ev, ecat), what_arg)), __ec_(error_code(ev, ecat)) {}
354 system_error::system_error(int ev, const error_category& ecat)
355 : runtime_error(make_error_str(error_code(ev, ecat))), __ec_(error_code(ev, ecat)) {}
359 void __throw_system_error(int ev, const char* what_arg) {
361 std::__throw_system_error(error_code(ev, generic_category()), what_arg);
365 "system_error was thrown in -fno-exceptions mode with error %i and message \"%s\"", ev, what_arg);