Lines Matching full:ev
34 string do_strerror_r(int ev);
37 string do_strerror_r(int ev) {
39 if (::strerror_s(buffer, strerror_buff_size, ev) == 0)
41 std::snprintf(buffer, strerror_buff_size, "unknown error %d", ev);
79 string do_strerror_r(int ev) {
84 const char* error_message = handle_strerror_r_return(::strerror_r(ev, buffer, strerror_buff_size), buffer);
87 std::snprintf(buffer, strerror_buff_size, "Unknown error %d", ev);
115 string __do_message::message(int ev) const {
117 return string(::strerror(ev));
119 return do_strerror_r(ev);
126 virtual string message(int ev) const;
131 string __generic_error_category::message(int ev) const {
133 if (ev > _LIBCPP_ELAST)
136 return __do_message::message(ev);
152 virtual string message(int ev) const;
153 virtual error_condition default_error_condition(int ev) const noexcept;
158 string __system_error_category::message(int ev) const {
160 if (ev > _LIBCPP_ELAST)
163 return __do_message::message(ev);
166 error_condition __system_error_category::default_error_condition(int ev) const noexcept {
168 if (ev > _LIBCPP_ELAST)
169 return error_condition(ev, system_category());
171 return error_condition(ev, generic_category());
202 system_error::system_error(int ev, const error_category& ecat, const string& what_arg)
203 : runtime_error(make_error_str(error_code(ev, ecat), what_arg)), __ec_(error_code(ev, ecat)) {}
205 system_error::system_error(int ev, const error_category& ecat, const char* what_arg)
206 : runtime_error(make_error_str(error_code(ev, ecat), what_arg)), __ec_(error_code(ev, ecat)) {}
208 system_error::system_error(int ev, const error_category& ecat)
209 : runtime_error(make_error_str(error_code(ev, ecat))), __ec_(error_code(ev, ecat)) {}
213 void __throw_system_error(int ev, const char* what_arg) {
215 std::__throw_system_error(error_code(ev, system_category()), what_arg);
219 "system_error was thrown in -fno-exceptions mode with error %i and message \"%s\"", ev, what_arg);