#include "error_to_string.h"
#include "platform_errors.h"
#include "src/__support/CPP/span.h"
#include "src/__support/CPP/string_view.h"
#include "src/__support/CPP/stringstream.h"
#include "src/__support/StringUtil/message_mapper.h"
#include "src/__support/integer_to_string.h"
#include "src/__support/macros/attributes.h"
#include "src/__support/macros/config.h"
#include <stddef.h>
namespace LIBC_NAMESPACE_DECL {
namespace internal {
constexpr size_t max_buff_size() { … }
constexpr size_t ERR_BUFFER_SIZE = …;
LIBC_THREAD_LOCAL char error_buffer[ERR_BUFFER_SIZE];
constexpr size_t TOTAL_STR_LEN = …;
constexpr size_t ERR_ARRAY_SIZE = …;
constexpr MessageMapper<ERR_ARRAY_SIZE, TOTAL_STR_LEN>
ERROR_MAPPER(PLATFORM_ERRORS);
constexpr MessageMapper<ERR_ARRAY_SIZE, TOTAL_STR_LEN>
ERRNO_NAME_MAPPER(PLATFORM_ERRNO_NAMES);
cpp::string_view build_error_string(int err_num, cpp::span<char> buffer) { … }
}
cpp::string_view get_error_string(int err_num) { … }
cpp::string_view get_error_string(int err_num, cpp::span<char> buffer) { … }
cpp::optional<cpp::string_view> try_get_errno_name(int err_num) { … }
}