Home
last modified time | relevance | path

Searched refs:error_number (Results 1 – 1 of 1) sorted by relevance

/bionic/libc/bionic/
Dstrerror.cpp181 static inline const char* __strerror_lookup(int error_number) { in __strerror_lookup() argument
182 if (error_number < 0 || error_number >= static_cast<int>(arraysize(__sys_error_strings))) { in __strerror_lookup()
185 return __sys_error_strings[error_number]; in __strerror_lookup()
188 int strerror_r(int error_number, char* buf, size_t buf_len) { in strerror_r() argument
192 const char* error_name = __strerror_lookup(error_number); in strerror_r()
196 length = async_safe_format_buffer(buf, buf_len, "Unknown error %d", error_number); in strerror_r()
206 extern "C" char* __gnu_strerror_r(int error_number, char* buf, size_t buf_len) { in __gnu_strerror_r() argument
208 strerror_r(error_number, buf, buf_len); in __gnu_strerror_r()
212 char* strerror(int error_number) { in strerror() argument
214 char* result = const_cast<char*>(__strerror_lookup(error_number)); in strerror()
[all …]