pacemaker  1.1.18-7fdfbbe
Scalable High-Availability cluster resource manager
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
error.h File Reference

Error codes and asserts. More...

#include <crm_config.h>
#include <assert.h>
Include dependency graph for error.h:
This graph shows which files directly or indirectly include this file:

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_panic   255
 

Functions

const char * pcmk_strerror (int rc)
 
const char * pcmk_errorname (int rc)
 
const char * bz2_strerror (int rc)
 

Detailed Description

Error codes and asserts.

Definition in file error.h.

Macro Definition Documentation

#define CRM_ASSERT (   expr)
Value:
do { \
if(__unlikely((expr) == FALSE)) { \
crm_abort(__FILE__, __FUNCTION__, __LINE__, #expr, TRUE, FALSE); \
abort(); /* Redundant but it makes analyzers like coverity and clang happy */ \
} \
} while(0)
void crm_abort(const char *file, const char *function, int line, const char *condition, gboolean do_core, gboolean do_fork)
Definition: utils.c:656
#define __unlikely(expr)
Definition: crm.h:51

Definition at line 35 of file error.h.

#define PCMK_CUSTOM_OFFSET   200 /* Purely custom codes */

Definition at line 44 of file error.h.

#define pcmk_err_cib_backup   209

Definition at line 53 of file error.h.

#define pcmk_err_cib_corrupt   212

Definition at line 56 of file error.h.

#define pcmk_err_cib_modified   208

Definition at line 52 of file error.h.

#define pcmk_err_cib_save   210

Definition at line 54 of file error.h.

#define pcmk_err_diff_failed   206

Definition at line 50 of file error.h.

#define pcmk_err_diff_resync   207

Definition at line 51 of file error.h.

#define pcmk_err_generic   201

Definition at line 45 of file error.h.

#define pcmk_err_no_quorum   202

Definition at line 46 of file error.h.

#define pcmk_err_old_data   205

Definition at line 49 of file error.h.

#define pcmk_err_panic   255

Definition at line 57 of file error.h.

#define pcmk_err_schema_unchanged   211

Definition at line 55 of file error.h.

#define pcmk_err_schema_validation   203

Definition at line 47 of file error.h.

#define pcmk_err_transform_failed   204

Definition at line 48 of file error.h.

#define PCMK_ERROR_OFFSET   190 /* Replacements on non-linux systems, see include/portability.h */

Definition at line 43 of file error.h.

#define pcmk_ok   0

Definition at line 42 of file error.h.

Function Documentation

const char* bz2_strerror ( int  rc)

Definition at line 1198 of file logging.c.

const char* pcmk_errorname ( int  rc)

Definition at line 981 of file logging.c.

const char* pcmk_strerror ( int  rc)

Definition at line 1135 of file logging.c.