pacemaker
3.0.0-d8340737c4
Scalable High-Availability cluster resource manager
|
#include <crm_internal.h>
#include <bzlib.h>
#include <errno.h>
#include <netdb.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <qb/qbdefs.h>
#include <crm/common/mainloop.h>
#include <crm/common/xml.h>
Go to the source code of this file.
Functions | |
int | pcmk_result_get_strings (int code, enum pcmk_result_type type, const char **name, const char **desc) |
Get the name and description of a given result code. More... | |
int | pcmk__result_bounds (enum pcmk_result_type type, int *lower, int *upper) |
_Noreturn void | pcmk__abort_as (const char *file, const char *function, int line, const char *assert_condition) |
void | crm_abort (const char *file, const char *function, int line, const char *assert_condition, gboolean do_core, gboolean do_fork) |
const char * | pcmk_errorname (int rc) |
const char * | pcmk_strerror (int rc) |
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 * | crm_exit_name (crm_exit_t exit_code) |
const char * | crm_exit_str (crm_exit_t exit_code) |
crm_exit_t | pcmk_rc2exitc (int rc) |
Map a function return code to the most similar exit code. More... | |
enum ocf_exitcode | pcmk_rc2ocf (int rc) |
Map a function return code to the most similar OCF exit code. More... | |
int | pcmk__gaierror2rc (int gai) |
Map a getaddrinfo() return code to the most similar Pacemaker return code. More... | |
int | pcmk__bzlib2rc (int bz2) |
Map a bz2 return code to the most similar Pacemaker return code. More... | |
crm_exit_t | crm_exit (crm_exit_t exit_status) |
void | pcmk__set_result (pcmk__action_result_t *result, int exit_status, enum pcmk_exec_status exec_status, const char *exit_reason) |
void | pcmk__format_result (pcmk__action_result_t *result, int exit_status, enum pcmk_exec_status exec_status, const char *format,...) |
void | pcmk__set_result_output (pcmk__action_result_t *result, char *out, char *err) |
void | pcmk__reset_result (pcmk__action_result_t *result) |
void | pcmk__copy_result (const pcmk__action_result_t *src, pcmk__action_result_t *dst) |
Variables | |
const size_t | pcmk__n_rc = PCMK__NELEM(pcmk__rcs) |
void crm_abort | ( | const char * | file, |
const char * | function, | ||
int | line, | ||
const char * | assert_condition, | ||
gboolean | do_core, | ||
gboolean | do_fork | ||
) |
crm_exit_t crm_exit | ( | crm_exit_t | exit_status | ) |
const char* crm_exit_name | ( | crm_exit_t | exit_code | ) |
const char* crm_exit_str | ( | crm_exit_t | exit_code | ) |
_Noreturn void pcmk__abort_as | ( | const char * | file, |
const char * | function, | ||
int | line, | ||
const char * | assert_condition | ||
) |
int pcmk__bzlib2rc | ( | int | bz2 | ) |
void pcmk__copy_result | ( | const pcmk__action_result_t * | src, |
pcmk__action_result_t * | dst | ||
) |
void pcmk__format_result | ( | pcmk__action_result_t * | result, |
int | exit_status, | ||
enum pcmk_exec_status | exec_status, | ||
const char * | format, | ||
... | |||
) |
int pcmk__gaierror2rc | ( | int | gai | ) |
void pcmk__reset_result | ( | pcmk__action_result_t * | result | ) |
int pcmk__result_bounds | ( | enum pcmk_result_type | type, |
int * | lower, | ||
int * | upper | ||
) |
void pcmk__set_result | ( | pcmk__action_result_t * | result, |
int | exit_status, | ||
enum pcmk_exec_status | exec_status, | ||
const char * | exit_reason | ||
) |
void pcmk__set_result_output | ( | pcmk__action_result_t * | result, |
char * | out, | ||
char * | err | ||
) |
const char* pcmk_errorname | ( | int | rc | ) |
int pcmk_legacy2rc | ( | int | legacy_rc | ) |
crm_exit_t pcmk_rc2exitc | ( | int | rc | ) |
int pcmk_rc2legacy | ( | int | rc | ) |
enum ocf_exitcode pcmk_rc2ocf | ( | int | rc | ) |
const char* pcmk_rc_name | ( | int | rc | ) |
const char* pcmk_rc_str | ( | int | rc | ) |
int pcmk_result_get_strings | ( | int | code, |
enum pcmk_result_type | type, | ||
const char ** | name, | ||
const char ** | desc | ||
) |
Get the name and description of a given result code.
A result code can be interpreted as a member of any one of several families.
[in] | code | The result code to look up |
[in] | type | How code should be interpreted |
[out] | name | Where to store the result code's name |
[out] | desc | Where to store the result code's description |
const char* pcmk_strerror | ( | int | rc | ) |
const size_t pcmk__n_rc = PCMK__NELEM(pcmk__rcs) |