#include "errors.h"
#include <linux/compiler.h>
#include <linux/errno.h>
#include "logger.h"
#include "permassert.h"
#include "string-utils.h"
static const struct error_info successful = …;
static const char *const message_table[] = …;
static const struct error_info error_list[] = …;
struct error_block { … };
#define MAX_ERROR_BLOCKS …
static struct { … } registered_errors = …;
static const char *get_error_info(int errnum, const struct error_info **info_ptr)
{ … }
static const char *system_string_error(int errnum, char *buf, size_t buflen)
{ … }
const char *uds_string_error(int errnum, char *buf, size_t buflen)
{ … }
const char *uds_string_error_name(int errnum, char *buf, size_t buflen)
{ … }
int uds_status_to_errno(int error)
{ … }
int uds_register_error_block(const char *block_name, int first_error,
int next_free_error, const struct error_info *infos,
size_t info_size)
{ … }