![]() |
pacemaker
1.1.24-3850484742
Scalable High-Availability cluster resource manager
|
Function and executable result codes. More...
Go to the source code of this file.
Macros | |
#define | CRM_ASSERT(expr) |
#define | pcmk_ok 0 |
#define | PCMK_ERROR_OFFSET 190 /* Replacements on non-linux systems, see include/portability.h */ |
#define | PCMK_CUSTOM_OFFSET 200 /* Purely custom codes */ |
#define | pcmk_err_generic 201 |
#define | pcmk_err_no_quorum 202 |
#define | pcmk_err_schema_validation 203 |
#define | pcmk_err_transform_failed 204 |
#define | pcmk_err_old_data 205 |
#define | pcmk_err_diff_failed 206 |
#define | pcmk_err_diff_resync 207 |
#define | pcmk_err_cib_modified 208 |
#define | pcmk_err_cib_backup 209 |
#define | pcmk_err_cib_save 210 |
#define | pcmk_err_schema_unchanged 211 |
#define | pcmk_err_cib_corrupt 212 |
#define | pcmk_err_multiple 213 |
#define | pcmk_err_node_unknown 214 |
#define | pcmk_err_already 215 |
#define | pcmk_err_bad_nvpair 216 |
#define | pcmk_err_unknown_format 217 |
#define | pcmk_err_panic 255 |
Enumerations | |
enum | pcmk_rc_e { pcmk_rc_no_quorum = -1017, pcmk_rc_schema_validation = -1016, pcmk_rc_schema_unchanged = -1015, pcmk_rc_transform_failed = -1014, pcmk_rc_old_data = -1013, pcmk_rc_diff_failed = -1012, pcmk_rc_diff_resync = -1011, pcmk_rc_cib_modified = -1010, pcmk_rc_cib_backup = -1009, pcmk_rc_cib_save = -1008, pcmk_rc_cib_corrupt = -1007, pcmk_rc_multiple = -1006, pcmk_rc_node_unknown = -1005, pcmk_rc_already = -1004, pcmk_rc_bad_nvpair = -1003, pcmk_rc_unknown_format = -1002, pcmk_rc_error = -1001, pcmk_rc_ok = 0 } |
Return codes for Pacemaker API functions. More... | |
Functions | |
const char * | pcmk_rc_name (int rc) |
Get a return code constant name as a string. More... | |
const char * | pcmk_rc_str (int rc) |
Get a user-friendly description of a return code. More... | |
int | pcmk_rc2legacy (int rc) |
int | pcmk_legacy2rc (int legacy_rc) |
const char * | pcmk_strerror (int rc) |
const char * | pcmk_errorname (int rc) |
const char * | bz2_strerror (int rc) |
Function and executable result codes.
Definition in file error.h.
#define CRM_ASSERT | ( | expr | ) |
#define PCMK_ERROR_OFFSET 190 /* Replacements on non-linux systems, see include/portability.h */ |
enum pcmk_rc_e |
Return codes for Pacemaker API functions.
Any Pacemaker API function documented as returning a "standard Pacemaker return code" will return pcmk_rc_ok (0) on success, and one of this enumeration's other (negative) values or a (positive) system error number otherwise. The custom codes are at -1001 and lower, so that the caller may use -1 through -1000 for their own custom values if desired. While generally referred to as "errors", nonzero values simply indicate a result, which might or might not be an error depending on the calling context.
const char* pcmk_rc_name | ( | int | rc | ) |
const char* pcmk_rc_str | ( | int | rc | ) |