19 #ifndef OPAL_UTIL_ERROR_H
20 #define OPAL_UTIL_ERROR_H
22 #include "opal_config.h"
28 #define OPAL_ERROR_LOG(r) \
29 opal_output(0, "OPAL ERROR: %s in file %s at line %d", \
30 opal_strerror((r)), __FILE__, __LINE__);
45 OPAL_DECLSPEC
void opal_perror(
int errnum,
const char *msg);
61 OPAL_DECLSPEC
const char *opal_strerror(
int errnum);
72 OPAL_DECLSPEC
int opal_strerror_r(
int errnum,
char *strerrbuf,
size_t buflen);
75 typedef int (*opal_err2str_fn_t)(
int errnum,
const char **str);
88 OPAL_DECLSPEC
int opal_error_register(
const char *project,
89 int err_base,
int err_max,
90 opal_err2str_fn_t converter);
OPAL output stream facility.