#include <crm_internal.h>
#include <bzlib.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <qb/qbdefs.h>
#include <crm/common/mainloop.h>
#include <crm/common/xml.h>
#include <crm/common/results_compat.h>
Go to the source code of this file.
|
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) |
|
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...
|
|
const char * | bz2_strerror (int rc) |
|
crm_exit_t | crm_exit (crm_exit_t rc) |
|
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) |
|
crm_exit_t | crm_errno2exit (int rc) |
|
◆ _GNU_SOURCE
◆ bz2_strerror()
const char* bz2_strerror |
( |
int |
rc | ) |
|
◆ crm_errno2exit()
◆ crm_exit()
◆ crm_exit_name()
◆ crm_exit_str()
◆ pcmk__copy_result()
◆ pcmk__format_result()
◆ pcmk__reset_result()
◆ pcmk__result_bounds()
int pcmk__result_bounds |
( |
enum pcmk_result_type |
type, |
|
|
int * |
lower, |
|
|
int * |
upper |
|
) |
| |
◆ pcmk__set_result()
◆ pcmk__set_result_output()
◆ pcmk_errorname()
const char* pcmk_errorname |
( |
int |
rc | ) |
|
◆ pcmk_legacy2rc()
int pcmk_legacy2rc |
( |
int |
legacy_rc | ) |
|
◆ pcmk_rc2exitc()
Map a function return code to the most similar exit code.
- Parameters
-
[in] | rc | Function return code |
- Returns
- Most similar exit code
Definition at line 677 of file results.c.
◆ pcmk_rc2legacy()
int pcmk_rc2legacy |
( |
int |
rc | ) |
|
◆ pcmk_rc2ocf()
Map a function return code to the most similar OCF exit code.
- Parameters
-
[in] | rc | Function return code |
- Returns
- Most similar OCF exit code
Definition at line 796 of file results.c.
◆ pcmk_rc_name()
const char* pcmk_rc_name |
( |
int |
rc | ) |
|
Get a return code constant name as a string.
- Parameters
-
[in] | rc | Integer return code to convert |
- Returns
- String of constant name corresponding to rc
Definition at line 316 of file results.c.
◆ pcmk_rc_str()
const char* pcmk_rc_str |
( |
int |
rc | ) |
|
Get a user-friendly description of a return code.
- Parameters
-
[in] | rc | Integer return code to convert |
- Returns
- String description of rc
Definition at line 476 of file results.c.
◆ pcmk_result_get_strings()
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.
- Parameters
-
[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 |
- Returns
- Standard Pacemaker return code
Definition at line 43 of file results.c.
◆ pcmk_strerror()
const char* pcmk_strerror |
( |
int |
rc | ) |
|
◆ pcmk__n_rc