10 # define CRM_RESULTS__H
25 # if (defined __cplusplus \
26 && ((201103 <= __cplusplus && !(__GNUC__ == 4 && __GNUC_MINOR__ == 7)) \
27 || (defined _MSC_VER && 1900 <= _MSC_VER)))
28 # define _Noreturn [[noreturn]]
29 # elif ((!defined __cplusplus || defined __clang__) \
30 && (201112 <= (defined __STDC_VERSION__ ? __STDC_VERSION__ : 0) \
31 || 4 < __GNUC__ + (7 <= __GNUC_MINOR__)))
33 # elif 2 < __GNUC__ + (8 <= __GNUC_MINOR__) || 0x5110 <= __SUNPRO_C
34 # define _Noreturn __attribute__ ((__noreturn__))
35 # elif 1200 <= (defined _MSC_VER ? _MSC_VER : 0)
36 # define _Noreturn __declspec (noreturn)
42 # define CRM_ASSERT(expr) do { \
44 crm_abort(__FILE__, __func__, __LINE__, #expr, TRUE, FALSE); \
68 # define PCMK_ERROR_OFFSET 190
69 # define PCMK_CUSTOM_OFFSET 200
70 # define pcmk_err_generic 201
71 # define pcmk_err_no_quorum 202
72 # define pcmk_err_schema_validation 203
73 # define pcmk_err_transform_failed 204
74 # define pcmk_err_old_data 205
75 # define pcmk_err_diff_failed 206
76 # define pcmk_err_diff_resync 207
77 # define pcmk_err_cib_modified 208
78 # define pcmk_err_cib_backup 209
79 # define pcmk_err_cib_save 210
80 # define pcmk_err_schema_unchanged 211
81 # define pcmk_err_cib_corrupt 212
82 # define pcmk_err_multiple 213
83 # define pcmk_err_node_unknown 214
84 # define pcmk_err_already 215
87 # define pcmk_err_bad_nvpair 250
88 # define pcmk_err_unknown_format 252
90 # define pcmk_err_bad_nvpair 216
91 # define pcmk_err_unknown_format 217
178 #if !defined(PCMK_ALLOW_DEPRECATED) || (PCMK_ALLOW_DEPRECATED == 1)
const char * pcmk_errorname(int rc)
crm_exit_t crm_errno2exit(int rc)
const char * pcmk_strerror(int rc)
const char * bz2_strerror(int rc)
int pcmk_rc2legacy(int rc)
_Noreturn crm_exit_t crm_exit(crm_exit_t rc)
crm_exit_t pcmk_rc2exitc(int rc)
Map a function return code to the most similar exit code.
enum crm_exit_e crm_exit_t
const char * pcmk_rc_str(int rc)
Get a user-friendly description of a return code.
pcmk_rc_e
Return codes for Pacemaker API functions.
const char * crm_exit_str(crm_exit_t exit_code)
int pcmk_legacy2rc(int legacy_rc)
const char * pcmk_rc_name(int rc)
Get a return code constant name as a string.
const char * crm_exit_name(crm_exit_t exit_code)