result 64 daemons/attrd/attrd_corosync.c .result = PCMK__UNKNOWN_RESULT, result 99 daemons/attrd/attrd_ipc.c pcmk__set_result(&request->result, CRM_EX_OK, PCMK_EXEC_DONE, NULL); result 183 daemons/attrd/attrd_ipc.c pcmk__set_result(&request->result, CRM_EX_OK, PCMK_EXEC_DONE, NULL); result 199 daemons/attrd/attrd_ipc.c pcmk__format_result(&request->result, CRM_EX_ERROR, PCMK_EXEC_ERROR, result 209 daemons/attrd/attrd_ipc.c pcmk__format_result(&request->result, CRM_EX_ERROR, PCMK_EXEC_ERROR, result 214 daemons/attrd/attrd_ipc.c pcmk__set_result(&request->result, CRM_EX_OK, PCMK_EXEC_DONE, NULL); result 229 daemons/attrd/attrd_ipc.c pcmk__set_result(&request->result, CRM_EX_OK, PCMK_EXEC_DONE, NULL); result 312 daemons/attrd/attrd_ipc.c pcmk__format_result(&request->result, CRM_EX_ERROR, PCMK_EXEC_ERROR, result 318 daemons/attrd/attrd_ipc.c pcmk__format_result(&request->result, CRM_EX_ERROR, PCMK_EXEC_ERROR, result 423 daemons/attrd/attrd_ipc.c pcmk__format_result(&request->result, CRM_EX_NOSUCH, PCMK_EXEC_ERROR, result 430 daemons/attrd/attrd_ipc.c pcmk__set_result(&request->result, CRM_EX_OK, PCMK_EXEC_DONE, NULL); result 467 daemons/attrd/attrd_ipc.c pcmk__format_result(&request->result, CRM_EX_NOSUCH, PCMK_EXEC_ERROR, result 477 daemons/attrd/attrd_ipc.c pcmk__set_result(&request->result, CRM_EX_OK, PCMK_EXEC_DONE, NULL); result 611 daemons/attrd/attrd_ipc.c .result = PCMK__UNKNOWN_RESULT, result 61 daemons/attrd/attrd_messages.c pcmk__format_result(&request->result, CRM_EX_PROTOCOL, PCMK_EXEC_INVALID, result 74 daemons/attrd/attrd_messages.c pcmk__set_result(&request->result, CRM_EX_OK, PCMK_EXEC_DONE, NULL); result 112 daemons/attrd/attrd_messages.c pcmk__set_result(&request->result, CRM_EX_PROTOCOL, PCMK_EXEC_INVALID, result 118 daemons/attrd/attrd_messages.c pcmk__set_result(&request->result, CRM_EX_OK, PCMK_EXEC_DONE, NULL); result 147 daemons/attrd/attrd_messages.c pcmk__set_result(&request->result, CRM_EX_OK, PCMK_EXEC_DONE, NULL); result 182 daemons/attrd/attrd_messages.c pcmk__set_result(&request->result, CRM_EX_OK, PCMK_EXEC_DONE, NULL); result 197 daemons/attrd/attrd_messages.c pcmk__set_result(&request->result, CRM_EX_OK, PCMK_EXEC_DONE, NULL); result 284 daemons/attrd/attrd_messages.c reason = request->result.exit_reason; result 288 daemons/attrd/attrd_messages.c pcmk_exec_status_str(request->result.execution_status), result 293 daemons/attrd/attrd_messages.c if (!pcmk__result_ok(&request->result)) { result 82 daemons/based/based_messages.c int result = pcmk_ok; result 89 daemons/based/based_messages.c result = pcmk_ok; result 91 daemons/based/based_messages.c result = -EPERM; result 93 daemons/based/based_messages.c return result; result 109 daemons/based/based_messages.c return result; result 411 daemons/based/based_messages.c int result = pcmk_ok; result 451 daemons/based/based_messages.c result = -ENOTCONN; result 455 daemons/based/based_messages.c return result; result 149 daemons/based/based_notify.c cib_diff_notify(const char *op, int result, const char *call_id, result 170 daemons/based/based_notify.c if (result != pcmk_ok) { result 188 daemons/based/based_notify.c pcmk__s(origin, "unspecified peer"), pcmk_strerror(result)); result 200 daemons/based/based_notify.c pcmk__s(origin, "unspecified peer"), pcmk_strerror(result)); result 212 daemons/based/based_notify.c crm_xml_add_int(update_msg, PCMK__XA_CIB_RC, result); result 128 daemons/based/pacemaker-based.h void cib_diff_notify(const char *op, int result, const char *call_id, result 68 daemons/controld/controld_alerts.c e->target, e->operation, desc, e->result); result 475 daemons/controld/controld_cib.c enum ra_param_flags_e param_type, xmlNode **result) result 479 daemons/controld/controld_cib.c *result = pcmk__xe_create(NULL, PCMK_XE_PARAMETERS); result 486 daemons/controld/controld_cib.c g_hash_table_foreach(op->params, hash2field, *result); result 487 daemons/controld/controld_cib.c pcmk__filter_op_for_digest(*result); result 531 daemons/controld/controld_cib.c crm_xml_add(*result, param->rap_name, v); result 536 daemons/controld/controld_cib.c pcmk__xe_remove_attr(*result, param->rap_name); result 1372 daemons/controld/controld_execd.c metadata_complete(int pid, const pcmk__action_result_t *result, void *user_data) result 1380 daemons/controld/controld_execd.c if ((lrm_state != NULL) && pcmk__result_ok(result)) { result 1382 daemons/controld/controld_execd.c result->action_stdout); result 145 daemons/controld/controld_join_dc.c gpointer result = g_hash_table_lookup(failed_sync_nodes, result 147 daemons/controld/controld_join_dc.c if (result != NULL) { result 148 daemons/controld/controld_join_dc.c *join_id = GPOINTER_TO_INT(result); result 296 daemons/controld/controld_messages.c enum crmd_fsa_input result = I_NULL; result 307 daemons/controld/controld_messages.c result = handle_message(input, cause); result 310 daemons/controld/controld_messages.c switch (result) { result 319 daemons/controld/controld_messages.c register_fsa_input_later(cause, result, &fsa_input); result 323 daemons/controld/controld_messages.c if (result != I_NULL) { result 325 daemons/controld/controld_messages.c register_fsa_input(cause, result, &fsa_input); result 68 daemons/controld/controld_remote_ra.c pcmk__action_result_t result; result 143 daemons/controld/controld_remote_ra.c pcmk__reset_result(&(cmd->result)); result 410 daemons/controld/controld_remote_ra.c if (!pcmk__result_ok(&(cmd->result))) { result 478 daemons/controld/controld_remote_ra.c lrmd__set_result(&op, cmd->result.exit_status, cmd->result.execution_status, result 479 daemons/controld/controld_remote_ra.c cmd->result.exit_reason); result 481 daemons/controld/controld_remote_ra.c if (pcmk_is_set(cmd->status, cmd_reported_success) && !pcmk__result_ok(&(cmd->result))) { result 552 daemons/controld/controld_remote_ra.c pcmk__set_result(&(cmd->result), PCMK_OCF_UNKNOWN_ERROR, result 601 daemons/controld/controld_remote_ra.c pcmk__set_result(&(cmd->result), PCMK_OCF_UNKNOWN_ERROR, PCMK_EXEC_TIMEOUT, result 740 daemons/controld/controld_remote_ra.c pcmk__set_result(&(cmd->result), PCMK_OCF_INVALID_PARAM, result 753 daemons/controld/controld_remote_ra.c pcmk__format_result(&(cmd->result), PCMK_OCF_UNKNOWN_ERROR, result 761 daemons/controld/controld_remote_ra.c pcmk__set_result(&(cmd->result), PCMK_OCF_OK, PCMK_EXEC_DONE, NULL); result 782 daemons/controld/controld_remote_ra.c pcmk__set_result(&(cmd->result), PCMK_OCF_OK, PCMK_EXEC_DONE, NULL); result 803 daemons/controld/controld_remote_ra.c pcmk__set_result(&(cmd->result), PCMK_OCF_UNKNOWN_ERROR, result 857 daemons/controld/controld_remote_ra.c pcmk__set_result(&(cmd->result), PCMK_OCF_OK, PCMK_EXEC_DONE, NULL); result 891 daemons/controld/controld_remote_ra.c pcmk__format_result(&(cmd->result), PCMK_OCF_UNKNOWN_ERROR, result 942 daemons/controld/controld_remote_ra.c pcmk__set_result(&(cmd->result), PCMK_OCF_UNKNOWN_ERROR, result 947 daemons/controld/controld_remote_ra.c pcmk__set_result(&(cmd->result), PCMK_OCF_NOT_RUNNING, result 982 daemons/controld/controld_remote_ra.c pcmk__set_result(&(cmd->result), PCMK_OCF_OK, PCMK_EXEC_DONE, NULL); result 996 daemons/controld/controld_remote_ra.c pcmk__set_result(&(cmd->result), PCMK_OCF_OK, PCMK_EXEC_DONE, NULL); result 1103 daemons/controld/controld_remote_ra.c pcmk__set_result(&(cmd->result), PCMK_OCF_UNKNOWN_ERROR, result 1374 daemons/controld/controld_remote_ra.c xmlNode *result = pcmk__xpath_result(search, 0); result 1390 daemons/controld/controld_remote_ra.c if (result) { result 1391 daemons/controld/controld_remote_ra.c const char *remote = pcmk__xe_id(result); result 62 daemons/execd/execd_commands.c pcmk__action_result_t result; result 226 daemons/execd/execd_commands.c switch (cmd->result.execution_status) { result 229 daemons/execd/execd_commands.c cmd->result.exit_status); result 236 daemons/execd/execd_commands.c pcmk_exec_status_str(cmd->result.execution_status), result 240 daemons/execd/execd_commands.c if (cmd->result.exit_reason != NULL) { result 241 daemons/execd/execd_commands.c pcmk__g_strcat(str, " (", cmd->result.exit_reason, ")", NULL); result 370 daemons/execd/execd_commands.c pcmk__reset_result(&(cmd->result)); result 480 daemons/execd/execd_commands.c && (dup->result.execution_status == PCMK_EXEC_CANCELLED)) { result 623 daemons/execd/execd_commands.c && (cmd->last_notify_rc == cmd->result.exit_status) result 624 daemons/execd/execd_commands.c && (cmd->last_notify_op_status == cmd->result.execution_status)) { result 629 daemons/execd/execd_commands.c cmd->last_notify_rc = cmd->result.exit_status; result 630 daemons/execd/execd_commands.c cmd->last_notify_op_status = cmd->result.execution_status; result 638 daemons/execd/execd_commands.c crm_xml_add_int(notify, PCMK__XA_LRMD_EXEC_RC, cmd->result.exit_status); result 640 daemons/execd/execd_commands.c cmd->result.execution_status); result 661 daemons/execd/execd_commands.c crm_xml_add(notify, PCMK__XA_LRMD_RSC_EXIT_REASON, cmd->result.exit_reason); result 663 daemons/execd/execd_commands.c if (cmd->result.action_stderr != NULL) { result 665 daemons/execd/execd_commands.c cmd->result.action_stderr); result 667 daemons/execd/execd_commands.c } else if (cmd->result.action_stdout != NULL) { result 669 daemons/execd/execd_commands.c cmd->result.action_stdout); result 736 daemons/execd/execd_commands.c pcmk__reset_result(&(cmd->result)); result 737 daemons/execd/execd_commands.c cmd->result.execution_status = PCMK_EXEC_DONE; result 761 daemons/execd/execd_commands.c && (cmd->result.execution_status == PCMK_EXEC_CANCELLED)) { result 847 daemons/execd/execd_commands.c if (cmd->result.exit_status != action->rc) { result 856 daemons/execd/execd_commands.c pcmk__set_result(&(cmd->result), (int) code, result 876 daemons/execd/execd_commands.c if (pcmk__result_ok(&(cmd->result)) result 887 daemons/execd/execd_commands.c services__copy_result(action, &(cmd->result)); result 890 daemons/execd/execd_commands.c } else if (cmd->result.execution_status == PCMK_EXEC_PENDING && result 900 daemons/execd/execd_commands.c if (cmd->result.execution_status == PCMK_EXEC_PENDING) { result 903 daemons/execd/execd_commands.c } else if (pcmk__result_ok(&(cmd->result)) result 915 daemons/execd/execd_commands.c crm_exit_str(cmd->result.exit_status), result 916 daemons/execd/execd_commands.c cmd->result.exit_status); result 920 daemons/execd/execd_commands.c if ((cmd->result.execution_status == PCMK_EXEC_DONE) result 921 daemons/execd/execd_commands.c && (cmd->result.exit_status == PCMK_OCF_NOT_RUNNING)) { result 925 daemons/execd/execd_commands.c cmd->result.exit_status = PCMK_OCF_UNKNOWN_ERROR; result 928 daemons/execd/execd_commands.c cmd->result.exit_status = PCMK_OCF_OK; result 938 daemons/execd/execd_commands.c if ((cmd->result.execution_status == PCMK_EXEC_PENDING) && result 945 daemons/execd/execd_commands.c cmd->rsc_id, cmd->action, cmd->result.exit_status, result 947 daemons/execd/execd_commands.c pcmk__set_result(&(cmd->result), PCMK_OCF_UNKNOWN_ERROR, result 973 daemons/execd/execd_commands.c if (pcmk__result_ok(&(cmd->result))) { result 977 daemons/execd/execd_commands.c } else if (cmd->result.execution_status == PCMK_EXEC_PENDING) { result 986 daemons/execd/execd_commands.c crm_exit_str(cmd->result.exit_status), result 988 daemons/execd/execd_commands.c cmd->result.exit_status, time_sum, delay); result 1004 daemons/execd/execd_commands.c cmd->result.exit_status, time_sum, timeout_left); result 1005 daemons/execd/execd_commands.c pcmk__set_result(&(cmd->result), PCMK_OCF_UNKNOWN_ERROR, result 1014 daemons/execd/execd_commands.c pcmk__set_result_output(&(cmd->result), services__grab_stdout(action), result 1041 daemons/execd/execd_commands.c if (cmd->result.execution_status == PCMK_EXEC_CANCELLED) { result 1085 daemons/execd/execd_commands.c pcmk__set_result(&cmd->result, exit_status, execution_status, exit_reason); result 1088 daemons/execd/execd_commands.c if ((rsc != NULL) && pcmk__result_ok(&(cmd->result))) { result 1111 daemons/execd/execd_commands.c && (cmd->result.execution_status != PCMK_EXEC_CANCELLED)) { result 1365 daemons/execd/execd_commands.c pcmk__set_result(&(cmd->result), PCMK_OCF_UNKNOWN_ERROR, result 1372 daemons/execd/execd_commands.c services__copy_result(action, &(cmd->result)); result 1397 daemons/execd/execd_commands.c services__copy_result(action, &(cmd->result)); result 1469 daemons/execd/execd_commands.c cmd->result.execution_status = PCMK_EXEC_CANCELLED; result 1483 daemons/execd/execd_commands.c cmd->result.execution_status = PCMK_EXEC_CANCELLED; result 1719 daemons/execd/execd_commands.c cmd->result.execution_status = PCMK_EXEC_CANCELLED; result 1732 daemons/execd/execd_commands.c cmd->result.execution_status = PCMK_EXEC_CANCELLED; result 39 daemons/fenced/cts-fence-helper.c static pcmk__action_result_t result = PCMK__UNKNOWN_RESULT; result 93 daemons/fenced/cts-fence-helper.c result.execution_status = PCMK_EXEC_DONE; result 94 daemons/fenced/cts-fence-helper.c result.exit_status = CRM_EX_OK; result 96 daemons/fenced/cts-fence-helper.c crm_err("FAILURE - %s (%d: %s)", origin, result.exit_status, result 97 daemons/fenced/cts-fence-helper.c pcmk_exec_status_str(result.execution_status)); result 387 daemons/fenced/cts-fence-helper.c pcmk__set_result(&result, stonith__exit_status(data), result 408 daemons/fenced/cts-fence-helper.c mainloop_test_done(__func__, (result.exit_status == CRM_EX_OK)); result 432 daemons/fenced/cts-fence-helper.c if (result.execution_status != PCMK_EXEC_TIMEOUT) { result 463 daemons/fenced/cts-fence-helper.c (result.execution_status == PCMK_EXEC_NO_FENCE_DEVICE)); result 483 daemons/fenced/cts-fence-helper.c mainloop_test_done(__func__, (result.exit_status == CRM_EX_OK)); result 74 daemons/fenced/fenced_commands.c static void st_child_done(int pid, const pcmk__action_result_t *result, result 110 daemons/fenced/fenced_commands.c void (*done_cb) (int pid, const pcmk__action_result_t *result, result 118 daemons/fenced/fenced_commands.c const pcmk__action_result_t *result); result 127 daemons/fenced/fenced_commands.c set_bad_request_result(pcmk__action_result_t *result) result 129 daemons/fenced/fenced_commands.c pcmk__set_result(result, CRM_EX_PROTOCOL, PCMK_EXEC_INVALID, result 547 daemons/fenced/fenced_commands.c pcmk__action_result_t result = PCMK__UNKNOWN_RESULT; result 549 daemons/fenced/fenced_commands.c pcmk__set_result(&result, exit_status, execution_status, exit_reason); result 550 daemons/fenced/fenced_commands.c cmd->done_cb(0, &result, cmd); result 551 daemons/fenced/fenced_commands.c pcmk__reset_result(&result); result 1128 daemons/fenced/fenced_commands.c const pcmk__action_result_t *result, result 1160 daemons/fenced/fenced_commands.c status_search_cb(int pid, const pcmk__action_result_t *result, void *user_data) result 1176 daemons/fenced/fenced_commands.c if (result->execution_status != PCMK_EXEC_DONE) { result 1180 daemons/fenced/fenced_commands.c pcmk_exec_status_str(result->execution_status), result 1181 daemons/fenced/fenced_commands.c ((result->exit_reason == NULL)? "" : " ("), result 1182 daemons/fenced/fenced_commands.c ((result->exit_reason == NULL)? "" : result->exit_reason), result 1183 daemons/fenced/fenced_commands.c ((result->exit_reason == NULL)? "" : ")")); result 1188 daemons/fenced/fenced_commands.c switch (result->exit_status) { result 1202 daemons/fenced/fenced_commands.c dev->id, search->host, result->exit_status); result 1209 daemons/fenced/fenced_commands.c dynamic_list_search_cb(int pid, const pcmk__action_result_t *result, result 1231 daemons/fenced/fenced_commands.c if (pcmk__result_ok(result)) { result 1234 daemons/fenced/fenced_commands.c dev->targets = stonith__parse_targets(result->action_stdout); result 1238 daemons/fenced/fenced_commands.c if (result->execution_status == PCMK_EXEC_DONE) { result 1241 daemons/fenced/fenced_commands.c dev->id, result->exit_status); result 1245 daemons/fenced/fenced_commands.c dev->id, pcmk_exec_status_str(result->execution_status), result 1246 daemons/fenced/fenced_commands.c ((result->exit_reason == NULL)? "" : " ("), result 1247 daemons/fenced/fenced_commands.c ((result->exit_reason == NULL)? "" : result->exit_reason), result 1248 daemons/fenced/fenced_commands.c ((result->exit_reason == NULL)? "" : ")")); result 1252 daemons/fenced/fenced_commands.c if (result->execution_status == PCMK_EXEC_DONE) { result 1255 daemons/fenced/fenced_commands.c dev->id, search->host, result->exit_status); result 1260 daemons/fenced/fenced_commands.c pcmk_exec_status_str(result->execution_status), result 1261 daemons/fenced/fenced_commands.c ((result->exit_reason == NULL)? "" : " ("), result 1262 daemons/fenced/fenced_commands.c ((result->exit_reason == NULL)? "" : result->exit_reason), result 1263 daemons/fenced/fenced_commands.c ((result->exit_reason == NULL)? "" : ")")); result 1667 daemons/fenced/fenced_commands.c fenced_register_level(xmlNode *msg, pcmk__action_result_t *result) result 1681 daemons/fenced/fenced_commands.c set_bad_request_result(result); result 1690 daemons/fenced/fenced_commands.c pcmk__format_result(result, CRM_EX_INVALID_PARAM, PCMK_EXEC_INVALID, result 1701 daemons/fenced/fenced_commands.c pcmk__format_result(result, CRM_EX_INVALID_PARAM, PCMK_EXEC_INVALID, result 1713 daemons/fenced/fenced_commands.c pcmk__format_result(result, CRM_EX_INVALID_PARAM, PCMK_EXEC_INVALID, result 1768 daemons/fenced/fenced_commands.c pcmk__set_result(result, CRM_EX_OK, PCMK_EXEC_DONE, NULL); result 1783 daemons/fenced/fenced_commands.c fenced_unregister_level(xmlNode *msg, pcmk__action_result_t *result) result 1792 daemons/fenced/fenced_commands.c set_bad_request_result(result); result 1802 daemons/fenced/fenced_commands.c pcmk__format_result(result, CRM_EX_INVALID_PARAM, PCMK_EXEC_INVALID, result 1840 daemons/fenced/fenced_commands.c pcmk__set_result(result, CRM_EX_OK, PCMK_EXEC_DONE, NULL); result 1894 daemons/fenced/fenced_commands.c execute_agent_action(xmlNode *msg, pcmk__action_result_t *result) result 1910 daemons/fenced/fenced_commands.c set_bad_request_result(result); result 1917 daemons/fenced/fenced_commands.c pcmk__set_result(result, CRM_EX_ERROR, PCMK_EXEC_NO_FENCE_DEVICE, result 1922 daemons/fenced/fenced_commands.c pcmk__set_result(result, CRM_EX_OK, PCMK_EXEC_DONE, NULL); result 1923 daemons/fenced/fenced_commands.c pcmk__set_result_output(result, result 1930 daemons/fenced/fenced_commands.c pcmk__set_result(result, CRM_EX_OK, PCMK_EXEC_DONE, NULL); result 1939 daemons/fenced/fenced_commands.c pcmk__format_result(result, CRM_EX_ERROR, PCMK_EXEC_NO_FENCE_DEVICE, result 1948 daemons/fenced/fenced_commands.c pcmk__format_result(result, CRM_EX_ERROR, PCMK_EXEC_NO_FENCE_DEVICE, result 1956 daemons/fenced/fenced_commands.c set_bad_request_result(result); result 1961 daemons/fenced/fenced_commands.c pcmk__set_result(result, CRM_EX_OK, PCMK_EXEC_PENDING, NULL); result 2509 daemons/fenced/fenced_commands.c const pcmk__action_result_t *result, result 2519 daemons/fenced/fenced_commands.c if (pcmk__result_ok(result)) { result 2521 daemons/fenced/fenced_commands.c if ((result->action_stdout != NULL) result 2529 daemons/fenced/fenced_commands.c if ((result->action_stdout != NULL) result 2549 daemons/fenced/fenced_commands.c if (result->execution_status == PCMK_EXEC_DONE) { result 2550 daemons/fenced/fenced_commands.c g_string_append_printf(msg, "returned %d", result->exit_status); result 2553 daemons/fenced/fenced_commands.c pcmk_exec_status_str(result->execution_status), NULL); result 2557 daemons/fenced/fenced_commands.c if (result->exit_reason != NULL) { result 2558 daemons/fenced/fenced_commands.c pcmk__g_strcat(msg, " (", result->exit_reason, ")", NULL); result 2580 daemons/fenced/fenced_commands.c crm_log_output(output_log_level, prefix, result->action_stdout); result 2595 daemons/fenced/fenced_commands.c send_async_reply(const async_command_t *cmd, const pcmk__action_result_t *result, result 2601 daemons/fenced/fenced_commands.c CRM_CHECK((cmd != NULL) && (result != NULL), return); result 2603 daemons/fenced/fenced_commands.c log_async_result(cmd, result, pid, NULL, merged); result 2613 daemons/fenced/fenced_commands.c reply = construct_async_reply(cmd, result); result 2669 daemons/fenced/fenced_commands.c reply_to_duplicates(async_command_t *cmd, const pcmk__action_result_t *result, result 2706 daemons/fenced/fenced_commands.c send_async_reply(cmd_other, result, pid, true); result 2741 daemons/fenced/fenced_commands.c st_child_done(int pid, const pcmk__action_result_t *result, void *user_data) result 2756 daemons/fenced/fenced_commands.c && pcmk__result_ok(result) result 2767 daemons/fenced/fenced_commands.c if (pcmk__result_ok(result)) { result 2780 daemons/fenced/fenced_commands.c send_async_reply(cmd, result, pid, false); result 2781 daemons/fenced/fenced_commands.c if (pcmk__result_ok(result)) { result 2782 daemons/fenced/fenced_commands.c reply_to_duplicates(cmd, result, pid); result 2787 daemons/fenced/fenced_commands.c log_async_result(cmd, result, pid, next_device->id, false); result 2807 daemons/fenced/fenced_commands.c pcmk__action_result_t result = PCMK__UNKNOWN_RESULT; result 2809 daemons/fenced/fenced_commands.c pcmk__format_result(&result, CRM_EX_ERROR, PCMK_EXEC_NO_FENCE_DEVICE, result 2812 daemons/fenced/fenced_commands.c send_async_reply(cmd, &result, 0, false); result 2813 daemons/fenced/fenced_commands.c pcmk__reset_result(&result); result 2836 daemons/fenced/fenced_commands.c fence_locally(xmlNode *msg, pcmk__action_result_t *result) result 2843 daemons/fenced/fenced_commands.c CRM_CHECK((msg != NULL) && (result != NULL), return); result 2851 daemons/fenced/fenced_commands.c set_bad_request_result(result); result 2860 daemons/fenced/fenced_commands.c pcmk__format_result(result, CRM_EX_ERROR, PCMK_EXEC_NO_FENCE_DEVICE, result 2888 daemons/fenced/fenced_commands.c pcmk__set_result(result, CRM_EX_OK, PCMK_EXEC_PENDING, NULL); result 2907 daemons/fenced/fenced_commands.c const pcmk__action_result_t *result) result 2915 daemons/fenced/fenced_commands.c stonith__xe_set_result(reply, result); result 2926 daemons/fenced/fenced_commands.c pcmk_exec_status_str(result->execution_status)); result 2965 daemons/fenced/fenced_commands.c const pcmk__action_result_t *result) result 2982 daemons/fenced/fenced_commands.c stonith__xe_set_result(reply, result); result 3125 daemons/fenced/fenced_commands.c pcmk__set_result(&request->result, CRM_EX_OK, PCMK_EXEC_DONE, NULL); result 3134 daemons/fenced/fenced_commands.c execute_agent_action(request->xml, &request->result); result 3135 daemons/fenced/fenced_commands.c if (request->result.execution_status == PCMK_EXEC_PENDING) { result 3138 daemons/fenced/fenced_commands.c return fenced_construct_reply(request->xml, NULL, &request->result); result 3152 daemons/fenced/fenced_commands.c pcmk__set_result(&request->result, CRM_EX_OK, PCMK_EXEC_DONE, NULL); result 3176 daemons/fenced/fenced_commands.c pcmk__set_result(&request->result, CRM_EX_OK, PCMK_EXEC_DONE, NULL); result 3195 daemons/fenced/fenced_commands.c query->reply = fenced_construct_reply(request->xml, NULL, &request->result); result 3233 daemons/fenced/fenced_commands.c pcmk__set_result(&request->result, CRM_EX_OK, PCMK_EXEC_DONE, NULL); result 3256 daemons/fenced/fenced_commands.c set_bad_request_result(&request->result); result 3257 daemons/fenced/fenced_commands.c return fenced_construct_reply(request->xml, NULL, &request->result); result 3260 daemons/fenced/fenced_commands.c pcmk__set_result(&request->result, CRM_EX_OK, PCMK_EXEC_PENDING, NULL); result 3269 daemons/fenced/fenced_commands.c fence_locally(request->xml, &request->result); result 3275 daemons/fenced/fenced_commands.c pcmk__set_result(&request->result, CRM_EX_OK, PCMK_EXEC_DONE, result 3279 daemons/fenced/fenced_commands.c pcmk__set_result(&request->result, CRM_EX_OK, PCMK_EXEC_PENDING, result 3283 daemons/fenced/fenced_commands.c set_bad_request_result(&request->result); result 3304 daemons/fenced/fenced_commands.c pcmk__set_result(&request->result, CRM_EX_OK, PCMK_EXEC_DONE, result 3307 daemons/fenced/fenced_commands.c &request->result); result 3345 daemons/fenced/fenced_commands.c pcmk__set_result(&request->result, CRM_EX_OK, PCMK_EXEC_PENDING, result 3350 daemons/fenced/fenced_commands.c set_bad_request_result(&request->result); result 3353 daemons/fenced/fenced_commands.c pcmk__set_result(&request->result, CRM_EX_OK, PCMK_EXEC_PENDING, result 3358 daemons/fenced/fenced_commands.c if (request->result.execution_status == PCMK_EXEC_PENDING) { result 3361 daemons/fenced/fenced_commands.c return fenced_construct_reply(request->xml, NULL, &request->result); result 3373 daemons/fenced/fenced_commands.c pcmk__set_result(&request->result, CRM_EX_OK, PCMK_EXEC_DONE, NULL); result 3378 daemons/fenced/fenced_commands.c reply = fenced_construct_reply(request->xml, data, &request->result); result 3396 daemons/fenced/fenced_commands.c pcmk__set_result(&request->result, result 3401 daemons/fenced/fenced_commands.c pcmk__set_result(&request->result, CRM_EX_INSUFFICIENT_PRIV, result 3405 daemons/fenced/fenced_commands.c fenced_send_config_notification(op, &request->result, result 3407 daemons/fenced/fenced_commands.c return fenced_construct_reply(request->xml, NULL, &request->result); result 3421 daemons/fenced/fenced_commands.c pcmk__set_result(&request->result, CRM_EX_OK, PCMK_EXEC_DONE, NULL); result 3423 daemons/fenced/fenced_commands.c pcmk__set_result(&request->result, CRM_EX_INSUFFICIENT_PRIV, result 3427 daemons/fenced/fenced_commands.c fenced_send_config_notification(op, &request->result, device_id); result 3428 daemons/fenced/fenced_commands.c return fenced_construct_reply(request->xml, NULL, &request->result); result 3438 daemons/fenced/fenced_commands.c fenced_register_level(request->xml, &request->result); result 3441 daemons/fenced/fenced_commands.c pcmk__set_result(&request->result, CRM_EX_INSUFFICIENT_PRIV, result 3445 daemons/fenced/fenced_commands.c return fenced_construct_reply(request->xml, NULL, &request->result); result 3455 daemons/fenced/fenced_commands.c fenced_unregister_level(request->xml, &request->result); result 3458 daemons/fenced/fenced_commands.c pcmk__set_result(&request->result, CRM_EX_INSUFFICIENT_PRIV, result 3462 daemons/fenced/fenced_commands.c return fenced_construct_reply(request->xml, NULL, &request->result); result 3475 daemons/fenced/fenced_commands.c pcmk__set_result(&request->result, CRM_EX_OK, PCMK_EXEC_DONE, NULL); result 3485 daemons/fenced/fenced_commands.c pcmk__format_result(&request->result, CRM_EX_PROTOCOL, PCMK_EXEC_INVALID, result 3487 daemons/fenced/fenced_commands.c return fenced_construct_reply(request->xml, NULL, &request->result); result 3549 daemons/fenced/fenced_commands.c reason = request->result.exit_reason; result 3553 daemons/fenced/fenced_commands.c pcmk_exec_status_str(request->result.execution_status), result 3638 daemons/fenced/fenced_commands.c .result = PCMK__UNKNOWN_RESULT, result 290 daemons/fenced/fenced_history.c pcmk__set_result(&op->result, exit_status, execution_status, result 292 daemons/fenced/fenced_history.c pcmk__set_result_output(&op->result, result 395 daemons/fenced/fenced_history.c stonith__xe_set_result(entry, &op->result); result 418 daemons/fenced/fenced_history.c pcmk__set_result(&op->result, CRM_EX_EXPIRED, PCMK_EXEC_INVALID, result 282 daemons/fenced/fenced_remote.c pcmk__reset_result(&op->result); result 434 daemons/fenced/fenced_remote.c stonith__xe_set_result(notify_data, &op->result); result 466 daemons/fenced/fenced_remote.c reply = fenced_construct_reply(op->request, data, &op->result); result 479 daemons/fenced/fenced_remote.c fenced_send_notification(PCMK__VALUE_ST_NOTIFY_FENCE, &op->result, result 507 daemons/fenced/fenced_remote.c pcmk_exec_status_str(op->result.execution_status), result 509 daemons/fenced/fenced_remote.c pcmk__copy_result(&op->result, &other->result); result 586 daemons/fenced/fenced_remote.c switch (op->result.execution_status) { result 591 daemons/fenced/fenced_remote.c if (op->result.exit_status != CRM_EX_EXPIRED) { result 617 daemons/fenced/fenced_remote.c if (pcmk__result_ok(&op->result) || dup result 628 daemons/fenced/fenced_remote.c crm_exit_str(op->result.exit_status), result 629 daemons/fenced/fenced_remote.c pcmk_exec_status_str(op->result.execution_status), result 630 daemons/fenced/fenced_remote.c ((op->result.exit_reason == NULL)? "" : ": "), result 631 daemons/fenced/fenced_remote.c ((op->result.exit_reason == NULL)? "" : op->result.exit_reason), result 674 daemons/fenced/fenced_remote.c pcmk__set_result(&op->result, CRM_EX_OK, PCMK_EXEC_DONE, NULL); result 688 daemons/fenced/fenced_remote.c pcmk__set_result(&op->result, CRM_EX_ERROR, PCMK_EXEC_TIMEOUT, result 724 daemons/fenced/fenced_remote.c pcmk__set_result(&op->result, CRM_EX_OK, PCMK_EXEC_DONE, NULL); result 727 daemons/fenced/fenced_remote.c pcmk__set_result(&op->result, CRM_EX_ERROR, PCMK_EXEC_TIMEOUT, reason); result 1142 daemons/fenced/fenced_remote.c pcmk__set_result(&op->result, CRM_EX_OK, PCMK_EXEC_DONE, NULL); result 1335 daemons/fenced/fenced_remote.c pcmk__set_result(&op->result, CRM_EX_ERROR, PCMK_EXEC_ERROR, result 1815 daemons/fenced/fenced_remote.c pcmk__set_result(&op->result, CRM_EX_OK, PCMK_EXEC_DONE, NULL); result 2066 daemons/fenced/fenced_remote.c pcmk__reset_result(&op->result); result 2067 daemons/fenced/fenced_remote.c pcmk__set_result(&op->result, CRM_EX_ERROR, result 2071 daemons/fenced/fenced_remote.c pcmk__reset_result(&op->result); result 2072 daemons/fenced/fenced_remote.c pcmk__set_result(&op->result, CRM_EX_ERROR, result 2393 daemons/fenced/fenced_remote.c pcmk__set_result(&op->result, CRM_EX_OK, PCMK_EXEC_DONE, NULL); result 2459 daemons/fenced/fenced_remote.c pcmk__action_result_t result = PCMK__UNKNOWN_RESULT; result 2469 daemons/fenced/fenced_remote.c stonith__xe_get_result(dev, &result); result 2477 daemons/fenced/fenced_remote.c if ((op == NULL) && pcmk__result_ok(&result)) { result 2488 daemons/fenced/fenced_remote.c pcmk__reset_result(&result); result 2492 daemons/fenced/fenced_remote.c pcmk__reset_result(&op->result); result 2493 daemons/fenced/fenced_remote.c op->result = result; // The operation takes ownership of the result result 2505 daemons/fenced/fenced_remote.c if (pcmk__result_ok(&op->result)) { result 2525 daemons/fenced/fenced_remote.c const char *reason = op->result.exit_reason; result 2536 daemons/fenced/fenced_remote.c if ((op->phase == 2) && !pcmk__result_ok(&op->result)) { result 2542 daemons/fenced/fenced_remote.c device, pcmk_exec_status_str(op->result.execution_status), result 2546 daemons/fenced/fenced_remote.c pcmk__set_result(&op->result, CRM_EX_OK, PCMK_EXEC_DONE, NULL); result 2555 daemons/fenced/fenced_remote.c pcmk_exec_status_str(op->result.execution_status), result 2561 daemons/fenced/fenced_remote.c if (pcmk__result_ok(&op->result)) { result 2576 daemons/fenced/fenced_remote.c } else if (pcmk__result_ok(&op->result) && (op->devices == NULL)) { result 2581 daemons/fenced/fenced_remote.c } else if ((op->result.execution_status == PCMK_EXEC_TIMEOUT) result 2595 daemons/fenced/fenced_remote.c pcmk_exec_status_str(op->result.execution_status)); result 383 daemons/fenced/pacemaker-fenced.c fenced_send_notification(const char *type, const pcmk__action_result_t *result, result 394 daemons/fenced/pacemaker-fenced.c stonith__xe_set_result(update_msg, result); result 421 daemons/fenced/pacemaker-fenced.c const pcmk__action_result_t *result, result 428 daemons/fenced/pacemaker-fenced.c fenced_send_notification(op, result, notify_data); result 256 daemons/fenced/pacemaker-fenced.h pcmk__action_result_t result; result 320 daemons/fenced/pacemaker-fenced.h void fenced_register_level(xmlNode *msg, pcmk__action_result_t *result); result 321 daemons/fenced/pacemaker-fenced.h void fenced_unregister_level(xmlNode *msg, pcmk__action_result_t *result); result 329 daemons/fenced/pacemaker-fenced.h const pcmk__action_result_t *result); result 335 daemons/fenced/pacemaker-fenced.h const pcmk__action_result_t *result, result 338 daemons/fenced/pacemaker-fenced.h const pcmk__action_result_t *result, result 68 daemons/pacemakerd/pcmkd_messages.c pcmk__format_result(&request->result, CRM_EX_ERROR, PCMK_EXEC_ERROR, result 72 daemons/pacemakerd/pcmkd_messages.c pcmk__set_result(&request->result, CRM_EX_OK, PCMK_EXEC_DONE, NULL); result 130 daemons/pacemakerd/pcmkd_messages.c pcmk__format_result(&request->result, CRM_EX_ERROR, PCMK_EXEC_ERROR, result 134 daemons/pacemakerd/pcmkd_messages.c pcmk__set_result(&request->result, CRM_EX_OK, PCMK_EXEC_DONE, NULL); result 150 daemons/pacemakerd/pcmkd_messages.c pcmk__format_result(&request->result, CRM_EX_PROTOCOL, PCMK_EXEC_INVALID, result 266 daemons/pacemakerd/pcmkd_messages.c .result = PCMK__UNKNOWN_RESULT, result 279 daemons/pacemakerd/pcmkd_messages.c reason = request.result.exit_reason; result 284 daemons/pacemakerd/pcmkd_messages.c pcmk_exec_status_str(request.result.execution_status), result 289 daemons/pacemakerd/pcmkd_messages.c if (!pcmk__result_ok(&request.result)) { result 133 daemons/schedulerd/schedulerd_messages.c pcmk__format_result(&request->result, CRM_EX_ERROR, PCMK_EXEC_ERROR, result 168 daemons/schedulerd/schedulerd_messages.c pcmk__set_result(&request->result, CRM_EX_OK, PCMK_EXEC_DONE, NULL); result 183 daemons/schedulerd/schedulerd_messages.c pcmk__format_result(&request->result, CRM_EX_PROTOCOL, PCMK_EXEC_INVALID, result 197 daemons/schedulerd/schedulerd_messages.c pcmk__set_result(&request->result, CRM_EX_OK, PCMK_EXEC_DONE, NULL); result 298 daemons/schedulerd/schedulerd_messages.c .result = PCMK__UNKNOWN_RESULT, result 311 daemons/schedulerd/schedulerd_messages.c reason = request.result.exit_reason; result 316 daemons/schedulerd/schedulerd_messages.c pcmk_exec_status_str(request.result.execution_status), result 321 daemons/schedulerd/schedulerd_messages.c if (!pcmk__result_ok(&request.result)) { result 305 include/crm/cib/internal.h xmlNode **result); result 30 include/crm/common/acl.h xmlNode **result); result 132 include/crm/common/internal.h uint64_t result = flag_group | flags; result 134 include/crm/common/internal.h if (result != flag_group) { result 141 include/crm/common/internal.h return result; result 164 include/crm/common/internal.h uint64_t result = flag_group & ~flags; result 166 include/crm/common/internal.h if (result != flag_group) { result 174 include/crm/common/internal.h return result; result 83 include/crm/common/ipc_controld.h const char *result; result 250 include/crm/common/ipc_internal.h uint16_t index, struct iovec **result, ssize_t *bytes); result 52 include/crm/common/messages_internal.h pcmk__action_result_t result; // Where to store operation result result 86 include/crm/common/results_internal.h void pcmk__set_result(pcmk__action_result_t *result, int exit_status, result 90 include/crm/common/results_internal.h void pcmk__format_result(pcmk__action_result_t *result, int exit_status, result 94 include/crm/common/results_internal.h void pcmk__set_result_output(pcmk__action_result_t *result, result 97 include/crm/common/results_internal.h void pcmk__reset_result(pcmk__action_result_t *result); result 115 include/crm/common/results_internal.h pcmk__result_ok(const pcmk__action_result_t *result) result 117 include/crm/common/results_internal.h return (result != NULL) && (result->exit_status == CRM_EX_OK) result 118 include/crm/common/results_internal.h && (result->execution_status == PCMK_EXEC_DONE); result 40 include/crm/common/strings_internal.h int pcmk__scan_double(const char *text, double *result, result 43 include/crm/common/strings_internal.h guint *result); result 51 include/crm/common/strings_internal.h char **result, unsigned int *result_len); result 53 include/crm/common/strings_internal.h int pcmk__scan_ll(const char *text, long long *result, long long default_value); result 54 include/crm/common/strings_internal.h int pcmk__scan_min_int(const char *text, int *result, int minimum); result 66 include/crm/fencing/internal.h int stonith__result2rc(const pcmk__action_result_t *result); result 67 include/crm/fencing/internal.h void stonith__xe_set_result(xmlNode *xml, const pcmk__action_result_t *result); result 68 include/crm/fencing/internal.h void stonith__xe_get_result(const xmlNode *xml, pcmk__action_result_t *result); result 73 include/crm/fencing/internal.h const pcmk__action_result_t *result, result 79 include/crm/fencing/internal.h const pcmk__action_result_t *result, result 45 include/crm/lrmd_internal.h const pcmk__action_result_t *result, result 57 include/crm/services_internal.h pcmk__action_result_t *result); result 197 include/crm/stonith-ng.h int result; result 55 lib/cib/cib_attrs.c const char *attr_name, const char *user_name, xmlNode **result) result 148 lib/cib/cib_attrs.c *result = xml_search; result 348 lib/cib/cib_attrs.c xmlNode **result) result 352 lib/cib/cib_attrs.c pcmk__assert(result != NULL); result 355 lib/cib/cib_attrs.c *result = NULL; result 358 lib/cib/cib_attrs.c user_name, result); result 484 lib/cib/cib_attrs.c xmlNode *result = NULL; result 493 lib/cib/cib_attrs.c attr_id, attr_name, user_name, &result); result 496 lib/cib/cib_attrs.c if (result->children == NULL) { result 498 lib/cib/cib_attrs.c crm_element_value(result, PCMK_XA_VALUE)); result 505 lib/cib/cib_attrs.c pcmk__xml_free(result); result 543 lib/cib/cib_attrs.c get_uuid_from_result(const xmlNode *result, char **uuid, int *is_remote) result 549 lib/cib/cib_attrs.c if (result == NULL) { result 554 lib/cib/cib_attrs.c if (pcmk__xe_is(result, PCMK__XE_XPATH_QUERY)) { result 555 lib/cib/cib_attrs.c result = pcmk__xe_first_child(result, NULL, NULL, NULL); result 556 lib/cib/cib_attrs.c CRM_CHECK(result != NULL, return rc); result 559 lib/cib/cib_attrs.c if (pcmk__xe_is(result, PCMK_XE_NODE)) { result 562 lib/cib/cib_attrs.c if (pcmk__str_eq(crm_element_value(result, PCMK_XA_TYPE), result 564 lib/cib/cib_attrs.c parsed_uuid = crm_element_value(result, PCMK_XA_UNAME); result 567 lib/cib/cib_attrs.c parsed_uuid = pcmk__xe_id(result); result 571 lib/cib/cib_attrs.c } else if (pcmk__xe_is(result, PCMK_XE_PRIMITIVE)) { result 574 lib/cib/cib_attrs.c parsed_uuid = pcmk__xe_id(result); result 577 lib/cib/cib_attrs.c } else if (pcmk__xe_is(result, PCMK_XE_NVPAIR)) { result 582 lib/cib/cib_attrs.c parsed_uuid = crm_element_value(result, PCMK_XA_VALUE); result 585 lib/cib/cib_attrs.c } else if (pcmk__xe_is(result, PCMK__XE_NODE_STATE)) { result 588 lib/cib/cib_attrs.c parsed_uuid = crm_element_value(result, PCMK_XA_UNAME); result 589 lib/cib/cib_attrs.c if (pcmk__xe_attr_is_true(result, PCMK_XA_REMOTE_NODE)) { result 173 lib/cib/cib_ops.c int result = pcmk_ok; result 193 lib/cib/cib_ops.c result = -ENXIO; result 206 lib/cib/cib_ops.c if (result == pcmk_ok && *answer == NULL) { result 208 lib/cib/cib_ops.c result = -ENOMSG; result 211 lib/cib/cib_ops.c return result; result 245 lib/cib/cib_ops.c int result = pcmk_ok; result 257 lib/cib/cib_ops.c return result; result 293 lib/cib/cib_ops.c int result = pcmk_ok; result 301 lib/cib/cib_ops.c return result; result 309 lib/cib/cib_ops.c int result = pcmk_ok; result 386 lib/cib/cib_ops.c result = -pcmk_err_old_data; result 402 lib/cib/cib_ops.c result = pcmk__xe_replace_match(obj_root, input); result 403 lib/cib/cib_ops.c result = pcmk_rc2legacy(result); result 404 lib/cib/cib_ops.c if (result != pcmk_ok) { result 409 lib/cib/cib_ops.c return result; result 582 lib/cib/cib_ops.c int result = pcmk_ok; result 618 lib/cib/cib_ops.c result = add_cib_object(update_section, a_child); result 619 lib/cib/cib_ops.c if (update_results(failed, a_child, op, result)) { result 625 lib/cib/cib_ops.c result = add_cib_object(update_section, input); result 626 lib/cib/cib_ops.c update_results(failed, input, op, result); result 629 lib/cib/cib_ops.c if ((result == pcmk_ok) && (failed->children != NULL)) { result 630 lib/cib/cib_ops.c result = -EINVAL; result 633 lib/cib/cib_ops.c if (result != pcmk_ok) { result 641 lib/cib/cib_ops.c return result; result 751 lib/cluster/corosync.c static bool result = false; result 754 lib/cluster/corosync.c return result; result 811 lib/cluster/corosync.c result = true; result 816 lib/cluster/corosync.c crm_debug("Corosync %s node list", (result? "has" : "does not have")); result 820 lib/cluster/corosync.c return result; result 270 lib/cluster/membership.c remote_cache_refresh_helper(xmlNode *result, void *user_data) result 273 lib/cluster/membership.c const char *remote = crm_element_value(result, data->field); result 281 lib/cluster/membership.c state = remote_state_from_cib(result); result 474 lib/common/acl.c xmlNode **result) result 480 lib/common/acl.c *result = NULL; result 553 lib/common/acl.c *result = target; result 396 lib/common/actions.c gboolean result = TRUE; result 412 lib/common/actions.c result = FALSE; result 416 lib/common/actions.c result = FALSE; result 424 lib/common/actions.c result = decode_transition_key(key, uuid, transition_id, action_id, result 428 lib/common/actions.c return result; result 21 lib/common/fuzzers/iso8601_fuzzer.c char *result = NULL; result 40 lib/common/fuzzers/iso8601_fuzzer.c result = pcmk__time_format_hr(ns, now); result 42 lib/common/fuzzers/iso8601_fuzzer.c free(result); result 21 lib/common/fuzzers/scores_fuzzer.c guint result = 0U; result 160 lib/common/ipc_controld.c data->data.ping.result = crm_element_value(msg_data, PCMK_XA_RESULT); result 596 lib/common/ipc_server.c struct iovec **result, ssize_t *bytes) result 607 lib/common/ipc_server.c if ((message == NULL) || (result == NULL)) { result 618 lib/common/ipc_server.c *result = NULL; result 687 lib/common/ipc_server.c *result = iov; result 263 lib/common/iso8601.c int result = 0; result 268 lib/common/iso8601.c result = d; result 270 lib/common/iso8601.c result += crm_time_days_in_month(lpc, y); result 272 lib/common/iso8601.c return result; result 507 lib/common/iso8601.c char *result) result 514 lib/common/iso8601.c offset += snprintf(result + offset, DATE_MAX - offset, "%4d year%s ", result 518 lib/common/iso8601.c offset += snprintf(result + offset, DATE_MAX - offset, "%2d month%s ", result 522 lib/common/iso8601.c offset += snprintf(result + offset, DATE_MAX - offset, "%2d day%s ", result 529 lib/common/iso8601.c sec_usec_as_string(dt->seconds, usec, result, &offset); result 531 lib/common/iso8601.c offset += snprintf(result + offset, DATE_MAX - offset, "%d", result 534 lib/common/iso8601.c offset += snprintf(result + offset, DATE_MAX - offset, " second%s", result 549 lib/common/iso8601.c offset += snprintf(result + offset, DATE_MAX - offset, " ("); result 552 lib/common/iso8601.c offset += snprintf(result + offset, DATE_MAX - offset, result 558 lib/common/iso8601.c offset += snprintf(result + offset, DATE_MAX - offset, result 565 lib/common/iso8601.c sec_usec_as_string(s, u, result, &offset); result 567 lib/common/iso8601.c offset += snprintf(result + offset, DATE_MAX - offset, result 570 lib/common/iso8601.c offset += snprintf(result + offset, DATE_MAX - offset, " second%s", result 574 lib/common/iso8601.c offset += snprintf(result + offset, DATE_MAX - offset, ")"); result 591 lib/common/iso8601.c char *result) result 597 lib/common/iso8601.c strcpy(result, "<undefined time>"); result 609 lib/common/iso8601.c result); result 623 lib/common/iso8601.c sec_usec_as_string(seconds, usec, result, &offset); result 625 lib/common/iso8601.c snprintf(result, DATE_MAX, "%lld", seconds); result 646 lib/common/iso8601.c offset += snprintf(result + offset, DATE_MAX - offset, result 656 lib/common/iso8601.c offset += snprintf(result + offset, DATE_MAX - offset, result 666 lib/common/iso8601.c offset += snprintf(result + offset, DATE_MAX - offset, result 677 lib/common/iso8601.c offset += snprintf(result + offset, DATE_MAX - offset, " "); result 681 lib/common/iso8601.c offset += snprintf(result + offset, DATE_MAX - offset, result 686 lib/common/iso8601.c offset += snprintf(result + offset, DATE_MAX - offset, result 694 lib/common/iso8601.c offset += snprintf(result + offset, DATE_MAX - offset, result 698 lib/common/iso8601.c offset += snprintf(result + offset, DATE_MAX - offset, "Z"); result 716 lib/common/iso8601.c char result[DATE_MAX] = { '\0', }; result 718 lib/common/iso8601.c time_as_string_common(dt, 0, flags, result); result 719 lib/common/iso8601.c return pcmk__str_copy(result); result 734 lib/common/iso8601.c crm_time_parse_sec(const char *time_str, int *result) result 741 lib/common/iso8601.c *result = 0; result 780 lib/common/iso8601.c *result = (hour * HOUR_SECONDS) + (minute * 60) + second; result 1067 lib/common/iso8601.c parse_int(const char *str, int *result) result 1073 lib/common/iso8601.c *result = 0; result 1098 lib/common/iso8601.c if ((*result * 10LL + digit) > INT_MAX) { result 1101 lib/common/iso8601.c *result = *result * 10 + digit; result 1104 lib/common/iso8601.c *result = 0 - *result; result 1148 lib/common/iso8601.c long long result = 0LL; result 1178 lib/common/iso8601.c result = diff->seconds + an_int * 60LL; result 1179 lib/common/iso8601.c if ((result < INT_MIN) || (result > INT_MAX)) { result 1183 lib/common/iso8601.c ((result > 0)? "large" : "small")); result 1186 lib/common/iso8601.c diff->seconds = (int) result; result 1193 lib/common/iso8601.c result = diff->days + an_int * 7LL; result 1194 lib/common/iso8601.c if ((result < INT_MIN) || (result > INT_MAX)) { result 1198 lib/common/iso8601.c ((result > 0)? "large" : "small")); result 1201 lib/common/iso8601.c diff->days = (int) result; result 1206 lib/common/iso8601.c result = diff->days + (long long) an_int; result 1207 lib/common/iso8601.c if ((result < INT_MIN) || (result > INT_MAX)) { result 1211 lib/common/iso8601.c ((result > 0)? "large" : "small")); result 1214 lib/common/iso8601.c diff->days = (int) result; result 1219 lib/common/iso8601.c result = diff->seconds + (long long) an_int * HOUR_SECONDS; result 1220 lib/common/iso8601.c if ((result < INT_MIN) || (result > INT_MAX)) { result 1224 lib/common/iso8601.c ((result > 0)? "large" : "small")); result 1227 lib/common/iso8601.c diff->seconds = (int) result; result 1232 lib/common/iso8601.c result = diff->seconds + (long long) an_int; result 1233 lib/common/iso8601.c if ((result < INT_MIN) || (result > INT_MAX)) { result 1237 lib/common/iso8601.c ((result > 0)? "large" : "small")); result 1240 lib/common/iso8601.c diff->seconds = (int) result; result 2187 lib/common/iso8601.c char result[DATE_MAX] = { 0 }; result 2194 lib/common/iso8601.c time_as_string_common(&dt, ts->tv_nsec / QB_TIME_NS_IN_USEC, flags, result); result 2195 lib/common/iso8601.c return pcmk__str_copy(result); result 16 lib/common/lists.c GList *result = g_list_copy(from); result 19 lib/common/lists.c GList *match = g_list_find_custom(result, item->data, cmp); result 22 lib/common/lists.c result = g_list_remove(result, match->data); result 26 lib/common/lists.c return result; result 249 lib/common/messages.c pcmk__reset_result(&(request->result)); result 379 lib/common/mock.c size_t buflen, struct passwd **result) result 388 lib/common/mock.c check_expected_ptr(result); result 389 lib/common/mock.c *result = mock_ptr_type(struct passwd *); result 393 lib/common/mock.c return __real_getpwnam_r(name, pwd, buf, buflen, result); result 79 lib/common/mock_private.h char *buf, size_t buflen, struct passwd **result); result 81 lib/common/mock_private.h char *buf, size_t buflen, struct passwd **result); result 173 lib/common/nodes.c bool result = false; result 179 lib/common/nodes.c result = fn((pcmk_resource_t *) item->data, user_data); result 180 lib/common/nodes.c if (!result) { result 185 lib/common/nodes.c return result; result 689 lib/common/nvpair.c GSList *result = NULL; result 694 lib/common/nvpair.c result = pcmk_prepend_nvpair(result, result 698 lib/common/nvpair.c return result; result 107 lib/common/patchset.c xmlNode *result = NULL; result 110 lib/common/patchset.c result = pcmk__xe_create(change, (const char *)xml->name); result 117 lib/common/patchset.c crm_xml_add(result, (const char *)pIter->name, value); result 1088 lib/common/results.c pcmk__set_result(pcmk__action_result_t *result, int exit_status, result 1091 lib/common/results.c if (result == NULL) { result 1095 lib/common/results.c result->exit_status = exit_status; result 1096 lib/common/results.c result->execution_status = exec_status; result 1098 lib/common/results.c if (!pcmk__str_eq(result->exit_reason, exit_reason, pcmk__str_none)) { result 1099 lib/common/results.c free(result->exit_reason); result 1100 lib/common/results.c result->exit_reason = (exit_reason == NULL)? NULL : strdup(exit_reason); result 1118 lib/common/results.c pcmk__format_result(pcmk__action_result_t *result, int exit_status, result 1126 lib/common/results.c if (result == NULL) { result 1130 lib/common/results.c result->exit_status = exit_status; result 1131 lib/common/results.c result->execution_status = exec_status; result 1139 lib/common/results.c free(result->exit_reason); result 1140 lib/common/results.c result->exit_reason = reason; result 1157 lib/common/results.c pcmk__set_result_output(pcmk__action_result_t *result, char *out, char *err) result 1159 lib/common/results.c if (result == NULL) { result 1163 lib/common/results.c free(result->action_stdout); result 1164 lib/common/results.c result->action_stdout = out; result 1166 lib/common/results.c free(result->action_stderr); result 1167 lib/common/results.c result->action_stderr = err; result 1177 lib/common/results.c pcmk__reset_result(pcmk__action_result_t *result) result 1179 lib/common/results.c if (result == NULL) { result 1183 lib/common/results.c free(result->exit_reason); result 1184 lib/common/results.c result->exit_reason = NULL; result 1186 lib/common/results.c free(result->action_stdout); result 1187 lib/common/results.c result->action_stdout = NULL; result 1189 lib/common/results.c free(result->action_stderr); result 1190 lib/common/results.c result->action_stderr = NULL; result 618 lib/common/rules.c char *result = NULL; result 631 lib/common/rules.c result = pcmk__assert_alloc(nbytes, sizeof(char)); result 634 lib/common/rules.c (void) process_submatches(string, match, submatches, nmatches, result, result 636 lib/common/rules.c return result; result 164 lib/common/scores.c int result = score1 + score2; result 175 lib/common/scores.c if (result >= PCMK_SCORE_INFINITY) { result 178 lib/common/scores.c if (result <= -PCMK_SCORE_INFINITY) { result 182 lib/common/scores.c return result; result 193 lib/common/scores.c int result = 0; result 195 lib/common/scores.c (void) pcmk_parse_score(score, &result, 0); result 196 lib/common/scores.c return result; result 38 lib/common/strings.c scan_ll(const char *text, long long *result, long long default_value, result 75 lib/common/strings.c if (result != NULL) { result 76 lib/common/strings.c *result = local_result; result 92 lib/common/strings.c pcmk__scan_ll(const char *text, long long *result, long long default_value) result 97 lib/common/strings.c if (result != NULL) { result 98 lib/common/strings.c *result = local_result; result 116 lib/common/strings.c pcmk__scan_min_int(const char *text, int *result, int minimum) result 133 lib/common/strings.c if (result != NULL) { result 134 lib/common/strings.c *result = (int) result_ll; result 191 lib/common/strings.c pcmk__scan_double(const char *text, double *result, const char *default_text, result 197 lib/common/strings.c pcmk__assert(result != NULL); result 198 lib/common/strings.c *result = PCMK__PARSE_DBL_DEFAULT; result 208 lib/common/strings.c *result = strtod(text, &local_end_text); result 222 lib/common/strings.c if (QB_ABS(*result) > DBL_MIN) { result 231 lib/common/strings.c "(using %g instead)", text, over_under, *result); result 236 lib/common/strings.c *result = PCMK__PARSE_DBL_DEFAULT; result 245 lib/common/strings.c *result = PCMK__PARSE_DBL_DEFAULT; result 251 lib/common/strings.c } else if (QB_ABS(*result) <= DBL_MIN) { result 268 lib/common/strings.c "underflow (using %g instead)", text, *result); result 275 lib/common/strings.c "'%s': %g", text, *result); result 304 lib/common/strings.c guint *result) result 312 lib/common/strings.c if (result != NULL) { result 313 lib/common/strings.c *result = default_val; result 334 lib/common/strings.c if (result != NULL) { result 335 lib/common/strings.c *result = (guint) value_ll; result 840 lib/common/strings.c char **result, unsigned int *result_len) result 886 lib/common/strings.c *result = compressed; result 1255 lib/common/strings.c char *result = strdup(str); result 1257 lib/common/strings.c if (result == NULL) { result 1261 lib/common/strings.c return result; result 23 lib/common/tests/digest/crm_md5sum_test.c char *result = crm_md5sum("abcdefghijklmnopqrstuvwxyz"); result 25 lib/common/tests/digest/crm_md5sum_test.c assert_string_equal(result, "c3fcd3d76192e4007dfb496cca67e13b"); result 26 lib/common/tests/digest/crm_md5sum_test.c free(result); result 19 lib/common/tests/io/pcmk__get_tmpdir_test.c const char *result; result 25 lib/common/tests/io/pcmk__get_tmpdir_test.c result = pcmk__get_tmpdir(); result 26 lib/common/tests/io/pcmk__get_tmpdir_test.c assert_string_equal(result, "/tmp"); result 30 lib/common/tests/io/pcmk__get_tmpdir_test.c result = pcmk__get_tmpdir(); result 31 lib/common/tests/io/pcmk__get_tmpdir_test.c assert_string_equal(result, "/tmp"); result 35 lib/common/tests/io/pcmk__get_tmpdir_test.c result = pcmk__get_tmpdir(); result 36 lib/common/tests/io/pcmk__get_tmpdir_test.c assert_string_equal(result, "/tmp"); result 44 lib/common/tests/io/pcmk__get_tmpdir_test.c const char *result; result 50 lib/common/tests/io/pcmk__get_tmpdir_test.c result = pcmk__get_tmpdir(); result 51 lib/common/tests/io/pcmk__get_tmpdir_test.c assert_string_equal(result, "/var/tmp"); result 55 lib/common/tests/io/pcmk__get_tmpdir_test.c result = pcmk__get_tmpdir(); result 56 lib/common/tests/io/pcmk__get_tmpdir_test.c assert_string_equal(result, "/"); result 60 lib/common/tests/io/pcmk__get_tmpdir_test.c result = pcmk__get_tmpdir(); result 61 lib/common/tests/io/pcmk__get_tmpdir_test.c assert_string_equal(result, "/tmp/abcd.1234"); result 36 lib/common/tests/iso8601/pcmk__time_format_hr_test.c char *result = pcmk__time_format_hr(format, hr); result 41 lib/common/tests/iso8601/pcmk__time_format_hr_test.c assert_null(result); result 45 lib/common/tests/iso8601/pcmk__time_format_hr_test.c assert_non_null(result); result 48 lib/common/tests/iso8601/pcmk__time_format_hr_test.c assert_string_equal(result, expected); result 50 lib/common/tests/iso8601/pcmk__time_format_hr_test.c assert_true((strcmp(result, expected) == 0) result 51 lib/common/tests/iso8601/pcmk__time_format_hr_test.c || (strcmp(result, alternate) == 0)); result 54 lib/common/tests/iso8601/pcmk__time_format_hr_test.c free(result); result 22 lib/common/tests/lists/pcmk__subtract_lists_test.c GList *result = NULL; result 31 lib/common/tests/lists/pcmk__subtract_lists_test.c result = pcmk__subtract_lists(from, items, (GCompareFunc) strcmp); result 33 lib/common/tests/lists/pcmk__subtract_lists_test.c assert_int_equal(g_list_length(result), 3); result 34 lib/common/tests/lists/pcmk__subtract_lists_test.c assert_string_equal(g_list_nth_data(result, 0), "abc"); result 35 lib/common/tests/lists/pcmk__subtract_lists_test.c assert_string_equal(g_list_nth_data(result, 1), "def"); result 36 lib/common/tests/lists/pcmk__subtract_lists_test.c assert_string_equal(g_list_nth_data(result, 2), "ghi"); result 38 lib/common/tests/lists/pcmk__subtract_lists_test.c g_list_free(result); result 48 lib/common/tests/lists/pcmk__subtract_lists_test.c GList *result = NULL; result 56 lib/common/tests/lists/pcmk__subtract_lists_test.c result = pcmk__subtract_lists(from, items, (GCompareFunc) strcmp); result 58 lib/common/tests/lists/pcmk__subtract_lists_test.c assert_int_equal(g_list_length(result), 2); result 59 lib/common/tests/lists/pcmk__subtract_lists_test.c assert_string_equal(g_list_nth_data(result, 0), "def"); result 60 lib/common/tests/lists/pcmk__subtract_lists_test.c assert_string_equal(g_list_nth_data(result, 1), "ghi"); result 62 lib/common/tests/lists/pcmk__subtract_lists_test.c g_list_free(result); result 72 lib/common/tests/lists/pcmk__subtract_lists_test.c GList *result = NULL; result 80 lib/common/tests/lists/pcmk__subtract_lists_test.c result = pcmk__subtract_lists(from, items, (GCompareFunc) strcmp); result 82 lib/common/tests/lists/pcmk__subtract_lists_test.c assert_int_equal(g_list_length(result), 2); result 83 lib/common/tests/lists/pcmk__subtract_lists_test.c assert_string_equal(g_list_nth_data(result, 0), "abc"); result 84 lib/common/tests/lists/pcmk__subtract_lists_test.c assert_string_equal(g_list_nth_data(result, 1), "ghi"); result 86 lib/common/tests/lists/pcmk__subtract_lists_test.c g_list_free(result); result 96 lib/common/tests/lists/pcmk__subtract_lists_test.c GList *result = NULL; result 104 lib/common/tests/lists/pcmk__subtract_lists_test.c result = pcmk__subtract_lists(from, items, (GCompareFunc) strcmp); result 106 lib/common/tests/lists/pcmk__subtract_lists_test.c assert_int_equal(g_list_length(result), 2); result 107 lib/common/tests/lists/pcmk__subtract_lists_test.c assert_string_equal(g_list_nth_data(result, 0), "abc"); result 108 lib/common/tests/lists/pcmk__subtract_lists_test.c assert_string_equal(g_list_nth_data(result, 1), "def"); result 110 lib/common/tests/lists/pcmk__subtract_lists_test.c g_list_free(result); result 120 lib/common/tests/lists/pcmk__subtract_lists_test.c GList *result = NULL; result 130 lib/common/tests/lists/pcmk__subtract_lists_test.c result = pcmk__subtract_lists(from, items, (GCompareFunc) strcmp); result 132 lib/common/tests/lists/pcmk__subtract_lists_test.c assert_int_equal(g_list_length(result), 0); result 134 lib/common/tests/lists/pcmk__subtract_lists_test.c g_list_free(result); result 23 lib/common/tests/strings/pcmk__compress_test.c char *result = pcmk__assert_alloc(1024, sizeof(char)); result 26 lib/common/tests/strings/pcmk__compress_test.c assert_int_equal(pcmk__compress(SIMPLE_DATA, 40, 0, &result, &len), pcmk_rc_ok); result 27 lib/common/tests/strings/pcmk__compress_test.c assert_memory_equal(result, SIMPLE_COMPRESSED, 13); result 33 lib/common/tests/strings/pcmk__compress_test.c char *result = pcmk__assert_alloc(1024, sizeof(char)); result 36 lib/common/tests/strings/pcmk__compress_test.c assert_int_equal(pcmk__compress(SIMPLE_DATA, 40, 10, &result, &len), EFBIG); result 41 lib/common/tests/strings/pcmk__compress_test.c char *result = pcmk__assert_alloc(1024, sizeof(char)); result 50 lib/common/tests/strings/pcmk__compress_test.c pcmk__compress(SIMPLE_DATA, 40, 0, &result, &len); result 20 lib/common/tests/strings/pcmk__guint_from_hash_test.c guint result; result 22 lib/common/tests/strings/pcmk__guint_from_hash_test.c assert_int_equal(pcmk__guint_from_hash(NULL, "abc", 123, &result), EINVAL); result 23 lib/common/tests/strings/pcmk__guint_from_hash_test.c assert_int_equal(pcmk__guint_from_hash(tbl, NULL, 123, &result), EINVAL); result 32 lib/common/tests/strings/pcmk__guint_from_hash_test.c guint result; result 34 lib/common/tests/strings/pcmk__guint_from_hash_test.c assert_int_equal(pcmk__guint_from_hash(tbl, "abc", 123, &result), pcmk_rc_ok); result 35 lib/common/tests/strings/pcmk__guint_from_hash_test.c assert_int_equal(result, 123); result 44 lib/common/tests/strings/pcmk__guint_from_hash_test.c guint result; result 48 lib/common/tests/strings/pcmk__guint_from_hash_test.c assert_int_equal(pcmk__guint_from_hash(tbl, "abc", 456, &result), pcmk_rc_ok); result 49 lib/common/tests/strings/pcmk__guint_from_hash_test.c assert_int_equal(result, 123); result 58 lib/common/tests/strings/pcmk__guint_from_hash_test.c guint result; result 64 lib/common/tests/strings/pcmk__guint_from_hash_test.c assert_int_equal(pcmk__guint_from_hash(tbl, "negative", 456, &result), ERANGE); result 65 lib/common/tests/strings/pcmk__guint_from_hash_test.c assert_int_equal(result, 456); result 67 lib/common/tests/strings/pcmk__guint_from_hash_test.c assert_int_equal(pcmk__guint_from_hash(tbl, "toobig", 456, &result), ERANGE); result 68 lib/common/tests/strings/pcmk__guint_from_hash_test.c assert_int_equal(result, 456); result 70 lib/common/tests/strings/pcmk__guint_from_hash_test.c assert_int_equal(pcmk__guint_from_hash(tbl, "baddata", 456, &result), result 72 lib/common/tests/strings/pcmk__guint_from_hash_test.c assert_int_equal(result, 456); result 31 lib/common/tests/strings/pcmk__scan_double_test.c double result; result 34 lib/common/tests/strings/pcmk__scan_double_test.c assert_int_equal(pcmk__scan_double(NULL, &result, NULL, NULL), EINVAL); result 35 lib/common/tests/strings/pcmk__scan_double_test.c assert_float_equal(result, PCMK__PARSE_DBL_DEFAULT, DBL_EPSILON); result 37 lib/common/tests/strings/pcmk__scan_double_test.c assert_int_equal(pcmk__scan_double("", &result, NULL, NULL), EINVAL); result 38 lib/common/tests/strings/pcmk__scan_double_test.c assert_float_equal(result, PCMK__PARSE_DBL_DEFAULT, DBL_EPSILON); result 41 lib/common/tests/strings/pcmk__scan_double_test.c assert_int_equal(pcmk__scan_double(NULL, &result, "2.0", NULL), pcmk_rc_ok); result 42 lib/common/tests/strings/pcmk__scan_double_test.c assert_float_equal(result, 2.0, DBL_EPSILON); result 44 lib/common/tests/strings/pcmk__scan_double_test.c assert_int_equal(pcmk__scan_double("", &result, "2.0", NULL), EINVAL); result 45 lib/common/tests/strings/pcmk__scan_double_test.c assert_float_equal(result, PCMK__PARSE_DBL_DEFAULT, DBL_EPSILON); result 51 lib/common/tests/strings/pcmk__scan_double_test.c double result; result 54 lib/common/tests/strings/pcmk__scan_double_test.c assert_int_equal(pcmk__scan_double("asdf", &result, NULL, NULL), EINVAL); result 55 lib/common/tests/strings/pcmk__scan_double_test.c assert_float_equal(result, PCMK__PARSE_DBL_DEFAULT, DBL_EPSILON); result 57 lib/common/tests/strings/pcmk__scan_double_test.c assert_int_equal(pcmk__scan_double("as2.0", &result, NULL, NULL), EINVAL); result 58 lib/common/tests/strings/pcmk__scan_double_test.c assert_float_equal(result, PCMK__PARSE_DBL_DEFAULT, DBL_EPSILON); result 61 lib/common/tests/strings/pcmk__scan_double_test.c assert_int_equal(pcmk__scan_double("asdf", &result, "2.0", NULL), EINVAL); result 62 lib/common/tests/strings/pcmk__scan_double_test.c assert_float_equal(result, PCMK__PARSE_DBL_DEFAULT, DBL_EPSILON); result 64 lib/common/tests/strings/pcmk__scan_double_test.c assert_int_equal(pcmk__scan_double("as2.0", &result, "2.0", NULL), EINVAL); result 65 lib/common/tests/strings/pcmk__scan_double_test.c assert_float_equal(result, PCMK__PARSE_DBL_DEFAULT, DBL_EPSILON); result 71 lib/common/tests/strings/pcmk__scan_double_test.c double result; result 74 lib/common/tests/strings/pcmk__scan_double_test.c assert_int_equal(pcmk__scan_double("2.0asdf", &result, NULL, &end_text), pcmk_rc_ok); result 75 lib/common/tests/strings/pcmk__scan_double_test.c assert_float_equal(result, 2.0, DBL_EPSILON); result 89 lib/common/tests/strings/pcmk__scan_double_test.c double result; result 91 lib/common/tests/strings/pcmk__scan_double_test.c assert_int_equal(pcmk__scan_double("0.0", &result, NULL, NULL), pcmk_rc_ok); result 92 lib/common/tests/strings/pcmk__scan_double_test.c assert_float_equal(result, 0.0, DBL_EPSILON); result 94 lib/common/tests/strings/pcmk__scan_double_test.c assert_int_equal(pcmk__scan_double("1.0", &result, NULL, NULL), pcmk_rc_ok); result 95 lib/common/tests/strings/pcmk__scan_double_test.c assert_float_equal(result, 1.0, DBL_EPSILON); result 97 lib/common/tests/strings/pcmk__scan_double_test.c assert_int_equal(pcmk__scan_double("-1.0", &result, NULL, NULL), pcmk_rc_ok); result 98 lib/common/tests/strings/pcmk__scan_double_test.c assert_float_equal(result, -1.0, DBL_EPSILON); result 101 lib/common/tests/strings/pcmk__scan_double_test.c assert_int_equal(pcmk__scan_double(str, &result, NULL, NULL), pcmk_rc_ok); result 102 lib/common/tests/strings/pcmk__scan_double_test.c assert_float_equal(result, DBL_MAX, DBL_EPSILON); result 105 lib/common/tests/strings/pcmk__scan_double_test.c assert_int_equal(pcmk__scan_double(str, &result, NULL, NULL), pcmk_rc_ok); result 106 lib/common/tests/strings/pcmk__scan_double_test.c assert_float_equal(result, -DBL_MAX, DBL_EPSILON); result 113 lib/common/tests/strings/pcmk__scan_double_test.c double result; result 120 lib/common/tests/strings/pcmk__scan_double_test.c assert_int_equal(pcmk__scan_double(str, &result, NULL, NULL), EOVERFLOW); result 121 lib/common/tests/strings/pcmk__scan_double_test.c assert_true(result > DBL_MAX); result 124 lib/common/tests/strings/pcmk__scan_double_test.c assert_int_equal(pcmk__scan_double(str, &result, NULL, NULL), EOVERFLOW); result 125 lib/common/tests/strings/pcmk__scan_double_test.c assert_true(result < -DBL_MAX); result 132 lib/common/tests/strings/pcmk__scan_double_test.c double result; result 141 lib/common/tests/strings/pcmk__scan_double_test.c assert_int_equal(pcmk__scan_double(str, &result, NULL, NULL), pcmk_rc_underflow); result 142 lib/common/tests/strings/pcmk__scan_double_test.c assert_true(result >= 0.0); result 143 lib/common/tests/strings/pcmk__scan_double_test.c assert_true(result <= DBL_MIN); result 146 lib/common/tests/strings/pcmk__scan_double_test.c assert_int_equal(pcmk__scan_double(str, &result, NULL, NULL), pcmk_rc_underflow); result 147 lib/common/tests/strings/pcmk__scan_double_test.c assert_true(result <= 0.0); result 148 lib/common/tests/strings/pcmk__scan_double_test.c assert_true(result >= -DBL_MIN); result 19 lib/common/tests/strings/pcmk__scan_ll_test.c long long result; result 21 lib/common/tests/strings/pcmk__scan_ll_test.c assert_int_equal(pcmk__scan_ll(NULL, &result, 47), pcmk_rc_ok); result 22 lib/common/tests/strings/pcmk__scan_ll_test.c assert_int_equal(result, 47); result 28 lib/common/tests/strings/pcmk__scan_ll_test.c long long result; result 30 lib/common/tests/strings/pcmk__scan_ll_test.c assert_int_equal(pcmk__scan_ll("asdf", &result, 47), pcmk_rc_bad_input); result 31 lib/common/tests/strings/pcmk__scan_ll_test.c assert_int_equal(result, 47); result 32 lib/common/tests/strings/pcmk__scan_ll_test.c assert_int_equal(pcmk__scan_ll("as12", &result, 47), pcmk_rc_bad_input); result 33 lib/common/tests/strings/pcmk__scan_ll_test.c assert_int_equal(result, 47); result 39 lib/common/tests/strings/pcmk__scan_ll_test.c long long result; result 41 lib/common/tests/strings/pcmk__scan_ll_test.c assert_int_equal(pcmk__scan_ll("12as", &result, 47), pcmk_rc_ok); result 42 lib/common/tests/strings/pcmk__scan_ll_test.c assert_int_equal(result, 12); result 55 lib/common/tests/strings/pcmk__scan_ll_test.c long long result = 0LL; result 58 lib/common/tests/strings/pcmk__scan_ll_test.c assert_int_equal(pcmk__scan_ll(very_long, &result, 47), ERANGE); result 59 lib/common/tests/strings/pcmk__scan_ll_test.c assert_true(result == LLONG_MAX); result 62 lib/common/tests/strings/pcmk__scan_ll_test.c assert_int_equal(pcmk__scan_ll(very_long, &result, 47), ERANGE); result 63 lib/common/tests/strings/pcmk__scan_ll_test.c assert_true(result == LLONG_MIN); result 71 lib/common/tests/strings/pcmk__scan_ll_test.c long long result; result 73 lib/common/tests/strings/pcmk__scan_ll_test.c assert_int_equal(pcmk__scan_ll("1234", &result, 47), pcmk_rc_ok); result 74 lib/common/tests/strings/pcmk__scan_ll_test.c assert_int_equal(result, 1234); result 17 lib/common/tests/strings/pcmk__scan_min_int_test.c int result; result 19 lib/common/tests/strings/pcmk__scan_min_int_test.c assert_int_equal(pcmk__scan_min_int("", &result, 1), pcmk_rc_bad_input); result 20 lib/common/tests/strings/pcmk__scan_min_int_test.c assert_int_equal(result, 1); result 22 lib/common/tests/strings/pcmk__scan_min_int_test.c assert_int_equal(pcmk__scan_min_int(NULL, &result, 1), pcmk_rc_ok); result 23 lib/common/tests/strings/pcmk__scan_min_int_test.c assert_int_equal(result, 1); result 29 lib/common/tests/strings/pcmk__scan_min_int_test.c int result; result 31 lib/common/tests/strings/pcmk__scan_min_int_test.c assert_int_equal(pcmk__scan_min_int("100", &result, 1024), pcmk_rc_ok); result 32 lib/common/tests/strings/pcmk__scan_min_int_test.c assert_int_equal(result, 1024); result 38 lib/common/tests/strings/pcmk__scan_min_int_test.c int result; result 40 lib/common/tests/strings/pcmk__scan_min_int_test.c assert_int_equal(pcmk__scan_min_int("20000000000000000", &result, 100), EOVERFLOW); result 41 lib/common/tests/strings/pcmk__scan_min_int_test.c assert_int_equal(result, INT_MAX); result 47 lib/common/tests/strings/pcmk__scan_min_int_test.c int result; result 49 lib/common/tests/strings/pcmk__scan_min_int_test.c assert_int_equal(pcmk__scan_min_int("1024", &result, 1024), pcmk_rc_ok); result 50 lib/common/tests/strings/pcmk__scan_min_int_test.c assert_int_equal(result, 1024); result 52 lib/common/tests/strings/pcmk__scan_min_int_test.c assert_int_equal(pcmk__scan_min_int("2048", &result, 1024), pcmk_rc_ok); result 53 lib/common/tests/strings/pcmk__scan_min_int_test.c assert_int_equal(result, 2048); result 17 lib/common/tests/strings/pcmk__scan_port_test.c int result; result 19 lib/common/tests/strings/pcmk__scan_port_test.c assert_int_equal(pcmk__scan_port("", &result), pcmk_rc_bad_input); result 20 lib/common/tests/strings/pcmk__scan_port_test.c assert_int_equal(result, -1); result 26 lib/common/tests/strings/pcmk__scan_port_test.c int result; result 28 lib/common/tests/strings/pcmk__scan_port_test.c assert_int_equal(pcmk__scan_port("abc", &result), pcmk_rc_bad_input); result 29 lib/common/tests/strings/pcmk__scan_port_test.c assert_int_equal(result, -1); result 35 lib/common/tests/strings/pcmk__scan_port_test.c int result; result 37 lib/common/tests/strings/pcmk__scan_port_test.c assert_int_equal(pcmk__scan_port("-1", &result), pcmk_rc_before_range); result 38 lib/common/tests/strings/pcmk__scan_port_test.c assert_int_equal(result, -1); result 39 lib/common/tests/strings/pcmk__scan_port_test.c assert_int_equal(pcmk__scan_port("65536", &result), pcmk_rc_after_range); result 40 lib/common/tests/strings/pcmk__scan_port_test.c assert_int_equal(result, -1); result 46 lib/common/tests/strings/pcmk__scan_port_test.c int result; result 48 lib/common/tests/strings/pcmk__scan_port_test.c assert_int_equal(pcmk__scan_port("0", &result), pcmk_rc_ok); result 49 lib/common/tests/strings/pcmk__scan_port_test.c assert_int_equal(result, 0); result 51 lib/common/tests/strings/pcmk__scan_port_test.c assert_int_equal(pcmk__scan_port("80", &result), pcmk_rc_ok); result 52 lib/common/tests/strings/pcmk__scan_port_test.c assert_int_equal(result, 80); result 48 lib/common/tests/utils/crm_user_lookup_test.c expect_any(__wrap_getpwnam_r, result); result 70 lib/common/tests/utils/crm_user_lookup_test.c expect_any(__wrap_getpwnam_r, result); result 99 lib/common/tests/utils/crm_user_lookup_test.c expect_any(__wrap_getpwnam_r, result); result 112 lib/common/tests/utils/crm_user_lookup_test.c expect_any(__wrap_getpwnam_r, result); result 33 lib/common/tests/utils/pcmk_daemon_user_test.c expect_any(__wrap_getpwnam_r, result); result 62 lib/common/tests/utils/pcmk_daemon_user_test.c expect_any(__wrap_getpwnam_r, result); result 33 lib/common/tests/xml/pcmk__xml_is_name_char_test.c bool result = pcmk__xml_is_name_char(utf8_buf, &len); result 36 lib/common/tests/xml/pcmk__xml_is_name_char_test.c assert_true(result); result 38 lib/common/tests/xml/pcmk__xml_is_name_char_test.c assert_false(result); result 34 lib/common/tests/xml/pcmk__xml_is_name_start_char_test.c bool result = pcmk__xml_is_name_start_char(utf8_buf, &len); result 37 lib/common/tests/xml/pcmk__xml_is_name_start_char_test.c assert_true(result); result 39 lib/common/tests/xml/pcmk__xml_is_name_start_char_test.c assert_false(result); result 69 lib/common/tests/xml_element/pcmk__xe_first_child_test.c xmlNode *result = NULL; result 72 lib/common/tests/xml_element/pcmk__xe_first_child_test.c result = pcmk__xe_first_child(xml, NULL, "attrB", NULL); result 73 lib/common/tests/xml_element/pcmk__xe_first_child_test.c assert_non_null(result); result 74 lib/common/tests/xml_element/pcmk__xe_first_child_test.c assert_string_equal(crm_element_value(result, PCMK_XA_ID), "3"); result 77 lib/common/tests/xml_element/pcmk__xe_first_child_test.c result = pcmk__xe_first_child(xml, "nodeB", "attrB", NULL); result 78 lib/common/tests/xml_element/pcmk__xe_first_child_test.c assert_non_null(result); result 79 lib/common/tests/xml_element/pcmk__xe_first_child_test.c assert_string_equal(crm_element_value(result, PCMK_XA_ID), "5"); result 87 lib/common/tests/xml_element/pcmk__xe_first_child_test.c xmlNode *result = NULL; result 90 lib/common/tests/xml_element/pcmk__xe_first_child_test.c result = pcmk__xe_first_child(xml, NULL, "attrA", "456"); result 91 lib/common/tests/xml_element/pcmk__xe_first_child_test.c assert_non_null(result); result 92 lib/common/tests/xml_element/pcmk__xe_first_child_test.c assert_string_equal(crm_element_value(result, PCMK_XA_ID), "2"); result 95 lib/common/tests/xml_element/pcmk__xe_first_child_test.c result = pcmk__xe_first_child(xml, "nodeB", "attrA", "123"); result 96 lib/common/tests/xml_element/pcmk__xe_first_child_test.c assert_non_null(result); result 97 lib/common/tests/xml_element/pcmk__xe_first_child_test.c assert_string_equal(crm_element_value(result, PCMK_XA_ID), "4"); result 529 lib/common/xml_element.c const char *result = NULL; result 531 lib/common/xml_element.c result = crm_xml_add(xe, PCMK_XA_CIB_LAST_WRITTEN, result 534 lib/common/xml_element.c return result; result 1585 lib/common/xml_element.c xmlNode *result = NULL; result 1589 lib/common/xml_element.c result = pcmk__xe_create(parent, (const char *) input->name); result 1592 lib/common/xml_element.c pcmk_nvpairs2xml_attrs(nvpairs, result); result 1599 lib/common/xml_element.c sorted_xml(child, result, recursive); result 1601 lib/common/xml_element.c pcmk__xml_copy(result, child); result 1605 lib/common/xml_element.c return result; result 89 lib/common/xml_idref.c xmlNode *result = NULL; result 105 lib/common/xml_idref.c result = pcmk__xpath_find_one(search->doc, xpath, LOG_DEBUG); result 106 lib/common/xml_idref.c if (result == NULL) { result 114 lib/common/xml_idref.c return result; result 130 lib/common/xml_idref.c GList *result = NULL; result 143 lib/common/xml_idref.c result = g_list_prepend(result, resolved); result 145 lib/common/xml_idref.c return result; result 182 lib/common/xpath.c xmlNode *result = pcmk__xpath_result(xpath_obj, i); result 184 lib/common/xpath.c if (result != NULL) { result 185 lib/common/xpath.c (*fn)(result, user_data); result 209 lib/common/xpath.c xmlNode *result = NULL; result 220 lib/common/xpath.c result = pcmk__xpath_result(xpath_obj, 0); result 266 lib/common/xpath.c return result; result 512 lib/common/xpath.c xmlNode *result = pcmk__xpath_result(xpathObj, i); result 514 lib/common/xpath.c CRM_LOG_ASSERT(result != NULL); result 516 lib/common/xpath.c if (result != NULL) { result 517 lib/common/xpath.c result = pcmk__xpath_match_element(result); result 519 lib/common/xpath.c CRM_LOG_ASSERT(result != NULL); result 521 lib/common/xpath.c if (result != NULL) { result 522 lib/common/xpath.c (*helper)(result, user_data); result 533 lib/common/xpath.c xmlNode *result = NULL; result 582 lib/common/xpath.c result = pcmk__xpath_result(xpathObj, 0); result 583 lib/common/xpath.c if (result != NULL) { result 584 lib/common/xpath.c result = pcmk__xpath_match_element(result); result 591 lib/common/xpath.c return result; result 39 lib/fencing/st_actions.c void (*done_cb) (int pid, const pcmk__action_result_t *result, result 52 lib/fencing/st_actions.c pcmk__action_result_t result; result 68 lib/fencing/st_actions.c services__copy_result(svc_action, &(action->result)); result 69 lib/fencing/st_actions.c pcmk__set_result_output(&(action->result), result 80 lib/fencing/st_actions.c if (action->result.action_stderr != NULL) { result 84 lib/fencing/st_actions.c crm_log_output(LOG_WARNING, prefix, action->result.action_stderr); result 217 lib/fencing/st_actions.c pcmk__reset_result(&(action->result)); result 233 lib/fencing/st_actions.c return (action == NULL)? NULL : &(action->result); result 269 lib/fencing/st_actions.c pcmk__set_result(&(action->result), PCMK_OCF_UNKNOWN, PCMK_EXEC_UNKNOWN, result 296 lib/fencing/st_actions.c } else if ((action->result.execution_status != PCMK_EXEC_TIMEOUT) result 316 lib/fencing/st_actions.c stonith__result2rc(const pcmk__action_result_t *result) result 318 lib/fencing/st_actions.c if (pcmk__result_ok(result)) { result 322 lib/fencing/st_actions.c switch (result->execution_status) { result 338 lib/fencing/st_actions.c switch (result->exit_status) { result 359 lib/fencing/st_actions.c if (result->action_stderr == NULL) { result 362 lib/fencing/st_actions.c } else if (strcasestr(result->action_stderr, "timed out") result 363 lib/fencing/st_actions.c || strcasestr(result->action_stderr, "timeout")) { result 366 lib/fencing/st_actions.c } else if (strcasestr(result->action_stderr, "unrecognised action") result 367 lib/fencing/st_actions.c || strcasestr(result->action_stderr, "unrecognized action") result 368 lib/fencing/st_actions.c || strcasestr(result->action_stderr, "unsupported action")) { result 420 lib/fencing/st_actions.c stonith__xe_set_result(xmlNode *xml, const pcmk__action_result_t *result) result 430 lib/fencing/st_actions.c if (result != NULL) { result 431 lib/fencing/st_actions.c exit_status = result->exit_status; result 432 lib/fencing/st_actions.c execution_status = result->execution_status; result 433 lib/fencing/st_actions.c exit_reason = result->exit_reason; result 434 lib/fencing/st_actions.c action_stdout = result->action_stdout; result 435 lib/fencing/st_actions.c rc = pcmk_rc2legacy(stonith__result2rc(result)); result 483 lib/fencing/st_actions.c stonith__xe_get_result(const xmlNode *xml, pcmk__action_result_t *result) result 490 lib/fencing/st_actions.c CRM_CHECK((xml != NULL) && (result != NULL), return); result 518 lib/fencing/st_actions.c pcmk__set_result(result, exit_status, execution_status, exit_reason); result 519 lib/fencing/st_actions.c pcmk__set_result_output(result, action_stdout, NULL); result 531 lib/fencing/st_actions.c if (!pcmk__result_ok(&(action->result)) result 541 lib/fencing/st_actions.c action->done_cb(action->pid, &(action->result), action->userdata); result 560 lib/fencing/st_actions.c pcmk__set_result(&(action->result), PCMK_OCF_UNKNOWN, PCMK_EXEC_PENDING, result 620 lib/fencing/st_actions.c pcmk__set_result(&(action->result), PCMK_OCF_UNKNOWN_ERROR, result 645 lib/fencing/st_actions.c pcmk__reset_result(&(action->result)); result 681 lib/fencing/st_actions.c const pcmk__action_result_t *result, result 51 lib/fencing/st_client.c pcmk__action_result_t result; result 922 lib/fencing/st_client.c pcmk__action_result_t *result, result 930 lib/fencing/st_client.c data.rc = pcmk_rc2legacy(stonith__result2rc(result)); result 932 lib/fencing/st_client.c data.opaque = (void *) result; result 953 lib/fencing/st_client.c pcmk__action_result_t result = PCMK__UNKNOWN_RESULT; result 962 lib/fencing/st_client.c pcmk__set_result(&result, CRM_EX_ERROR, PCMK_EXEC_TIMEOUT, result 972 lib/fencing/st_client.c stonith__xe_get_result(msg, &result); result 981 lib/fencing/st_client.c && (pcmk__result_ok(&result) || !(cb_info->only_success))) { result 984 lib/fencing/st_client.c invoke_fence_action_callback(stonith, call_id, &result, result 987 lib/fencing/st_client.c } else if ((private->op_callback == NULL) && !pcmk__result_ok(&result)) { result 989 lib/fencing/st_client.c result.exit_status, result 990 lib/fencing/st_client.c pcmk_exec_status_str(result.execution_status), result 991 lib/fencing/st_client.c ((result.exit_reason == NULL)? "" : ": "), result 992 lib/fencing/st_client.c ((result.exit_reason == NULL)? "" : result.exit_reason)); result 998 lib/fencing/st_client.c invoke_fence_action_callback(stonith, call_id, &result, NULL, result 1005 lib/fencing/st_client.c pcmk__reset_result(&result); result 1348 lib/fencing/st_client.c pcmk__action_result_t result = PCMK__UNKNOWN_RESULT; result 1351 lib/fencing/st_client.c pcmk__set_result(&result, CRM_EX_ERROR, result 1353 lib/fencing/st_client.c invoke_fence_action_callback(stonith, call_id, &result, result 1427 lib/fencing/st_client.c stonith__xe_get_result(msg, &event_private->result); result 1431 lib/fencing/st_client.c event->result = pcmk_rc2legacy(stonith__result2rc(&event_private->result)); result 1485 lib/fencing/st_client.c pcmk__reset_result(&event_private->result); result 1623 lib/fencing/st_client.c pcmk__action_result_t result = PCMK__UNKNOWN_RESULT; result 1627 lib/fencing/st_client.c stonith__xe_get_result(op_reply, &result); result 1628 lib/fencing/st_client.c rc = pcmk_rc2legacy(stonith__result2rc(&result)); result 1629 lib/fencing/st_client.c pcmk__reset_result(&result); result 2564 lib/fencing/st_client.c const pcmk__action_result_t *result, result 2590 lib/fencing/st_client.c pcmk__action_result_t result = { result 2599 lib/fencing/st_client.c &result.action_stdout); result 2600 lib/fencing/st_client.c callback(0, &result, user_data); result 2601 lib/fencing/st_client.c pcmk__reset_result(&result); result 2608 lib/fencing/st_client.c pcmk__action_result_t result = { result 2617 lib/fencing/st_client.c callback(0, &result, user_data); result 2618 lib/fencing/st_client.c pcmk__reset_result(&result); result 2691 lib/fencing/st_client.c return event_private->result.exit_status; result 2711 lib/fencing/st_client.c return event_private->result.execution_status; result 2731 lib/fencing/st_client.c return event_private->result.exit_reason; result 135 lib/fencing/st_rhcs.c pcmk__action_result_t *result = stonith__action_result(action); result 137 lib/fencing/st_rhcs.c if (result == NULL) { result 146 lib/fencing/st_rhcs.c if (result->execution_status != PCMK_EXEC_DONE) { result 148 lib/fencing/st_rhcs.c agent, pcmk_exec_status_str(result->execution_status)); result 149 lib/fencing/st_rhcs.c rc = pcmk_rc2legacy(stonith__result2rc(result)); result 154 lib/fencing/st_rhcs.c if (!pcmk__result_ok(result)) { result 156 lib/fencing/st_rhcs.c agent, result->exit_status); result 157 lib/fencing/st_rhcs.c rc = pcmk_rc2legacy(stonith__result2rc(result)); result 162 lib/fencing/st_rhcs.c if (result->action_stdout == NULL) { result 168 lib/fencing/st_rhcs.c xml = pcmk__xml_parse(result->action_stdout); result 277 lib/fencing/st_rhcs.c pcmk__action_result_t *result = NULL; result 307 lib/fencing/st_rhcs.c result = stonith__action_result(action); result 309 lib/fencing/st_rhcs.c if (result != NULL) { result 310 lib/fencing/st_rhcs.c rc = pcmk_rc2legacy(stonith__result2rc(result)); result 314 lib/fencing/st_rhcs.c *output = result->action_stdout; result 315 lib/fencing/st_rhcs.c result->action_stdout = NULL; result 318 lib/fencing/st_rhcs.c *error_output = result->action_stderr; result 319 lib/fencing/st_rhcs.c result->action_stderr = NULL; result 2494 lib/lrmd/lrmd_client.c void (*callback)(int pid, const pcmk__action_result_t *result, result 2509 lib/lrmd/lrmd_client.c pcmk__action_result_t result = PCMK__UNKNOWN_RESULT; result 2511 lib/lrmd/lrmd_client.c services__copy_result(action, &result); result 2512 lib/lrmd/lrmd_client.c pcmk__set_result_output(&result, action->stdout_data, action->stderr_data); result 2514 lib/lrmd/lrmd_client.c metadata_cb->callback(0, &result, metadata_cb->user_data); result 2515 lib/lrmd/lrmd_client.c result.action_stdout = NULL; // Prevent free, because action owns it result 2516 lib/lrmd/lrmd_client.c result.action_stderr = NULL; // Prevent free, because action owns it result 2517 lib/lrmd/lrmd_client.c pcmk__reset_result(&result); result 2540 lib/lrmd/lrmd_client.c const pcmk__action_result_t *result, result 2546 lib/lrmd/lrmd_client.c pcmk__action_result_t result = PCMK__UNKNOWN_RESULT; result 2551 lib/lrmd/lrmd_client.c pcmk__set_result(&result, PCMK_OCF_NOT_CONFIGURED, result 2554 lib/lrmd/lrmd_client.c callback(0, &result, user_data); result 2555 lib/lrmd/lrmd_client.c pcmk__reset_result(&result); result 2572 lib/lrmd/lrmd_client.c pcmk__set_result(&result, PCMK_OCF_UNKNOWN_ERROR, PCMK_EXEC_ERROR, result 2574 lib/lrmd/lrmd_client.c callback(0, &result, user_data); result 2575 lib/lrmd/lrmd_client.c pcmk__reset_result(&result); result 2579 lib/lrmd/lrmd_client.c services__copy_result(action, &result); result 2580 lib/lrmd/lrmd_client.c callback(0, &result, user_data); result 2581 lib/lrmd/lrmd_client.c pcmk__reset_result(&result); result 2589 lib/lrmd/lrmd_client.c pcmk__set_result(&result, PCMK_OCF_UNKNOWN_ERROR, PCMK_EXEC_ERROR, result 2591 lib/lrmd/lrmd_client.c callback(0, &result, user_data); result 2592 lib/lrmd/lrmd_client.c pcmk__reset_result(&result); result 204 lib/pacemaker/pcmk_cluster_queries.c reply->data.ping.fsa_state, reply->data.ping.result); result 813 lib/pacemaker/pcmk_cluster_queries.c remote_node_print_helper(xmlNode *result, void *user_data) result 817 lib/pacemaker/pcmk_cluster_queries.c const char *name = crm_element_value(result, PCMK_XA_UNAME); result 818 lib/pacemaker/pcmk_cluster_queries.c const char *id = crm_element_value(result, data->field); result 37 lib/pacemaker/pcmk_fence.c pcmk__action_result_t result; result 135 lib/pacemaker/pcmk_fence.c pcmk__set_result(&async_fence_data.result, result 146 lib/pacemaker/pcmk_fence.c pcmk__set_result(&async_fence_data.result, stonith__exit_status(data), result 162 lib/pacemaker/pcmk_fence.c pcmk__set_result(&async_fence_data.result, CRM_EX_ERROR, result 180 lib/pacemaker/pcmk_fence.c pcmk__set_result(&async_fence_data.result, CRM_EX_ERROR, result 209 lib/pacemaker/pcmk_fence.c pcmk__set_result(&async_fence_data.result, CRM_EX_ERROR, PCMK_EXEC_UNKNOWN, result 222 lib/pacemaker/pcmk_fence.c *reason = async_fence_data.result.exit_reason; result 223 lib/pacemaker/pcmk_fence.c async_fence_data.result.exit_reason = NULL; result 225 lib/pacemaker/pcmk_fence.c rc = stonith__result2rc(&async_fence_data.result); result 226 lib/pacemaker/pcmk_fence.c pcmk__reset_result(&async_fence_data.result); result 658 lib/pacemaker/pcmk_output.c const char *result = va_arg(args, const char *); result 663 lib/pacemaker/pcmk_output.c pcmk__s(result, "unknown result")); result 677 lib/pacemaker/pcmk_output.c const char *result G_GNUC_UNUSED = va_arg(args, const char *); result 696 lib/pacemaker/pcmk_output.c const char *result = va_arg(args, const char *); result 701 lib/pacemaker/pcmk_output.c PCMK_XA_RESULT, pcmk__s(result, ""), result 2271 lib/pacemaker/pcmk_output.c int result = va_arg(args, int); result 2274 lib/pacemaker/pcmk_output.c switch (result) { result 2299 lib/pacemaker/pcmk_output.c int result = va_arg(args, int); result 2302 lib/pacemaker/pcmk_output.c char *rc_str = pcmk__itoa(pcmk_rc2exitc(result)); result 2310 lib/pacemaker/pcmk_output.c switch (result) { result 184 lib/pacemaker/pcmk_sched_actions.c pcmk_action_t *result = action; result 188 lib/pacemaker/pcmk_sched_actions.c return result; result 195 lib/pacemaker/pcmk_sched_actions.c result = find_first_action(rsc->priv->actions, uuid, NULL, NULL); result 196 lib/pacemaker/pcmk_sched_actions.c if (result == NULL) { result 199 lib/pacemaker/pcmk_sched_actions.c result = action; result 203 lib/pacemaker/pcmk_sched_actions.c return result; result 1896 lib/pacemaker/pcmk_sched_actions.c GList *result = pcmk__rscs_matching_id(pcmk__xe_id(rsc_entry), result 1899 lib/pacemaker/pcmk_sched_actions.c for (GList *iter = result; iter != NULL; iter = iter->next) { result 1906 lib/pacemaker/pcmk_sched_actions.c g_list_free(result); result 179 lib/pacemaker/pcmk_sched_nodes.c GList *result = NULL; result 189 lib/pacemaker/pcmk_sched_nodes.c result = g_list_prepend(result, new_node); result 191 lib/pacemaker/pcmk_sched_nodes.c return result; result 218 lib/pacemaker/pcmk_sched_nodes.c int result = 0; result 260 lib/pacemaker/pcmk_sched_nodes.c result = pcmk__compare_node_capacities(node1, node2); result 261 lib/pacemaker/pcmk_sched_nodes.c if (result < 0) { result 264 lib/pacemaker/pcmk_sched_nodes.c result * -1); result 266 lib/pacemaker/pcmk_sched_nodes.c } else if (result > 0) { result 268 lib/pacemaker/pcmk_sched_nodes.c pcmk__node_name(node1), pcmk__node_name(node2), result); result 304 lib/pacemaker/pcmk_sched_nodes.c result = strcmp(node1->priv->name, node2->priv->name); result 305 lib/pacemaker/pcmk_sched_nodes.c if (result < 0) { result 309 lib/pacemaker/pcmk_sched_nodes.c } else if (result > 0) { result 1613 lib/pacemaker/pcmk_sched_primitive.c time_t result = 0; result 1620 lib/pacemaker/pcmk_sched_primitive.c result = (time_t) result_ll; result 1627 lib/pacemaker/pcmk_sched_primitive.c if (result == 0) { result 1628 lib/pacemaker/pcmk_sched_primitive.c result = pcmk__scheduler_epoch_time(node->priv->scheduler); result 1630 lib/pacemaker/pcmk_sched_primitive.c return result; result 157 lib/pacemaker/pcmk_sched_resource.c add_rsc_if_matching(GList *result, pcmk_resource_t *rsc, const char *id) result 161 lib/pacemaker/pcmk_sched_resource.c result = g_list_prepend(result, rsc); result 169 lib/pacemaker/pcmk_sched_resource.c result = add_rsc_if_matching(result, child, id); result 171 lib/pacemaker/pcmk_sched_resource.c return result; result 188 lib/pacemaker/pcmk_sched_resource.c GList *result = NULL; result 195 lib/pacemaker/pcmk_sched_resource.c result = add_rsc_if_matching(result, (pcmk_resource_t *) iter->data, result 198 lib/pacemaker/pcmk_sched_resource.c return result; result 53 lib/pacemaker/pcmk_sched_utilization.c int result; result 88 lib/pacemaker/pcmk_sched_utilization.c data->result--; result 90 lib/pacemaker/pcmk_sched_utilization.c data->result++; result 113 lib/pacemaker/pcmk_sched_utilization.c .result = 0, result 125 lib/pacemaker/pcmk_sched_utilization.c return data.result; result 151 lib/pacemaker/pcmk_sched_utilization.c long long result = utilization_value(current) result 154 lib/pacemaker/pcmk_sched_utilization.c if (result < INT_MIN) { result 155 lib/pacemaker/pcmk_sched_utilization.c result = INT_MIN; result 156 lib/pacemaker/pcmk_sched_utilization.c } else if (result > INT_MAX) { result 157 lib/pacemaker/pcmk_sched_utilization.c result = INT_MAX; result 160 lib/pacemaker/pcmk_sched_utilization.c strdup(key), pcmk__itoa((int) result)); result 118 lib/pacemaker/pcmk_ticket.c xmlNode *result = NULL; result 134 lib/pacemaker/pcmk_ticket.c rc = cib->cmds->query(cib, xpath, &result, cib_sync_call|cib_xpath); result 137 lib/pacemaker/pcmk_ticket.c if (result != NULL) { result 138 lib/pacemaker/pcmk_ticket.c out->message(out, "ticket-constraints", result); result 139 lib/pacemaker/pcmk_ticket.c pcmk__xml_free(result); result 96 lib/pacemaker/tests/pcmk_resource/pcmk_resource_delete_test.c xmlNode *result = NULL; result 106 lib/pacemaker/tests/pcmk_resource/pcmk_resource_delete_test.c result = find_rsc("Fencing"); result 107 lib/pacemaker/tests/pcmk_resource/pcmk_resource_delete_test.c assert_non_null(result); result 109 lib/pacemaker/tests/pcmk_resource/pcmk_resource_delete_test.c pcmk__xml_free(result); result 116 lib/pacemaker/tests/pcmk_resource/pcmk_resource_delete_test.c xmlNode *result = NULL; result 122 lib/pacemaker/tests/pcmk_resource/pcmk_resource_delete_test.c result = find_rsc("Fencing"); result 123 lib/pacemaker/tests/pcmk_resource/pcmk_resource_delete_test.c assert_null(result); result 125 lib/pacemaker/tests/pcmk_resource/pcmk_resource_delete_test.c pcmk__xml_free(result); result 274 lib/pengine/native.c pcmk_resource_t *result = NULL; result 316 lib/pengine/native.c result = rsc->priv->fns->find_rsc(child, id, on_node, flags); result 317 lib/pengine/native.c if (result) { result 318 lib/pengine/native.c return result; result 900 lib/pengine/native.c GList *result = NULL; result 909 lib/pengine/native.c child->priv->fns->location(child, &result, target); result 914 lib/pengine/native.c result = g_list_copy(rsc->priv->active_nodes); result 918 lib/pengine/native.c && !pe_find_node_id(result, rsc->priv->pending_node->priv->id)) { result 919 lib/pengine/native.c result = g_list_append(result, (gpointer) rsc->priv->pending_node); result 923 lib/pengine/native.c result = g_list_append(result, rsc->priv->assigned_node); result 927 lib/pengine/native.c if (result && (result->next == NULL)) { result 928 lib/pengine/native.c one = result->data; result 932 lib/pengine/native.c GList *gIter = result; result 944 lib/pengine/native.c g_list_free(result); result 554 lib/pengine/pe_actions.c long long result = 0; result 573 lib/pengine/pe_actions.c result = crm_time_get_seconds(now) - crm_time_get_seconds(origin); result 577 lib/pengine/pe_actions.c result = result % interval_sec; result 580 lib/pengine/pe_actions.c result = ((result <= 0)? 0 : interval_sec) - result; result 582 lib/pengine/pe_actions.c result, pcmk__s(pcmk__xe_id(xml_obj), "(unspecified)")); result 585 lib/pengine/pe_actions.c *start_delay = result * 1000; // milliseconds result 1418 lib/pengine/pe_actions.c GList *result = NULL; result 1430 lib/pengine/pe_actions.c result = g_list_prepend(result, action); result 1437 lib/pengine/pe_actions.c result = g_list_prepend(result, action); result 1441 lib/pengine/pe_actions.c result = g_list_prepend(result, action); result 1445 lib/pengine/pe_actions.c return result; result 1451 lib/pengine/pe_actions.c GList *result = NULL; result 1467 lib/pengine/pe_actions.c result = g_list_prepend(result, action); result 1471 lib/pengine/pe_actions.c return result; result 1490 lib/pengine/pe_actions.c GList *result = NULL; result 1494 lib/pengine/pe_actions.c result = find_actions_exact(rsc->priv->actions, key, node); result 1496 lib/pengine/pe_actions.c result = find_actions(rsc->priv->actions, key, node); result 1499 lib/pengine/pe_actions.c return result; result 207 lib/pengine/unpack.c xmlXPathObject *result = NULL; result 210 lib/pengine/unpack.c result = pcmk__xpath_search(scheduler->input->doc, xpath); result 211 lib/pengine/unpack.c if (pcmk__xpath_num_results(result) > 0) { result 214 lib/pengine/unpack.c xmlXPathFreeObject(result); result 3028 lib/pengine/unpack.c bool result = false; result 3039 lib/pengine/unpack.c result = (pcmk__xpath_num_results(search) == 0); result 3042 lib/pengine/unpack.c return result; result 3535 lib/pengine/unpack.c char *result = NULL; result 3544 lib/pengine/unpack.c result = pcmk__str_copy(p); result 3549 lib/pengine/unpack.c if (result == NULL) { result 3550 lib/pengine/unpack.c result = pcmk__str_copy("unknown_time"); result 3553 lib/pengine/unpack.c return result; result 154 lib/pengine/utils.c GHashTable *result = NULL; result 156 lib/pengine/utils.c result = pcmk__strkey_table(NULL, pcmk__free_node_copy); result 161 lib/pengine/utils.c g_hash_table_insert(result, (gpointer) new_node->priv->id, new_node); result 163 lib/pengine/utils.c return result; result 1087 lib/services/services.c GList *result = NULL; result 1090 lib/services/services.c tmp1 = result; result 1093 lib/services/services.c result = g_list_concat(tmp1, tmp2); result 1098 lib/services/services.c result = g_list_concat(result, services__list_lsb_agents()); result 1102 lib/services/services.c tmp1 = result; result 1105 lib/services/services.c result = g_list_concat(tmp1, tmp2); result 1109 lib/services/services.c return result; result 1243 lib/services/services.c services__copy_result(const svc_action_t *action, pcmk__action_result_t *result) result 1245 lib/services/services.c pcmk__set_result(result, action->rc, action->status, result 1459 lib/services/services_linux.c GList *result = NULL; result 1465 lib/services/services_linux.c return result; result 1472 lib/services/services_linux.c result = g_list_concat(result, tmp); result 1478 lib/services/services_linux.c return result; result 33 lib/services/services_ocf.c GList *result = NULL; result 40 lib/services/services_ocf.c return result; result 50 lib/services/services_ocf.c result = g_list_concat(result, tmp); result 56 lib/services/services_ocf.c return result; result 63 lib/services/services_ocf.c GList *result = NULL; result 73 lib/services/services_ocf.c GList *tmp1 = result; result 77 lib/services/services_ocf.c result = g_list_concat(tmp1, tmp2); result 81 lib/services/services_ocf.c return result; result 891 lib/services/systemd.c const char *result = NULL; result 908 lib/services/systemd.c DBUS_TYPE_STRING, &result, result 924 lib/services/systemd.c action_name, unit_name, job_id, result); result 926 lib/services/systemd.c if (pcmk__str_eq(result, "done", pcmk__str_none)) { result 929 lib/services/systemd.c } else if (pcmk__str_eq(result, "timeout", pcmk__str_none)) { result 937 lib/services/systemd.c action_name, unit_name, result); result 427 libltdl/loaders/dyld.c const char* result = 0; result 437 libltdl/loaders/dyld.c result=(char*)(((dylib_command*) lc)->dylib.name.offset + result 443 libltdl/loaders/dyld.c return result; result 50 libltdl/lt_error.c int result = -1; result 61 libltdl/lt_error.c result = errorcount++; result 64 libltdl/lt_error.c return result; result 682 libltdl/ltdl.c int result = 0; result 727 libltdl/ltdl.c if ((result = (*func) (filename, data1, data2))) result 739 libltdl/ltdl.c return result; result 2371 libltdl/ltdl.c void *result = (void *) 0; result 2382 libltdl/ltdl.c result = cur->interface_data[i].data; result 2388 libltdl/ltdl.c return result; result 81 libltdl/slist.c void *result = 0; result 89 libltdl/slist.c result = (*find) (*phead, matchdata); result 90 libltdl/slist.c if (result) result 101 libltdl/slist.c result = (*find) (head->next, matchdata); result 102 libltdl/slist.c if (result) result 111 libltdl/slist.c return (SList *) result; result 120 libltdl/slist.c void *result = 0; result 126 libltdl/slist.c result = (*find) (slist, matchdata); result 127 libltdl/slist.c if (result) result 131 libltdl/slist.c return result; result 225 libltdl/slist.c SList *result = 0; result 231 libltdl/slist.c slist->next = result; result 232 libltdl/slist.c result = slist; result 236 libltdl/slist.c return result; result 244 libltdl/slist.c void *result = 0; result 251 libltdl/slist.c result = (*foreach) (slist, userdata); result 253 libltdl/slist.c if (result) result 259 libltdl/slist.c return result; result 452 tools/crm_attribute.c xmlNode *result = NULL; result 461 tools/crm_attribute.c NULL, &result); result 467 tools/crm_attribute.c rc = pcmk__xe_foreach_child(result, NULL, delete_attr_on_node, &dd); result 476 tools/crm_attribute.c pcmk__xml_free(result); result 518 tools/crm_attribute.c xmlNode *result = NULL; result 532 tools/crm_attribute.c NULL, &result); result 538 tools/crm_attribute.c rc = pcmk__xe_foreach_child(result, NULL, update_attr_on_node, &ud); result 549 tools/crm_attribute.c pcmk__xml_free(result); result 589 tools/crm_attribute.c xmlNode *result = NULL; result 600 tools/crm_attribute.c NULL, NULL, &result); result 604 tools/crm_attribute.c options.attr_name, NULL, &result); result 621 tools/crm_attribute.c } else if (result->children != NULL) { result 624 tools/crm_attribute.c pcmk__xe_foreach_child(result, NULL, output_one_attribute, &od); result 632 tools/crm_attribute.c output_one_attribute(result, &od); result 635 tools/crm_attribute.c pcmk__xml_free(result); result 308 tools/crm_mon.c gboolean result = TRUE; result 327 tools/crm_mon.c result = FALSE; result 332 tools/crm_mon.c return result; result 338 tools/crm_mon.c gboolean result = TRUE; result 369 tools/crm_mon.c result = FALSE; result 374 tools/crm_mon.c return result; result 2036 tools/crm_mon.c send_custom_trap(e->target, NULL, e->operation, pcmk_ok, e->result, 0, desc); result 115 tools/crm_resource_runtime.c const char *attr_id, const char *attr_name, xmlNode **result) result 122 tools/crm_resource_runtime.c if (result) { result 123 tools/crm_resource_runtime.c *result = NULL; result 175 tools/crm_resource_runtime.c if (result) { result 176 tools/crm_resource_runtime.c *result = xml_search; result 188 tools/crm_resource_runtime.c GList /* <pcmk_resource_t*> */ **result, result 199 tools/crm_resource_runtime.c find_matching_attr_resources_recursive(out, result, result 215 tools/crm_resource_runtime.c *result = g_list_append(*result, rsc); result 232 tools/crm_resource_runtime.c GList * result = NULL; result 238 tools/crm_resource_runtime.c return g_list_append(result, rsc); result 249 tools/crm_resource_runtime.c return g_list_append(result, rsc); result 269 tools/crm_resource_runtime.c return g_list_append(result, rsc); result 272 tools/crm_resource_runtime.c find_matching_attr_resources_recursive(out, &result, rsc, attr_set, result 275 tools/crm_resource_runtime.c return result;