rc 83 daemons/attrd/attrd_alerts.c config_query_callback(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data) rc 87 daemons/attrd/attrd_alerts.c if (rc == -ENXIO) { rc 90 daemons/attrd/attrd_alerts.c } else if (rc != pcmk_ok) { rc 91 daemons/attrd/attrd_alerts.c crm_notice("Could not query local CIB: %s", pcmk_strerror(rc)); rc 204 daemons/attrd/attrd_attributes.c int rc = attrd_update_dampening(a, xml, attr); rc 206 daemons/attrd/attrd_attributes.c if (rc != pcmk_rc_ok || !update_both) { rc 104 daemons/attrd/attrd_cib.c int rc = -ENOTCONN; rc 117 daemons/attrd/attrd_cib.c rc = the_cib->cmds->signon(the_cib, PCMK__VALUE_ATTRD, cib_command); rc 119 daemons/attrd/attrd_cib.c } while ((rc != pcmk_ok) && (attempts < max_retry)); rc 121 daemons/attrd/attrd_cib.c if (rc != pcmk_ok) { rc 123 daemons/attrd/attrd_cib.c pcmk_strerror(rc), rc); rc 129 daemons/attrd/attrd_cib.c rc = the_cib->cmds->set_connection_dnotify(the_cib, attrd_cib_destroy_cb); rc 130 daemons/attrd/attrd_cib.c if (rc != pcmk_ok) { rc 135 daemons/attrd/attrd_cib.c rc = the_cib->cmds->add_notify_callback(the_cib, rc 138 daemons/attrd/attrd_cib.c if (rc != pcmk_ok) { rc 160 daemons/attrd/attrd_cib.c attrd_erase_cb(xmlNode *msg, int call_id, int rc, xmlNode *output, rc 165 daemons/attrd/attrd_cib.c if (rc == pcmk_ok) { rc 169 daemons/attrd/attrd_cib.c node, pcmk_strerror(rc)); rc 241 daemons/attrd/attrd_cib.c attrd_cib_callback(xmlNode *msg, int call_id, int rc, xmlNode *output, void *user_data) rc 257 daemons/attrd/attrd_cib.c if (rc == pcmk_ok && call_id < 0) { rc 258 daemons/attrd/attrd_cib.c rc = call_id; rc 261 daemons/attrd/attrd_cib.c switch (rc) { rc 282 daemons/attrd/attrd_cib.c call_id, a->id, pcmk_strerror(rc), rc); rc 286 daemons/attrd/attrd_cib.c if (rc == pcmk_ok) { rc 299 daemons/attrd/attrd_cib.c if (rc == pcmk_ok) { rc 351 daemons/attrd/attrd_cib.c int rc = ENOMEM; rc 366 daemons/attrd/attrd_cib.c rc = the_cib->cmds->modify(the_cib, PCMK_XE_STATUS, update, rc 368 daemons/attrd/attrd_cib.c rc = pcmk_legacy2rc(rc); rc 371 daemons/attrd/attrd_cib.c return rc; rc 402 daemons/attrd/attrd_cib.c int rc = the_cib->cmds->remove(the_cib, xpath, NULL, rc 406 daemons/attrd/attrd_cib.c return pcmk_legacy2rc(rc); rc 424 daemons/attrd/attrd_cib.c int rc = pcmk_rc_ok; rc 427 daemons/attrd/attrd_cib.c rc = add_unset_attr_update(attr, nvpair_id, node_id, set_id); rc 429 daemons/attrd/attrd_cib.c rc = add_set_attr_update(attr, nvpair_id, node_id, set_id, value); rc 433 daemons/attrd/attrd_cib.c return rc; rc 439 daemons/attrd/attrd_cib.c int rc = 0; rc 446 daemons/attrd/attrd_cib.c rc = attrd_send_attribute_alert(at->nodename, at->nodeid, rc 449 daemons/attrd/attrd_cib.c a->id, at->nodename, at->current, at->nodeid, rc); rc 486 daemons/attrd/attrd_cib.c int rc = pcmk_ok; rc 518 daemons/attrd/attrd_cib.c rc = the_cib->cmds->init_transaction(the_cib); rc 519 daemons/attrd/attrd_cib.c if (rc != pcmk_ok) { rc 577 daemons/attrd/attrd_cib.c rc = add_attr_update(a, v->current, uuid); rc 578 daemons/attrd/attrd_cib.c if (rc != pcmk_rc_ok) { rc 581 daemons/attrd/attrd_cib.c a->id, v->nodename, v->current, pcmk_rc_str(rc), rc 411 daemons/attrd/attrd_corosync.c int rc = pcmk_rc_ok; rc 421 daemons/attrd/attrd_corosync.c rc = pcmk_cluster_connect(attrd_cluster); rc 422 daemons/attrd/attrd_corosync.c rc = pcmk_rc2legacy(rc); rc 423 daemons/attrd/attrd_corosync.c if (rc != pcmk_ok) { rc 425 daemons/attrd/attrd_corosync.c return rc; rc 69 daemons/attrd/attrd_elections.c enum election_result rc = 0; rc 75 daemons/attrd/attrd_elections.c rc = election_count_vote(writer, xml, !attrd_shutting_down(false)); rc 77 daemons/attrd/attrd_elections.c switch(rc) { rc 300 daemons/attrd/attrd_ipc.c int rc = pcmk_rc_ok; rc 306 daemons/attrd/attrd_ipc.c rc = expand_regexes(xml, attr, value, regex); rc 308 daemons/attrd/attrd_ipc.c if (rc == EINVAL) { rc 313 daemons/attrd/attrd_ipc.c } else if (rc == pcmk_rc_bad_nvpair) { rc 320 daemons/attrd/attrd_ipc.c return rc; rc 203 daemons/attrd/attrd_utils.c int rc; rc 217 daemons/attrd/attrd_utils.c rc = regcomp(regex, pattern, REG_EXTENDED|REG_NOSUB); rc 220 daemons/attrd/attrd_utils.c return (rc == 0)? pcmk_ok : -EINVAL; rc 68 daemons/attrd/pacemaker-attrd.c int rc = pcmk_rc_ok; rc 70 daemons/attrd/pacemaker-attrd.c rc = pcmk_new_ipc_api(&old_instance, pcmk_ipc_attrd); rc 71 daemons/attrd/pacemaker-attrd.c if (rc != pcmk_rc_ok) { rc 75 daemons/attrd/pacemaker-attrd.c rc = pcmk__connect_ipc(old_instance, pcmk_ipc_dispatch_sync, 2); rc 76 daemons/attrd/pacemaker-attrd.c if (rc != pcmk_rc_ok) { rc 78 daemons/attrd/pacemaker-attrd.c pcmk_ipc_name(old_instance, true), pcmk_rc_str(rc)); rc 100 daemons/attrd/pacemaker-attrd.c int rc = pcmk_rc_ok; rc 120 daemons/attrd/pacemaker-attrd.c rc = pcmk__output_new(&out, args->output_ty, args->output_dest, argv); rc 121 daemons/attrd/pacemaker-attrd.c if ((rc != pcmk_rc_ok) || (out == NULL)) { rc 125 daemons/attrd/pacemaker-attrd.c args->output_ty, pcmk_rc_str(rc)); rc 159 daemons/based/based_callbacks.c uint32_t call_options, int rc, xmlNode *call_data) rc 168 daemons/based/based_callbacks.c crm_xml_add_int(reply, PCMK__XA_CIB_RC, rc); rc 186 daemons/based/based_callbacks.c int rc = pcmk_rc_ok; rc 213 daemons/based/based_callbacks.c rc = pcmk__ipc_send_xml(client_obj, msg_id, notify_src, flags); rc 219 daemons/based/based_callbacks.c rc = pcmk__remote_send_xml(client_obj->remote, notify_src); rc 222 daemons/based/based_callbacks.c rc = EPROTONOSUPPORT; rc 225 daemons/based/based_callbacks.c if (rc == pcmk_rc_ok) { rc 237 daemons/based/based_callbacks.c pcmk_rc_str(rc)); rc 247 daemons/based/based_callbacks.c int rc = pcmk_rc_ok; rc 249 daemons/based/based_callbacks.c rc = pcmk__xe_get_flags(op_request, PCMK__XA_CIB_CALLOPT, &call_options, rc 251 daemons/based/based_callbacks.c if (rc != pcmk_rc_ok) { rc 252 daemons/based/based_callbacks.c crm_warn("Couldn't parse options from request: %s", pcmk_rc_str(rc)); rc 332 daemons/based/based_callbacks.c int rc = pcmk_rc_ok; rc 334 daemons/based/based_callbacks.c rc = pcmk__xe_get_flags(op_request, PCMK__XA_CIB_CALLOPT, &call_options, rc 336 daemons/based/based_callbacks.c if (rc != pcmk_rc_ok) { rc 338 daemons/based/based_callbacks.c pcmk_rc_str(rc)); rc 441 daemons/based/based_callbacks.c int rc = pcmk__scan_ll(seq_s, &seq_ll, 0LL); rc 443 daemons/based/based_callbacks.c if (rc != pcmk_rc_ok) { rc 445 daemons/based/based_callbacks.c " '%s': %s", seq_s, pcmk_rc_str(rc)); rc 1064 daemons/based/based_callbacks.c int rc = pcmk_ok; rc 1078 daemons/based/based_callbacks.c rc = pcmk__xe_get_flags(request, PCMK__XA_CIB_CALLOPT, &call_options, rc 1080 daemons/based/based_callbacks.c if (rc != pcmk_rc_ok) { rc 1081 daemons/based/based_callbacks.c crm_warn("Couldn't parse options from request: %s", pcmk_rc_str(rc)); rc 1109 daemons/based/based_callbacks.c rc = cib__get_operation(op, &operation); rc 1110 daemons/based/based_callbacks.c rc = pcmk_rc2legacy(rc); rc 1111 daemons/based/based_callbacks.c if (rc != pcmk_ok) { rc 1113 daemons/based/based_callbacks.c crm_err("Pre-processing of command failed: %s", pcmk_strerror(rc)); rc 1114 daemons/based/based_callbacks.c return rc; rc 1130 daemons/based/based_callbacks.c return rc; rc 1161 daemons/based/based_callbacks.c return rc; rc 1165 daemons/based/based_callbacks.c rc = cib_status; rc 1169 daemons/based/based_callbacks.c op_reply = create_cib_reply(op, call_id, client_id, call_options, rc, rc 1181 daemons/based/based_callbacks.c rc = cib_process_command(request, operation, op_function, &op_reply, rc 1188 daemons/based/based_callbacks.c switch (rc) { rc 1201 daemons/based/based_callbacks.c } else if (rc != pcmk_ok) { rc 1213 daemons/based/based_callbacks.c op, section ? section : "'all'", pcmk_strerror(rc), rc, rc 1245 daemons/based/based_callbacks.c rc == pcmk_ok && result_diff != NULL && !(call_options & cib_inhibit_bcast)) { rc 1277 daemons/based/based_callbacks.c } else if (rc != pcmk_ok) { rc 1278 daemons/based/based_callbacks.c crm_trace("Request not broadcast: call failed: %s", pcmk_strerror(rc)); rc 1305 daemons/based/based_callbacks.c return rc; rc 1401 daemons/based/based_callbacks.c int rc = pcmk_ok; rc 1419 daemons/based/based_callbacks.c rc = pcmk__xe_get_flags(request, PCMK__XA_CIB_CALLOPT, &call_options, rc 1421 daemons/based/based_callbacks.c if (rc != pcmk_rc_ok) { rc 1422 daemons/based/based_callbacks.c crm_warn("Couldn't parse options from request: %s", pcmk_rc_str(rc)); rc 1426 daemons/based/based_callbacks.c rc = -EACCES; rc 1427 daemons/based/based_callbacks.c crm_trace("Failed due to lack of privileges: %s", pcmk_strerror(rc)); rc 1434 daemons/based/based_callbacks.c rc = cib_perform_op(NULL, op, call_options, op_function, true, section, rc 1467 daemons/based/based_callbacks.c rc = cib_perform_op(NULL, op, call_options, op_function, false, section, rc 1488 daemons/based/based_callbacks.c if ((rc == pcmk_ok) rc 1494 daemons/based/based_callbacks.c if ((rc == pcmk_ok) rc 1507 daemons/based/based_callbacks.c rc = activateCibXml(result_cib, config_changed, op); rc 1508 daemons/based/based_callbacks.c if (rc != pcmk_ok) { rc 1509 daemons/based/based_callbacks.c crm_err("Failed to activate new CIB: %s", pcmk_strerror(rc)); rc 1513 daemons/based/based_callbacks.c if ((rc == pcmk_ok) && contains_config_change(*cib_diff)) { rc 1538 daemons/based/based_callbacks.c } else if (rc == -pcmk_err_schema_validation) { rc 1549 daemons/based/based_callbacks.c crm_trace("Not activating %d %d %s", rc, rc 1562 daemons/based/based_callbacks.c cib_diff_notify(op, rc, call_id, client_id, client_name, originator, rc 1570 daemons/based/based_callbacks.c *reply = create_cib_reply(op, call_id, client_id, call_options, rc, rc 1578 daemons/based/based_callbacks.c return rc; rc 108 daemons/based/based_io.c int rc = 0; rc 114 daemons/based/based_io.c rc = errno; rc 115 daemons/based/based_io.c crm_trace("%s - stat failed: %s (%d)", a->d_name, pcmk_rc_str(rc), rc); rc 116 daemons/based/based_io.c rc = 0; rc 144 daemons/based/based_io.c rc = 1; rc 148 daemons/based/based_io.c return rc; rc 154 daemons/based/based_io.c int rc = 0; rc 174 daemons/based/based_io.c rc = 1; rc 176 daemons/based/based_io.c rc = -1; rc 181 daemons/based/based_io.c b[0]->d_name, (unsigned long)b_age, rc); rc 182 daemons/based/based_io.c return rc; rc 196 daemons/based/based_messages.c int rc = pcmk_ok; rc 221 daemons/based/based_messages.c rc = pcmk__update_schema(&scratch, NULL, true, true); rc 222 daemons/based/based_messages.c rc = pcmk_rc2legacy(rc); rc 228 daemons/based/based_messages.c rc = pcmk_ok; rc 240 daemons/based/based_messages.c rc = cib_process_upgrade( rc 249 daemons/based/based_messages.c } else if(rc == pcmk_ok) { rc 250 daemons/based/based_messages.c rc = -pcmk_err_schema_unchanged; rc 253 daemons/based/based_messages.c if (rc != pcmk_ok) { rc 261 daemons/based/based_messages.c CRM_XS " rc=%d peer=%s", host, pcmk_strerror(rc), rc, rc 274 daemons/based/based_messages.c crm_xml_add_int(up, PCMK__XA_CIB_UPGRADE_RC, rc); rc 283 daemons/based/based_messages.c return rc; rc 299 daemons/based/based_messages.c int rc = pcmk_ok; rc 329 daemons/based/based_messages.c rc = cib_process_diff(op, options, section, req, input, existing_cib, result_cib, answer); rc 330 daemons/based/based_messages.c crm_trace("result: %s (%d), %s", pcmk_strerror(rc), rc, rc 333 daemons/based/based_messages.c if ((rc == -pcmk_err_diff_resync) && !based_is_primary) { rc 338 daemons/based/based_messages.c } else if (rc == -pcmk_err_diff_resync) { rc 339 daemons/based/based_messages.c rc = -pcmk_err_diff_failed; rc 344 daemons/based/based_messages.c } else if ((rc != pcmk_ok) && !based_is_primary && cib_legacy_mode()) { rc 346 daemons/based/based_messages.c CRM_XS " rc=%d", pcmk_strerror(rc), rc); rc 354 daemons/based/based_messages.c return rc; rc 362 daemons/based/based_messages.c int rc = rc 365 daemons/based/based_messages.c if ((rc == pcmk_ok) && pcmk__xe_is(input, PCMK_XE_CIB)) { rc 368 daemons/based/based_messages.c return rc; rc 477 daemons/based/based_messages.c int rc = pcmk_rc_ok; rc 482 daemons/based/based_messages.c rc = based_commit_transaction(input, client, origin, result_cib); rc 484 daemons/based/based_messages.c if (rc != pcmk_rc_ok) { rc 488 daemons/based/based_messages.c source, pcmk_rc_str(rc)); rc 491 daemons/based/based_messages.c return pcmk_rc2legacy(rc); rc 45 daemons/based/based_notify.c int rc = pcmk_rc_ok; rc 82 daemons/based/based_notify.c rc = pcmk__ipc_send_iov(client, update->iov, rc 84 daemons/based/based_notify.c if (rc != pcmk_rc_ok) { rc 86 daemons/based/based_notify.c pcmk__client_name(client), pcmk_rc_str(rc), rc 113 daemons/based/based_notify.c int rc = pcmk__ipc_prepare_iov(0, xml, 0, &iov, &bytes); rc 115 daemons/based/based_notify.c if (rc == pcmk_rc_ok) { rc 123 daemons/based/based_notify.c pcmk_rc_str(rc), rc); rc 91 daemons/based/based_remote.c int rc; rc 144 daemons/based/based_remote.c rc = setsockopt(*ssock, SOL_SOCKET, SO_REUSEADDR, &optval, sizeof(optval)); rc 145 daemons/based/based_remote.c if (rc < 0) { rc 280 daemons/based/based_remote.c int rc; rc 300 daemons/based/based_remote.c rc = pcmk__set_nonblocking(csock); rc 301 daemons/based/based_remote.c if (rc != pcmk_rc_ok) { rc 304 daemons/based/based_remote.c ipstr, pcmk_rc_str(rc)); rc 447 daemons/based/based_remote.c int rc; rc 457 daemons/based/based_remote.c int rc = pcmk__read_handshake_data(client); rc 459 daemons/based/based_remote.c if (rc == EAGAIN) { rc 464 daemons/based/based_remote.c } else if (rc != pcmk_rc_ok) { rc 482 daemons/based/based_remote.c rc = pcmk__read_available_remote_data(client->remote); rc 483 daemons/based/based_remote.c switch (rc) { rc 493 daemons/based/based_remote.c crm_trace("Error reading from remote client: %s", pcmk_rc_str(rc)); rc 613 daemons/based/based_remote.c int rc = 0; rc 631 daemons/based/based_remote.c rc = pam_start(pam_name, user, &p_conv, &pam_h); rc 632 daemons/based/based_remote.c if (rc != PAM_SUCCESS) { rc 635 daemons/based/based_remote.c user, pam_strerror(pam_h, rc)); rc 640 daemons/based/based_remote.c rc = pam_authenticate(pam_h, PAM_SILENT); rc 641 daemons/based/based_remote.c if (rc != PAM_SUCCESS) { rc 643 daemons/based/based_remote.c user, pam_strerror(pam_h, rc)); rc 651 daemons/based/based_remote.c rc = pam_get_item(pam_h, PAM_USER, &p_user); rc 652 daemons/based/based_remote.c if (rc != PAM_SUCCESS) { rc 655 daemons/based/based_remote.c user, pam_strerror(pam_h, rc)); rc 673 daemons/based/based_remote.c rc = pam_acct_mgmt(pam_h, PAM_SILENT); rc 674 daemons/based/based_remote.c if (rc != PAM_SUCCESS) { rc 676 daemons/based/based_remote.c user, pam_strerror(pam_h, rc)); rc 682 daemons/based/based_remote.c pam_end(pam_h, rc); rc 66 daemons/based/based_transaction.c int rc = cib__get_operation(op, &operation); rc 68 daemons/based/based_transaction.c if (rc == pcmk_rc_ok) { rc 72 daemons/based/based_transaction.c rc = EOPNOTSUPP; rc 77 daemons/based/based_transaction.c rc = cib_process_request(request, TRUE, client); rc 78 daemons/based/based_transaction.c rc = pcmk_legacy2rc(rc); rc 82 daemons/based/based_transaction.c if (rc != pcmk_rc_ok) { rc 85 daemons/based/based_transaction.c source, op, pcmk_rc_str(rc)); rc 87 daemons/based/based_transaction.c return rc; rc 121 daemons/based/based_transaction.c int rc = pcmk_rc_ok; rc 145 daemons/based/based_transaction.c rc = process_transaction_requests(transaction, client, origin); rc 148 daemons/based/based_transaction.c ((rc == pcmk_rc_ok)? "succeeded" : "failed"), source); rc 162 daemons/based/based_transaction.c return rc; rc 78 daemons/based/pacemaker-based.c int rc = 0; rc 99 daemons/based/pacemaker-based.c rc = setgid(pwentry->pw_gid); rc 100 daemons/based/pacemaker-based.c if (rc < 0) { rc 108 daemons/based/pacemaker-based.c rc = initgroups(CRM_DAEMON_USER, pwentry->pw_gid); rc 109 daemons/based/pacemaker-based.c if (rc < 0) { rc 117 daemons/based/pacemaker-based.c rc = setuid(pwentry->pw_uid); rc 118 daemons/based/pacemaker-based.c if (rc < 0) { rc 177 daemons/based/pacemaker-based.c int rc = pcmk_rc_ok; rc 197 daemons/based/pacemaker-based.c rc = pcmk__output_new(&out, args->output_ty, args->output_dest, argv); rc 198 daemons/based/pacemaker-based.c if (rc != pcmk_rc_ok) { rc 202 daemons/based/pacemaker-based.c args->output_ty, pcmk_rc_str(rc)); rc 219 daemons/based/pacemaker-based.c rc = based_metadata(out); rc 220 daemons/based/pacemaker-based.c if (rc != pcmk_rc_ok) { rc 223 daemons/based/pacemaker-based.c "Unable to display metadata: %s", pcmk_rc_str(rc)); rc 254 daemons/based/pacemaker-based.c rc = setup_stand_alone(&error); rc 255 daemons/based/pacemaker-based.c if (rc != pcmk_rc_ok) { rc 66 daemons/controld/controld_attrd.c int rc = pcmk_rc_ok; rc 69 daemons/controld/controld_attrd.c rc = pcmk_new_ipc_api(&attrd_api, pcmk_ipc_attrd); rc 71 daemons/controld/controld_attrd.c if (rc == pcmk_rc_ok) { rc 77 daemons/controld/controld_attrd.c rc = pcmk__attrd_api_update(attrd_api, host, name, value, rc 80 daemons/controld/controld_attrd.c if (rc != pcmk_rc_ok) { rc 84 daemons/controld/controld_attrd.c host, when(), pcmk_rc_str(rc), rc); rc 92 daemons/controld/controld_attrd.c int rc = pcmk_rc_ok; rc 95 daemons/controld/controld_attrd.c rc = pcmk_new_ipc_api(&attrd_api, pcmk_ipc_attrd); rc 97 daemons/controld/controld_attrd.c if (rc == pcmk_rc_ok) { rc 98 daemons/controld/controld_attrd.c rc = pcmk__attrd_api_update_list(attrd_api, attrs, NULL, NULL, NULL, rc 101 daemons/controld/controld_attrd.c if (rc != pcmk_rc_ok) { rc 104 daemons/controld/controld_attrd.c CRM_XS " rc=%d", pcmk_rc_str(rc), rc); rc 112 daemons/controld/controld_attrd.c int rc = pcmk_rc_ok; rc 115 daemons/controld/controld_attrd.c rc = pcmk_new_ipc_api(&attrd_api, pcmk_ipc_attrd); rc 117 daemons/controld/controld_attrd.c if (rc == pcmk_rc_ok) { rc 120 daemons/controld/controld_attrd.c rc = pcmk__attrd_api_purge(attrd_api, host, true); rc 122 daemons/controld/controld_attrd.c if (rc != pcmk_rc_ok) { rc 125 daemons/controld/controld_attrd.c host, when(), pcmk_rc_str(rc), rc); rc 133 daemons/controld/controld_attrd.c int rc = pcmk_rc_ok; rc 136 daemons/controld/controld_attrd.c rc = pcmk_new_ipc_api(&attrd_api, pcmk_ipc_attrd); rc 138 daemons/controld/controld_attrd.c if (rc == pcmk_rc_ok) { rc 144 daemons/controld/controld_attrd.c rc = pcmk__attrd_api_clear_failures(attrd_api, host, rsc, op, rc 147 daemons/controld/controld_attrd.c if (rc != pcmk_rc_ok) { rc 156 daemons/controld/controld_attrd.c when(), pcmk_rc_str(rc), rc); rc 133 daemons/controld/controld_cib.c int rc = pcmk_ok; rc 159 daemons/controld/controld_cib.c rc = cib_conn->cmds->signon(cib_conn, CRM_SYSTEM_CRMD, rc 162 daemons/controld/controld_cib.c if (rc != pcmk_ok) { rc 165 daemons/controld/controld_cib.c rc = cib_conn->cmds->signon(cib_conn, CRM_SYSTEM_CRMD, rc 169 daemons/controld/controld_cib.c if (rc != pcmk_ok) { rc 170 daemons/controld/controld_cib.c crm_info("Could not connect to the CIB manager: %s", pcmk_strerror(rc)); rc 261 daemons/controld/controld_cib.c cib_delete_callback(xmlNode *msg, int call_id, int rc, xmlNode *output, rc 266 daemons/controld/controld_cib.c if (rc == 0) { rc 270 daemons/controld/controld_cib.c desc, call_id, pcmk_strerror(rc), rc); rc 414 daemons/controld/controld_cib.c int rc = pcmk_rc_ok; rc 430 daemons/controld/controld_cib.c rc = cib->cmds->remove(cib, xpath, NULL, call_options|cib_xpath); rc 433 daemons/controld/controld_cib.c if (rc < 0) { rc 434 daemons/controld/controld_cib.c rc = pcmk_legacy2rc(rc); rc 438 daemons/controld/controld_cib.c pcmk_rc_str(rc), rc); rc 441 daemons/controld/controld_cib.c return rc; rc 454 daemons/controld/controld_cib.c desc, rc, xpath); rc 455 daemons/controld/controld_cib.c fsa_register_cib_callback(rc, desc, cib_delete_callback); rc 765 daemons/controld/controld_cib.c cib_rsc_callback(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data) rc 767 daemons/controld/controld_cib.c switch (rc) { rc 772 daemons/controld/controld_cib.c call_id, rc); rc 777 daemons/controld/controld_cib.c CRM_XS " rc=%d", call_id, pcmk_strerror(rc), rc); rc 780 daemons/controld/controld_cib.c pcmk_strerror(rc), rc); rc 800 daemons/controld/controld_cib.c if (!strcmp(op->op_type, PCMK_ACTION_STOP) && (op->rc == PCMK_OCF_OK)) { rc 804 daemons/controld/controld_cib.c && (op->rc == PCMK_OCF_NOT_RUNNING)) { rc 521 daemons/controld/controld_control.c config_query_callback(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data) rc 529 daemons/controld/controld_control.c if (rc != pcmk_ok) { rc 532 daemons/controld/controld_control.c crm_err("Local CIB query resulted in an error: %s", pcmk_strerror(rc)); rc 535 daemons/controld/controld_control.c if (rc == -EACCES || rc == -pcmk_err_schema_validation) { rc 146 daemons/controld/controld_election.c enum election_result rc = 0; rc 156 daemons/controld/controld_election.c rc = election_count_vote(fsa_election, vote->msg, cur_state != S_STARTING); rc 157 daemons/controld/controld_election.c switch(rc) { rc 178 daemons/controld/controld_election.c crm_trace("Election message resulted in state %d", rc); rc 183 daemons/controld/controld_election.c feature_update_callback(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data) rc 185 daemons/controld/controld_election.c if (rc != pcmk_ok) { rc 189 daemons/controld/controld_election.c pcmk_strerror(rc), rc); rc 31 daemons/controld/controld_execd.c int rc; rc 201 daemons/controld/controld_execd.c op->rsc_id, op->op_type, op->interval_ms, op->rc, rc 313 daemons/controld/controld_execd.c int rc = pcmk_rc_ok; rc 318 daemons/controld/controld_execd.c rc = controld_connect_local_executor(lrm_state); rc 319 daemons/controld/controld_execd.c if (rc == pcmk_rc_ok) { rc 330 daemons/controld/controld_execd.c MAX_LRM_REG_FAILS, pcmk_rc_str(rc)); rc 340 daemons/controld/controld_execd.c pcmk_rc_str(rc)); rc 394 daemons/controld/controld_execd.c gboolean rc = TRUE; rc 447 daemons/controld/controld_execd.c rc = FALSE; rc 449 daemons/controld/controld_execd.c return rc; rc 453 daemons/controld/controld_execd.c return rc; rc 493 daemons/controld/controld_execd.c return rc; rc 507 daemons/controld/controld_execd.c entry->last->interval_ms, entry->last->rc); rc 508 daemons/controld/controld_execd.c if ((entry->last->rc == PCMK_OCF_OK) rc 513 daemons/controld/controld_execd.c } else if (entry->last->rc == PCMK_OCF_OK rc 519 daemons/controld/controld_execd.c } else if (entry->last->rc == PCMK_OCF_NOT_RUNNING) { rc 523 daemons/controld/controld_execd.c && (entry->last->rc == PCMK_OCF_NOT_CONFIGURED)) { rc 616 daemons/controld/controld_execd.c controld_rc2event(lrmd_event_data_t *event, int rc) rc 621 daemons/controld/controld_execd.c switch (rc) { rc 663 daemons/controld/controld_execd.c notify_deleted(lrm_state_t * lrm_state, ha_msg_input_t * input, const char *rsc_id, int rc) rc 671 daemons/controld/controld_execd.c ((rc == pcmk_ok)? "" : " not")); rc 673 daemons/controld/controld_execd.c controld_rc2event(op, pcmk_legacy2rc(rc)); rc 686 daemons/controld/controld_execd.c notify_deleted(event->lrm_state, op->input, event->rsc, event->rc); rc 708 daemons/controld/controld_execd.c const char *rsc_id, GHashTableIter *rsc_iter, int rc, rc 715 daemons/controld/controld_execd.c if (rc == pcmk_ok) { rc 734 daemons/controld/controld_execd.c notify_deleted(lrm_state, input, rsc_id, rc); rc 737 daemons/controld/controld_execd.c event.rc = rc; rc 793 daemons/controld/controld_execd.c int rc = pcmk_ok; rc 825 daemons/controld/controld_execd.c rc = lrm_state_cancel(lrm_state, pending->rsc_id, pending->op_type, rc 827 daemons/controld/controld_execd.c if (rc == pcmk_ok) { rc 937 daemons/controld/controld_execd.c int rc; rc 940 daemons/controld/controld_execd.c rc = lrm_state_register_rsc(lrm_state, id, class, provider, type, rc 942 daemons/controld/controld_execd.c if (rc != pcmk_ok) { rc 947 daemons/controld/controld_execd.c id, lrm_state->node_name, pcmk_strerror(rc), rc); rc 956 daemons/controld/controld_execd.c return rc; rc 969 daemons/controld/controld_execd.c int rc = pcmk_ok; rc 975 daemons/controld/controld_execd.c rc = lrm_state_unregister_rsc(lrm_state, id, 0); rc 978 daemons/controld/controld_execd.c if (rc == pcmk_ok) { rc 980 daemons/controld/controld_execd.c } else if (rc == -EINPROGRESS) { rc 995 daemons/controld/controld_execd.c (user? user : ""), pcmk_strerror(rc), rc); rc 998 daemons/controld/controld_execd.c delete_rsc_entry(lrm_state, request, id, iter, rc, user, from_cib); rc 1098 daemons/controld/controld_execd.c int op_status, enum ocf_exitcode rc, rc 1110 daemons/controld/controld_execd.c crm_element_value(action, PCMK__XA_OPERATION_KEY), rc, rc 1117 daemons/controld/controld_execd.c pcmk__xe_id(xml_rsc), rc, target_node); rc 1127 daemons/controld/controld_execd.c fake_op_status(lrm_state, op, op_status, rc, exit_reason); rc 1131 daemons/controld/controld_execd.c op->rsc_id, op->op_type, op->interval_ms, op->rc, target_node); rc 1203 daemons/controld/controld_execd.c op->rc = PCMK_OCF_OK; // The request to fail the resource succeeded rc 1502 daemons/controld/controld_execd.c int rc; rc 1507 daemons/controld/controld_execd.c rc = get_lrm_resource(lrm_state, xml_rsc, create_rsc, &rsc); rc 1508 daemons/controld/controld_execd.c if (rc == -ENOTCONN) { rc 1515 daemons/controld/controld_execd.c } else if ((rc < 0) && !create_rsc) { rc 1522 daemons/controld/controld_execd.c rc, pcmk_strerror(rc), pcmk__xe_id(input->xml)); rc 1527 daemons/controld/controld_execd.c } else if (rc == -EINVAL) { rc 1536 daemons/controld/controld_execd.c } else if (rc < 0) { rc 1540 daemons/controld/controld_execd.c pcmk__xe_id(xml_rsc), pcmk_strerror(rc), rc); rc 1921 daemons/controld/controld_execd.c int rc; rc 2018 daemons/controld/controld_execd.c rc = controld_execute_resource_agent(lrm_state, rsc->id, op->op_type, rc 2022 daemons/controld/controld_execd.c if (rc == pcmk_rc_ok) { rc 2060 daemons/controld/controld_execd.c CRM_XS " rc=%d", operation, rsc->id, pcmk_rc_str(rc), rc); rc 2062 daemons/controld/controld_execd.c PCMK_OCF_UNKNOWN_ERROR, pcmk_rc_str(rc)); rc 2069 daemons/controld/controld_execd.c operation, rsc->id, lrm_state->node_name, pcmk_rc_str(rc), rc); rc 2071 daemons/controld/controld_execd.c PCMK_OCF_UNKNOWN_ERROR, pcmk_rc_str(rc)); rc 2164 daemons/controld/controld_execd.c pcmk__g_strcat(str, ": ", services_ocf_exitcode_str(op->rc), NULL); rc 2197 daemons/controld/controld_execd.c && ((op->op_status != PCMK_EXEC_DONE) || (op->rc != PCMK_OCF_OK))) { rc 2206 daemons/controld/controld_execd.c g_string_append_printf(str, " rc=%d", op->rc); rc 2215 daemons/controld/controld_execd.c if ((op->output != NULL) && (op->rc != PCMK_OCF_OK)) { rc 2298 daemons/controld/controld_execd.c switch(op->rc) { rc 2428 daemons/controld/controld_execd.c } else if (rsc && (op->rc == PCMK_OCF_OK)) { rc 390 daemons/controld/controld_execd_state.c int rc = pcmk_rc_ok; rc 395 daemons/controld/controld_execd_state.c rc = lrmd__new(&api, NULL, NULL, 0); rc 396 daemons/controld/controld_execd_state.c if (rc != pcmk_rc_ok) { rc 397 daemons/controld/controld_execd_state.c return rc; rc 403 daemons/controld/controld_execd_state.c rc = ((lrmd_t *) lrm_state->conn)->cmds->connect(lrm_state->conn, rc 405 daemons/controld/controld_execd_state.c rc = pcmk_legacy2rc(rc); rc 407 daemons/controld/controld_execd_state.c if (rc == pcmk_rc_ok) { rc 412 daemons/controld/controld_execd_state.c return rc; rc 463 daemons/controld/controld_execd_state.c remote_config_check(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data) rc 465 daemons/controld/controld_execd_state.c if (rc != pcmk_ok) { rc 466 daemons/controld/controld_execd_state.c crm_err("Query resulted in an error: %s", pcmk_strerror(rc)); rc 468 daemons/controld/controld_execd_state.c if (rc == -EACCES || rc == -pcmk_err_schema_validation) { rc 510 daemons/controld/controld_execd_state.c int rc = cib_conn->cmds->query(cib_conn, PCMK_XE_CRM_CONFIG, rc 512 daemons/controld/controld_execd_state.c cib_conn->cmds->register_callback_full(cib_conn, rc, 10, FALSE, rc 551 daemons/controld/controld_execd_state.c int rc = pcmk_rc_ok; rc 580 daemons/controld/controld_execd_state.c rc = pcmk__xe_get_flags(msg, PCMK__XA_LRMD_IPC_MSG_FLAGS, &flags, 0U); rc 581 daemons/controld/controld_execd_state.c if (rc != pcmk_rc_ok) { rc 583 daemons/controld/controld_execd_state.c pcmk_rc_str(rc)); rc 609 daemons/controld/controld_execd_state.c int rc = pcmk_rc_ok; rc 614 daemons/controld/controld_execd_state.c rc = lrmd__new(&api, lrm_state->node_name, server, port); rc 615 daemons/controld/controld_execd_state.c if (rc != pcmk_rc_ok) { rc 617 daemons/controld/controld_execd_state.c CRM_XS " rc=%d", server, port, pcmk_rc_str(rc), rc); rc 619 daemons/controld/controld_execd_state.c return rc; rc 628 daemons/controld/controld_execd_state.c rc = ((lrmd_t *) lrm_state->conn)->cmds->connect_async(lrm_state->conn, rc 631 daemons/controld/controld_execd_state.c if (rc == pcmk_ok) { rc 636 daemons/controld/controld_execd_state.c return pcmk_legacy2rc(rc); rc 739 daemons/controld/controld_execd_state.c int rc = pcmk_rc_ok; rc 760 daemons/controld/controld_execd_state.c rc = controld_execute_remote_agent(lrm_state, rsc_id, action, rc 765 daemons/controld/controld_execd_state.c rc = ((lrmd_t *) lrm_state->conn)->cmds->exec(lrm_state->conn, rsc_id, rc 771 daemons/controld/controld_execd_state.c if (rc < 0) { rc 772 daemons/controld/controld_execd_state.c rc = pcmk_legacy2rc(rc); rc 774 daemons/controld/controld_execd_state.c *call_id = rc; rc 775 daemons/controld/controld_execd_state.c rc = pcmk_rc_ok; rc 778 daemons/controld/controld_execd_state.c return rc; rc 49 daemons/controld/controld_fencing.c int rc = pcmk_parse_score(value, &score, DEFAULT_STONITH_MAX_ATTEMPTS); rc 52 daemons/controld/controld_fencing.c CRM_CHECK((rc == pcmk_rc_ok) && (score > 0), return); rc 195 daemons/controld/controld_fencing.c cib_fencing_updated(xmlNode *msg, int call_id, int rc, xmlNode *output, rc 198 daemons/controld/controld_fencing.c if (rc < pcmk_ok) { rc 200 daemons/controld/controld_fencing.c call_id, (char *)user_data, pcmk_strerror(rc), rc); rc 214 daemons/controld/controld_fencing.c int rc = pcmk_ok; rc 266 daemons/controld/controld_fencing.c rc = controld_globals.cib_conn->cmds->modify(controld_globals.cib_conn, rc 272 daemons/controld/controld_fencing.c crm_debug("Sending fencing update %d for %s", rc, target); rc 273 daemons/controld/controld_fencing.c fsa_register_cib_callback(rc, pcmk__str_copy(target), cib_fencing_updated); rc 676 daemons/controld/controld_fencing.c int rc = pcmk_ok; rc 693 daemons/controld/controld_fencing.c rc = stonith_api_connect_retry(stonith_api, crm_system_name, 30); rc 694 daemons/controld/controld_fencing.c if (rc != pcmk_ok) { rc 696 daemons/controld/controld_fencing.c CRM_XS " rc=%d", pcmk_strerror(rc), rc); rc 700 daemons/controld/controld_fencing.c rc = stonith_api->cmds->connect(stonith_api, crm_system_name, NULL); rc 709 daemons/controld/controld_fencing.c if (rc != pcmk_ok) { rc 713 daemons/controld/controld_fencing.c CRM_XS " rc=%d", pcmk_strerror(rc), rc); rc 722 daemons/controld/controld_fencing.c CRM_XS " rc=%d", pcmk_strerror(rc), rc); rc 728 daemons/controld/controld_fencing.c if (rc == pcmk_ok) { rc 971 daemons/controld/controld_fencing.c int rc = 0; rc 1007 daemons/controld/controld_fencing.c rc = fence_with_delay(target, type, delay_i); rc 1011 daemons/controld/controld_fencing.c stonith_api->cmds->register_callback(stonith_api, rc, rc 138 daemons/controld/controld_fsa.c input->rsc_id, input->call_id, input->rc, rc 18 daemons/controld/controld_join_client.c void join_query_callback(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data); rc 146 daemons/controld/controld_join_client.c join_query_callback(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data) rc 159 daemons/controld/controld_join_client.c if(rc != pcmk_ok || output == NULL) { rc 161 daemons/controld/controld_join_client.c join_id, pcmk_strerror(rc), rc); rc 35 daemons/controld/controld_join_dc.c void finalize_sync_callback(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data); rc 361 daemons/controld/controld_join_dc.c int rc = pcmk_rc_ok; rc 363 daemons/controld/controld_join_dc.c rc = pcmk__scan_ll(elem_l, &int_elem_l, -1LL); rc 364 daemons/controld/controld_join_dc.c if (rc != pcmk_rc_ok) { // Shouldn't be possible rc 369 daemons/controld/controld_join_dc.c rc = pcmk__scan_ll(elem_r, &int_elem_r, -1LL); rc 370 daemons/controld/controld_join_dc.c if (rc != pcmk_rc_ok) { // Shouldn't be possible rc 573 daemons/controld/controld_join_dc.c int rc = pcmk_ok; rc 630 daemons/controld/controld_join_dc.c rc = controld_globals.cib_conn->cmds->sync_from(controld_globals.cib_conn, rc 632 daemons/controld/controld_join_dc.c fsa_register_cib_callback(rc, sync_from, finalize_sync_callback); rc 646 daemons/controld/controld_join_dc.c finalize_sync_callback(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data) rc 648 daemons/controld/controld_join_dc.c CRM_LOG_ASSERT(-EPERM != rc); rc 650 daemons/controld/controld_join_dc.c if (rc != pcmk_ok) { rc 653 daemons/controld/controld_join_dc.c do_crm_log(((rc == -pcmk_err_old_data)? LOG_WARNING : LOG_ERR), rc 655 daemons/controld/controld_join_dc.c sync_from, current_join_id, pcmk_strerror(rc)); rc 657 daemons/controld/controld_join_dc.c if (rc != -pcmk_err_old_data) { rc 693 daemons/controld/controld_join_dc.c join_node_state_commit_callback(xmlNode *msg, int call_id, int rc, rc 698 daemons/controld/controld_join_dc.c if (rc != pcmk_ok) { rc 703 daemons/controld/controld_join_dc.c current_join_id, call_id, node, pcmk_strerror(rc)); rc 734 daemons/controld/controld_join_dc.c int rc = pcmk_ok; rc 782 daemons/controld/controld_join_dc.c rc = cib->cmds->init_transaction(cib); rc 783 daemons/controld/controld_join_dc.c if (rc != pcmk_ok) { rc 793 daemons/controld/controld_join_dc.c rc = cib->cmds->remove(cib, xpath, NULL, rc 798 daemons/controld/controld_join_dc.c if (rc != pcmk_ok) { rc 826 daemons/controld/controld_join_dc.c rc = cib->cmds->modify(cib, PCMK_XE_STATUS, state, rc 829 daemons/controld/controld_join_dc.c if (rc != pcmk_ok) { rc 834 daemons/controld/controld_join_dc.c rc = cib->cmds->end_transaction(cib, true, cib_scope_local); rc 835 daemons/controld/controld_join_dc.c fsa_register_cib_callback(rc, join_from, join_node_state_commit_callback); rc 837 daemons/controld/controld_join_dc.c if (rc > 0) { rc 840 daemons/controld/controld_join_dc.c rc = pcmk_ok; rc 844 daemons/controld/controld_join_dc.c if (rc != pcmk_ok) { rc 846 daemons/controld/controld_join_dc.c current_join_id, join_from, pcmk_strerror(rc)); rc 180 daemons/controld/controld_lrm.h void controld_rc2event(lrmd_event_data_t *event, int rc); rc 92 daemons/controld/controld_membership.c crmd_node_update_complete(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data) rc 96 daemons/controld/controld_membership.c if (rc == pcmk_ok) { rc 105 daemons/controld/controld_membership.c crm_err("Node update %d failed: %s (%d)", call_id, pcmk_strerror(rc), rc); rc 197 daemons/controld/controld_membership.c remove_conflicting_node_callback(xmlNode * msg, int call_id, int rc, rc 202 daemons/controld/controld_membership.c do_crm_log_unlikely(rc == 0 ? LOG_DEBUG : LOG_NOTICE, rc 204 daemons/controld/controld_membership.c node_uuid, pcmk_strerror(rc), rc); rc 208 daemons/controld/controld_membership.c search_conflicting_node_callback(xmlNode * msg, int call_id, int rc, rc 214 daemons/controld/controld_membership.c if (rc != pcmk_ok) { rc 215 daemons/controld/controld_membership.c if (rc != -ENXIO) { rc 217 daemons/controld/controld_membership.c new_node_uuid, pcmk_strerror(rc), rc); rc 286 daemons/controld/controld_membership.c node_list_update_callback(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data) rc 295 daemons/controld/controld_membership.c } else if(rc < pcmk_ok) { rc 296 daemons/controld/controld_membership.c crm_err("Node update %d failed: %s (%d)", call_id, pcmk_strerror(rc), rc); rc 396 daemons/controld/controld_membership.c cib_quorum_update_complete(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data) rc 400 daemons/controld/controld_membership.c if (rc == pcmk_ok) { rc 404 daemons/controld/controld_membership.c crm_err("Quorum update %d failed: %s (%d)", call_id, pcmk_strerror(rc), rc); rc 728 daemons/controld/controld_messages.c int rc = pcmk_rc_ok; rc 740 daemons/controld/controld_messages.c rc = controld_delete_resource_history(rsc_id, node, user_name, rc 742 daemons/controld/controld_messages.c if (rc == pcmk_rc_ok) { rc 743 daemons/controld/controld_messages.c rc = controld_delete_resource_history(rsc_id, node, user_name, rc 765 daemons/controld/controld_messages.c ((rc == pcmk_rc_ok)? "" : " not")); rc 772 daemons/controld/controld_messages.c controld_rc2event(op, rc); rc 795 daemons/controld/controld_messages.c int rc = pcmk_rc_ok; rc 797 daemons/controld/controld_messages.c rc = pcmk__xe_get_bool_attr(msg, PCMK__XA_IN_CCM, &remote_is_up); rc 799 daemons/controld/controld_messages.c CRM_CHECK(remote_uname && rc == pcmk_rc_ok, return I_NULL); rc 253 daemons/controld/controld_metadata.c int rc = pcmk_ok; rc 296 daemons/controld/controld_metadata.c rc = lrm_state_get_metadata(lrm_state, rsc->standard, rsc->provider, rc 298 daemons/controld/controld_metadata.c if (rc != pcmk_ok) { rc 303 daemons/controld/controld_metadata.c rsc->type, pcmk_strerror(rc)); rc 527 daemons/controld/controld_remote_ra.c int rc = ETIME; rc 540 daemons/controld/controld_remote_ra.c rc = handle_remote_ra_start(lrm_state, cmd, cmd->remaining_timeout); rc 547 daemons/controld/controld_remote_ra.c if (rc != pcmk_rc_ok) { rc 648 daemons/controld/controld_remote_ra.c services_ocf_exitcode_str(op->rc), op->rc, rc 866 daemons/controld/controld_remote_ra.c int rc = pcmk_rc_ok; rc 884 daemons/controld/controld_remote_ra.c rc = controld_connect_remote_executor(lrm_state, server, port, rc 886 daemons/controld/controld_remote_ra.c if (rc != pcmk_rc_ok) { rc 890 daemons/controld/controld_remote_ra.c lrm_state->node_name, pcmk_rc_str(rc)); rc 892 daemons/controld/controld_remote_ra.c return rc; rc 898 daemons/controld/controld_remote_ra.c int rc = 0; rc 936 daemons/controld/controld_remote_ra.c rc = lrm_state_poke_connection(lrm_state); rc 937 daemons/controld/controld_remote_ra.c if (rc < 0) { rc 939 daemons/controld/controld_remote_ra.c PCMK_EXEC_ERROR, pcmk_strerror(rc)); rc 942 daemons/controld/controld_remote_ra.c rc = -1; rc 947 daemons/controld/controld_remote_ra.c if (rc == 0) { rc 56 daemons/controld/controld_schedulerd.c save_cib_contents(xmlNode *msg, int call_id, int rc, xmlNode *output, rc 64 daemons/controld/controld_schedulerd.c if (rc == pcmk_ok) { rc 89 daemons/controld/controld_schedulerd.c int rc = pcmk_ok; rc 106 daemons/controld/controld_schedulerd.c rc = controld_globals.cib_conn->cmds->query(controld_globals.cib_conn, rc 109 daemons/controld/controld_schedulerd.c fsa_register_cib_callback(rc, uuid_str, save_cib_contents); rc 185 daemons/controld/controld_schedulerd.c int rc; rc 190 daemons/controld/controld_schedulerd.c rc = pcmk_new_ipc_api(&schedulerd_api, pcmk_ipc_schedulerd); rc 192 daemons/controld/controld_schedulerd.c if (rc != pcmk_rc_ok) { rc 193 daemons/controld/controld_schedulerd.c crm_err("Error connecting to the scheduler: %s", pcmk_rc_str(rc)); rc 200 daemons/controld/controld_schedulerd.c rc = pcmk__connect_ipc(schedulerd_api, pcmk_ipc_dispatch_main, 3); rc 201 daemons/controld/controld_schedulerd.c if (rc != pcmk_rc_ok) { rc 203 daemons/controld/controld_schedulerd.c pcmk_ipc_name(schedulerd_api, true), pcmk_rc_str(rc)); rc 211 daemons/controld/controld_schedulerd.c static void do_pe_invoke_callback(xmlNode *msg, int call_id, int rc, rc 443 daemons/controld/controld_schedulerd.c do_pe_invoke_callback(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data) rc 448 daemons/controld/controld_schedulerd.c if (rc != pcmk_ok) { rc 450 daemons/controld/controld_schedulerd.c CRM_XS " rc=%d call=%d", pcmk_strerror(rc), rc, call_id); rc 497 daemons/controld/controld_schedulerd.c rc = pcmk_schedulerd_api_graph(schedulerd_api, output, &ref); rc 498 daemons/controld/controld_schedulerd.c if (rc != pcmk_rc_ok) { rc 501 daemons/controld/controld_schedulerd.c pcmk_rc_str(rc), rc); rc 112 daemons/controld/controld_te_actions.c gboolean rc = TRUE; rc 177 daemons/controld/controld_te_actions.c rc = pcmk__cluster_send_message(node, crm_msg_crmd, cmd); rc 181 daemons/controld/controld_te_actions.c if (rc == FALSE) { rc 259 daemons/controld/controld_te_actions.c int rc = pcmk_ok; rc 309 daemons/controld/controld_te_actions.c rc = cib_conn->cmds->modify(cib_conn, PCMK_XE_STATUS, state, rc 311 daemons/controld/controld_te_actions.c fsa_register_cib_callback(rc, NULL, cib_action_updated); rc 315 daemons/controld/controld_te_actions.c rc, action->id, task_uuid, target); rc 359 daemons/controld/controld_te_actions.c gboolean rc = TRUE; rc 436 daemons/controld/controld_te_actions.c rc = pcmk__cluster_send_message(node, crm_msg_lrmd, cmd); rc 444 daemons/controld/controld_te_actions.c if (rc == FALSE) { rc 548 daemons/controld/controld_te_callbacks.c int rc = -EINVAL; rc 554 daemons/controld/controld_te_callbacks.c crm_element_value_int(msg, PCMK__XA_CIB_RC, &rc); rc 560 daemons/controld/controld_te_callbacks.c } else if (rc < pcmk_ok) { rc 561 daemons/controld/controld_te_callbacks.c crm_trace("Filter rc=%d (%s)", rc, pcmk_strerror(rc)); rc 652 daemons/controld/controld_te_callbacks.c cib_action_updated(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data) rc 654 daemons/controld/controld_te_callbacks.c if (rc < pcmk_ok) { rc 655 daemons/controld/controld_te_callbacks.c crm_err("Update %d FAILED: %s", call_id, pcmk_strerror(rc)); rc 179 daemons/controld/controld_te_events.c update_failcount(const xmlNode *event, const char *event_node_uuid, int rc, rc 193 daemons/controld/controld_te_events.c if (rc == target_rc) { rc 197 daemons/controld/controld_te_events.c id, rc, on_uname); rc 245 daemons/controld/controld_te_events.c rsc_id, on_uname, task, rc, value, now); rc 426 daemons/controld/controld_te_events.c int rc = -1; // Actual result rc 457 daemons/controld/controld_te_events.c crm_element_value_int(event, PCMK__XA_RC_CODE, &rc); rc 460 daemons/controld/controld_te_events.c rc = pcmk__effective_rc(rc); rc 551 daemons/controld/controld_te_events.c } else if (rc != target_rc) { rc 579 daemons/controld/controld_te_events.c } else if (desc && update_failcount(event, event_node, rc, target_rc, rc 585 daemons/controld/controld_te_events.c services_ocf_exitcode_str(rc), rc 586 daemons/controld/controld_te_events.c target_rc, rc, callid, desc); rc 592 daemons/controld/controld_te_events.c desc, rc, target_rc, callid); rc 594 daemons/controld/controld_te_events.c } else if (rc == target_rc) { rc 598 daemons/controld/controld_te_events.c services_ocf_exitcode_str(rc), rc, callid); rc 601 daemons/controld/controld_te_events.c update_failcount(event, event_node, rc, target_rc, rc 607 daemons/controld/controld_te_events.c services_ocf_exitcode_str(rc), rc 608 daemons/controld/controld_te_events.c target_rc, rc, callid); rc 155 daemons/controld/controld_throttle.c int rc = errno; rc 157 daemons/controld/controld_throttle.c crm_warn("Couldn't read %s: %s (%d)", loadfile, pcmk_rc_str(rc), rc); rc 165 daemons/controld/controld_throttle.c int rc = 0, pid = 0, ppid = 0, pgrp = 0, session = 0, tty_nr = 0, tpgid = 0; rc 168 daemons/controld/controld_throttle.c rc = sscanf(buffer, "%d %[^ ] %c %d %d %d %d %d %lu %lu %lu %lu %lu %lu %lu", rc 174 daemons/controld/controld_throttle.c if(rc != 15) { rc 175 daemons/controld/controld_throttle.c crm_err("Only %d of 15 fields found in %s", rc, loadfile); rc 222 daemons/controld/controld_throttle.c int rc = errno; rc 223 daemons/controld/controld_throttle.c crm_warn("Couldn't read %s: %s (%d)", loadfile, pcmk_rc_str(rc), rc); rc 416 daemons/controld/controld_throttle.c int rc = pcmk__scan_ll(env_limit, &max, 0LL); rc 418 daemons/controld/controld_throttle.c if (rc != pcmk_rc_ok) { rc 421 daemons/controld/controld_throttle.c env_limit, pcmk_rc_str(rc)); rc 40 daemons/controld/controld_transition.h void cib_action_updated(xmlNode *msg, int call_id, int rc, xmlNode *output, rc 71 daemons/controld/pacemaker-controld.c int rc = pcmk_rc_ok; rc 94 daemons/controld/pacemaker-controld.c rc = pcmk__output_new(&out, args->output_ty, args->output_dest, argv); rc 95 daemons/controld/pacemaker-controld.c if (rc != pcmk_rc_ok) { rc 99 daemons/controld/pacemaker-controld.c args->output_ty, pcmk_rc_str(rc)); rc 113 daemons/controld/pacemaker-controld.c rc = controld_metadata(out); rc 114 daemons/controld/pacemaker-controld.c if (rc != pcmk_rc_ok) { rc 117 daemons/controld/pacemaker-controld.c "Unable to display metadata: %s", pcmk_rc_str(rc)); rc 182 daemons/execd/cts-exec-helper.c services_ocf_exitcode_str(event->rc), \ rc 205 daemons/execd/cts-exec-helper.c if (event->op_status == 0 && event->rc == 0) { rc 209 daemons/execd/cts-exec-helper.c event->rc, pcmk_exec_status_str(event->op_status)); rc 230 daemons/execd/cts-exec-helper.c int rc = event->connection_rc; rc 237 daemons/execd/cts-exec-helper.c if (!rc) { rc 253 daemons/execd/cts-exec-helper.c int rc = 0; rc 257 daemons/execd/cts-exec-helper.c rc = lrmd_conn->cmds->connect_async(lrmd_conn, crm_system_name, 3000); rc 259 daemons/execd/cts-exec-helper.c if (!rc) { rc 272 daemons/execd/cts-exec-helper.c int rc = 0; rc 292 daemons/execd/cts-exec-helper.c rc = lrmd_conn->cmds->exec(lrmd_conn, rc 302 daemons/execd/cts-exec-helper.c if (rc > 0) { rc 303 daemons/execd/cts-exec-helper.c exec_call_id = rc; rc 308 daemons/execd/cts-exec-helper.c rc = lrmd_conn->cmds->register_rsc(lrmd_conn, rc 322 daemons/execd/cts-exec-helper.c rc = pcmk_ok; rc 324 daemons/execd/cts-exec-helper.c rc = -1; rc 327 daemons/execd/cts-exec-helper.c rc = lrmd_conn->cmds->unregister_rsc(lrmd_conn, options.rsc_id, 0); rc 329 daemons/execd/cts-exec-helper.c rc = lrmd_conn->cmds->cancel(lrmd_conn, options.rsc_id, options.action, rc 334 daemons/execd/cts-exec-helper.c rc = lrmd_conn->cmds->get_metadata(lrmd_conn, rc 337 daemons/execd/cts-exec-helper.c if (rc == pcmk_ok) { rc 345 daemons/execd/cts-exec-helper.c rc = lrmd_conn->cmds->list_agents(lrmd_conn, &list, options.class, options.provider); rc 347 daemons/execd/cts-exec-helper.c if (rc > 0) { rc 348 daemons/execd/cts-exec-helper.c print_result("%d agents found", rc); rc 353 daemons/execd/cts-exec-helper.c rc = 0; rc 356 daemons/execd/cts-exec-helper.c rc = -1; rc 362 daemons/execd/cts-exec-helper.c rc = lrmd_conn->cmds->list_ocf_providers(lrmd_conn, options.type, &list); rc 364 daemons/execd/cts-exec-helper.c if (rc > 0) { rc 365 daemons/execd/cts-exec-helper.c print_result("%d providers found", rc); rc 370 daemons/execd/cts-exec-helper.c rc = 0; rc 373 daemons/execd/cts-exec-helper.c rc = -1; rc 380 daemons/execd/cts-exec-helper.c rc = lrmd_conn->cmds->list_standards(lrmd_conn, &list); rc 382 daemons/execd/cts-exec-helper.c if (rc > 0) { rc 383 daemons/execd/cts-exec-helper.c print_result("%d standards found", rc); rc 388 daemons/execd/cts-exec-helper.c rc = 0; rc 391 daemons/execd/cts-exec-helper.c rc = -1; rc 397 daemons/execd/cts-exec-helper.c rc = lrmd_conn->cmds->get_recurring_ops(lrmd_conn, options.rsc_id, 0, 0, rc 415 daemons/execd/cts-exec-helper.c if (rc < 0) { rc 417 daemons/execd/cts-exec-helper.c options.api_call, rc); rc 421 daemons/execd/cts-exec-helper.c if (options.api_call && rc == pcmk_ok) { rc 445 daemons/execd/cts-exec-helper.c int rc = pcmk_rc_ok; rc 460 daemons/execd/cts-exec-helper.c rc = cib__signon_query(NULL, NULL, &cib_xml_copy); rc 461 daemons/execd/cts-exec-helper.c if (rc != pcmk_rc_ok) { rc 462 daemons/execd/cts-exec-helper.c return rc; rc 464 daemons/execd/cts-exec-helper.c rc = pcmk__update_configured_schema(&cib_xml_copy, false); rc 465 daemons/execd/cts-exec-helper.c if (rc != pcmk_rc_ok) { rc 466 daemons/execd/cts-exec-helper.c return rc; rc 515 daemons/execd/cts-exec-helper.c return rc; rc 569 daemons/execd/cts-exec-helper.c int rc = pcmk_rc_ok; rc 583 daemons/execd/cts-exec-helper.c rc = generate_params(); rc 584 daemons/execd/cts-exec-helper.c if (rc != pcmk_rc_ok) { rc 585 daemons/execd/cts-exec-helper.c exit_code = pcmk_rc2exitc(rc); rc 88 daemons/execd/execd_alerts.c } else if (action->rc != 0) { rc 91 daemons/execd/execd_alerts.c action->pid, action->rc, cb_data->client_id); rc 115 daemons/execd/execd_alerts.c int rc = pcmk_ok; rc 121 daemons/execd/execd_alerts.c rc = -EINVAL; rc 144 daemons/execd/execd_alerts.c if (action->rc != PCMK_OCF_UNKNOWN) { rc 145 daemons/execd/execd_alerts.c rc = -E2BIG; rc 149 daemons/execd/execd_alerts.c rc = services_action_user(action, CRM_DAEMON_USER); rc 150 daemons/execd/execd_alerts.c if (rc < 0) { rc 166 daemons/execd/execd_alerts.c return rc; rc 540 daemons/execd/execd_commands.c create_lrmd_reply(const char *origin, int rc, int call_id) rc 545 daemons/execd/execd_commands.c crm_xml_add_int(reply, PCMK__XA_LRMD_RC, rc); rc 555 daemons/execd/execd_commands.c int rc; rc 574 daemons/execd/execd_commands.c rc = lrmd_server_send_notify(client, update_msg); rc 575 daemons/execd/execd_commands.c if (rc == pcmk_rc_ok) { rc 579 daemons/execd/execd_commands.c switch (rc) { rc 587 daemons/execd/execd_commands.c msg = pcmk_rc_str(rc); rc 591 daemons/execd/execd_commands.c pcmk__client_name(client), msg, rc); rc 689 daemons/execd/execd_commands.c send_generic_notify(int rc, xmlNode * request) rc 703 daemons/execd/execd_commands.c crm_xml_add_int(notify, PCMK__XA_LRMD_RC, rc); rc 832 daemons/execd/execd_commands.c if (cmd->result.exit_status != action->rc) { rc 840 daemons/execd/execd_commands.c code = services_result2ocf(action->standard, cmd->action, action->rc); rc 1171 daemons/execd/execd_commands.c int rc = pcmk_ok; rc 1189 daemons/execd/execd_commands.c rc = stonith_api->cmds->register_device(stonith_api, st_opt_sync_call, rc 1194 daemons/execd/execd_commands.c return rc; rc 1232 daemons/execd/execd_commands.c int rc = stonith_api->cmds->monitor(stonith_api, 0, cmd->rsc_id, rc 1235 daemons/execd/execd_commands.c rc = stonith_api->cmds->register_callback(stonith_api, rc, 0, 0, cmd, rc 1238 daemons/execd/execd_commands.c if (rc == TRUE) { rc 1240 daemons/execd/execd_commands.c rc = pcmk_ok; rc 1242 daemons/execd/execd_commands.c rc = -pcmk_err_generic; rc 1244 daemons/execd/execd_commands.c return rc; rc 1250 daemons/execd/execd_commands.c int rc = 0; rc 1270 daemons/execd/execd_commands.c rc = execd_stonith_start(stonith_api, rsc, cmd); rc 1271 daemons/execd/execd_commands.c if (rc == pcmk_ok) { rc 1276 daemons/execd/execd_commands.c rc = execd_stonith_stop(stonith_api, rsc); rc 1290 daemons/execd/execd_commands.c rc = execd_stonith_monitor(stonith_api, rsc, cmd); rc 1291 daemons/execd/execd_commands.c if (rc == pcmk_ok) { rc 1298 daemons/execd/execd_commands.c ((rc == pcmk_ok)? CRM_EX_OK : CRM_EX_ERROR), rc 1299 daemons/execd/execd_commands.c stonith__legacy2status(rc), rc 1300 daemons/execd/execd_commands.c ((rc == -pcmk_err_generic)? NULL : pcmk_strerror(rc))); rc 1340 daemons/execd/execd_commands.c if (action->rc != PCMK_OCF_UNKNOWN) { rc 1341 daemons/execd/execd_commands.c pcmk__set_result(&(cmd->result), action->rc, action->status, rc 1368 daemons/execd/execd_commands.c pcmk__set_result(&(cmd->result), action->rc, action->status, rc 1491 daemons/execd/execd_commands.c int rc = pcmk_ok; rc 1500 daemons/execd/execd_commands.c rc = -EPROTO; rc 1521 daemons/execd/execd_commands.c rc = -EACCES; rc 1524 daemons/execd/execd_commands.c rc = -EPROTONOSUPPORT; rc 1528 daemons/execd/execd_commands.c *reply = create_lrmd_reply(__func__, rc, call_id); rc 1538 daemons/execd/execd_commands.c return rc; rc 1544 daemons/execd/execd_commands.c int rc = pcmk_ok; rc 1554 daemons/execd/execd_commands.c return rc; rc 1559 daemons/execd/execd_commands.c return rc; rc 1565 daemons/execd/execd_commands.c int rc = pcmk_ok; rc 1573 daemons/execd/execd_commands.c rc = -ENODEV; rc 1578 daemons/execd/execd_commands.c rc = -ENODEV; rc 1582 daemons/execd/execd_commands.c reply = create_lrmd_reply(__func__, rc, call_id); rc 1596 daemons/execd/execd_commands.c int rc = pcmk_ok; rc 1617 daemons/execd/execd_commands.c rc = -EINPROGRESS; rc 1622 daemons/execd/execd_commands.c return rc; rc 1789 daemons/execd/execd_commands.c int rc = pcmk_ok; rc 1810 daemons/execd/execd_commands.c rc = -ENODEV; rc 1814 daemons/execd/execd_commands.c reply = create_lrmd_reply(__func__, rc, call_id); rc 1835 daemons/execd/execd_commands.c int rc = pcmk_ok; rc 1856 daemons/execd/execd_commands.c rc = -EACCES; rc 1859 daemons/execd/execd_commands.c rc = -EPROTONOSUPPORT; rc 1863 daemons/execd/execd_commands.c rc = process_lrmd_signon(client, request, call_id, &reply); rc 1867 daemons/execd/execd_commands.c rc = process_lrmd_rsc_register(client, id, request); rc 1870 daemons/execd/execd_commands.c rc = -EACCES; rc 1877 daemons/execd/execd_commands.c rc = -EACCES; rc 1882 daemons/execd/execd_commands.c rc = process_lrmd_rsc_unregister(client, id, request); rc 1884 daemons/execd/execd_commands.c if (rc == pcmk_ok || rc == -EINPROGRESS) { rc 1888 daemons/execd/execd_commands.c rc = -EACCES; rc 1893 daemons/execd/execd_commands.c rc = process_lrmd_rsc_exec(client, id, request); rc 1895 daemons/execd/execd_commands.c rc = -EACCES; rc 1900 daemons/execd/execd_commands.c rc = process_lrmd_rsc_cancel(client, id, request); rc 1902 daemons/execd/execd_commands.c rc = -EACCES; rc 1921 daemons/execd/execd_commands.c rc = -EACCES; rc 1925 daemons/execd/execd_commands.c rc = process_lrmd_alert_exec(client, id, request); rc 1927 daemons/execd/execd_commands.c rc = -EACCES; rc 1934 daemons/execd/execd_commands.c rc = -EACCES; rc 1938 daemons/execd/execd_commands.c rc = -EOPNOTSUPP; rc 1944 daemons/execd/execd_commands.c if (rc == -EACCES) { rc 1950 daemons/execd/execd_commands.c op, client->id, rc, do_reply, do_notify); rc 1956 daemons/execd/execd_commands.c reply = create_lrmd_reply(__func__, rc, call_id); rc 1967 daemons/execd/execd_commands.c send_generic_notify(rc, request); rc 78 daemons/execd/pacemaker-execd.c int rc = pcmk_ok; rc 85 daemons/execd/pacemaker-execd.c rc = stonith_api_connect_retry(stonith_api, crm_system_name, 10); rc 86 daemons/execd/pacemaker-execd.c if (rc != pcmk_ok) { rc 88 daemons/execd/pacemaker-execd.c CRM_XS " rc=%d", pcmk_strerror(rc), rc); rc 435 daemons/execd/pacemaker-execd.c int rc = pcmk_rc_ok; rc 470 daemons/execd/pacemaker-execd.c rc = pcmk__output_new(&out, args->output_ty, args->output_dest, argv); rc 471 daemons/execd/pacemaker-execd.c if (rc != pcmk_rc_ok) { rc 475 daemons/execd/pacemaker-execd.c args->output_ty, pcmk_rc_str(rc)); rc 487 daemons/execd/pacemaker-execd.c rc = pcmk__add_logfile(*fname); rc 489 daemons/execd/pacemaker-execd.c if (rc != pcmk_rc_ok) { rc 491 daemons/execd/pacemaker-execd.c *fname, pcmk_rc_str(rc)); rc 536 daemons/execd/pacemaker-execd.c int rc = pcmk__build_path(CRM_RSCTMP_DIR, 0755); rc 538 daemons/execd/pacemaker-execd.c if (rc != pcmk_rc_ok) { rc 540 daemons/execd/pacemaker-execd.c CRM_RSCTMP_DIR ": %s", pcmk_rc_str(rc)); rc 158 daemons/execd/remoted_proxy.c int rc = pcmk_rc_ok; rc 200 daemons/execd/remoted_proxy.c rc = pcmk__ipc_send_xml(ipc_client, 0, msg, crm_ipc_server_event); rc 207 daemons/execd/remoted_proxy.c rc = pcmk__ipc_send_xml(ipc_client, msg_id, msg, FALSE); rc 219 daemons/execd/remoted_proxy.c if (rc != pcmk_rc_ok) { rc 221 daemons/execd/remoted_proxy.c ipc_client->id, pcmk_rc_str(rc), rc); rc 302 daemons/execd/remoted_proxy.c int rc; rc 311 daemons/execd/remoted_proxy.c rc = (lrmd_server_send_notify(ipc_proxy, msg) != pcmk_rc_ok)? -1 : 0; rc 313 daemons/execd/remoted_proxy.c return rc; rc 36 daemons/execd/remoted_schemas.c int rc = errno; rc 37 daemons/execd/remoted_schemas.c crm_err("Could not remove %s: %s", pathname, pcmk_rc_str(rc)); rc 49 daemons/execd/remoted_schemas.c int rc; rc 51 daemons/execd/remoted_schemas.c rc = stat(remote_schema_dir, &sb); rc 53 daemons/execd/remoted_schemas.c if (rc == -1) { rc 57 daemons/execd/remoted_schemas.c rc = errno; rc 59 daemons/execd/remoted_schemas.c pcmk_rc_str(rc)); rc 63 daemons/execd/remoted_schemas.c rc = errno; rc 65 daemons/execd/remoted_schemas.c pcmk_rc_str(rc)); rc 78 daemons/execd/remoted_schemas.c rc = nftw(remote_schema_dir, rm_files, 10, FTW_DEPTH|FTW_MOUNT|FTW_PHYS); rc 80 daemons/execd/remoted_schemas.c if (rc != 0) { rc 81 daemons/execd/remoted_schemas.c crm_err("Could not remove %s: %s", remote_schema_dir, pcmk_rc_str(rc)); rc 92 daemons/execd/remoted_schemas.c int rc; rc 117 daemons/execd/remoted_schemas.c rc = fprintf(stream, "%s", child->content); rc 119 daemons/execd/remoted_schemas.c if (rc < 0) { rc 135 daemons/execd/remoted_schemas.c int rc = pcmk_rc_ok; rc 144 daemons/execd/remoted_schemas.c rc = cib->cmds->signon(cib, crm_system_name, cib_query); rc 145 daemons/execd/remoted_schemas.c if (rc != pcmk_ok) { rc 146 daemons/execd/remoted_schemas.c crm_err("Could not connect to the CIB manager: %s", pcmk_strerror(rc)); rc 147 daemons/execd/remoted_schemas.c _exit(pcmk_rc2exitc(rc)); rc 150 daemons/execd/remoted_schemas.c rc = cib->cmds->fetch_schemas(cib, &reply, pcmk__highest_schema_name(), rc 152 daemons/execd/remoted_schemas.c if (rc != pcmk_ok) { rc 153 daemons/execd/remoted_schemas.c crm_err("Could not get schema files: %s", pcmk_strerror(rc)); rc 154 daemons/execd/remoted_schemas.c rc = pcmk_legacy2rc(rc); rc 191 daemons/execd/remoted_schemas.c _exit(pcmk_rc2exitc(rc)); rc 236 daemons/execd/remoted_schemas.c int rc; rc 268 daemons/execd/remoted_schemas.c rc = errno; rc 269 daemons/execd/remoted_schemas.c crm_warn("Could not spawn process to get schema files: %s", pcmk_rc_str(rc)); rc 56 daemons/execd/remoted_tls.c int rc = pcmk__read_handshake_data(client); rc 58 daemons/execd/remoted_tls.c if (rc == EAGAIN) { rc 63 daemons/execd/remoted_tls.c } else if (rc != pcmk_rc_ok) { rc 89 daemons/execd/remoted_tls.c int rc; rc 108 daemons/execd/remoted_tls.c rc = pcmk__read_remote_message(client->remote, -1); rc 135 daemons/execd/remoted_tls.c if (rc == ENOTCONN) { rc 264 daemons/execd/remoted_tls.c int rc; rc 272 daemons/execd/remoted_tls.c rc = errno; rc 273 daemons/execd/remoted_tls.c crm_err("Listener socket creation failed: %", pcmk_rc_str(rc)); rc 274 daemons/execd/remoted_tls.c return -rc; rc 279 daemons/execd/remoted_tls.c rc = setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &optval, sizeof(optval)); rc 280 daemons/execd/remoted_tls.c if (rc < 0) { rc 281 daemons/execd/remoted_tls.c rc = errno; rc 282 daemons/execd/remoted_tls.c crm_err("Local address reuse not allowed on %s: %s", buffer, pcmk_rc_str(rc)); rc 284 daemons/execd/remoted_tls.c return -rc; rc 289 daemons/execd/remoted_tls.c rc = setsockopt(fd, IPPROTO_IPV6, IPV6_V6ONLY, &optval, sizeof(optval)); rc 290 daemons/execd/remoted_tls.c if (rc < 0) { rc 291 daemons/execd/remoted_tls.c rc = errno; rc 292 daemons/execd/remoted_tls.c crm_err("Couldn't disable IPV6-only on %s: %s", buffer, pcmk_rc_str(rc)); rc 294 daemons/execd/remoted_tls.c return -rc; rc 299 daemons/execd/remoted_tls.c rc = errno; rc 300 daemons/execd/remoted_tls.c crm_err("Cannot bind to %s: %s", buffer, pcmk_rc_str(rc)); rc 302 daemons/execd/remoted_tls.c return -rc; rc 306 daemons/execd/remoted_tls.c rc = errno; rc 307 daemons/execd/remoted_tls.c crm_err("Cannot listen on %s: %s", buffer, pcmk_rc_str(rc)); rc 309 daemons/execd/remoted_tls.c return -rc; rc 317 daemons/execd/remoted_tls.c int rc; rc 328 daemons/execd/remoted_tls.c rc = getaddrinfo(bind_name, port_str, &hints, res); rc 329 daemons/execd/remoted_tls.c rc = pcmk__gaierror2rc(rc); rc 331 daemons/execd/remoted_tls.c if (rc != pcmk_rc_ok) { rc 333 daemons/execd/remoted_tls.c (bind_name? bind_name : "local node"), pcmk_rc_str(rc)); rc 334 daemons/execd/remoted_tls.c return rc; rc 113 daemons/fenced/cts-fence-helper.c int rc; rc 118 daemons/fenced/cts-fence-helper.c rc = poll(&pollfd, 1, timeout); /* wait 10 minutes, -1 forever */ rc 119 daemons/fenced/cts-fence-helper.c if (rc > 0) { rc 159 daemons/fenced/cts-fence-helper.c int rc = 0; rc 161 daemons/fenced/cts-fence-helper.c rc = st->cmds->connect(st, crm_system_name, &pollfd.fd); rc 162 daemons/fenced/cts-fence-helper.c if (rc != pcmk_ok) { rc 180 daemons/fenced/cts-fence-helper.c int rc = 0; \ rc 181 daemons/fenced/cts-fence-helper.c rc = cmd; \ rc 187 daemons/fenced/cts-fence-helper.c if (rc != expected_rc) { \ rc 188 daemons/fenced/cts-fence-helper.c crm_err("FAILURE - expected rc %d != %d(%s) for cmd - %s", expected_rc, rc, pcmk_strerror(rc), str); \ rc 196 daemons/fenced/cts-fence-helper.c crm_info("SUCCESS - %s: %d", str, rc); \ rc 198 daemons/fenced/cts-fence-helper.c crm_debug("SUCCESS - %s: %d", str, rc); \ rc 322 daemons/fenced/cts-fence-helper.c int rc = 0; rc 324 daemons/fenced/cts-fence-helper.c rc = st->cmds->connect(st, crm_system_name, &pollfd.fd); rc 325 daemons/fenced/cts-fence-helper.c if (rc != pcmk_ok) { rc 348 daemons/fenced/cts-fence-helper.c int rc = 0; rc 352 daemons/fenced/cts-fence-helper.c rc = st->cmds->connect(st, crm_system_name, &pollfd.fd); rc 353 daemons/fenced/cts-fence-helper.c if (rc != pcmk_ok) { rc 361 daemons/fenced/cts-fence-helper.c rc = st->cmds->register_device(st, st_opts, "test-id", "stonith-ng", "fence_xvm", params); rc 362 daemons/fenced/cts-fence-helper.c crm_debug("Register: %d", rc); rc 364 daemons/fenced/cts-fence-helper.c rc = st->cmds->list(st, st_opts, "test-id", &tmp, 10); rc 365 daemons/fenced/cts-fence-helper.c crm_debug("List: %d output: %s", rc, tmp ? tmp : "<none>"); rc 367 daemons/fenced/cts-fence-helper.c rc = st->cmds->monitor(st, st_opts, "test-id", 10); rc 368 daemons/fenced/cts-fence-helper.c crm_debug("Monitor: %d", rc); rc 370 daemons/fenced/cts-fence-helper.c rc = st->cmds->status(st, st_opts, "test-id", "false_1_node2", 10); rc 371 daemons/fenced/cts-fence-helper.c crm_debug("Status false_1_node2: %d", rc); rc 373 daemons/fenced/cts-fence-helper.c rc = st->cmds->status(st, st_opts, "test-id", "false_1_node1", 10); rc 374 daemons/fenced/cts-fence-helper.c crm_debug("Status false_1_node1: %d", rc); rc 376 daemons/fenced/cts-fence-helper.c rc = st->cmds->fence(st, st_opts, "unknown-host", PCMK_ACTION_OFF, 60, 0); rc 377 daemons/fenced/cts-fence-helper.c crm_debug("Fence unknown-host: %d", rc); rc 379 daemons/fenced/cts-fence-helper.c rc = st->cmds->status(st, st_opts, "test-id", "false_1_node1", 10); rc 380 daemons/fenced/cts-fence-helper.c crm_debug("Status false_1_node1: %d", rc); rc 382 daemons/fenced/cts-fence-helper.c rc = st->cmds->fence(st, st_opts, "false_1_node1", PCMK_ACTION_OFF, 60, 0); rc 383 daemons/fenced/cts-fence-helper.c crm_debug("Fence false_1_node1: %d", rc); rc 385 daemons/fenced/cts-fence-helper.c rc = st->cmds->status(st, st_opts, "test-id", "false_1_node1", 10); rc 386 daemons/fenced/cts-fence-helper.c crm_debug("Status false_1_node1: %d", rc); rc 388 daemons/fenced/cts-fence-helper.c rc = st->cmds->fence(st, st_opts, "false_1_node1", PCMK_ACTION_ON, 10, 0); rc 389 daemons/fenced/cts-fence-helper.c crm_debug("Unfence false_1_node1: %d", rc); rc 391 daemons/fenced/cts-fence-helper.c rc = st->cmds->status(st, st_opts, "test-id", "false_1_node1", 10); rc 392 daemons/fenced/cts-fence-helper.c crm_debug("Status false_1_node1: %d", rc); rc 394 daemons/fenced/cts-fence-helper.c rc = st->cmds->fence(st, st_opts, "some-host", PCMK_ACTION_OFF, 10, 0); rc 395 daemons/fenced/cts-fence-helper.c crm_debug("Fence alias: %d", rc); rc 397 daemons/fenced/cts-fence-helper.c rc = st->cmds->status(st, st_opts, "test-id", "some-host", 10); rc 398 daemons/fenced/cts-fence-helper.c crm_debug("Status alias: %d", rc); rc 400 daemons/fenced/cts-fence-helper.c rc = st->cmds->fence(st, st_opts, "false_1_node1", PCMK_ACTION_ON, 10, 0); rc 401 daemons/fenced/cts-fence-helper.c crm_debug("Unfence false_1_node1: %d", rc); rc 403 daemons/fenced/cts-fence-helper.c rc = st->cmds->remove_device(st, st_opts, "test-id"); rc 404 daemons/fenced/cts-fence-helper.c crm_debug("Remove test-id: %d", rc); rc 433 daemons/fenced/cts-fence-helper.c int rc = 0; rc 440 daemons/fenced/cts-fence-helper.c rc = st->cmds->fence(st, 0, "true_1_node1", PCMK_ACTION_OFF, rc 442 daemons/fenced/cts-fence-helper.c if (rc < 0) { rc 443 daemons/fenced/cts-fence-helper.c crm_err("fence failed with rc %d", rc); rc 446 daemons/fenced/cts-fence-helper.c register_callback_helper(rc); rc 454 daemons/fenced/cts-fence-helper.c int rc = 0; rc 474 daemons/fenced/cts-fence-helper.c rc = st->cmds->fence(st, 0, "custom_timeout_node1", PCMK_ACTION_OFF, rc 476 daemons/fenced/cts-fence-helper.c if (rc < 0) { rc 477 daemons/fenced/cts-fence-helper.c crm_err("fence failed with rc %d", rc); rc 480 daemons/fenced/cts-fence-helper.c register_callback_helper(rc); rc 487 daemons/fenced/cts-fence-helper.c int rc = 0; rc 495 daemons/fenced/cts-fence-helper.c rc = st->cmds->fence(st, 0, "false_1_node2", PCMK_ACTION_OFF, rc 497 daemons/fenced/cts-fence-helper.c if (rc < 0) { rc 498 daemons/fenced/cts-fence-helper.c crm_err("fence failed with rc %d", rc); rc 501 daemons/fenced/cts-fence-helper.c register_callback_helper(rc); rc 508 daemons/fenced/cts-fence-helper.c int rc = 0; rc 515 daemons/fenced/cts-fence-helper.c rc = st->cmds->monitor(st, 0, "false_1", MAINLOOP_DEFAULT_TIMEOUT); rc 516 daemons/fenced/cts-fence-helper.c if (rc < 0) { rc 517 daemons/fenced/cts-fence-helper.c crm_err("monitor failed with rc %d", rc); rc 521 daemons/fenced/cts-fence-helper.c register_callback_helper(rc); rc 561 daemons/fenced/cts-fence-helper.c int rc = stonith_api_connect_retry(st, crm_system_name, 10); rc 563 daemons/fenced/cts-fence-helper.c if (rc == pcmk_ok) { rc 602 daemons/fenced/cts-fence-helper.c int rc = 0; rc 605 daemons/fenced/cts-fence-helper.c rc = st->cmds->disconnect(st); rc 606 daemons/fenced/cts-fence-helper.c crm_info("Disconnect: %d", rc); rc 612 daemons/fenced/cts-fence-helper.c if (rc) { rc 424 daemons/fenced/fenced_cib.c int rc; rc 436 daemons/fenced/fenced_cib.c rc = stonith_device_register(xml, TRUE); rc 438 daemons/fenced/fenced_cib.c if (rc != pcmk_ok) { rc 439 daemons/fenced/fenced_cib.c rc = pcmk_legacy2rc(rc); rc 442 daemons/fenced/fenced_cib.c pcmk_rc_str(rc)); rc 462 daemons/fenced/fenced_cib.c int rc = pcmk_ok; rc 465 daemons/fenced/fenced_cib.c rc = cib_api->cmds->query(cib_api, NULL, &local_cib, rc 467 daemons/fenced/fenced_cib.c rc = pcmk_legacy2rc(rc); rc 468 daemons/fenced/fenced_cib.c if (rc == pcmk_rc_ok) { rc 472 daemons/fenced/fenced_cib.c pcmk_rc_str(rc), rc); rc 474 daemons/fenced/fenced_cib.c return rc; rc 637 daemons/fenced/fenced_cib.c int rc = pcmk_ok; rc 641 daemons/fenced/fenced_cib.c crm_element_value_int(msg, PCMK__XA_CIB_RC, &rc); rc 642 daemons/fenced/fenced_cib.c if (rc != pcmk_ok) { rc 650 daemons/fenced/fenced_cib.c rc = xml_apply_patchset(local_cib, patchset, TRUE); rc 651 daemons/fenced/fenced_cib.c switch (rc) { rc 657 daemons/fenced/fenced_cib.c crm_notice("[%s] Patch aborted: %s (%d)", event, pcmk_strerror(rc), rc); rc 662 daemons/fenced/fenced_cib.c crm_warn("[%s] ABORTED: %s (%d)", event, pcmk_strerror(rc), rc); rc 695 daemons/fenced/fenced_cib.c init_cib_cache_cb(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data) rc 743 daemons/fenced/fenced_cib.c int rc, retries = 0; rc 753 daemons/fenced/fenced_cib.c rc = cib_api->cmds->signon(cib_api, CRM_SYSTEM_STONITHD, cib_command); rc 754 daemons/fenced/fenced_cib.c } while (rc == -ENOTCONN && ++retries < 5); rc 756 daemons/fenced/fenced_cib.c if (rc != pcmk_ok) { rc 757 daemons/fenced/fenced_cib.c crm_err("Could not connect to the CIB manager: %s (%d)", pcmk_strerror(rc), rc); rc 761 daemons/fenced/fenced_cib.c rc = cib_api->cmds->add_notify_callback(cib_api, rc 764 daemons/fenced/fenced_cib.c if (rc != pcmk_ok) { rc 769 daemons/fenced/fenced_cib.c rc = cib_api->cmds->query(cib_api, NULL, NULL, cib_scope_local); rc 770 daemons/fenced/fenced_cib.c cib_api->cmds->register_callback(cib_api, rc, 120, FALSE, NULL, rc 343 daemons/fenced/fenced_commands.c int rc = pcmk_rc_ok; rc 370 daemons/fenced/fenced_commands.c rc = pcmk__xe_get_flags(msg, PCMK__XA_ST_CALLOPT, &(cmd->options), rc 372 daemons/fenced/fenced_commands.c if (rc != pcmk_rc_ok) { rc 373 daemons/fenced/fenced_commands.c crm_warn("Couldn't parse options from request: %s", pcmk_rc_str(rc)); rc 883 daemons/fenced/fenced_commands.c int rc; rc 890 daemons/fenced/fenced_commands.c rc = st->cmds->metadata(st, st_opt_sync_call, agent, rc 893 daemons/fenced/fenced_commands.c if (rc || !buffer) { rc 3465 daemons/fenced/fenced_commands.c int rc = stonith_device_register(dev, FALSE); rc 3468 daemons/fenced/fenced_commands.c ((rc == pcmk_ok)? CRM_EX_OK : CRM_EX_ERROR), rc 3469 daemons/fenced/fenced_commands.c stonith__legacy2status(rc), rc 3470 daemons/fenced/fenced_commands.c ((rc == pcmk_ok)? NULL : pcmk_strerror(rc))); rc 3678 daemons/fenced/fenced_commands.c int rc = pcmk_rc_ok; rc 3687 daemons/fenced/fenced_commands.c rc = pcmk__xe_get_flags(message, PCMK__XA_ST_CALLOPT, &call_options, rc 3689 daemons/fenced/fenced_commands.c if (rc != pcmk_rc_ok) { rc 3690 daemons/fenced/fenced_commands.c crm_warn("Couldn't parse options from message: %s", pcmk_rc_str(rc)); rc 1154 daemons/fenced/fenced_remote.c int rc = pcmk_rc_ok; rc 1227 daemons/fenced/fenced_remote.c rc = pcmk__xe_get_flags(request, PCMK__XA_ST_CALLOPT, &(op->call_options), rc 1229 daemons/fenced/fenced_remote.c if (rc != pcmk_rc_ok) { rc 1231 daemons/fenced/fenced_remote.c op->id, pcmk_rc_str(rc)); rc 2229 daemons/fenced/fenced_remote.c int rc = pcmk_rc_ok; rc 2243 daemons/fenced/fenced_remote.c rc = pcmk__xe_get_flags(xml, PCMK__XA_ST_DEVICE_SUPPORT_FLAGS, rc 2246 daemons/fenced/fenced_remote.c if (rc != pcmk_rc_ok) { rc 2248 daemons/fenced/fenced_remote.c "(assuming unfencing): %s", device, pcmk_rc_str(rc)); rc 34 daemons/fenced/fenced_scheduler.c int rc = pcmk__log_output_new(&logger); rc 36 daemons/fenced/fenced_scheduler.c if (rc != pcmk_rc_ok) { rc 37 daemons/fenced/fenced_scheduler.c return rc; rc 96 daemons/fenced/pacemaker-fenced.c int rc = pcmk_rc_ok; rc 129 daemons/fenced/pacemaker-fenced.c rc = pcmk__xe_get_flags(request, PCMK__XA_ST_CALLOPT, &call_options, rc 131 daemons/fenced/pacemaker-fenced.c if (rc != pcmk_rc_ok) { rc 133 daemons/fenced/pacemaker-fenced.c pcmk_rc_str(rc)); rc 303 daemons/fenced/pacemaker-fenced.c int rc = pcmk__ipc_send_xml(client, 0, update_msg, rc 306 daemons/fenced/pacemaker-fenced.c if (rc != pcmk_rc_ok) { rc 309 daemons/fenced/pacemaker-fenced.c pcmk_rc_str(rc), client->id, rc); rc 542 daemons/fenced/pacemaker-fenced.c int rc = pcmk_rc_ok; rc 561 daemons/fenced/pacemaker-fenced.c rc = pcmk__output_new(&out, args->output_ty, args->output_dest, argv); rc 562 daemons/fenced/pacemaker-fenced.c if (rc != pcmk_rc_ok) { rc 566 daemons/fenced/pacemaker-fenced.c args->output_ty, pcmk_rc_str(rc)); rc 578 daemons/fenced/pacemaker-fenced.c rc = fencer_metadata(); rc 579 daemons/fenced/pacemaker-fenced.c if (rc != pcmk_rc_ok) { rc 582 daemons/fenced/pacemaker-fenced.c "Unable to display metadata: %s", pcmk_rc_str(rc)); rc 620 daemons/fenced/pacemaker-fenced.c rc = fenced_scheduler_init(); rc 621 daemons/fenced/pacemaker-fenced.c if (rc != pcmk_rc_ok) { rc 624 daemons/fenced/pacemaker-fenced.c "Error initializing scheduler data: %s", pcmk_rc_str(rc)); rc 140 daemons/pacemakerd/pacemakerd.c int rc = chown(path, uid, gid); rc 142 daemons/pacemakerd/pacemakerd.c if (rc < 0) { rc 179 daemons/pacemakerd/pacemakerd.c int rc = pcmk__build_path(dirs[i], 0750); rc 181 daemons/pacemakerd/pacemakerd.c if (rc != pcmk_rc_ok) { rc 183 daemons/pacemakerd/pacemakerd.c dirs[i], pcmk_rc_str(rc)); rc 269 daemons/pacemakerd/pacemakerd.c int rc = pcmk_rc_ok; rc 298 daemons/pacemakerd/pacemakerd.c rc = pcmk__output_new(&out, args->output_ty, args->output_dest, argv); rc 299 daemons/pacemakerd/pacemakerd.c if ((rc != pcmk_rc_ok) || (out == NULL)) { rc 302 daemons/pacemakerd/pacemakerd.c args->output_ty, pcmk_rc_str(rc)); rc 330 daemons/pacemakerd/pacemakerd.c rc = pcmk_new_ipc_api(&old_instance, pcmk_ipc_pacemakerd); rc 332 daemons/pacemakerd/pacemakerd.c out->err(out, "Could not check for existing pacemakerd: %s", pcmk_rc_str(rc)); rc 333 daemons/pacemakerd/pacemakerd.c exit_code = pcmk_rc2exitc(rc); rc 338 daemons/pacemakerd/pacemakerd.c rc = pcmk__connect_ipc(old_instance, pcmk_ipc_dispatch_sync, 2); rc 339 daemons/pacemakerd/pacemakerd.c if (rc != pcmk_rc_ok) { rc 341 daemons/pacemakerd/pacemakerd.c pcmk_ipc_name(old_instance, true), pcmk_rc_str(rc)); rc 347 daemons/pacemakerd/pacemakerd.c rc = pcmk_pacemakerd_api_shutdown(old_instance, crm_system_name); rc 350 daemons/pacemakerd/pacemakerd.c exit_code = pcmk_rc2exitc(rc); rc 377 daemons/pacemakerd/pacemakerd.c "of existing Pacemaker instance: %s", pcmk_rc_str(rc)); rc 56 daemons/pacemakerd/pcmkd_corosync.c cs_error_t rc = corosync_cfg_dispatch(*handle, CS_DISPATCH_ALL); rc 58 daemons/pacemakerd/pcmkd_corosync.c if (rc != CS_OK) { rc 127 daemons/pacemakerd/pcmkd_corosync.c if(rc == CS_ERR_TRY_AGAIN || rc == CS_ERR_QUEUE_FULL) { \ rc 139 daemons/pacemakerd/pcmkd_corosync.c cs_error_t rc; rc 151 daemons/pacemakerd/pcmkd_corosync.c cs_repeat(retries, 30, rc = corosync_cfg_initialize(&cfg_handle, &cfg_callbacks)); rc 153 daemons/pacemakerd/pcmkd_corosync.c if (rc != CS_OK) { rc 155 daemons/pacemakerd/pcmkd_corosync.c cs_strerror(rc), rc); rc 159 daemons/pacemakerd/pcmkd_corosync.c rc = corosync_cfg_fd_get(cfg_handle, &fd); rc 160 daemons/pacemakerd/pcmkd_corosync.c if (rc != CS_OK) { rc 162 daemons/pacemakerd/pcmkd_corosync.c cs_strerror(rc), rc); rc 181 daemons/pacemakerd/pcmkd_corosync.c cs_repeat(retries, 30, rc = corosync_cfg_local_get(cfg_handle, &nodeid)); rc 182 daemons/pacemakerd/pcmkd_corosync.c if (rc != CS_OK) { rc 184 daemons/pacemakerd/pcmkd_corosync.c CRM_XS " rc=%d", cs_strerror(rc), rc); rc 191 daemons/pacemakerd/pcmkd_corosync.c cs_repeat(retries, 30, rc = corosync_cfg_trackstart(cfg_handle, 0)); rc 192 daemons/pacemakerd/pcmkd_corosync.c if (rc != CS_OK) { rc 194 daemons/pacemakerd/pcmkd_corosync.c cs_strerror(rc), rc); rc 210 daemons/pacemakerd/pcmkd_corosync.c cs_error_t rc; rc 217 daemons/pacemakerd/pcmkd_corosync.c rc = corosync_cfg_try_shutdown(cfg_handle, rc 219 daemons/pacemakerd/pcmkd_corosync.c if (rc == CS_OK) { rc 223 daemons/pacemakerd/pcmkd_corosync.c cs_strerror(rc), rc); rc 252 daemons/pacemakerd/pcmkd_corosync.c int rc = 0, retries = 0; rc 254 daemons/pacemakerd/pcmkd_corosync.c cs_repeat(retries, 5, rc = cmap_get_string(object_handle, key, value)); rc 255 daemons/pacemakerd/pcmkd_corosync.c if (rc != CS_OK) { rc 256 daemons/pacemakerd/pcmkd_corosync.c crm_trace("Search for %s failed %d, defaulting to %s", key, rc, fallback); rc 260 daemons/pacemakerd/pcmkd_corosync.c return rc; rc 266 daemons/pacemakerd/pcmkd_corosync.c cs_error_t rc = CS_OK; rc 280 daemons/pacemakerd/pcmkd_corosync.c rc = pcmk__init_cmap(&local_handle); rc 281 daemons/pacemakerd/pcmkd_corosync.c if (rc != CS_OK) { rc 284 daemons/pacemakerd/pcmkd_corosync.c CRM_XS " rc=%d", cs_strerror(rc), retries, rc); rc 293 daemons/pacemakerd/pcmkd_corosync.c if (rc != CS_OK) { rc 295 daemons/pacemakerd/pcmkd_corosync.c CRM_XS " rc=%d", cs_strerror(rc), rc); rc 299 daemons/pacemakerd/pcmkd_corosync.c rc = cmap_fd_get(local_handle, &fd); rc 300 daemons/pacemakerd/pcmkd_corosync.c if (rc != CS_OK) { rc 302 daemons/pacemakerd/pcmkd_corosync.c cs_strerror(rc), rc); rc 367 daemons/pacemakerd/pcmkd_corosync.c rc = cmap_set_uint8(local_handle, key, 1); rc 368 daemons/pacemakerd/pcmkd_corosync.c if (rc != CS_OK) { rc 370 daemons/pacemakerd/pcmkd_corosync.c " group=%u rc=%d", pcmk__cs_err_str(rc), gid, rc); rc 146 daemons/pacemakerd/pcmkd_subdaemons.c int rc = child_liveness(child); rc 149 daemons/pacemakerd/pcmkd_subdaemons.c child->name, pid, pcmk_rc_str(rc), rc); rc 151 daemons/pacemakerd/pcmkd_subdaemons.c switch (rc) { rc 560 daemons/pacemakerd/pcmkd_subdaemons.c int rc = pcmk_rc_ipc_unresponsive; rc 567 daemons/pacemakerd/pcmkd_subdaemons.c rc = EINVAL; // Misuse of function when child is not trackable rc 582 daemons/pacemakerd/pcmkd_subdaemons.c rc = pcmk_legacy2rc(legacy_rc); rc 584 daemons/pacemakerd/pcmkd_subdaemons.c CRM_XS " rc=%d", CRM_DAEMON_USER, pcmk_rc_str(rc), rc); rc 586 daemons/pacemakerd/pcmkd_subdaemons.c rc = pcmk__ipc_is_authentic_process_active(child->endpoint, rc 589 daemons/pacemakerd/pcmkd_subdaemons.c if ((rc == pcmk_rc_ok) || (rc == pcmk_rc_ipc_unresponsive)) { rc 601 daemons/pacemakerd/pcmkd_subdaemons.c rc = pcmk_rc_ipc_unresponsive; rc 607 daemons/pacemakerd/pcmkd_subdaemons.c if (rc == pcmk_rc_ipc_unresponsive) { rc 636 daemons/pacemakerd/pcmkd_subdaemons.c rc = pcmk_rc_ok; rc 640 daemons/pacemakerd/pcmkd_subdaemons.c rc = pcmk_rc_ipc_pid_only; rc 643 daemons/pacemakerd/pcmkd_subdaemons.c rc = pcmk_rc_ipc_unresponsive; rc 647 daemons/pacemakerd/pcmkd_subdaemons.c rc = pcmk_rc_ipc_unauthorized; rc 650 daemons/pacemakerd/pcmkd_subdaemons.c rc = pcmk_rc_ipc_unresponsive; rc 653 daemons/pacemakerd/pcmkd_subdaemons.c rc = ret; rc 658 daemons/pacemakerd/pcmkd_subdaemons.c return rc; rc 693 daemons/pacemakerd/pcmkd_subdaemons.c int rc; rc 705 daemons/pacemakerd/pcmkd_subdaemons.c rc = child_liveness(&pcmk_children[i]); rc 706 daemons/pacemakerd/pcmkd_subdaemons.c if (rc == pcmk_rc_ipc_unresponsive) { rc 716 daemons/pacemakerd/pcmkd_subdaemons.c switch (rc) { rc 769 daemons/pacemakerd/pcmkd_subdaemons.c return rc; rc 782 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_children[i].name, pcmk_rc_str(rc), rc); rc 783 daemons/pacemakerd/pcmkd_subdaemons.c return rc; rc 83 daemons/schedulerd/pacemaker-schedulerd.c int rc = pcmk_rc_ok; rc 99 daemons/schedulerd/pacemaker-schedulerd.c rc = pcmk__output_new(&out, args->output_ty, args->output_dest, argv); rc 100 daemons/schedulerd/pacemaker-schedulerd.c if ((rc != pcmk_rc_ok) || (out == NULL)) { rc 103 daemons/schedulerd/pacemaker-schedulerd.c args->output_ty, pcmk_rc_str(rc)); rc 114 daemons/schedulerd/pacemaker-schedulerd.c rc = scheduler_metadata(out); rc 115 daemons/schedulerd/pacemaker-schedulerd.c if (rc != pcmk_rc_ok) { rc 118 daemons/schedulerd/pacemaker-schedulerd.c "Unable to display metadata: %s", pcmk_rc_str(rc)); rc 172 include/crm/cib/cib_types.h int callid, int rc, rc 395 include/crm/cib/cib_types.h void (*op_callback) (const xmlNode *msg, int call_id, int rc, rc 185 include/crm/cib/internal.h void cib_native_callback(cib_t * cib, xmlNode * msg, int call_id, int rc); rc 29 include/crm/common/digests_internal.h enum pcmk__digest_result rc; // Result of digest comparison rc 393 include/crm/common/internal.h int pcmk__effective_rc(int rc); rc 29 include/crm/common/remote_internal.h void (*callback) (void *userdata, int rc, int sock)); rc 369 include/crm/common/results.h const char *pcmk_rc_name(int rc); rc 372 include/crm/common/results.h const char *pcmk_rc_str(int rc); rc 374 include/crm/common/results.h crm_exit_t pcmk_rc2exitc(int rc); rc 375 include/crm/common/results.h enum ocf_exitcode pcmk_rc2ocf(int rc); rc 376 include/crm/common/results.h int pcmk_rc2legacy(int rc); rc 380 include/crm/common/results.h const char *pcmk_strerror(int rc); rc 382 include/crm/common/results.h const char *pcmk_errorname(int rc); rc 388 include/crm/common/results.h _Noreturn crm_exit_t crm_exit(crm_exit_t rc); rc 35 include/crm/common/results_compat.h const char *bz2_strerror(int rc); rc 38 include/crm/common/results_compat.h crm_exit_t crm_errno2exit(int rc); rc 159 include/crm/common/unittest_internal.h #define pcmk__assert_exits(rc, stmt) \ rc 175 include/crm/common/unittest_internal.h } else if (WEXITSTATUS(wstatus) != rc) { \ rc 176 include/crm/common/unittest_internal.h fail_msg("statement exited with %d, not expected %d", WEXITSTATUS(wstatus), rc); \ rc 138 include/crm/fencing/internal.h int stonith__legacy2status(int rc); rc 63 include/crm/lrmd_events.h enum ocf_exitcode rc; rc 44 include/crm/lrmd_internal.h void lrmd__set_result(lrmd_event_data_t *event, enum ocf_exitcode rc, rc 155 include/crm/services.h int rc; //!< Exit status of action (set by library upon completion) rc 167 include/crm/stonith-ng.h int rc; rc 170 include/pcmki/pcmki_transition.h int status, int rc, rc 33 lib/cib/cib_attrs.c int rc = pcmk_rc_ok; rc 43 lib/cib/cib_attrs.c rc = pcmk__output_new(&out, ty, NULL, (char**)argv); rc 44 lib/cib/cib_attrs.c if ((rc != pcmk_rc_ok) || (out == NULL)) { rc 45 lib/cib/cib_attrs.c crm_err("Can't out due to internal error: %s", pcmk_rc_str(rc)); rc 57 lib/cib/cib_attrs.c int rc = pcmk_rc_ok; rc 133 lib/cib/cib_attrs.c rc = cib_internal_op(cib, PCMK__CIB_REQUEST_QUERY, NULL, rc 136 lib/cib/cib_attrs.c rc = pcmk_legacy2rc(rc); rc 138 lib/cib/cib_attrs.c if (rc != pcmk_rc_ok) { rc 142 lib/cib/cib_attrs.c pcmk_rc_str(rc)); rc 149 lib/cib/cib_attrs.c return rc; rc 170 lib/cib/cib_attrs.c int rc = pcmk_rc_ok; rc 182 lib/cib/cib_attrs.c rc = find_attr(cib, section, node_uuid, set_type, set_name, attr_id, rc 185 lib/cib/cib_attrs.c if (rc == pcmk_rc_ok) { rc 196 lib/cib/cib_attrs.c } else if (rc != ENXIO) { rc 198 lib/cib/cib_attrs.c return rc; rc 319 lib/cib/cib_attrs.c rc = cib_internal_op(cib, PCMK__CIB_REQUEST_MODIFY, NULL, section, xml_top, rc 323 lib/cib/cib_attrs.c && (rc >= 0)) { rc 325 lib/cib/cib_attrs.c rc = pcmk_rc_ok; rc 327 lib/cib/cib_attrs.c rc = pcmk_legacy2rc(rc); rc 330 lib/cib/cib_attrs.c if (rc != pcmk_rc_ok) { rc 333 lib/cib/cib_attrs.c pcmk_rc_str(rc)); rc 341 lib/cib/cib_attrs.c return rc; rc 350 lib/cib/cib_attrs.c int rc = pcmk_rc_ok; rc 357 lib/cib/cib_attrs.c rc = find_attr(cib, section, node_uuid, set_type, set_name, attr_id, attr_name, rc 360 lib/cib/cib_attrs.c if (rc != pcmk_rc_ok) { rc 364 lib/cib/cib_attrs.c pcmk__s(node_uuid, "<null>"), pcmk_rc_str(rc)); rc 367 lib/cib/cib_attrs.c return rc; rc 376 lib/cib/cib_attrs.c int rc = pcmk_rc_ok; rc 385 lib/cib/cib_attrs.c rc = find_attr(cib, section, node_uuid, set_type, set_name, attr_id, rc 388 lib/cib/cib_attrs.c if (rc != pcmk_rc_ok || handle_multiples(out, xml_search, attr_name) == ENOTUNIQ) { rc 390 lib/cib/cib_attrs.c return rc; rc 400 lib/cib/cib_attrs.c rc = cib_internal_op(cib, PCMK__CIB_REQUEST_DELETE, NULL, section, xml_obj, rc 404 lib/cib/cib_attrs.c && (rc >= 0)) { rc 406 lib/cib/cib_attrs.c rc = pcmk_rc_ok; rc 408 lib/cib/cib_attrs.c rc = pcmk_legacy2rc(rc); rc 411 lib/cib/cib_attrs.c if (rc == pcmk_rc_ok) { rc 419 lib/cib/cib_attrs.c return rc; rc 430 lib/cib/cib_attrs.c int rc = pcmk_ok; rc 437 lib/cib/cib_attrs.c rc = find_attr(cib, section, node_uuid, attr_set_type, set_name, attr_id, rc 440 lib/cib/cib_attrs.c if (rc == pcmk_rc_ok) { rc 441 lib/cib/cib_attrs.c rc = handle_multiples(out, xml_search, attr_name); rc 443 lib/cib/cib_attrs.c if (rc == pcmk_rc_ok) { rc 451 lib/cib/cib_attrs.c return pcmk_rc2legacy(rc); rc 461 lib/cib/cib_attrs.c int rc = pcmk_ok; rc 468 lib/cib/cib_attrs.c rc = cib__update_node_attr(out, cib, call_options, section, node_uuid, set_type, rc 474 lib/cib/cib_attrs.c return pcmk_rc2legacy(rc); rc 485 lib/cib/cib_attrs.c int rc = pcmk_ok; rc 492 lib/cib/cib_attrs.c rc = cib__get_node_attrs(out, cib, section, node_uuid, set_type, set_name, rc 495 lib/cib/cib_attrs.c if (rc == pcmk_rc_ok) { rc 500 lib/cib/cib_attrs.c rc = ENOTUNIQ; rc 507 lib/cib/cib_attrs.c return pcmk_rc2legacy(rc); rc 517 lib/cib/cib_attrs.c int rc = pcmk_ok; rc 524 lib/cib/cib_attrs.c rc = cib__delete_node_attr(out, cib, options, section, node_uuid, set_type, rc 529 lib/cib/cib_attrs.c return pcmk_rc2legacy(rc); rc 545 lib/cib/cib_attrs.c int rc = -ENXIO; rc 550 lib/cib/cib_attrs.c return rc; rc 556 lib/cib/cib_attrs.c CRM_CHECK(result != NULL, return rc); rc 601 lib/cib/cib_attrs.c rc = pcmk_ok; rc 604 lib/cib/cib_attrs.c return rc; rc 630 lib/cib/cib_attrs.c int rc = pcmk_ok; rc 651 lib/cib/cib_attrs.c rc = get_uuid_from_result(xml_search, uuid, is_remote_node); rc 653 lib/cib/cib_attrs.c rc = -ENXIO; rc 659 lib/cib/cib_attrs.c if (rc != pcmk_ok) { rc 661 lib/cib/cib_attrs.c uname, pcmk_strerror(rc)); rc 665 lib/cib/cib_attrs.c return rc; rc 676 lib/cib/cib_attrs.c int rc = pcmk_ok; rc 685 lib/cib/cib_attrs.c rc = the_cib->cmds->query(the_cib, PCMK_XE_NODES, &fragment, rc 687 lib/cib/cib_attrs.c if (rc != pcmk_ok) { rc 688 lib/cib/cib_attrs.c return rc; rc 695 lib/cib/cib_attrs.c rc = -ENXIO; rc 707 lib/cib/cib_attrs.c rc = pcmk_ok; rc 714 lib/cib/cib_attrs.c return rc; rc 720 lib/cib/cib_attrs.c int rc = pcmk_ok; rc 735 lib/cib/cib_attrs.c rc = update_attr_delegate(the_cib, cib_sync_call, scope, uuid, NULL, NULL, rc 740 lib/cib/cib_attrs.c return rc; rc 32 lib/cib/cib_client.c int rc, xmlNode * output)) rc 47 lib/cib/cib_client.c int rc = 0; rc 52 lib/cib/cib_client.c rc = strcmp(a_client->event, b_client->event); rc 53 lib/cib/cib_client.c if (rc == 0) { rc 65 lib/cib/cib_client.c return rc; rc 370 lib/cib/cib_client.c int rc = pcmk_rc_ok; rc 378 lib/cib/cib_client.c rc = pcmk_rc_already; rc 381 lib/cib/cib_client.c if (rc == pcmk_rc_ok) { rc 385 lib/cib/cib_client.c if (rc != pcmk_rc_ok) { rc 390 lib/cib/cib_client.c client_id, pcmk_rc_str(rc)); rc 392 lib/cib/cib_client.c return pcmk_rc2legacy(rc); rc 399 lib/cib/cib_client.c int rc = pcmk_ok; rc 410 lib/cib/cib_client.c rc = pcmk_rc_no_transaction; rc 413 lib/cib/cib_client.c client_id, pcmk_rc_str(rc)); rc 414 lib/cib/cib_client.c return pcmk_rc2legacy(rc); rc 416 lib/cib/cib_client.c rc = cib_internal_op(cib, PCMK__CIB_REQUEST_COMMIT_TRANSACT, NULL, NULL, rc 429 lib/cib/cib_client.c return rc; rc 437 lib/cib/cib_client.c int rc = pcmk_ok; rc 441 lib/cib/cib_client.c rc = cib_internal_op(cib, PCMK__CIB_REQUEST_SCHEMAS, NULL, NULL, data, rc 444 lib/cib/cib_client.c return rc; rc 515 lib/cib/cib_client.c int rc = 0; rc 519 lib/cib/cib_client.c rc = mkdir(cib_home, 0700); rc 520 lib/cib/cib_client.c if (rc < 0 && errno != EEXIST) { rc 215 lib/cib/cib_file.c int rc = pcmk_ok; rc 239 lib/cib/cib_file.c rc = pcmk__xe_get_flags(request, PCMK__XA_CIB_CALLOPT, &call_options, rc 241 lib/cib/cib_file.c if (rc != pcmk_rc_ok) { rc 242 lib/cib/cib_file.c crm_warn("Couldn't parse options from request: %s", pcmk_rc_str(rc)); rc 253 lib/cib/cib_file.c rc = cib_perform_op(cib, op, call_options, op_function, read_only, section, rc 264 lib/cib/cib_file.c if (rc == -pcmk_err_schema_validation) { rc 268 lib/cib/cib_file.c } else if ((rc == pcmk_ok) && !read_only) { rc 280 lib/cib/cib_file.c cib->op_callback(NULL, call_id, rc, *output); rc 288 lib/cib/cib_file.c return rc; rc 297 lib/cib/cib_file.c int rc = pcmk_ok; rc 316 lib/cib/cib_file.c rc = cib__get_operation(op, &operation); rc 317 lib/cib/cib_file.c rc = pcmk_rc2legacy(rc); rc 318 lib/cib/cib_file.c if (rc != pcmk_ok) { rc 331 lib/cib/cib_file.c rc = cib__create_op(cib, op, host, section, data, call_options, user_name, rc 333 lib/cib/cib_file.c if (rc != pcmk_ok) { rc 334 lib/cib/cib_file.c return rc; rc 340 lib/cib/cib_file.c rc = cib__extend_transaction(cib, request); rc 344 lib/cib/cib_file.c rc = cib_file_process_request(cib, request, &output); rc 362 lib/cib/cib_file.c return rc; rc 419 lib/cib/cib_file.c int rc = pcmk_ok; rc 423 lib/cib/cib_file.c rc = -EINVAL; rc 425 lib/cib/cib_file.c rc = load_file_cib(private->filename, &private->cib_xml); rc 428 lib/cib/cib_file.c if (rc == pcmk_ok) { rc 437 lib/cib/cib_file.c private->filename, name, private->id, pcmk_strerror(rc)); rc 439 lib/cib/cib_file.c return rc; rc 458 lib/cib/cib_file.c int rc = 0; rc 504 lib/cib/cib_file.c rc = -1; rc 517 lib/cib/cib_file.c return rc; rc 536 lib/cib/cib_file.c int rc = pcmk_ok; rc 551 lib/cib/cib_file.c rc = pcmk_err_generic; rc 560 lib/cib/cib_file.c rc = pcmk_err_generic; rc 564 lib/cib/cib_file.c if (rc == pcmk_ok) { rc 575 lib/cib/cib_file.c return rc; rc 581 lib/cib/cib_file.c int rc = pcmk_ok; rc 584 lib/cib/cib_file.c rc = cib_file_signoff(cib); rc 587 lib/cib/cib_file.c if (rc == pcmk_ok) { rc 598 lib/cib/cib_file.c fprintf(stderr, "Couldn't sign off: %d\n", rc); rc 601 lib/cib/cib_file.c return rc; rc 724 lib/cib/cib_file.c int rc = pcmk__file_contents(sigfile, &expected); rc 726 lib/cib/cib_file.c switch (rc) { rc 738 lib/cib/cib_file.c sigfile, pcmk_rc_str(rc)); rc 824 lib/cib/cib_file.c int rc = 0; rc 849 lib/cib/cib_file.c rc = -1; rc 855 lib/cib/cib_file.c rc = -1; rc 867 lib/cib/cib_file.c rc = -1; rc 872 lib/cib/cib_file.c rc = -1; rc 879 lib/cib/cib_file.c rc = -1; rc 890 lib/cib/cib_file.c return rc; rc 938 lib/cib/cib_file.c int rc, fd; rc 955 lib/cib/cib_file.c rc = cib_file_read_and_verify(cib_path, NULL, NULL); rc 956 lib/cib/cib_file.c if ((rc != pcmk_ok) && (rc != -ENOENT)) { rc 1023 lib/cib/cib_file.c rc = pcmk__write_sync(fd, digest); rc 1024 lib/cib/cib_file.c if (rc != pcmk_rc_ok) { rc 1026 lib/cib/cib_file.c tmp_digest, pcmk_rc_str(rc)); rc 1037 lib/cib/cib_file.c rc = cib_file_read_and_verify(tmp_cib, tmp_digest, NULL); rc 1038 lib/cib/cib_file.c pcmk__assert(rc == 0); rc 1086 lib/cib/cib_file.c int rc = cib_file_process_request(cib, request, &output); rc 1088 lib/cib/cib_file.c rc = pcmk_legacy2rc(rc); rc 1089 lib/cib/cib_file.c if (rc != pcmk_rc_ok) { rc 1092 lib/cib/cib_file.c private->id, private->filename, op, pcmk_rc_str(rc)); rc 1094 lib/cib/cib_file.c return rc; rc 1124 lib/cib/cib_file.c int rc = pcmk_rc_ok; rc 1148 lib/cib/cib_file.c rc = cib_file_process_transaction_requests(cib, transaction); rc 1151 lib/cib/cib_file.c ((rc == pcmk_rc_ok)? "succeeded" : "failed"), rc 1165 lib/cib/cib_file.c return rc; rc 1174 lib/cib/cib_file.c int rc = pcmk_rc_ok; rc 1183 lib/cib/cib_file.c rc = cib_file_commit_transaction(cib, input, result_cib); rc 1184 lib/cib/cib_file.c if (rc != pcmk_rc_ok) { rc 1189 lib/cib/cib_file.c private->id, private->filename, pcmk_rc_str(rc)); rc 1191 lib/cib/cib_file.c return pcmk_rc2legacy(rc); rc 46 lib/cib/cib_native.c int rc = pcmk_ok; rc 72 lib/cib/cib_native.c rc = cib__create_op(cib, op, host, section, data, call_options, user_name, rc 74 lib/cib/cib_native.c if (rc != pcmk_ok) { rc 75 lib/cib/cib_native.c return rc; rc 79 lib/cib/cib_native.c rc = cib__extend_transaction(cib, op_msg); rc 84 lib/cib/cib_native.c rc = crm_ipc_send(native->ipc, op_msg, ipc_flags, cib->call_timeout * 1000, &op_reply); rc 86 lib/cib/cib_native.c if (rc < 0) { rc 88 lib/cib/cib_native.c cib->call_timeout, pcmk_strerror(rc), rc); rc 89 lib/cib/cib_native.c rc = -ECOMM; rc 98 lib/cib/cib_native.c rc = -ENOMSG; goto done); rc 99 lib/cib/cib_native.c rc = cib->call_id; rc 103 lib/cib/cib_native.c rc = pcmk_ok; rc 111 lib/cib/cib_native.c if (crm_element_value_int(op_reply, PCMK__XA_CIB_RC, &rc) != 0) { rc 112 lib/cib/cib_native.c rc = -EPROTO; rc 124 lib/cib/cib_native.c rc = -ENOMSG; rc 130 lib/cib/cib_native.c rc = -ENOMSG; rc 135 lib/cib/cib_native.c rc = -ENOTCONN; rc 137 lib/cib/cib_native.c } else if (rc == pcmk_ok && op_reply == NULL) { rc 138 lib/cib/cib_native.c rc = -ETIME; rc 141 lib/cib/cib_native.c switch (rc) { rc 148 lib/cib/cib_native.c rc = pcmk_ok; rc 154 lib/cib/cib_native.c crm_err("Call failed: %s", pcmk_strerror(rc)); rc 162 lib/cib/cib_native.c crm_warn("Call failed: %s", pcmk_strerror(rc)); rc 174 lib/cib/cib_native.c return rc; rc 271 lib/cib/cib_native.c int rc = pcmk_ok; rc 304 lib/cib/cib_native.c rc = pcmk__connect_generic_ipc(native->ipc); rc 305 lib/cib/cib_native.c if (rc == pcmk_rc_ok) { rc 306 lib/cib/cib_native.c rc = pcmk__ipc_fd(native->ipc, async_fd); rc 307 lib/cib/cib_native.c if (rc != pcmk_rc_ok) { rc 312 lib/cib/cib_native.c rc = pcmk_rc2legacy(rc); rc 322 lib/cib/cib_native.c if (rc != pcmk_ok || native->ipc == NULL || !crm_ipc_connected(native->ipc)) { rc 324 lib/cib/cib_native.c rc = -ENOTCONN; rc 327 lib/cib/cib_native.c if (rc == pcmk_ok) { rc 328 lib/cib/cib_native.c rc = cib__create_op(cib, CRM_OP_REGISTER, NULL, NULL, NULL, rc 332 lib/cib/cib_native.c if (rc == pcmk_ok) { rc 345 lib/cib/cib_native.c rc = -EPROTO; rc 351 lib/cib/cib_native.c rc = -EPROTO; rc 357 lib/cib/cib_native.c rc = -ECOMM; rc 362 lib/cib/cib_native.c if (rc == pcmk_ok) { rc 368 lib/cib/cib_native.c name, pcmk_strerror(rc)); rc 370 lib/cib/cib_native.c return rc; rc 382 lib/cib/cib_native.c int rc = pcmk_ok; rc 385 lib/cib/cib_native.c rc = cib_native_signoff(cib); rc 398 lib/cib/cib_native.c return rc; rc 404 lib/cib/cib_native.c int rc = pcmk_ok; rc 412 lib/cib/cib_native.c rc = crm_ipc_send(native->ipc, notify_msg, crm_ipc_client_response, rc 414 lib/cib/cib_native.c if (rc <= 0) { rc 415 lib/cib/cib_native.c crm_trace("Notification not registered: %d", rc); rc 416 lib/cib/cib_native.c rc = -ECOMM; rc 421 lib/cib/cib_native.c return rc; rc 264 lib/cib/cib_ops.c int rc = 0; rc 273 lib/cib/cib_ops.c rc = pcmk__update_schema(result_cib, max_schema, true, rc 275 lib/cib/cib_ops.c rc = pcmk_rc2legacy(rc); rc 285 lib/cib/cib_ops.c return rc; rc 769 lib/cib/cib_ops.c int rc = pcmk_ok; rc 790 lib/cib/cib_ops.c rc = -ENXIO; rc 819 lib/cib/cib_ops.c rc = -EINVAL; rc 836 lib/cib/cib_ops.c rc = -ENXIO; rc 908 lib/cib/cib_ops.c return rc; rc 64 lib/cib/cib_remote.c int rc; rc 86 lib/cib/cib_remote.c rc = cib__create_op(cib, op, host, section, data, call_options, user_name, rc 88 lib/cib/cib_remote.c if (rc != pcmk_ok) { rc 89 lib/cib/cib_remote.c return rc; rc 93 lib/cib/cib_remote.c rc = cib__extend_transaction(cib, op_msg); rc 95 lib/cib/cib_remote.c return rc; rc 119 lib/cib/cib_remote.c rc = pcmk_rc_ok; rc 120 lib/cib/cib_remote.c while (remaining_time > 0 && (rc != ENOTCONN)) { rc 124 lib/cib/cib_remote.c rc = pcmk__read_remote_message(&private->command, rc 156 lib/cib/cib_remote.c if (rc == ENOTCONN) { rc 167 lib/cib/cib_remote.c if (crm_element_value_int(op_reply, PCMK__XA_CIB_RC, &rc) != 0) { rc 168 lib/cib/cib_remote.c rc = -EPROTO; rc 171 lib/cib/cib_remote.c if (rc == -pcmk_err_diff_resync) { rc 173 lib/cib/cib_remote.c rc = pcmk_ok; rc 176 lib/cib/cib_remote.c if (rc == pcmk_ok || rc == -EPERM) { rc 180 lib/cib/cib_remote.c crm_err("Call failed: %s", pcmk_strerror(rc)); rc 201 lib/cib/cib_remote.c return rc; rc 207 lib/cib/cib_remote.c int rc; rc 222 lib/cib/cib_remote.c rc = pcmk__read_available_remote_data(&private->callback); rc 223 lib/cib/cib_remote.c switch (rc) { rc 242 lib/cib/cib_remote.c pcmk_rc_str(rc)); rc 272 lib/cib/cib_remote.c int rc; rc 281 lib/cib/cib_remote.c rc = pcmk__read_available_remote_data(&private->command); rc 282 lib/cib/cib_remote.c if (rc == EAGAIN) { rc 298 lib/cib/cib_remote.c if (rc != pcmk_rc_ok) { rc 300 lib/cib/cib_remote.c pcmk_rc_str(rc)); rc 368 lib/cib/cib_remote.c int rc; rc 383 lib/cib/cib_remote.c rc = pcmk__connect_remote(private->server, private->port, 0, NULL, rc 385 lib/cib/cib_remote.c if (rc != pcmk_rc_ok) { rc 387 lib/cib/cib_remote.c private->server, private->port, pcmk_rc_str(rc), rc); rc 412 lib/cib/cib_remote.c rc = pcmk__tls_client_handshake(connection, TLS_HANDSHAKE_TIMEOUT, rc 414 lib/cib/cib_remote.c if (rc != pcmk_rc_ok) { rc 417 lib/cib/cib_remote.c (rc == EPROTO)? gnutls_strerror(tls_rc) : pcmk_rc_str(rc)); rc 439 lib/cib/cib_remote.c rc = pcmk_ok; rc 441 lib/cib/cib_remote.c rc = -ENOTCONN; rc 448 lib/cib/cib_remote.c rc = -EPROTO; rc 458 lib/cib/cib_remote.c rc = -EPROTO; rc 461 lib/cib/cib_remote.c rc = -EPROTO; rc 470 lib/cib/cib_remote.c if (rc != 0) { rc 472 lib/cib/cib_remote.c return rc; rc 480 lib/cib/cib_remote.c return rc; rc 486 lib/cib/cib_remote.c int rc = pcmk_ok; rc 502 lib/cib/cib_remote.c rc = -EINVAL; rc 505 lib/cib/cib_remote.c if (rc == pcmk_ok) { rc 506 lib/cib/cib_remote.c rc = cib_tls_signon(cib, &(private->command), FALSE); rc 509 lib/cib/cib_remote.c if (rc == pcmk_ok) { rc 510 lib/cib/cib_remote.c rc = cib_tls_signon(cib, &(private->callback), TRUE); rc 513 lib/cib/cib_remote.c if (rc == pcmk_ok) { rc 514 lib/cib/cib_remote.c rc = cib__create_op(cib, CRM_OP_REGISTER, NULL, NULL, NULL, cib_none, rc 518 lib/cib/cib_remote.c if (rc == pcmk_ok) { rc 519 lib/cib/cib_remote.c rc = pcmk__remote_send_xml(&private->command, hello); rc 520 lib/cib/cib_remote.c rc = pcmk_rc2legacy(rc); rc 524 lib/cib/cib_remote.c if (rc == pcmk_ok) { rc 532 lib/cib/cib_remote.c private->server, private->port, name, pcmk_strerror(rc)); rc 535 lib/cib/cib_remote.c return rc; rc 541 lib/cib/cib_remote.c int rc = pcmk_ok; rc 552 lib/cib/cib_remote.c return rc; rc 558 lib/cib/cib_remote.c int rc = pcmk_ok; rc 562 lib/cib/cib_remote.c rc = cib_remote_signoff(cib); rc 563 lib/cib/cib_remote.c if (rc == pcmk_ok) { rc 576 lib/cib/cib_remote.c return rc; rc 77 lib/cib/cib_utils.c int rc = pcmk_err_generic; rc 88 lib/cib/cib_utils.c if ((crm_element_value_int(msg, PCMK__XA_CIB_RC, &rc) != 0) rc 89 lib/cib/cib_utils.c || (rc != pcmk_ok)) { rc 92 lib/cib/cib_utils.c pcmk_strerror(rc), rc); rc 94 lib/cib/cib_utils.c return pcmk_legacy2rc(rc); rc 152 lib/cib/cib_utils.c bool rc = false; rc 168 lib/cib/cib_utils.c rc = true; rc 178 lib/cib/cib_utils.c rc = true; rc 184 lib/cib/cib_utils.c return rc; rc 267 lib/cib/cib_utils.c bool rc = FALSE; rc 275 lib/cib/cib_utils.c rc = crm_is_true(value); rc 279 lib/cib/cib_utils.c crm_trace("CIB ACL is %s", rc ? "enabled" : "disabled"); rc 280 lib/cib/cib_utils.c return rc; rc 338 lib/cib/cib_utils.c int rc = pcmk_ok; rc 385 lib/cib/cib_utils.c rc = (*fn) (op, call_options, section, req, input, cib_ro, result_cib, output); rc 406 lib/cib/cib_utils.c return rc; rc 422 lib/cib/cib_utils.c rc = (*fn) (op, call_options, section, req, input, scratch, &scratch, output); rc 434 lib/cib/cib_utils.c rc = (*fn) (op, call_options, section, req, input, *current_cib, rc 448 lib/cib/cib_utils.c if (rc == pcmk_ok && scratch == NULL) { rc 449 lib/cib/cib_utils.c rc = -EINVAL; rc 452 lib/cib/cib_utils.c } else if(rc == pcmk_ok && xml_acl_denied(scratch)) { rc 454 lib/cib/cib_utils.c rc = -EACCES; rc 457 lib/cib/cib_utils.c } else if (rc != pcmk_ok) { rc 468 lib/cib/cib_utils.c rc = pcmk__check_feature_set(new_version); rc 469 lib/cib/cib_utils.c if (rc != pcmk_rc_ok) { rc 472 lib/cib/cib_utils.c rc = pcmk_rc2legacy(rc); rc 489 lib/cib/cib_utils.c rc = -pcmk_err_old_data; rc 499 lib/cib/cib_utils.c rc = -pcmk_err_old_data; rc 623 lib/cib/cib_utils.c if ((rc == pcmk_ok) && check_schema rc 630 lib/cib/cib_utils.c rc = -pcmk_err_schema_validation; rc 640 lib/cib/cib_utils.c if ((rc != pcmk_ok) && cib_acl_enabled(patchset_cib, user) rc 657 lib/cib/cib_utils.c return rc; rc 713 lib/cib/cib_utils.c int rc = cib__get_operation(op, &operation); rc 715 lib/cib/cib_utils.c if (rc != pcmk_rc_ok) { rc 717 lib/cib/cib_utils.c return rc; rc 746 lib/cib/cib_utils.c int rc = pcmk_rc_ok; rc 750 lib/cib/cib_utils.c rc = validate_transaction_request(request); rc 752 lib/cib/cib_utils.c if ((rc == pcmk_rc_ok) && (cib->transaction == NULL)) { rc 753 lib/cib/cib_utils.c rc = pcmk_rc_no_transaction; rc 756 lib/cib/cib_utils.c if (rc == pcmk_rc_ok) { rc 765 lib/cib/cib_utils.c op, pcmk__s(client_id, "(unidentified)"), pcmk_rc_str(rc)); rc 768 lib/cib/cib_utils.c return pcmk_rc2legacy(rc); rc 772 lib/cib/cib_utils.c cib_native_callback(cib_t * cib, xmlNode * msg, int call_id, int rc) rc 780 lib/cib/cib_utils.c crm_element_value_int(msg, PCMK__XA_CIB_RC, &rc); rc 796 lib/cib/cib_utils.c if (rc == -pcmk_err_diff_resync) { rc 798 lib/cib/cib_utils.c rc = pcmk_ok; rc 801 lib/cib/cib_utils.c if (blob && blob->callback && (rc == pcmk_ok || blob->only_success == FALSE)) { rc 804 lib/cib/cib_utils.c blob->callback(msg, call_id, rc, output, blob->user_data); rc 806 lib/cib/cib_utils.c } else if (cib && cib->op_callback == NULL && rc != pcmk_ok) { rc 807 lib/cib/cib_utils.c crm_warn("CIB command failed: %s", pcmk_strerror(rc)); rc 818 lib/cib/cib_utils.c cib->op_callback(msg, call_id, rc, output); rc 921 lib/cib/cib_utils.c int rc = pcmk_err_generic; rc 928 lib/cib/cib_utils.c crm_element_value_int(event, PCMK__XA_CIB_RC, &rc); rc 933 lib/cib/cib_utils.c if (rc < pcmk_ok || diff == NULL) { rc 934 lib/cib/cib_utils.c return rc; rc 942 lib/cib/cib_utils.c rc = cib_process_diff(NULL, cib_none, NULL, event, diff, input, output, rc 945 lib/cib/cib_utils.c if (rc != pcmk_ok) { rc 947 lib/cib/cib_utils.c pcmk_strerror(rc), rc, *output); rc 949 lib/cib/cib_utils.c if (rc == -pcmk_err_old_data) { rc 955 lib/cib/cib_utils.c return rc; rc 958 lib/cib/cib_utils.c return rc; rc 972 lib/cib/cib_utils.c int rc = pcmk_rc_ok; rc 991 lib/cib/cib_utils.c rc = cib_conn->cmds->signon(cib_conn, crm_system_name, cib_command); rc 992 lib/cib/cib_utils.c rc = pcmk_legacy2rc(rc); rc 995 lib/cib/cib_utils.c if (rc != pcmk_rc_ok) { rc 997 lib/cib/cib_utils.c pcmk_rc_str(rc)); rc 1004 lib/cib/cib_utils.c rc = cib_conn->cmds->query(cib_conn, NULL, cib_object, rc 1006 lib/cib/cib_utils.c rc = pcmk_legacy2rc(rc); rc 1008 lib/cib/cib_utils.c if (rc != pcmk_rc_ok) { rc 1009 lib/cib/cib_utils.c log_signon_query_err(out, "CIB query failed: %s", pcmk_rc_str(rc)); rc 1017 lib/cib/cib_utils.c if ((rc == pcmk_rc_ok) && (*cib_object == NULL)) { rc 1020 lib/cib/cib_utils.c return rc; rc 1027 lib/cib/cib_utils.c int rc = pcmk_rc_ok; rc 1033 lib/cib/cib_utils.c rc = cib->cmds->signon(cib, name, type); rc 1035 lib/cib/cib_utils.c if ((rc == pcmk_rc_ok) rc 1047 lib/cib/cib_utils.c return rc; rc 1053 lib/cib/cib_utils.c int rc; rc 1059 lib/cib/cib_utils.c rc = (*cib)->cmds->signoff(*cib); rc 1062 lib/cib/cib_utils.c return pcmk_legacy2rc(rc); rc 1113 lib/cib/cib_utils.c int rc = pcmk__output_new(&out, "text", NULL, NULL); rc 1115 lib/cib/cib_utils.c if (rc != pcmk_rc_ok) { rc 1116 lib/cib/cib_utils.c crm_err("Unable to output metadata: %s", pcmk_rc_str(rc)); rc 106 lib/cluster/corosync.c cs_error_t rc = CS_OK; rc 124 lib/cluster/corosync.c rc = pcmk__init_cmap(&local_handle); rc 125 lib/cluster/corosync.c if (rc != CS_OK) { rc 127 lib/cluster/corosync.c crm_debug("API connection setup failed: %s. Retrying in %ds", cs_strerror(rc), rc 132 lib/cluster/corosync.c } while (retries < 5 && rc != CS_OK); rc 134 lib/cluster/corosync.c if (rc != CS_OK) { rc 136 lib/cluster/corosync.c cs_strerror(rc)); rc 144 lib/cluster/corosync.c rc = cmap_fd_get(cmap_handle, &fd); rc 145 lib/cluster/corosync.c if (rc != CS_OK) { rc 147 lib/cluster/corosync.c cs_strerror(rc), rc); rc 171 lib/cluster/corosync.c rc = cmap_get_uint32(cmap_handle, key, &id); rc 175 lib/cluster/corosync.c if (rc != CS_OK) { rc 245 lib/cluster/corosync.c int rc = quorum_dispatch(pcmk_quorum_handle, CS_DISPATCH_ALL); rc 247 lib/cluster/corosync.c if (rc < 0) { rc 248 lib/cluster/corosync.c crm_err("Connection to the Quorum API failed: %d", rc); rc 347 lib/cluster/corosync.c cs_error_t rc; rc 370 lib/cluster/corosync.c rc = quorum_model_initialize(&pcmk_quorum_handle, QUORUM_MODEL_V0, rc 378 lib/cluster/corosync.c rc = quorum_initialize(&pcmk_quorum_handle, &quorum_callbacks, rc 383 lib/cluster/corosync.c if (rc != CS_OK) { rc 385 lib/cluster/corosync.c cs_strerror(rc), rc); rc 393 lib/cluster/corosync.c rc = quorum_fd_get(pcmk_quorum_handle, &fd); rc 394 lib/cluster/corosync.c if (rc != CS_OK) { rc 396 lib/cluster/corosync.c strerror(rc), rc); rc 407 lib/cluster/corosync.c rc = CS_ERR_ACCESS; rc 412 lib/cluster/corosync.c rc = CS_ERR_ACCESS; rc 416 lib/cluster/corosync.c rc = quorum_getquorate(pcmk_quorum_handle, &quorate); rc 417 lib/cluster/corosync.c if (rc != CS_OK) { rc 418 lib/cluster/corosync.c crm_err("Could not obtain the current Quorum API state: %d", rc); rc 430 lib/cluster/corosync.c rc = quorum_trackstart(pcmk_quorum_handle, CS_TRACK_CHANGES | CS_TRACK_CURRENT); rc 431 lib/cluster/corosync.c if (rc != CS_OK) { rc 432 lib/cluster/corosync.c crm_err("Could not setup Quorum API notifications: %d", rc); rc 441 lib/cluster/corosync.c if (rc != CS_OK) { rc 460 lib/cluster/corosync.c int rc = pcmk_rc_ok; rc 470 lib/cluster/corosync.c rc = pcmk__cpg_connect(cluster); rc 471 lib/cluster/corosync.c if (rc != pcmk_rc_ok) { rc 473 lib/cluster/corosync.c return rc; rc 507 lib/cluster/corosync.c int rc = pcmk__init_cmap(&handle); rc 509 lib/cluster/corosync.c if (rc == CS_OK) { rc 515 lib/cluster/corosync.c pcmk__cs_err_str(rc), rc); rc 559 lib/cluster/corosync.c cs_error_t rc = CS_OK; rc 570 lib/cluster/corosync.c rc = pcmk__init_cmap(&cmap_handle); rc 571 lib/cluster/corosync.c if (rc != CS_OK) { rc 573 lib/cluster/corosync.c crm_debug("API connection setup failed: %s. Retrying in %ds", cs_strerror(rc), rc 578 lib/cluster/corosync.c } while (retries < 5 && rc != CS_OK); rc 580 lib/cluster/corosync.c if (rc != CS_OK) { rc 581 lib/cluster/corosync.c crm_warn("Could not connect to Cluster Configuration Database API, error %d", rc); rc 585 lib/cluster/corosync.c rc = cmap_fd_get(cmap_handle, &fd); rc 586 lib/cluster/corosync.c if (rc != CS_OK) { rc 588 lib/cluster/corosync.c cs_strerror(rc), rc); rc 614 lib/cluster/corosync.c rc = cmap_get_uint32(cmap_handle, key, &nodeid); rc 617 lib/cluster/corosync.c if (rc != CS_OK) { rc 672 lib/cluster/corosync.c cs_error_t rc = CS_OK; rc 679 lib/cluster/corosync.c rc = pcmk__init_cmap(&handle); rc 680 lib/cluster/corosync.c if (rc != CS_OK) { rc 682 lib/cluster/corosync.c cs_strerror(rc), rc); rc 686 lib/cluster/corosync.c rc = cmap_fd_get(handle, &fd); rc 687 lib/cluster/corosync.c if (rc != CS_OK) { rc 689 lib/cluster/corosync.c cs_strerror(rc), rc); rc 707 lib/cluster/corosync.c rc = cmap_get_string(handle, "totem.cluster_name", &cluster_name); rc 708 lib/cluster/corosync.c if (rc != CS_OK) { rc 709 lib/cluster/corosync.c crm_info("Cannot get totem.cluster_name: %s (%d)", cs_strerror(rc), rc); rc 738 lib/cluster/corosync.c int rc = pcmk_ok; rc 774 lib/cluster/corosync.c rc = crm_ipc_is_authentic_process(fd, (uid_t) 0, (gid_t) 0, rc 776 lib/cluster/corosync.c if (rc == 0) { rc 783 lib/cluster/corosync.c } else if (rc < 0) { rc 786 lib/cluster/corosync.c pcmk_strerror(rc), rc); rc 81 lib/cluster/cpg.c #define cs_repeat(rc, counter, max, code) do { \ rc 82 lib/cluster/cpg.c rc = code; \ rc 83 lib/cluster/cpg.c if ((rc == CS_ERR_TRY_AGAIN) || (rc == CS_ERR_QUEUE_FULL)) { \ rc 103 lib/cluster/cpg.c cs_error_t rc = CS_OK; rc 120 lib/cluster/cpg.c cs_repeat(rc, retries, 5, rc 124 lib/cluster/cpg.c if (rc != CS_OK) { rc 126 lib/cluster/cpg.c cs_strerror(rc), rc); rc 130 lib/cluster/cpg.c rc = cpg_fd_get(local_handle, &fd); rc 131 lib/cluster/cpg.c if (rc != CS_OK) { rc 133 lib/cluster/cpg.c cs_strerror(rc), rc); rc 154 lib/cluster/cpg.c if (rc == CS_OK) { rc 157 lib/cluster/cpg.c cs_repeat(rc, retries, 5, cpg_local_get(local_handle, &local_nodeid)); rc 160 lib/cluster/cpg.c if (rc != CS_OK) { rc 162 lib/cluster/cpg.c pcmk__cs_err_str(rc), rc); rc 204 lib/cluster/cpg.c cs_error_t rc = 0; rc 229 lib/cluster/cpg.c rc = cpg_mcast_joined(*handle, CPG_TYPE_AGREED, iov, 1); rc 230 lib/cluster/cpg.c if (rc != CS_OK) { rc 246 lib/cluster/cpg.c sent, pcmk__plural_s(sent), queue_len, pcmk__cs_err_str(rc), rc 247 lib/cluster/cpg.c (int) rc); rc 251 lib/cluster/cpg.c if (rc != CS_OK) { rc 270 lib/cluster/cpg.c cs_error_t rc = CS_OK; rc 273 lib/cluster/cpg.c rc = cpg_dispatch(cluster->cpg_handle, CS_DISPATCH_ONE); rc 274 lib/cluster/cpg.c if (rc != CS_OK) { rc 276 lib/cluster/cpg.c pcmk__cs_err_str(rc), rc); rc 491 lib/cluster/cpg.c int rc = BZ_OK; rc 501 lib/cluster/cpg.c rc = BZ2_bzBuffToBuffDecompress(uncompressed, &new_size, msg->data, rc 504 lib/cluster/cpg.c rc = pcmk__bzlib2rc(rc); rc 506 lib/cluster/cpg.c if (rc != pcmk_rc_ok) { rc 508 lib/cluster/cpg.c pcmk_rc_str(rc), rc); rc 831 lib/cluster/cpg.c cs_error_t rc; rc 865 lib/cluster/cpg.c cs_repeat(rc, retries, 30, cpg_model_initialize(&handle, CPG_MODEL_V1, (cpg_model_data_t *)&cpg_model_info, NULL)); rc 866 lib/cluster/cpg.c if (rc != CS_OK) { rc 868 lib/cluster/cpg.c cs_strerror(rc), rc); rc 872 lib/cluster/cpg.c rc = cpg_fd_get(handle, &fd); rc 873 lib/cluster/cpg.c if (rc != CS_OK) { rc 875 lib/cluster/cpg.c cs_strerror(rc), rc); rc 886 lib/cluster/cpg.c rc = CS_ERR_ACCESS; rc 891 lib/cluster/cpg.c rc = CS_ERR_ACCESS; rc 904 lib/cluster/cpg.c cs_repeat(rc, retries, 30, cpg_join(handle, &cluster->group)); rc 905 lib/cluster/cpg.c if (rc != CS_OK) { rc 906 lib/cluster/cpg.c crm_err("Could not join the CPG group '%s': %d", message_name, rc); rc 915 lib/cluster/cpg.c if (rc != CS_OK) { rc 1094 lib/cluster/cpg.c bool rc = true; rc 1099 lib/cluster/cpg.c rc = send_cpg_text(data->str, false, node, dest); rc 1101 lib/cluster/cpg.c return rc; rc 222 lib/cluster/election.c int rc = 0; rc 226 lib/cluster/election.c rc = getrusage(RUSAGE_SELF, &info); rc 231 lib/cluster/election.c if (rc < 0) { rc 474 lib/common/actions.c int rc = 0; rc 477 lib/common/actions.c decode_transition_key(op->user_data, NULL, NULL, NULL, &rc); rc 479 lib/common/actions.c return rc; rc 500 lib/common/actions.c if (target_rc != op->rc) { rc 71 lib/common/agents.c pcmk__effective_rc(int rc) rc 73 lib/common/agents.c int remapped_rc = rc; rc 75 lib/common/agents.c switch (rc) { rc 43 lib/common/cib_secrets.c bool rc = false; rc 49 lib/common/cib_secrets.c rc = true; rc 52 lib/common/cib_secrets.c return rc; rc 102 lib/common/cib_secrets.c int rc = pcmk_rc_ok; rc 137 lib/common/cib_secrets.c rc = ENAMETOOLONG; rc 146 lib/common/cib_secrets.c rc = ENOENT; rc 155 lib/common/cib_secrets.c rc = ENAMETOOLONG; rc 165 lib/common/cib_secrets.c rc = ENOENT; rc 173 lib/common/cib_secrets.c rc = pcmk_rc_cib_corrupt; rc 181 lib/common/cib_secrets.c return rc; rc 85 lib/common/health.c int rc = pcmk_rc_ok; rc 91 lib/common/health.c rc = pcmk_parse_score(value, &score, 0); rc 92 lib/common/health.c if (rc != pcmk_rc_ok) { rc 94 lib/common/health.c option, value, pcmk_rc_str(rc)); rc 48 lib/common/io.c int rc = pcmk_rc_ok; rc 58 lib/common/io.c rc = errno; rc 65 lib/common/io.c rc = errno; rc 69 lib/common/io.c return rc; rc 143 lib/common/io.c int rc; rc 154 lib/common/io.c rc = errno; rc 156 lib/common/io.c series_file, strerror(rc)); rc 158 lib/common/io.c return rc; rc 162 lib/common/io.c rc = (errno == 0)? ENODATA : errno; rc 164 lib/common/io.c series_file, pcmk_rc_str(rc)); rc 166 lib/common/io.c return rc; rc 190 lib/common/io.c int rc = 0; rc 207 lib/common/io.c rc = fprintf(file_strm, "%u", sequence); rc 208 lib/common/io.c if (rc < 0) { rc 242 lib/common/io.c int rc = pcmk_rc_ok; rc 249 lib/common/io.c rc = errno; rc 252 lib/common/io.c return rc; rc 436 lib/common/io.c int rc = pcmk_rc_ok; rc 444 lib/common/io.c rc = errno; rc 450 lib/common/io.c rc = errno; rc 459 lib/common/io.c rc = errno; rc 468 lib/common/io.c rc = EIO; rc 481 lib/common/io.c return rc; rc 496 lib/common/io.c int rc = 0; rc 503 lib/common/io.c rc = EIO; rc 506 lib/common/io.c rc = errno; rc 509 lib/common/io.c rc = errno; rc 512 lib/common/io.c return rc; rc 653 lib/common/io.c int rc = pcmk__build_path(path_c, mode); rc 655 lib/common/io.c if (rc != pcmk_rc_ok) { rc 657 lib/common/io.c path_c, pcmk_rc_str(rc)); rc 155 lib/common/ipc_attrd.c int rc = pcmk_rc_ok; rc 159 lib/common/ipc_attrd.c rc = pcmk_new_ipc_api(&api, pcmk_ipc_attrd); rc 160 lib/common/ipc_attrd.c if (rc != pcmk_rc_ok) { rc 161 lib/common/ipc_attrd.c return rc; rc 166 lib/common/ipc_attrd.c rc = pcmk__connect_ipc(api, pcmk_ipc_dispatch_sync, 5); rc 167 lib/common/ipc_attrd.c if (rc == pcmk_rc_ok) { rc 168 lib/common/ipc_attrd.c rc = pcmk__send_ipc_request(api, request); rc 174 lib/common/ipc_attrd.c return rc; rc 183 lib/common/ipc_attrd.c int rc = pcmk_rc_ok; rc 212 lib/common/ipc_attrd.c rc = connect_and_send_attrd_request(api, request); rc 215 lib/common/ipc_attrd.c return rc; rc 244 lib/common/ipc_attrd.c int rc = pcmk_rc_ok; rc 263 lib/common/ipc_attrd.c rc = connect_and_send_attrd_request(api, request); rc 266 lib/common/ipc_attrd.c return rc; rc 273 lib/common/ipc_attrd.c int rc = pcmk_rc_ok; rc 301 lib/common/ipc_attrd.c rc = connect_and_send_attrd_request(api, request); rc 303 lib/common/ipc_attrd.c return rc; rc 309 lib/common/ipc_attrd.c int rc = pcmk_rc_ok; rc 325 lib/common/ipc_attrd.c rc = connect_and_send_attrd_request(api, request); rc 328 lib/common/ipc_attrd.c return rc; rc 382 lib/common/ipc_attrd.c int rc = pcmk_rc_ok; rc 403 lib/common/ipc_attrd.c rc = connect_and_send_attrd_request(api, request); rc 406 lib/common/ipc_attrd.c return rc; rc 414 lib/common/ipc_attrd.c int rc = pcmk_rc_ok; rc 471 lib/common/ipc_attrd.c rc = pcmk__attrd_api_update(api, pair->node, pair->name, pair->value, rc 480 lib/common/ipc_attrd.c rc = connect_and_send_attrd_request(api, request); rc 484 lib/common/ipc_attrd.c return rc; rc 401 lib/common/ipc_client.c int rc; rc 408 lib/common/ipc_client.c rc = pcmk__ipc_fd(api->ipc, &(pollfd.fd)); rc 409 lib/common/ipc_client.c if (rc != pcmk_rc_ok) { rc 411 lib/common/ipc_client.c pcmk_ipc_name(api, true), pcmk_rc_str(rc)); rc 412 lib/common/ipc_client.c return rc; rc 416 lib/common/ipc_client.c rc = poll(&pollfd, 1, timeout_ms); rc 417 lib/common/ipc_client.c if (rc < 0) { rc 422 lib/common/ipc_client.c } else if (rc == 0) { rc 455 lib/common/ipc_client.c int rc; rc 462 lib/common/ipc_client.c rc = pcmk__add_mainloop_ipc(api->ipc, G_PRIORITY_DEFAULT, api, rc 464 lib/common/ipc_client.c if (rc != pcmk_rc_ok) { rc 465 lib/common/ipc_client.c return rc; rc 479 lib/common/ipc_client.c int rc = pcmk__connect_generic_ipc(api->ipc); rc 481 lib/common/ipc_client.c if (rc != pcmk_rc_ok) { rc 487 lib/common/ipc_client.c return rc; rc 504 lib/common/ipc_client.c int rc = pcmk_rc_ok; rc 529 lib/common/ipc_client.c rc = connect_with_main_loop(api); rc 534 lib/common/ipc_client.c rc = connect_without_main_loop(api); rc 538 lib/common/ipc_client.c if ((remaining == 0) || ((rc != EAGAIN) && (rc != EALREADY))) { rc 549 lib/common/ipc_client.c if (rc != pcmk_rc_ok) { rc 550 lib/common/ipc_client.c return rc; rc 554 lib/common/ipc_client.c rc = api->cmds->post_connect(api); rc 555 lib/common/ipc_client.c if (rc != pcmk_rc_ok) { rc 559 lib/common/ipc_client.c return rc; rc 573 lib/common/ipc_client.c int rc = pcmk__connect_ipc(api, dispatch_type, 2); rc 575 lib/common/ipc_client.c if (rc != pcmk_rc_ok) { rc 577 lib/common/ipc_client.c pcmk_ipc_name(api, true), pcmk_rc_str(rc)); rc 579 lib/common/ipc_client.c return rc; rc 670 lib/common/ipc_client.c int rc; rc 688 lib/common/ipc_client.c rc = crm_ipc_send(api->ipc, request, flags, 0, &reply); rc 690 lib/common/ipc_client.c if (rc < 0) { rc 691 lib/common/ipc_client.c return pcmk_legacy2rc(rc); rc 692 lib/common/ipc_client.c } else if (rc == 0) { rc 703 lib/common/ipc_client.c rc = crm_ipc_read(api->ipc); rc 705 lib/common/ipc_client.c if (rc == -EAGAIN) { rc 707 lib/common/ipc_client.c } else if (rc == -ENOMSG || rc == pcmk_ok) { rc 709 lib/common/ipc_client.c } else if (rc < 0) { rc 710 lib/common/ipc_client.c return -rc; rc 713 lib/common/ipc_client.c rc = dispatch_ipc_data(crm_ipc_buffer(api->ipc), api); rc 715 lib/common/ipc_client.c if (rc == pcmk_rc_ok) { rc 717 lib/common/ipc_client.c } else if (rc == EINPROGRESS) { rc 799 lib/common/ipc_client.c int rc = 0; rc 813 lib/common/ipc_client.c rc = pcmk__send_ipc_request(api, request); rc 817 lib/common/ipc_client.c pcmk_ipc_name(api, true), node_name, (unsigned long) nodeid, rc); rc 818 lib/common/ipc_client.c return rc; rc 903 lib/common/ipc_client.c int rc = pcmk_rc_ok; rc 915 lib/common/ipc_client.c rc = qb_ipcc_fd_get(ipc->ipc, &ipc->pfd.fd); rc 916 lib/common/ipc_client.c if (rc < 0) { // -errno rc 918 lib/common/ipc_client.c return -rc; rc 921 lib/common/ipc_client.c rc = pcmk_daemon_user(&cl_uid, &cl_gid); rc 922 lib/common/ipc_client.c rc = pcmk_legacy2rc(rc); rc 923 lib/common/ipc_client.c if (rc != pcmk_rc_ok) { rc 925 lib/common/ipc_client.c return rc; rc 928 lib/common/ipc_client.c rc = is_ipc_provider_expected(ipc->ipc, ipc->pfd.fd, cl_uid, cl_gid, rc 930 lib/common/ipc_client.c if (rc != pcmk_rc_ok) { rc 931 lib/common/ipc_client.c if (rc == pcmk_rc_ipc_unauthorized) { rc 940 lib/common/ipc_client.c return rc; rc 948 lib/common/ipc_client.c rc = errno; rc 950 lib/common/ipc_client.c return rc; rc 970 lib/common/ipc_client.c int rc = pcmk__connect_generic_ipc(client); rc 972 lib/common/ipc_client.c if (rc == pcmk_rc_ok) { rc 976 lib/common/ipc_client.c errno = (rc > 0)? rc : ENOTCONN; rc 979 lib/common/ipc_client.c } else if (rc == pcmk_rc_ipc_unauthorized) { rc 1070 lib/common/ipc_client.c bool rc = FALSE; rc 1085 lib/common/ipc_client.c rc = qb_ipcc_is_connected(client->ipc); rc 1086 lib/common/ipc_client.c if (rc == FALSE) { rc 1089 lib/common/ipc_client.c return rc; rc 1102 lib/common/ipc_client.c int rc; rc 1111 lib/common/ipc_client.c rc = poll(&(client->pfd), 1, 0); rc 1112 lib/common/ipc_client.c return (rc < 0)? -errno : rc; rc 1122 lib/common/ipc_client.c int rc = 0; rc 1131 lib/common/ipc_client.c rc = BZ2_bzBuffToBuffDecompress(uncompressed + sizeof(pcmk__ipc_header_t), &size_u, rc 1133 lib/common/ipc_client.c rc = pcmk__bzlib2rc(rc); rc 1135 lib/common/ipc_client.c if (rc != pcmk_rc_ok) { rc 1137 lib/common/ipc_client.c pcmk_rc_str(rc), rc); rc 1139 lib/common/ipc_client.c return rc; rc 1169 lib/common/ipc_client.c int rc = crm_ipc_decompress(client); rc 1171 lib/common/ipc_client.c if (rc != pcmk_rc_ok) { rc 1172 lib/common/ipc_client.c return pcmk_rc2legacy(rc); rc 1239 lib/common/ipc_client.c int rc = pcmk_rc_ok; rc 1250 lib/common/ipc_client.c rc = crm_ipc_decompress(client); rc 1251 lib/common/ipc_client.c if (rc != pcmk_rc_ok) { rc 1252 lib/common/ipc_client.c return rc; rc 1281 lib/common/ipc_client.c rc = (int) -*bytes; // System errno rc 1283 lib/common/ipc_client.c return rc; rc 1303 lib/common/ipc_client.c int rc = 0; rc 1343 lib/common/ipc_client.c rc = pcmk__ipc_prepare_iov(id, message, client->max_buf_size, &iov, &bytes); rc 1344 lib/common/ipc_client.c if (rc != pcmk_rc_ok) { rc 1346 lib/common/ipc_client.c client->server_name, pcmk_rc_str(rc), rc); rc 1347 lib/common/ipc_client.c return pcmk_rc2legacy(rc); rc 1386 lib/common/ipc_client.c rc = (int) qb_rc; // Negative of system errno, or bytes sent rc 1396 lib/common/ipc_client.c rc = internal_ipc_get_reply(client, header->qb.id, ms_timeout, &bytes); rc 1397 lib/common/ipc_client.c if (rc != pcmk_rc_ok) { rc 1406 lib/common/ipc_client.c rc = (int) bytes; // Negative system errno, or size of reply received rc 1414 lib/common/ipc_client.c rc = (int) qb_rc; // Negative system errno, or size of reply received rc 1417 lib/common/ipc_client.c if (rc > 0) { rc 1421 lib/common/ipc_client.c rc, hdr->qb.id, client->server_name, header->qb.id, rc 1430 lib/common/ipc_client.c client->server_name, header->qb.id, rc); rc 1436 lib/common/ipc_client.c CRM_XS " rc=%d", client->server_name, header->qb.id, rc); rc 1438 lib/common/ipc_client.c } else if (rc == -ETIMEDOUT) { rc 1440 lib/common/ipc_client.c client->server_name, header->qb.id, pcmk_strerror(rc), rc 1441 lib/common/ipc_client.c ms_timeout, rc); rc 1444 lib/common/ipc_client.c } else if (rc <= 0) { rc 1447 lib/common/ipc_client.c ((rc == 0)? "No bytes sent" : pcmk_strerror(rc)), rc); rc 1451 lib/common/ipc_client.c return rc; rc 1476 lib/common/ipc_client.c int rc = EOPNOTSUPP; rc 1483 lib/common/ipc_client.c rc = qb_ipcc_auth_get(qb_ipc, &found_pid, &found_uid, &found_gid); rc 1484 lib/common/ipc_client.c rc = -rc; // libqb returns 0 or -errno rc 1485 lib/common/ipc_client.c if (rc == pcmk_rc_ok) { rc 1497 lib/common/ipc_client.c rc = errno; rc 1499 lib/common/ipc_client.c rc = EOPNOTSUPP; rc 1516 lib/common/ipc_client.c rc = errno; rc 1518 lib/common/ipc_client.c rc = EOPNOTSUPP; rc 1530 lib/common/ipc_client.c rc = errno; rc 1542 lib/common/ipc_client.c rc = errno; rc 1553 lib/common/ipc_client.c return rc; // If we get here, nothing succeeded rc 1594 lib/common/ipc_client.c int rc = pcmk_rc_ipc_unresponsive; rc 1610 lib/common/ipc_client.c rc = pcmk_rc_ipc_unresponsive; rc 1627 lib/common/ipc_client.c rc = pcmk_rc_ipc_unresponsive; rc 1635 lib/common/ipc_client.c rc = (int) -qb_rc; // System errno rc 1637 lib/common/ipc_client.c name, pcmk_rc_str(rc), rc); rc 1648 lib/common/ipc_client.c rc = pcmk_rc_ipc_unauthorized; rc 1653 lib/common/ipc_client.c rc = auth_rc; rc 1655 lib/common/ipc_client.c CRM_XS " rc=%d", name, pcmk_rc_str(rc), rc); rc 1663 lib/common/ipc_client.c rc = pcmk_rc_ok; rc 1685 lib/common/ipc_client.c return rc; rc 37 lib/common/ipc_common.c int rc = pcmk__scan_ll(env_value_s, &env_value, MAX_MSG_SIZE); rc 39 lib/common/ipc_common.c if (rc != pcmk_rc_ok) { rc 44 lib/common/ipc_common.c max, env_value_s, pcmk_rc_str(rc)); rc 105 lib/common/ipc_controld.c int rc; rc 110 lib/common/ipc_controld.c rc = pcmk__send_ipc_request(api, hello); rc 112 lib/common/ipc_controld.c if (rc != pcmk_rc_ok) { rc 114 lib/common/ipc_controld.c pcmk_ipc_name(api, true), pcmk_rc_str(rc), rc); rc 118 lib/common/ipc_controld.c return rc; rc 383 lib/common/ipc_controld.c int rc = pcmk_rc_ok; rc 397 lib/common/ipc_controld.c rc = send_controller_request(api, request, true); rc 400 lib/common/ipc_controld.c return rc; rc 416 lib/common/ipc_controld.c int rc = pcmk_rc_ok; rc 426 lib/common/ipc_controld.c rc = send_controller_request(api, request, true); rc 428 lib/common/ipc_controld.c return rc; rc 444 lib/common/ipc_controld.c int rc = pcmk_rc_ok; rc 450 lib/common/ipc_controld.c rc = send_controller_request(api, request, true); rc 452 lib/common/ipc_controld.c return rc; rc 467 lib/common/ipc_controld.c int rc = EINVAL; rc 472 lib/common/ipc_controld.c rc = send_controller_request(api, request, true); rc 475 lib/common/ipc_controld.c return rc; rc 486 lib/common/ipc_controld.c int rc = pcmk_rc_ok; rc 534 lib/common/ipc_controld.c rc = send_controller_request(api, request, true); rc 537 lib/common/ipc_controld.c return rc; rc 207 lib/common/ipc_pacemakerd.c int rc = pcmk__scan_ll(status, &ack_status, CRM_EX_OK); rc 209 lib/common/ipc_pacemakerd.c if (rc != pcmk_rc_ok) { rc 290 lib/common/ipc_pacemakerd.c int rc; rc 304 lib/common/ipc_pacemakerd.c rc = pcmk__send_ipc_request(api, cmd); rc 305 lib/common/ipc_pacemakerd.c if (rc != pcmk_rc_ok) { rc 307 lib/common/ipc_pacemakerd.c pcmk_ipc_name(api, true), pcmk_rc_str(rc), rc); rc 311 lib/common/ipc_pacemakerd.c rc = ENOMSG; rc 314 lib/common/ipc_pacemakerd.c return rc; rc 151 lib/common/ipc_schedulerd.c int rc; rc 165 lib/common/ipc_schedulerd.c rc = pcmk__send_ipc_request(api, cmd); rc 166 lib/common/ipc_schedulerd.c if (rc != pcmk_rc_ok) { rc 168 lib/common/ipc_schedulerd.c pcmk_rc_str(rc), rc); rc 174 lib/common/ipc_schedulerd.c rc = ENOMSG; rc 177 lib/common/ipc_schedulerd.c return rc; rc 343 lib/common/ipc_server.c int rc = pcmk_rc_ok; rc 352 lib/common/ipc_server.c rc = pcmk__scan_ll(qmax, &qmax_ll, 0LL); rc 353 lib/common/ipc_server.c if (rc == pcmk_rc_ok) { rc 355 lib/common/ipc_server.c rc = ERANGE; rc 361 lib/common/ipc_server.c rc = EACCES; rc 364 lib/common/ipc_server.c if (rc != pcmk_rc_ok) { rc 367 lib/common/ipc_server.c pcmk__s(qmax, "default"), pcmk_rc_str(rc)); rc 426 lib/common/ipc_server.c int rc = 0; rc 433 lib/common/ipc_server.c rc = BZ2_bzBuffToBuffDecompress(uncompressed, &size_u, text, header->size_compressed, 1, 0); rc 436 lib/common/ipc_server.c rc = pcmk__bzlib2rc(rc); rc 438 lib/common/ipc_server.c if (rc != pcmk_rc_ok) { rc 440 lib/common/ipc_server.c pcmk_rc_str(rc), rc); rc 494 lib/common/ipc_server.c int rc = pcmk_rc_ok; rc 500 lib/common/ipc_server.c return rc; rc 505 lib/common/ipc_server.c return rc; rc 525 lib/common/ipc_server.c rc = (int) -qb_rc; rc 547 lib/common/ipc_server.c pcmk_rc_str(rc), (long long) qb_rc); rc 566 lib/common/ipc_server.c return rc; rc 578 lib/common/ipc_server.c return rc; rc 602 lib/common/ipc_server.c int rc = pcmk_rc_ok; rc 605 lib/common/ipc_server.c rc = EINVAL; rc 611 lib/common/ipc_server.c rc = ENOMEM; rc 666 lib/common/ipc_server.c rc = EMSGSIZE; rc 684 lib/common/ipc_server.c return rc; rc 690 lib/common/ipc_server.c int rc = pcmk_rc_ok; rc 737 lib/common/ipc_server.c rc = (int) -qb_rc; rc 741 lib/common/ipc_server.c header->qb.id, c->pid, pcmk_rc_str(rc), rc 755 lib/common/ipc_server.c rc = crm_ipcs_flush_events(c); rc 760 lib/common/ipc_server.c if ((rc == EPIPE) || (rc == ENOTCONN)) { rc 763 lib/common/ipc_server.c return rc; rc 771 lib/common/ipc_server.c int rc = pcmk_rc_ok; rc 776 lib/common/ipc_server.c rc = pcmk__ipc_prepare_iov(request, message, crm_ipc_default_buffer_size(), rc 778 lib/common/ipc_server.c if (rc == pcmk_rc_ok) { rc 780 lib/common/ipc_server.c rc = pcmk__ipc_send_iov(c, iov, flags); rc 784 lib/common/ipc_server.c c->pid, pcmk_rc_str(rc), rc); rc 786 lib/common/ipc_server.c return rc; rc 839 lib/common/ipc_server.c int rc = pcmk_rc_ok; rc 847 lib/common/ipc_server.c rc = pcmk__ipc_send_xml(c, request, ack, flags); rc 850 lib/common/ipc_server.c return rc; rc 736 lib/common/iso8601.c int rc; rc 744 lib/common/iso8601.c rc = sscanf(time_str, "%" SCNu32 ":%" SCNu32 ":%" SCNu32, rc 746 lib/common/iso8601.c if (rc == 1) { rc 747 lib/common/iso8601.c rc = sscanf(time_str, "%2" SCNu32 "%2" SCNu32 "%2" SCNu32, rc 750 lib/common/iso8601.c if (rc == 0) { rc 900 lib/common/iso8601.c int rc = 0; rc 932 lib/common/iso8601.c rc = sscanf(date_str, "%" SCNu32 "-%" SCNu32 "-%" SCNu32 "", rc 934 lib/common/iso8601.c if (rc == 1) { rc 936 lib/common/iso8601.c rc = sscanf(date_str, "%4" SCNu32 "%2" SCNu32 "%2" SCNu32 "", rc 939 lib/common/iso8601.c if (rc == 3) { rc 966 lib/common/iso8601.c rc = sscanf(date_str, "%" SCNu32 "-%" SCNu32, &year, &day); rc 967 lib/common/iso8601.c if (rc == 2) { rc 988 lib/common/iso8601.c rc = sscanf(date_str, "%" SCNu32 "-W%" SCNu32 "-%" SCNu32, rc 990 lib/common/iso8601.c if (rc == 3) { rc 1147 lib/common/iso8601.c int an_int = 0, rc; rc 1160 lib/common/iso8601.c rc = parse_int(current, &an_int); rc 1161 lib/common/iso8601.c if (rc == 0) { rc 1166 lib/common/iso8601.c current += rc; rc 1182 lib/common/iso8601.c period_s, current - rc, rc 1197 lib/common/iso8601.c period_s, current - rc, rc 1210 lib/common/iso8601.c period_s, current - rc, rc 1223 lib/common/iso8601.c period_s, current - rc, rc 1236 lib/common/iso8601.c period_s, current - rc, rc 1723 lib/common/iso8601.c if(rc == 0) { \ rc 1727 lib/common/iso8601.c rc = 1; \ rc 1731 lib/common/iso8601.c rc = -1; \ rc 1738 lib/common/iso8601.c int rc = 0; rc 1743 lib/common/iso8601.c rc = 0; rc 1745 lib/common/iso8601.c rc = -1; rc 1747 lib/common/iso8601.c rc = 1; rc 1756 lib/common/iso8601.c return rc; rc 214 lib/common/logging.c int rc; rc 223 lib/common/logging.c rc = pcmk_daemon_user(&pcmk_uid, &pcmk_gid); rc 224 lib/common/logging.c if (rc != pcmk_ok) { rc 225 lib/common/logging.c rc = pcmk_legacy2rc(rc); rc 227 lib/common/logging.c "unavailable: %s", filename, pcmk_rc_str(rc)); rc 267 lib/common/logging.c int rc = chown_logfile(filename, logfd); rc 269 lib/common/logging.c if (rc != pcmk_rc_ok) { rc 270 lib/common/logging.c return rc; rc 325 lib/common/logging.c int rc = pcmk_rc_ok; rc 354 lib/common/logging.c rc = errno; rc 356 lib/common/logging.c filename, strerror(rc), geteuid(), getegid()); rc 357 lib/common/logging.c return rc; rc 360 lib/common/logging.c rc = set_logfile_permissions(filename, logfile); rc 361 lib/common/logging.c if (rc != pcmk_rc_ok) { rc 363 lib/common/logging.c filename, strerror(rc)); rc 365 lib/common/logging.c return rc; rc 408 lib/common/logging.c int rc = pcmk__add_logfile(*fname); rc 410 lib/common/logging.c if (rc != pcmk_rc_ok) { rc 412 lib/common/logging.c *fname, pcmk_rc_str(rc)); rc 109 lib/common/mainloop.c gboolean rc = G_SOURCE_CONTINUE; rc 125 lib/common/mainloop.c rc = G_SOURCE_REMOVE; rc 128 lib/common/mainloop.c return rc; rc 650 lib/common/mainloop.c int rc = 0; rc 673 lib/common/mainloop.c rc = qb_ipcs_run(server); rc 674 lib/common/mainloop.c if (rc < 0) { rc 675 lib/common/mainloop.c crm_err("Could not start %s IPC server: %s (%d)", name, pcmk_strerror(rc), rc); rc 718 lib/common/mainloop.c gboolean rc = G_SOURCE_CONTINUE; rc 742 lib/common/mainloop.c rc = G_SOURCE_REMOVE; rc 746 lib/common/mainloop.c } while ((rc == G_SOURCE_CONTINUE) && (read_rc > 0) && --max > 0); rc 754 lib/common/mainloop.c rc = G_SOURCE_REMOVE; rc 763 lib/common/mainloop.c rc = G_SOURCE_REMOVE; rc 768 lib/common/mainloop.c rc = G_SOURCE_REMOVE; rc 804 lib/common/mainloop.c return rc; rc 867 lib/common/mainloop.c int rc = pcmk_rc_ok; rc 874 lib/common/mainloop.c rc = pcmk__connect_generic_ipc(ipc); rc 875 lib/common/mainloop.c if (rc != pcmk_rc_ok) { rc 876 lib/common/mainloop.c crm_debug("Connection to %s failed: %s", ipc_name, pcmk_rc_str(rc)); rc 877 lib/common/mainloop.c return rc; rc 880 lib/common/mainloop.c rc = pcmk__ipc_fd(ipc, &fd); rc 881 lib/common/mainloop.c if (rc != pcmk_rc_ok) { rc 883 lib/common/mainloop.c ipc_name, pcmk_rc_str(rc)); rc 885 lib/common/mainloop.c return rc; rc 890 lib/common/mainloop.c rc = errno; rc 892 lib/common/mainloop.c return rc; rc 923 lib/common/mainloop.c int rc = pcmk__add_mainloop_ipc(ipc, priority, userdata, callbacks, rc 926 lib/common/mainloop.c if (rc != pcmk_rc_ok) { rc 929 lib/common/mainloop.c name, pcmk_rc_str(rc)); rc 932 lib/common/mainloop.c if (rc > 0) { rc 933 lib/common/mainloop.c errno = rc; rc 1064 lib/common/mainloop.c int rc; rc 1067 lib/common/mainloop.c rc = kill(child->pid, SIGKILL); rc 1070 lib/common/mainloop.c rc = kill(-child->pid, SIGKILL); rc 1073 lib/common/mainloop.c if (rc < 0) { rc 1086 lib/common/mainloop.c int rc = 0; rc 1094 lib/common/mainloop.c rc = child_kill_helper(child); rc 1095 lib/common/mainloop.c if (rc == -ESRCH) { rc 1110 lib/common/mainloop.c int rc = 0; rc 1117 lib/common/mainloop.c rc = waitpid(child->pid, &status, flags); rc 1118 lib/common/mainloop.c if (rc == 0) { // WNOHANG in flags, and child status is not available rc 1123 lib/common/mainloop.c } else if (rc != child->pid) { rc 1205 lib/common/mainloop.c int waitflags = 0, rc = 0; rc 1218 lib/common/mainloop.c rc = child_kill_helper(match); rc 1219 lib/common/mainloop.c if(rc == -ESRCH) { rc 1229 lib/common/mainloop.c } else if(rc != 0) { rc 120 lib/common/nvpair.c int rc = 0; rc 127 lib/common/nvpair.c rc = strcmp(pair_a->name, pair_b->name); rc 128 lib/common/nvpair.c if (rc < 0) { rc 130 lib/common/nvpair.c } else if (rc > 0) { rc 502 lib/common/nvpair.c int rc = pcmk__scan_ll(value, &value_ll, 0LL); rc 505 lib/common/nvpair.c if (rc != pcmk_rc_ok) { rc 508 lib/common/nvpair.c name, value, pcmk_rc_str(rc)); rc 540 lib/common/nvpair.c int rc = pcmk_rc_ok; rc 557 lib/common/nvpair.c rc = pcmk__scan_ll(value, &value_ll, default_value); rc 560 lib/common/nvpair.c if (rc == pcmk_rc_ok) { rc 561 lib/common/nvpair.c rc = pcmk_rc_bad_input; rc 568 lib/common/nvpair.c return rc; rc 590 lib/common/nvpair.c int rc = pcmk__scan_ll(value, dest, PCMK__PARSE_INT_DEFAULT); rc 592 lib/common/nvpair.c if (rc == pcmk_rc_ok) { rc 597 lib/common/nvpair.c name, value, pcmk_rc_str(rc)); rc 618 lib/common/nvpair.c int rc = pcmk_rc_ok; rc 623 lib/common/nvpair.c rc = pcmk__scan_ll(value, &value_ll, 0LL); rc 624 lib/common/nvpair.c if (rc != pcmk_rc_ok) { rc 627 lib/common/nvpair.c name, value, pcmk_rc_str(rc)); rc 996 lib/common/nvpair.c int ret, rc; rc 1010 lib/common/nvpair.c rc = crm_str_to_boolean(xml_value, &ret); rc 1011 lib/common/nvpair.c if (rc == 1) { rc 1023 lib/common/nvpair.c int rc; rc 1025 lib/common/nvpair.c rc = pcmk__xe_get_bool_attr(node, name, &value); rc 1026 lib/common/nvpair.c return rc == pcmk_rc_ok && value == true; rc 1534 lib/common/options.c int rc = pcmk__output_new(&tmp_out, "xml", "/dev/null", NULL); rc 1536 lib/common/options.c if (rc != pcmk_rc_ok) { rc 1537 lib/common/options.c return rc; rc 116 lib/common/output.c int rc = pcmk__bare_output_new(out, fmt_name, filename, argv); rc 118 lib/common/output.c if (rc == pcmk_rc_ok) { rc 123 lib/common/output.c return rc; rc 176 lib/common/output.c int rc = pcmk_rc_ok; rc 189 lib/common/output.c rc = fn(out, args); rc 192 lib/common/output.c return rc; rc 293 lib/common/output.c int rc = pcmk_rc_ok; rc 301 lib/common/output.c rc = pcmk__output_new(out, "log", NULL, (char **) argv); rc 302 lib/common/output.c if ((rc != pcmk_rc_ok) || (*out == NULL)) { rc 304 lib/common/output.c pcmk_rc_str(rc)); rc 305 lib/common/output.c return rc; rc 322 lib/common/output.c int rc = pcmk_rc_ok; rc 330 lib/common/output.c rc = pcmk__output_new(out, "text", filename, (char **) argv); rc 331 lib/common/output.c if ((rc != pcmk_rc_ok) || (*out == NULL)) { rc 333 lib/common/output.c pcmk_rc_str(rc)); rc 334 lib/common/output.c return rc; rc 472 lib/common/output_text.c int rc = 0; rc 479 lib/common/output_text.c rc = tcgetattr(0, &settings); rc 480 lib/common/output_text.c if (rc == 0) { rc 483 lib/common/output_text.c rc = tcsetattr(0, TCSANOW, &settings); rc 487 lib/common/output_text.c if (rc == 0) { rc 496 lib/common/output_text.c rc = scanf("%ms", dest); rc 499 lib/common/output_text.c rc = scanf("%1023s", *dest); rc 504 lib/common/output_text.c if (rc < 1) { rc 930 lib/common/patchset.c int rc = pcmk_rc_ok; rc 943 lib/common/patchset.c CRM_CHECK(root_nodes_seen == 0, rc = FALSE); rc 953 lib/common/patchset.c rc = ENOTUNIQ; rc 958 lib/common/patchset.c if (rc == pcmk_rc_ok) { rc 963 lib/common/patchset.c CRM_CHECK(root_nodes_seen == 0, rc = FALSE); rc 974 lib/common/patchset.c rc = ENOTUNIQ; rc 980 lib/common/patchset.c return rc; rc 1037 lib/common/patchset.c int rc; rc 1054 lib/common/patchset.c rc = sscanf(current, "/%[^/]%s", section, remainder); rc 1055 lib/common/patchset.c if (rc > 0) { rc 1063 lib/common/patchset.c if ((rc == 1) && (target_position >= 0)) { rc 1086 lib/common/patchset.c } while ((rc == 2) && target); rc 1141 lib/common/patchset.c int rc = pcmk_rc_ok; rc 1174 lib/common/patchset.c rc = pcmk_rc_diff_failed; rc 1205 lib/common/patchset.c rc = ENOMSG; rc 1220 lib/common/patchset.c rc = pcmk_rc_diff_failed; rc 1308 lib/common/patchset.c rc = pcmk_rc_diff_failed; rc 1314 lib/common/patchset.c return rc; rc 1321 lib/common/patchset.c int rc = pcmk_ok; rc 1326 lib/common/patchset.c return rc; rc 1332 lib/common/patchset.c rc = pcmk_rc2legacy(xml_patch_version_check(xml, patchset)); rc 1333 lib/common/patchset.c if (rc != pcmk_ok) { rc 1334 lib/common/patchset.c return rc; rc 1346 lib/common/patchset.c if (rc == pcmk_ok) { rc 1351 lib/common/patchset.c rc = pcmk_rc2legacy(apply_v1_patchset(xml, patchset)); rc 1354 lib/common/patchset.c rc = pcmk_rc2legacy(apply_v2_patchset(xml, patchset)); rc 1358 lib/common/patchset.c rc = -EINVAL; rc 1362 lib/common/patchset.c if ((rc == pcmk_ok) && (digest != NULL)) { rc 1370 lib/common/patchset.c rc = -pcmk_err_diff_failed; rc 1388 lib/common/patchset.c return rc; rc 43 lib/common/patchset_display.c int rc = pcmk_rc_no_output; rc 54 lib/common/patchset_display.c rc = out->info(out, "Diff: +++ %d.%d.%d %s", rc 58 lib/common/patchset_display.c rc = out->info(out, "Local-only Change: %d.%d.%d", rc 62 lib/common/patchset_display.c return rc; rc 97 lib/common/patchset_display.c int rc = pcmk_rc_no_output; rc 104 lib/common/patchset_display.c rc = pcmk__output_select_rc(rc, temp_rc); rc 106 lib/common/patchset_display.c return rc; rc 139 lib/common/patchset_display.c int rc = xml_show_patchset_header(out, patchset); rc 152 lib/common/patchset_display.c rc = pcmk__output_select_rc(rc, temp_rc); rc 157 lib/common/patchset_display.c rc = pcmk__output_select_rc(rc, out->info(out, " --- ")); rc 168 lib/common/patchset_display.c rc = pcmk__output_select_rc(rc, temp_rc); rc 173 lib/common/patchset_display.c rc = pcmk__output_select_rc(rc, out->info(out, " +++ ")); rc 177 lib/common/patchset_display.c return rc; rc 197 lib/common/patchset_display.c int rc = xml_show_patchset_header(out, patchset); rc 217 lib/common/patchset_display.c rc = pcmk__output_select_rc(rc, temp_rc); rc 228 lib/common/patchset_display.c rc = pcmk__output_select_rc(rc, temp_rc); rc 237 lib/common/patchset_display.c rc = pcmk__output_select_rc(rc, temp_rc); rc 270 lib/common/patchset_display.c rc = pcmk__output_select_rc(rc, temp_rc); rc 277 lib/common/patchset_display.c rc = pcmk__output_select_rc(rc, temp_rc); rc 290 lib/common/patchset_display.c rc = pcmk__output_select_rc(rc, temp_rc); rc 294 lib/common/patchset_display.c return rc; rc 475 lib/common/patchset_display.c int rc = pcmk_rc_no_output; rc 508 lib/common/patchset_display.c rc = xml_show_patchset_v1(out, patchset, rc 512 lib/common/patchset_display.c rc = xml_show_patchset_v1(out, patchset, pcmk__xml_fmt_pretty); rc 516 lib/common/patchset_display.c rc = xml_show_patchset_v2(out, patchset); rc 520 lib/common/patchset_display.c rc = pcmk_rc_bad_xml_patch; rc 525 lib/common/patchset_display.c out->finish(out, pcmk_rc2exitc(rc), true, NULL); rc 26 lib/common/pid.c int rc = 0; rc 32 lib/common/pid.c rc = kill(pid, 0); rc 33 lib/common/pid.c if ((rc < 0) && (errno == ESRCH)) { rc 39 lib/common/pid.c if (rc == 0) { rc 42 lib/common/pid.c rc = errno; rc 45 lib/common/pid.c (long long) pid, pcmk_rc_str(rc)); rc 48 lib/common/pid.c return rc; /* errno != ESRCH */ rc 53 lib/common/pid.c bool checked_through_kill = (rc == 0); rc 56 lib/common/pid.c rc = pcmk__procfs_pid2path(pid, exe_path, sizeof(exe_path)); rc 57 lib/common/pid.c if (rc != pcmk_rc_ok) { rc 58 lib/common/pid.c if (rc != EACCES) { rc 65 lib/common/pid.c if (rc == EACCES) { rc 68 lib/common/pid.c (long long) pid, pcmk_rc_str(rc), rc); rc 72 lib/common/pid.c (long long) pid, pcmk_rc_str(rc), rc); rc 76 lib/common/pid.c if (rc == EACCES) { rc 85 lib/common/pid.c rc = snprintf(myexe_path, sizeof(myexe_path), CRM_DAEMON_DIR"/%s", rc 88 lib/common/pid.c rc = snprintf(myexe_path, sizeof(myexe_path), "%s", daemon); rc 91 lib/common/pid.c if (rc > 0 && rc < sizeof(myexe_path) && !strcmp(exe_path, myexe_path)) { rc 115 lib/common/pid.c int rc = pcmk_rc_ok; rc 133 lib/common/pid.c rc = errno; rc 138 lib/common/pid.c rc = sscanf(buf, "%lld", &pid_read); rc 140 lib/common/pid.c if (rc > 0) { rc 142 lib/common/pid.c rc = ESRCH; rc 144 lib/common/pid.c rc = pcmk_rc_ok; rc 148 lib/common/pid.c } else if (rc == 0) { rc 149 lib/common/pid.c rc = ENODATA; rc 151 lib/common/pid.c rc = errno; rc 156 lib/common/pid.c return rc; rc 176 lib/common/pid.c int rc = pcmk__read_pidfile(filename, &pidfile_pid); rc 182 lib/common/pid.c if (rc != pcmk_rc_ok) { rc 185 lib/common/pid.c rc = ENOENT; rc 189 lib/common/pid.c rc = pcmk_rc_ok; rc 194 lib/common/pid.c rc = ENOENT; rc 198 lib/common/pid.c rc = EEXIST; rc 201 lib/common/pid.c return rc; rc 218 lib/common/pid.c int rc = 0; rc 221 lib/common/pid.c rc = pcmk__pidfile_matches(filename, 0, name, NULL); rc 222 lib/common/pid.c if ((rc != pcmk_rc_ok) && (rc != ENOENT)) { rc 224 lib/common/pid.c return rc; rc 233 lib/common/pid.c rc = write(fd, buf, LOCKSTRLEN); rc 236 lib/common/pid.c if (rc != LOCKSTRLEN) { rc 241 lib/common/pid.c rc = pcmk__pidfile_matches(filename, mypid, name, NULL); rc 242 lib/common/pid.c if (rc != pcmk_rc_ok) { rc 246 lib/common/pid.c return rc; rc 134 lib/common/remote.c int rc = pcmk_rc_ok; rc 140 lib/common/remote.c rc = gnutls_handshake(*remote->tls_session); rc 142 lib/common/remote.c switch (rc) { rc 144 lib/common/remote.c rc = pcmk_rc_ok; rc 149 lib/common/remote.c rc = EAGAIN; rc 154 lib/common/remote.c *gnutls_rc = rc; rc 157 lib/common/remote.c rc = EPROTO; rc 161 lib/common/remote.c return rc; rc 170 lib/common/remote.c int rc = pcmk__tls_client_try_handshake(remote, gnutls_rc); rc 172 lib/common/remote.c if (rc != EAGAIN) { rc 173 lib/common/remote.c return rc; rc 247 lib/common/remote.c int rc = GNUTLS_E_SUCCESS; rc 268 lib/common/remote.c rc = GNUTLS_E_MEMORY_ERROR; rc 272 lib/common/remote.c rc = gnutls_init(session, conn_type); rc 273 lib/common/remote.c if (rc != GNUTLS_E_SUCCESS) { rc 281 lib/common/remote.c rc = gnutls_priority_set_direct(*session, prio, NULL); rc 282 lib/common/remote.c if (rc != GNUTLS_E_SUCCESS) { rc 292 lib/common/remote.c rc = gnutls_credentials_set(*session, cred_type, credentials); rc 293 lib/common/remote.c if (rc != GNUTLS_E_SUCCESS) { rc 304 lib/common/remote.c gnutls_strerror(rc), rc, prio); rc 330 lib/common/remote.c int rc = GNUTLS_E_SUCCESS; rc 333 lib/common/remote.c rc = gnutls_dh_params_init(dh_params); rc 334 lib/common/remote.c if (rc != GNUTLS_E_SUCCESS) { rc 341 lib/common/remote.c rc = GNUTLS_E_DH_PRIME_UNACCEPTABLE; rc 348 lib/common/remote.c rc = gnutls_dh_params_generate2(*dh_params, dh_bits); rc 349 lib/common/remote.c if (rc != GNUTLS_E_SUCCESS) { rc 357 lib/common/remote.c CRM_XS " rc=%d", gnutls_strerror(rc), rc); rc 375 lib/common/remote.c int rc = 0; rc 381 lib/common/remote.c rc = gnutls_handshake(*client->remote->tls_session); rc 382 lib/common/remote.c } while (rc == GNUTLS_E_INTERRUPTED); rc 384 lib/common/remote.c if (rc == GNUTLS_E_AGAIN) { rc 389 lib/common/remote.c } else if (rc != GNUTLS_E_SUCCESS) { rc 391 lib/common/remote.c CRM_XS " rc=%d", gnutls_strerror(rc), rc); rc 456 lib/common/remote.c int rc = errno; rc 466 lib/common/remote.c pcmk_rc_str(rc), rc, sock); rc 467 lib/common/remote.c return rc; rc 489 lib/common/remote.c int rc = pcmk_rc_ok; rc 491 lib/common/remote.c for (int lpc = 0; (lpc < iovs) && (rc == pcmk_rc_ok); lpc++) { rc 494 lib/common/remote.c rc = send_tls(remote->tls_session, &(iov[lpc])); rc 499 lib/common/remote.c rc = send_plaintext(remote->tcp_socket, &(iov[lpc])); rc 501 lib/common/remote.c rc = ESOCKTNOSUPPORT; rc 504 lib/common/remote.c return rc; rc 519 lib/common/remote.c int rc = pcmk_rc_ok; rc 549 lib/common/remote.c rc = remote_send_iovs(remote, iov, 2); rc 550 lib/common/remote.c if (rc != pcmk_rc_ok) { rc 552 lib/common/remote.c pcmk_rc_str(rc), rc); rc 557 lib/common/remote.c return rc; rc 581 lib/common/remote.c int rc = 0; rc 589 lib/common/remote.c rc = BZ2_bzBuffToBuffDecompress(uncompressed + header->payload_offset, &size_u, rc 592 lib/common/remote.c rc = pcmk__bzlib2rc(rc); rc 594 lib/common/remote.c if (rc != pcmk_rc_ok && header->version > REMOTE_MSG_VERSION) { rc 600 lib/common/remote.c } else if (rc != pcmk_rc_ok) { rc 602 lib/common/remote.c pcmk_rc_str(rc), rc); rc 670 lib/common/remote.c int rc = 0; rc 696 lib/common/remote.c rc = poll(&fds, 1, timeout); rc 697 lib/common/remote.c } while (rc < 0 && errno == EINTR); rc 699 lib/common/remote.c if (rc < 0) { rc 702 lib/common/remote.c return (rc == 0)? ETIME : pcmk_rc_ok; rc 720 lib/common/remote.c int rc = pcmk_rc_ok; rc 745 lib/common/remote.c rc = EINTR; rc 747 lib/common/remote.c rc = EAGAIN; rc 751 lib/common/remote.c rc = EIO; rc 762 lib/common/remote.c rc = errno; rc 781 lib/common/remote.c } else if ((rc == EINTR) || (rc == EAGAIN)) { rc 783 lib/common/remote.c pcmk_rc_str(rc), rc); rc 793 lib/common/remote.c pcmk_rc_str(rc), rc); rc 826 lib/common/remote.c int rc = pcmk_rc_ok; rc 841 lib/common/remote.c rc = pcmk__remote_ready(remote, remaining_timeout); rc 843 lib/common/remote.c if (rc == ETIME) { rc 846 lib/common/remote.c return rc; rc 848 lib/common/remote.c } else if (rc != pcmk_rc_ok) { rc 850 lib/common/remote.c CRM_XS " rc=%d", pcmk_rc_str(rc), rc); rc 853 lib/common/remote.c rc = pcmk__read_available_remote_data(remote); rc 854 lib/common/remote.c if (rc == pcmk_rc_ok) { rc 855 lib/common/remote.c return rc; rc 856 lib/common/remote.c } else if (rc == EAGAIN) { rc 860 lib/common/remote.c pcmk_rc_str(rc), rc); rc 865 lib/common/remote.c if ((rc == ENOTCONN) || (rc == ESOCKTNOSUPPORT)) { rc 866 lib/common/remote.c return rc; rc 879 lib/common/remote.c void (*callback) (void *userdata, int rc, int sock); rc 887 lib/common/remote.c int rc; rc 894 lib/common/remote.c rc = pcmk_rc_ok; rc 902 lib/common/remote.c rc = select(cb_data->sock + 1, &rset, &wset, NULL, &ts); rc 904 lib/common/remote.c if (rc < 0) { // select() error rc 905 lib/common/remote.c rc = errno; rc 906 lib/common/remote.c if ((rc == EINPROGRESS) || (rc == EAGAIN)) { rc 910 lib/common/remote.c rc = ETIMEDOUT; rc 914 lib/common/remote.c cb_data->sock, pcmk_rc_str(rc), rc); rc 916 lib/common/remote.c } else if (rc == 0) { // select() timeout rc 922 lib/common/remote.c rc = ETIMEDOUT; rc 934 lib/common/remote.c rc = errno; rc 936 lib/common/remote.c cb_data->sock, pcmk_rc_str(rc), rc); rc 938 lib/common/remote.c rc = error; rc 940 lib/common/remote.c cb_data->sock, pcmk_rc_str(rc), rc); rc 942 lib/common/remote.c rc = pcmk_rc_ok; rc 948 lib/common/remote.c rc = EAGAIN; rc 952 lib/common/remote.c if (rc == pcmk_rc_ok) { rc 960 lib/common/remote.c cb_data->callback(cb_data->userdata, rc, cb_data->sock); rc 987 lib/common/remote.c void (*callback) (void *userdata, int rc, int sock)) rc 989 lib/common/remote.c int rc = 0; rc 994 lib/common/remote.c rc = pcmk__set_nonblocking(sock); rc 995 lib/common/remote.c if (rc != pcmk_rc_ok) { rc 997 lib/common/remote.c pcmk_rc_str(rc), rc); rc 998 lib/common/remote.c return rc; rc 1001 lib/common/remote.c rc = connect(sock, addr, addrlen); rc 1002 lib/common/remote.c if (rc < 0 && (errno != EINPROGRESS) && (errno != EAGAIN)) { rc 1003 lib/common/remote.c rc = errno; rc 1005 lib/common/remote.c pcmk_rc_str(rc), rc); rc 1006 lib/common/remote.c return rc; rc 1015 lib/common/remote.c if (rc == 0) { rc 1060 lib/common/remote.c int rc = connect(sock, addr, addrlen); rc 1062 lib/common/remote.c if (rc < 0) { rc 1063 lib/common/remote.c rc = errno; rc 1065 lib/common/remote.c pcmk_rc_str(rc), rc); rc 1066 lib/common/remote.c return rc; rc 1069 lib/common/remote.c rc = pcmk__set_nonblocking(sock); rc 1070 lib/common/remote.c if (rc != pcmk_rc_ok) { rc 1072 lib/common/remote.c pcmk_rc_str(rc), rc); rc 1073 lib/common/remote.c return rc; rc 1098 lib/common/remote.c void (*callback) (void *userdata, int rc, int sock)) rc 1105 lib/common/remote.c int rc; rc 1116 lib/common/remote.c rc = getaddrinfo(server, NULL, &hints, &res); rc 1117 lib/common/remote.c rc = pcmk__gaierror2rc(rc); rc 1119 lib/common/remote.c if (rc != pcmk_rc_ok) { rc 1121 lib/common/remote.c server, pcmk_rc_str(rc)); rc 1127 lib/common/remote.c rc = ENOTCONN; rc 1146 lib/common/remote.c rc = errno; rc 1148 lib/common/remote.c "%s " CRM_XS " rc=%d", server, port, pcmk_rc_str(rc), rc); rc 1178 lib/common/remote.c rc = ENOTCONN; rc 1187 lib/common/remote.c return rc; rc 1233 lib/common/remote.c int rc; rc 1245 lib/common/remote.c rc = errno; rc 1247 lib/common/remote.c CRM_XS " rc=%d", pcmk_rc_str(rc), rc); rc 1248 lib/common/remote.c return rc; rc 1253 lib/common/remote.c rc = pcmk__set_nonblocking(*csock); rc 1254 lib/common/remote.c if (rc != pcmk_rc_ok) { rc 1256 lib/common/remote.c pcmk_rc_str(rc), rc); rc 1259 lib/common/remote.c return rc; rc 1269 lib/common/remote.c rc = setsockopt(*csock, SOL_TCP, TCP_USER_TIMEOUT, rc 1271 lib/common/remote.c if (rc < 0) { rc 1272 lib/common/remote.c rc = errno; rc 1274 lib/common/remote.c "%s " CRM_XS " rc=%d", optval, pcmk_rc_str(rc), rc); rc 1277 lib/common/remote.c return rc; rc 1282 lib/common/remote.c return rc; rc 28 lib/common/results.c G_DEFINE_QUARK(pcmk-rc-error-quark, pcmk__rc_error) rc 125 lib/common/results.c pcmk_errorname(int rc) rc 127 lib/common/results.c rc = abs(rc); rc 128 lib/common/results.c switch (rc) { rc 145 lib/common/results.c default: return pcmk_rc_name(rc); // system errno rc 151 lib/common/results.c pcmk_strerror(int rc) rc 153 lib/common/results.c return pcmk_rc_str(pcmk_legacy2rc(rc)); rc 343 lib/common/results.c pcmk_rc_name(int rc) rc 345 lib/common/results.c if ((rc <= pcmk_rc_error) && ((pcmk_rc_error - rc) < pcmk__n_rc)) { rc 346 lib/common/results.c return pcmk__rcs[pcmk_rc_error - rc].name; rc 348 lib/common/results.c switch (rc) { rc 503 lib/common/results.c pcmk_rc_str(int rc) rc 505 lib/common/results.c if (rc == pcmk_rc_ok) { rc 508 lib/common/results.c if ((rc <= pcmk_rc_error) && ((pcmk_rc_error - rc) < pcmk__n_rc)) { rc 509 lib/common/results.c return pcmk__rcs[pcmk_rc_error - rc].desc; rc 511 lib/common/results.c if (rc < 0) { rc 516 lib/common/results.c switch (rc) { rc 541 lib/common/results.c default: return strerror(rc); rc 548 lib/common/results.c pcmk_rc2legacy(int rc) rc 550 lib/common/results.c if (rc >= 0) { rc 551 lib/common/results.c return -rc; // OK or system errno rc 553 lib/common/results.c if ((rc <= pcmk_rc_error) && ((pcmk_rc_error - rc) < pcmk__n_rc)) { rc 554 lib/common/results.c return pcmk__rcs[pcmk_rc_error - rc].legacy_rc; rc 704 lib/common/results.c pcmk_rc2exitc(int rc) rc 706 lib/common/results.c switch (rc) { rc 832 lib/common/results.c pcmk_rc2ocf(int rc) rc 834 lib/common/results.c switch (rc) { rc 938 lib/common/results.c crm_exit(crm_exit_t rc) rc 943 lib/common/results.c if ((((int) rc) < 0) || (((int) rc) > CRM_EX_MAX)) { rc 944 lib/common/results.c rc = CRM_EX_ERROR; rc 953 lib/common/results.c crm_info("Exiting %s " CRM_XS " with status %d", crm_system_name, rc); rc 956 lib/common/results.c crm_trace("Exiting with status %d", rc); rc 961 lib/common/results.c exit(rc); rc 1217 lib/common/results.c bz2_strerror(int rc) rc 1220 lib/common/results.c switch (rc) { rc 1250 lib/common/results.c crm_errno2exit(int rc) rc 1252 lib/common/results.c return pcmk_rc2exitc(pcmk_legacy2rc(rc)); rc 150 lib/common/rules.c int rc = pcmk_rc_ok; rc 168 lib/common/rules.c rc = pcmk_rc_before_range; rc 171 lib/common/rules.c rc = pcmk_rc_after_range; rc 176 lib/common/rules.c id, attr, pcmk__s(range, ""), value, pcmk_rc_str(rc)); rc 177 lib/common/rules.c return rc; rc 257 lib/common/rules.c int rc = check_range(date_spec, id, ranges[i].attr, ranges[i].value); rc 259 lib/common/rules.c if (rc != pcmk_rc_ok) { rc 260 lib/common/rules.c return rc; rc 276 lib/common/rules.c rc = sub_rc; \ rc 296 lib/common/rules.c int rc = pcmk_rc_ok; rc 327 lib/common/rules.c return rc; rc 540 lib/common/rules.c int rc = pcmk_rc_undetermined; rc 560 lib/common/rules.c rc = evaluate_in_range(date_expression, id, now, next_change); rc 577 lib/common/rules.c rc = pcmk__evaluate_date_spec(date_spec, now); rc 581 lib/common/rules.c rc = evaluate_gt(date_expression, id, now, next_change); rc 584 lib/common/rules.c rc = evaluate_lt(date_expression, id, now, next_change); rc 596 lib/common/rules.c id, op, pcmk_rc_str(rc), rc); rc 597 lib/common/rules.c return rc; rc 1051 lib/common/rules.c int rc = pcmk_rc_ok; rc 1101 lib/common/rules.c rc = pcmk_rc_unpack_error; rc 1157 lib/common/rules.c rc = evaluate_attr_comparison(actual, reference, type, comparison); rc 1162 lib/common/rules.c id, pcmk_rc_str(rc), attr, op); rc 1168 lib/common/rules.c id, pcmk_rc_str(rc), attr, op, pcmk__s(reference, ""), rc 1175 lib/common/rules.c return rc; rc 1353 lib/common/rules.c int rc = pcmk__evaluate_date_expression(condition, rc 1357 lib/common/rules.c return (rc == pcmk_rc_within_range)? pcmk_rc_ok : rc; rc 1390 lib/common/rules.c int rc = pcmk_rc_ok; rc 1424 lib/common/rules.c rc = pcmk_rc_op_unsatisfied; rc 1446 lib/common/rules.c rc = pcmk_rc_ok; // Any pass is final for "or" rc 1450 lib/common/rules.c rc = pcmk_rc_op_unsatisfied; // Any failure is final for "and" rc 1464 lib/common/rules.c crm_trace("Rule %s is %ssatisfied", id, ((rc == pcmk_rc_ok)? "" : "not ")); rc 1465 lib/common/rules.c return rc; rc 1491 lib/common/rules.c int rc = pcmk_rc_ok; rc 1507 lib/common/rules.c rc = pcmk_evaluate_rule(rule, rule_input, next_change); rc 1508 lib/common/rules.c if (rc == pcmk_rc_ok) { rc 1512 lib/common/rules.c return rc; rc 167 lib/common/schemas.c int rc = 0; rc 181 lib/common/schemas.c rc = 1; rc 184 lib/common/schemas.c return rc; rc 286 lib/common/schemas.c int rc = pcmk_rc_ok; rc 339 lib/common/schemas.c rc = ENOENT; rc 348 lib/common/schemas.c return rc; rc 520 lib/common/schemas.c int rc = 0; rc 570 lib/common/schemas.c rc = xmlRelaxNGValidateDoc(ctx->valid, doc); rc 571 lib/common/schemas.c if (rc > 0) { rc 574 lib/common/schemas.c } else if (rc < 0) { rc 749 lib/common/schemas.c bool rc, sl_backup = silent_logging; rc 751 lib/common/schemas.c rc = validate_with(xml, schema, (xmlRelaxNGValidityErrorFunc) xml_log, GUINT_TO_POINTER(LOG_ERR)); rc 753 lib/common/schemas.c return rc; rc 1152 lib/common/schemas.c int rc = pcmk_rc_ok; rc 1201 lib/common/schemas.c rc = pcmk_rc_schema_validation; rc 1206 lib/common/schemas.c rc = pcmk_rc_ok; rc 1227 lib/common/schemas.c rc = pcmk_rc_transform_failed; rc 1244 lib/common/schemas.c return rc; rc 1265 lib/common/schemas.c int rc = pcmk_rc_ok; rc 1345 lib/common/schemas.c rc = pcmk_rc_transform_failed; rc 1385 lib/common/schemas.c return rc; rc 1472 lib/common/schemas.c int rc = pcmk_rc_ok; rc 1481 lib/common/schemas.c rc = pcmk__file_contents(path, contents); rc 1484 lib/common/schemas.c return rc; rc 1494 lib/common/schemas.c int rc = pcmk_rc_ok; rc 1510 lib/common/schemas.c rc = read_file_contents(path, &contents); rc 1511 lib/common/schemas.c if (rc != pcmk_rc_ok || contents == NULL) { rc 1512 lib/common/schemas.c crm_warn("Could not read schema file %s: %s", file, pcmk_rc_str(rc)); rc 1651 lib/common/schemas.c int rc = pcmk__update_schema(xml, get_schema_name(max), transform, to_logs); rc 1653 lib/common/schemas.c if ((best != NULL) && (xml != NULL) && (rc == pcmk_rc_ok)) { rc 1663 lib/common/schemas.c return pcmk_rc2legacy(rc); rc 1669 lib/common/schemas.c bool rc = pcmk__validate_xml(xml_blob, validation, rc 1672 lib/common/schemas.c return rc? TRUE : FALSE; rc 1712 lib/common/schemas.c gboolean rc = FALSE; rc 1725 lib/common/schemas.c rc = pcmk__validate_xml(xml, NULL, NULL, NULL); rc 1731 lib/common/schemas.c return rc? TRUE : FALSE; rc 1737 lib/common/schemas.c int rc = pcmk__update_configured_schema(xml, to_logs); rc 1751 lib/common/schemas.c return (rc == pcmk_rc_ok)? TRUE: FALSE; rc 41 lib/common/scores.c int rc = pcmk_rc_ok; rc 69 lib/common/scores.c rc = pcmk__scan_ll(score_s, &score_ll, default_score); rc 70 lib/common/scores.c if ((rc == EOVERFLOW) || (rc == ERANGE)) { rc 76 lib/common/scores.c rc = pcmk_rc_ok; rc 83 lib/common/scores.c if (rc != pcmk_rc_ok) { rc 100 lib/common/scores.c return rc; rc 47 lib/common/strings.c int rc = pcmk_rc_ok; rc 53 lib/common/strings.c rc = EOVERFLOW; rc 58 lib/common/strings.c rc = EINVAL; rc 64 lib/common/strings.c rc = errno; rc 67 lib/common/strings.c "%s", text, default_value, pcmk_rc_str(rc)); rc 74 lib/common/strings.c errno = rc; rc 82 lib/common/strings.c return rc; rc 99 lib/common/strings.c int rc = pcmk_rc_ok; rc 102 lib/common/strings.c rc = scan_ll(text, &local_result, default_value, NULL); rc 103 lib/common/strings.c if (rc != pcmk_rc_ok) { rc 110 lib/common/strings.c return rc; rc 128 lib/common/strings.c int rc; rc 131 lib/common/strings.c rc = pcmk__scan_ll(text, &result_ll, (long long) minimum); rc 140 lib/common/strings.c rc = EOVERFLOW; rc 146 lib/common/strings.c return rc; rc 163 lib/common/strings.c int rc = pcmk__scan_ll(text, &port_ll, -1LL); rc 165 lib/common/strings.c if (rc != pcmk_rc_ok) { rc 166 lib/common/strings.c crm_warn("'%s' is not a valid port: %s", text, pcmk_rc_str(rc)); rc 172 lib/common/strings.c rc = (port_ll < 0LL)? pcmk_rc_before_range : pcmk_rc_after_range; rc 178 lib/common/strings.c return rc; rc 204 lib/common/strings.c int rc = pcmk_rc_ok; rc 213 lib/common/strings.c rc = EINVAL; rc 233 lib/common/strings.c rc = EOVERFLOW; rc 236 lib/common/strings.c rc = pcmk_rc_underflow; rc 244 lib/common/strings.c rc = errno; rc 250 lib/common/strings.c pcmk_rc_str(rc)); rc 254 lib/common/strings.c rc = EINVAL; rc 276 lib/common/strings.c rc = pcmk_rc_underflow; rc 298 lib/common/strings.c return rc; rc 318 lib/common/strings.c int rc = pcmk_rc_ok; rc 331 lib/common/strings.c rc = pcmk__scan_ll(value, &value_ll, 0LL); rc 332 lib/common/strings.c if (rc != pcmk_rc_ok) { rc 334 lib/common/strings.c "valid integer: %s", default_val, key, value, pcmk_rc_str(rc)); rc 335 lib/common/strings.c return rc; rc 367 lib/common/strings.c int rc = pcmk_rc_ok; rc 378 lib/common/strings.c rc = scan_ll(input, &msec, PCMK__PARSE_INT_DEFAULT, &units); rc 380 lib/common/strings.c if ((rc == EOVERFLOW) && (msec > 0)) { rc 383 lib/common/strings.c } else if ((rc != pcmk_rc_ok) || (msec < 0)) { rc 385 lib/common/strings.c input, ((rc == pcmk_rc_ok)? "Negative" : pcmk_rc_str(rc))); rc 465 lib/common/strings.c int rc = pcmk_rc_ok; rc 489 lib/common/strings.c rc = EINVAL; rc 496 lib/common/strings.c return rc; rc 852 lib/common/strings.c int rc; rc 871 lib/common/strings.c rc = BZ2_bzBuffToBuffCompress(compressed, result_len, uncompressed, length, rc 873 lib/common/strings.c rc = pcmk__bzlib2rc(rc); rc 877 lib/common/strings.c if (rc != pcmk_rc_ok) { rc 879 lib/common/strings.c length, pcmk_rc_str(rc), rc); rc 881 lib/common/strings.c return rc; rc 918 lib/common/strings.c int rc = pcmk_rc_ok; rc 936 lib/common/strings.c int rc = scan_ll(srcstring+1, end, PCMK__PARSE_INT_DEFAULT, &remainder); rc 938 lib/common/strings.c if (rc != pcmk_rc_ok || *remainder != '\0') { rc 945 lib/common/strings.c rc = scan_ll(srcstring, start, PCMK__PARSE_INT_DEFAULT, &remainder); rc 946 lib/common/strings.c if (rc != pcmk_rc_ok) { rc 947 lib/common/strings.c return rc; rc 953 lib/common/strings.c int rc = scan_ll(remainder+1, end, PCMK__PARSE_INT_DEFAULT, rc 956 lib/common/strings.c if (rc != pcmk_rc_ok) { rc 957 lib/common/strings.c return rc; rc 1041 lib/common/strings.c bool rc; rc 1044 lib/common/strings.c rc = str_any_of(s, ap, pcmk__str_casei); rc 1046 lib/common/strings.c return rc; rc 1065 lib/common/strings.c bool rc; rc 1068 lib/common/strings.c rc = str_any_of(s, ap, pcmk__str_none); rc 1070 lib/common/strings.c return rc; rc 1182 lib/common/strings.c int rc = 0; rc 1193 lib/common/strings.c rc = 1; rc 1196 lib/common/strings.c rc = regexec(&r_patt, s1, 0, NULL, 0); rc 1198 lib/common/strings.c if (rc != 0) { rc 1199 lib/common/strings.c rc = 1; rc 1202 lib/common/strings.c return rc; rc 26 lib/common/tests/nvpair/pcmk__xe_get_flags_test.c int rc = pcmk_rc_ok; rc 38 lib/common/tests/nvpair/pcmk__xe_get_flags_test.c rc = pcmk__xe_get_flags(xml, "attribute", &flags, DEFAULT_VALUE); rc 39 lib/common/tests/nvpair/pcmk__xe_get_flags_test.c assert_int_equal(rc, expected_rc); rc 48 lib/common/tests/nvpair/pcmk__xe_get_flags_test.c int rc = pcmk_rc_ok; rc 60 lib/common/tests/nvpair/pcmk__xe_get_flags_test.c rc = pcmk__xe_get_flags(xml, NULL, &flags, DEFAULT_VALUE); rc 61 lib/common/tests/nvpair/pcmk__xe_get_flags_test.c assert_int_equal(rc, EINVAL); rc 65 lib/common/tests/nvpair/pcmk__xe_get_flags_test.c rc = pcmk__xe_get_flags(NULL, NULL, &flags, DEFAULT_VALUE); rc 66 lib/common/tests/nvpair/pcmk__xe_get_flags_test.c assert_int_equal(rc, EINVAL); rc 75 lib/common/tests/nvpair/pcmk__xe_get_flags_test.c int rc = pcmk_rc_ok; rc 81 lib/common/tests/nvpair/pcmk__xe_get_flags_test.c rc = pcmk__xe_get_flags(NULL, "attribute", &flags, DEFAULT_VALUE); rc 82 lib/common/tests/nvpair/pcmk__xe_get_flags_test.c assert_int_equal(rc, pcmk_rc_ok); rc 25 lib/common/tests/schemas/crm_schema_init_test.c int rc = 0; rc 32 lib/common/tests/schemas/crm_schema_init_test.c rc = symlink(oldpath, newpath); rc 36 lib/common/tests/schemas/crm_schema_init_test.c return rc; rc 99 lib/common/tests/schemas/crm_schema_init_test.c int rc = 0; rc 106 lib/common/tests/schemas/crm_schema_init_test.c rc = rmtree(remote_schema_dir); rc 110 lib/common/tests/schemas/crm_schema_init_test.c return rc; rc 27 lib/common/tests/scores/pcmk_parse_score_test.c int rc = pcmk_parse_score(score_s, &score, default_score); rc 29 lib/common/tests/scores/pcmk_parse_score_test.c assert_int_equal(rc, expected_rc); rc 27 lib/common/tests/xml/pcmk__xe_get_score_test.c int rc = pcmk_rc_ok; rc 31 lib/common/tests/xml/pcmk__xe_get_score_test.c rc = pcmk__xe_get_score(xml, "test_attr", &score, default_score); rc 32 lib/common/tests/xml/pcmk__xe_get_score_test.c assert_int_equal(rc, expected_rc); rc 31 lib/common/unittest.c int rc; rc 38 lib/common/unittest.c rc = pcmk__xml2fd(fd, xml); rc 39 lib/common/unittest.c if (rc != pcmk_rc_ok) { rc 41 lib/common/unittest.c fail_msg("Could not write temp file: %s", pcmk_rc_str(rc)); rc 85 lib/common/utils.c int rc = pcmk_ok; rc 95 lib/common/utils.c rc = getpwnam_r(name, &pwd, buffer, PCMK__PW_BUFFER_LEN, &pwentry); rc 106 lib/common/utils.c rc = rc? -rc : -EINVAL; rc 107 lib/common/utils.c crm_info("User %s lookup: %s", name, pcmk_strerror(rc)); rc 111 lib/common/utils.c return rc; rc 128 lib/common/utils.c int rc = pcmk_ok; rc 131 lib/common/utils.c rc = crm_user_lookup(CRM_DAEMON_USER, &daemon_uid, &daemon_gid); rc 132 lib/common/utils.c if (rc == pcmk_ok) { rc 144 lib/common/utils.c return rc; rc 188 lib/common/utils.c int rc = 0; rc 222 lib/common/utils.c rc = -1; rc 226 lib/common/utils.c rc = 1; rc 245 lib/common/utils.c if (rc == 0) { rc 247 lib/common/utils.c } else if (rc < 0) { rc 249 lib/common/utils.c } else if (rc > 0) { rc 253 lib/common/utils.c return rc; rc 270 lib/common/utils.c int rc; rc 274 lib/common/utils.c rc = pcmk__pidfile_matches(pidfile, 1, name, &pid); rc 275 lib/common/utils.c if ((rc != pcmk_rc_ok) && (rc != ENOENT)) { rc 293 lib/common/utils.c rc = pcmk__lock_pidfile(pidfile, name); rc 294 lib/common/utils.c if (rc != pcmk_rc_ok) { rc 296 lib/common/utils.c pidfile, name, pcmk_rc_str(rc), rc); rc 298 lib/common/utils.c pidfile, name, pcmk_rc_str(rc), rc); rc 52 lib/common/watchdog.c int rc = pcmk_ok; rc 116 lib/common/watchdog.c rc = errno; rc 119 lib/common/watchdog.c (long long) ppid, pcmk_rc_str(rc), rc); rc 206 lib/common/watchdog.c int rc; rc 217 lib/common/watchdog.c rc = pcmk__pidfile_matches(pidfile, 0, sbd_path, &sbd_pid); rc 218 lib/common/watchdog.c if (rc == pcmk_rc_ok) { rc 619 lib/common/xml.c int rc = pcmk_rc_ok; rc 623 lib/common/xml.c rc = pcmk_parse_score(old_value, &old_value_i, 0); rc 624 lib/common/xml.c if (rc != pcmk_rc_ok) { rc 635 lib/common/xml.c rc = pcmk_parse_score(++v, &add, 0); rc 636 lib/common/xml.c if (rc != pcmk_rc_ok) { rc 2318 lib/common/xml.c int rc = handler(node, userdata); rc 2320 lib/common/xml.c if (rc != pcmk_rc_ok) { rc 2321 lib/common/xml.c return rc; rc 95 lib/common/xml_display.c int rc = pcmk_rc_no_output; rc 149 lib/common/xml_display.c rc = out->info(out, "%s%s%s", rc 155 lib/common/xml_display.c return rc; rc 166 lib/common/xml_display.c rc = pcmk__output_select_rc(rc, temp_rc); rc 175 lib/common/xml_display.c rc = pcmk__output_select_rc(rc, temp_rc); rc 178 lib/common/xml_display.c return rc; rc 232 lib/common/xml_display.c int rc = pcmk_rc_no_output; rc 239 lib/common/xml_display.c return rc; rc 246 lib/common/xml_display.c rc = show_xml_node(out, buffer, prefix, data, depth, options); rc 249 lib/common/xml_display.c return rc; rc 273 lib/common/xml_display.c int rc = pcmk_rc_no_output; rc 296 lib/common/xml_display.c rc = pcmk__xml_show(out, prefix, data, depth, rc 332 lib/common/xml_display.c rc = pcmk__output_select_rc(rc, temp_rc); rc 340 lib/common/xml_display.c rc = pcmk__output_select_rc(rc, temp_rc); rc 346 lib/common/xml_display.c return pcmk__output_select_rc(rc, temp_rc); rc 353 lib/common/xml_display.c rc = pcmk__output_select_rc(rc, temp_rc); rc 355 lib/common/xml_display.c return rc; rc 373 lib/common/xml_display.c int rc = pcmk_rc_no_output; rc 380 lib/common/xml_display.c return rc; rc 394 lib/common/xml_display.c rc = pcmk__output_select_rc(rc, temp_rc); rc 398 lib/common/xml_display.c return pcmk__output_select_rc(rc, temp_rc); rc 525 lib/common/xml_display.c int rc = pcmk_rc_ok; rc 538 lib/common/xml_display.c rc = pcmk__xml_show_changes(out, xml); rc 539 lib/common/xml_display.c out->finish(out, pcmk_rc2exitc(rc), true, NULL); rc 82 lib/common/xml_io.c int rc = pcmk_rc_ok; rc 92 lib/common/xml_io.c bz_file = BZ2_bzReadOpen(&rc, input, 0, 0, NULL, 0); rc 93 lib/common/xml_io.c rc = pcmk__bzlib2rc(rc); rc 94 lib/common/xml_io.c if (rc != pcmk_rc_ok) { rc 96 lib/common/xml_io.c CRM_XS " rc=%d", filename, pcmk_rc_str(rc), rc); rc 106 lib/common/xml_io.c read_len = BZ2_bzRead(&rc, bz_file, buffer + length, PCMK__BUFFER_SIZE); rc 108 lib/common/xml_io.c if ((rc == BZ_OK) || (rc == BZ_STREAM_END)) { rc 109 lib/common/xml_io.c crm_trace("Read %ld bytes from file: %d", (long) read_len, rc); rc 112 lib/common/xml_io.c } while (rc == BZ_OK); rc 114 lib/common/xml_io.c rc = pcmk__bzlib2rc(rc); rc 115 lib/common/xml_io.c if (rc != pcmk_rc_ok) { rc 116 lib/common/xml_io.c rc = pcmk__bzlib2rc(rc); rc 118 lib/common/xml_io.c filename, pcmk_rc_str(rc), rc); rc 126 lib/common/xml_io.c BZ2_bzReadClose(&rc, bz_file); rc 540 lib/common/xml_io.c int rc = pcmk_rc_ok; rc 543 lib/common/xml_io.c BZFILE *bz_file = BZ2_bzWriteOpen(&rc, stream, 5, 0, 0); rc 545 lib/common/xml_io.c rc = pcmk__bzlib2rc(rc); rc 546 lib/common/xml_io.c if (rc != pcmk_rc_ok) { rc 549 lib/common/xml_io.c filename, pcmk_rc_str(rc), rc); rc 553 lib/common/xml_io.c BZ2_bzWrite(&rc, bz_file, text, strlen(text)); rc 554 lib/common/xml_io.c rc = pcmk__bzlib2rc(rc); rc 555 lib/common/xml_io.c if (rc != pcmk_rc_ok) { rc 558 lib/common/xml_io.c filename, pcmk_rc_str(rc), rc, errno); rc 562 lib/common/xml_io.c BZ2_bzWriteClose(&rc, bz_file, 0, &bytes_in, bytes_out); rc 564 lib/common/xml_io.c rc = pcmk__bzlib2rc(rc); rc 565 lib/common/xml_io.c if (rc != pcmk_rc_ok) { rc 568 lib/common/xml_io.c filename, pcmk_rc_str(rc), rc, errno); rc 577 lib/common/xml_io.c BZ2_bzWriteClose(&rc, bz_file, 0, NULL, NULL); rc 579 lib/common/xml_io.c return rc; rc 602 lib/common/xml_io.c int rc = pcmk_rc_ok; rc 607 lib/common/xml_io.c rc = pcmk_rc_error; rc 618 lib/common/xml_io.c rc = fprintf(stream, "%s", buffer->str); rc 619 lib/common/xml_io.c if (rc < 0) { rc 620 lib/common/xml_io.c rc = EIO; rc 624 lib/common/xml_io.c bytes_out = (unsigned int) rc; rc 625 lib/common/xml_io.c rc = pcmk_rc_ok; rc 629 lib/common/xml_io.c rc = errno; rc 635 lib/common/xml_io.c rc = errno; rc 646 lib/common/xml_io.c return rc; rc 821 lib/common/xml_io.c int rc = pcmk__xml_write_fd(xml, filename, fd, compress, &nbytes); rc 823 lib/common/xml_io.c if (rc != pcmk_rc_ok) { rc 824 lib/common/xml_io.c return pcmk_rc2legacy(rc); rc 833 lib/common/xml_io.c int rc = pcmk__xml_write_file(xml, filename, compress, &nbytes); rc 835 lib/common/xml_io.c if (rc != pcmk_rc_ok) { rc 836 lib/common/xml_io.c return pcmk_rc2legacy(rc); rc 66 lib/fencing/st_actions.c pcmk__set_result(&(action->result), svc_action->rc, svc_action->status, rc 400 lib/fencing/st_actions.c stonith__legacy2status(int rc) rc 402 lib/fencing/st_actions.c if (rc >= 0) { rc 405 lib/fencing/st_actions.c switch (-rc) { rc 436 lib/fencing/st_actions.c int rc = pcmk_ok; rc 445 lib/fencing/st_actions.c rc = pcmk_rc2legacy(stonith__result2rc(result)); rc 457 lib/fencing/st_actions.c crm_xml_add_int(xml, PCMK__XA_ST_RC, rc); rc 506 lib/fencing/st_actions.c int rc = pcmk_ok; rc 512 lib/fencing/st_actions.c if (crm_element_value_int(xml, PCMK__XA_ST_RC, &rc) == 0) { rc 513 lib/fencing/st_actions.c if ((rc == pcmk_ok) || (rc == -EINPROGRESS)) { rc 516 lib/fencing/st_actions.c execution_status = stonith__legacy2status(rc); rc 517 lib/fencing/st_actions.c exit_reason = pcmk_strerror(rc); rc 541 lib/fencing/st_actions.c int rc = internal_stonith_action_execute(action); rc 542 lib/fencing/st_actions.c if (rc == pcmk_ok) { rc 577 lib/fencing/st_actions.c int rc = -EPROTO; rc 608 lib/fencing/st_actions.c if (svc_action->rc != PCMK_OCF_UNKNOWN) { rc 643 lib/fencing/st_actions.c rc = pcmk_ok; rc 646 lib/fencing/st_actions.c rc = -ECONNABORTED; rc 652 lib/fencing/st_actions.c return rc; rc 696 lib/fencing/st_actions.c int rc = pcmk_ok; rc 702 lib/fencing/st_actions.c rc = internal_stonith_action_execute(action); rc 703 lib/fencing/st_actions.c } while ((rc != pcmk_ok) && update_remaining_timeout(action)); rc 705 lib/fencing/st_actions.c return rc; rc 180 lib/fencing/st_client.c int rc = stonith_api->cmds->connect(stonith_api, "stonith-api", NULL); rc 182 lib/fencing/st_client.c if (rc != pcmk_ok) { rc 191 lib/fencing/st_client.c int rc = stonith_api->cmds->list(stonith_api, st_opt_sync_call, STONITH_WATCHDOG_ID, &list, 0); rc 192 lib/fencing/st_client.c if ((rc != pcmk_ok) || (list == NULL)) { rc 197 lib/fencing/st_client.c if (rc == -ENODEV) { rc 201 lib/fencing/st_client.c pcmk_strerror(rc)); rc 335 lib/fencing/st_client.c int rc = 0; rc 342 lib/fencing/st_client.c rc = stonith_send_command(st, STONITH_OP_DEVICE_ADD, data, NULL, call_options, 0); rc 345 lib/fencing/st_client.c return rc; rc 351 lib/fencing/st_client.c int rc = 0; rc 357 lib/fencing/st_client.c rc = stonith_send_command(st, STONITH_OP_DEVICE_DEL, data, NULL, call_options, 0); rc 360 lib/fencing/st_client.c return rc; rc 368 lib/fencing/st_client.c int rc = 0; rc 388 lib/fencing/st_client.c rc = stonith_send_command(st, STONITH_OP_LEVEL_DEL, data, NULL, options, 0); rc 391 lib/fencing/st_client.c return rc; rc 460 lib/fencing/st_client.c int rc = 0; rc 465 lib/fencing/st_client.c rc = stonith_send_command(st, STONITH_OP_LEVEL_ADD, data, NULL, options, 0); rc 468 lib/fencing/st_client.c return rc; rc 547 lib/fencing/st_client.c int rc = 0, lpc = 0, max = 0; rc 559 lib/fencing/st_client.c rc = stonith_send_command(stonith, STONITH_OP_QUERY, data, &output, call_options, timeout); rc 561 lib/fencing/st_client.c if (rc < 0) { rc 562 lib/fencing/st_client.c return rc; rc 609 lib/fencing/st_client.c int rc = 0; rc 618 lib/fencing/st_client.c rc = stonith_send_command(stonith, STONITH_OP_EXEC, data, output, rc 622 lib/fencing/st_client.c return rc; rc 629 lib/fencing/st_client.c int rc; rc 632 lib/fencing/st_client.c rc = stonith_api_call(stonith, call_options, id, PCMK_ACTION_LIST, NULL, rc 649 lib/fencing/st_client.c return rc; rc 671 lib/fencing/st_client.c int rc = 0; rc 681 lib/fencing/st_client.c rc = stonith_send_command(stonith, STONITH_OP_FENCE, data, NULL, call_options, timeout); rc 684 lib/fencing/st_client.c return rc; rc 707 lib/fencing/st_client.c int rc = 0; rc 720 lib/fencing/st_client.c rc = stonith_send_command(stonith, STONITH_OP_FENCE_HISTORY, data, &output, rc 724 lib/fencing/st_client.c if (rc == 0) { rc 759 lib/fencing/st_client.c return rc; rc 779 lib/fencing/st_client.c int rc = 0; rc 788 lib/fencing/st_client.c rc = strcmp(a_client->event, b_client->event); rc 789 lib/fencing/st_client.c if (rc == 0) { rc 805 lib/fencing/st_client.c return rc; rc 910 lib/fencing/st_client.c data.rc = pcmk_rc2legacy(stonith__result2rc(result)); rc 1095 lib/fencing/st_client.c int rc = pcmk_ok; rc 1117 lib/fencing/st_client.c rc = pcmk__connect_generic_ipc(native->ipc); rc 1118 lib/fencing/st_client.c if (rc == pcmk_rc_ok) { rc 1119 lib/fencing/st_client.c rc = pcmk__ipc_fd(native->ipc, stonith_fd); rc 1120 lib/fencing/st_client.c if (rc != pcmk_rc_ok) { rc 1122 lib/fencing/st_client.c pcmk_rc_str(rc)); rc 1125 lib/fencing/st_client.c if (rc != pcmk_rc_ok) { rc 1140 lib/fencing/st_client.c rc = -ENOTCONN; rc 1148 lib/fencing/st_client.c rc = crm_ipc_send(native->ipc, hello, crm_ipc_client_response, -1, &reply); rc 1150 lib/fencing/st_client.c if (rc < 0) { rc 1152 lib/fencing/st_client.c CRM_XS " rc=%d", pcmk_strerror(rc), rc); rc 1153 lib/fencing/st_client.c rc = -ECOMM; rc 1157 lib/fencing/st_client.c rc = -EPROTO; rc 1167 lib/fencing/st_client.c rc = -EPROTO; rc 1172 lib/fencing/st_client.c rc = -EPROTO; rc 1177 lib/fencing/st_client.c rc = pcmk_ok; rc 1185 lib/fencing/st_client.c if (rc != pcmk_ok) { rc 1187 lib/fencing/st_client.c CRM_XS " rc=%d", display_name, pcmk_strerror(rc), rc); rc 1190 lib/fencing/st_client.c return rc; rc 1196 lib/fencing/st_client.c int rc = pcmk_ok; rc 1209 lib/fencing/st_client.c rc = crm_ipc_send(native->ipc, notify_msg, crm_ipc_client_response, -1, NULL); rc 1210 lib/fencing/st_client.c if (rc < 0) { rc 1211 lib/fencing/st_client.c crm_perror(LOG_DEBUG, "Couldn't register for fencing notifications: %d", rc); rc 1212 lib/fencing/st_client.c rc = -ECOMM; rc 1214 lib/fencing/st_client.c rc = pcmk_ok; rc 1219 lib/fencing/st_client.c return rc; rc 1550 lib/fencing/st_client.c int rc = 0; rc 1601 lib/fencing/st_client.c rc = crm_ipc_send(native->ipc, op_msg, ipc_flags, rc 1606 lib/fencing/st_client.c if (rc < 0) { rc 1607 lib/fencing/st_client.c crm_perror(LOG_ERR, "Couldn't perform %s operation (timeout=%ds): %d", op, timeout, rc); rc 1608 lib/fencing/st_client.c rc = -ECOMM; rc 1628 lib/fencing/st_client.c rc = pcmk_rc2legacy(stonith__result2rc(&result)); rc 1644 lib/fencing/st_client.c rc = -ENOMSG; rc 1651 lib/fencing/st_client.c rc = -ENOMSG; rc 1662 lib/fencing/st_client.c return rc; rc 1695 lib/fencing/st_client.c int rc = pcmk_ok; rc 1703 lib/fencing/st_client.c rc = stonith->cmds->disconnect(stonith); rc 1720 lib/fencing/st_client.c crm_err("Not free'ing active connection: %s (%d)", pcmk_strerror(rc), rc); rc 1723 lib/fencing/st_client.c return rc; rc 1746 lib/fencing/st_client.c int rc = pcmk_ok; rc 1769 lib/fencing/st_client.c rc = pcmk__substitute_secrets(rsc_id, params_table); rc 1770 lib/fencing/st_client.c if (rc != pcmk_rc_ok) { rc 1772 lib/fencing/st_client.c agent, pcmk_rc_str(rc)); rc 1790 lib/fencing/st_client.c rc = stonith__rhcs_validate(st, call_options, target, agent, rc 1797 lib/fencing/st_client.c rc = stonith__lha_validate(st, call_options, target, agent, rc 1805 lib/fencing/st_client.c rc = -errno; rc 1817 lib/fencing/st_client.c rc = -errno; rc 1830 lib/fencing/st_client.c return rc; rc 1914 lib/fencing/st_client.c int rc = -EINVAL; // if max_attempts is not positive rc 1917 lib/fencing/st_client.c rc = st->cmds->connect(st, name, NULL); rc 1918 lib/fencing/st_client.c if (rc == pcmk_ok) { rc 1923 lib/fencing/st_client.c attempt, max_attempts, pcmk_strerror(rc), rc); rc 1928 lib/fencing/st_client.c pcmk_strerror(rc), rc); rc 1929 lib/fencing/st_client.c return rc; rc 1979 lib/fencing/st_client.c int rc = pcmk_ok; rc 1990 lib/fencing/st_client.c rc = st->cmds->connect(st, "stonith-api", NULL); rc 1991 lib/fencing/st_client.c if (rc != pcmk_ok) { rc 1993 lib/fencing/st_client.c action, nodeid, uname, pcmk_strerror(rc), rc); rc 2003 lib/fencing/st_client.c rc = st->cmds->fence(st, opts, name, action, timeout, 0); rc 2006 lib/fencing/st_client.c if (rc != pcmk_ok) { rc 2008 lib/fencing/st_client.c action, nodeid, uname, pcmk_strerror(rc), rc); rc 2015 lib/fencing/st_client.c return rc; rc 2021 lib/fencing/st_client.c int rc = pcmk_ok; rc 2032 lib/fencing/st_client.c rc = st->cmds->connect(st, "stonith-api", NULL); rc 2033 lib/fencing/st_client.c if (rc != pcmk_ok) { rc 2034 lib/fencing/st_client.c api_log(LOG_NOTICE, "Connection failed: %s (%d)", pcmk_strerror(rc), rc); rc 2046 lib/fencing/st_client.c rc = st->cmds->history(st, opts, name, &history, 120); rc 2067 lib/fencing/st_client.c if(rc == pcmk_ok) { rc 2070 lib/fencing/st_client.c api_log(LOG_ERR, "Could not retrieve fence history for %u/%s: %s (%d)", nodeid, uname, pcmk_strerror(rc), rc); rc 2088 lib/fencing/st_client.c bool rc = FALSE; rc 2091 lib/fencing/st_client.c return rc; rc 2103 lib/fencing/st_client.c rc = TRUE; rc 2110 lib/fencing/st_client.c return rc; rc 2157 lib/fencing/st_client.c int rc = 0; rc 2172 lib/fencing/st_client.c rc = sscanf(line + entry_start, "%[a-zA-Z0-9_-.]", entry); rc 2173 lib/fencing/st_client.c if (rc != 1) { rc 2476 lib/fencing/st_client.c int rc = pcmk_ok; rc 2482 lib/fencing/st_client.c rc = stonith__execute_async(action, user_data, callback, NULL); rc 2483 lib/fencing/st_client.c if (rc != pcmk_ok) { rc 2487 lib/fencing/st_client.c return pcmk_legacy2rc(rc); rc 181 lib/fencing/st_lha.c int rc = 0; rc 284 lib/fencing/st_lha.c return rc; rc 293 lib/fencing/st_lha.c const char *i_hate_pils(int rc); rc 296 lib/fencing/st_lha.c i_hate_pils(int rc) rc 298 lib/fencing/st_lha.c return PIL_strerror(rc); rc 180 lib/fencing/st_output.c int rc = pcmk_rc_no_output; rc 191 lib/fencing/st_output.c PCMK__OUTPUT_LIST_HEADER(out, print_spacer, rc, "Failed Fencing Actions"); rc 198 lib/fencing/st_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 199 lib/fencing/st_output.c return rc; rc 213 lib/fencing/st_output.c int rc = pcmk_rc_no_output; rc 221 lib/fencing/st_output.c PCMK__OUTPUT_LIST_HEADER(out, print_spacer, rc, "Fencing History"); rc 230 lib/fencing/st_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 231 lib/fencing/st_output.c return rc; rc 246 lib/fencing/st_output.c int rc = pcmk_rc_no_output; rc 253 lib/fencing/st_output.c PCMK__OUTPUT_LIST_HEADER(out, print_spacer, rc, "Fencing History"); rc 260 lib/fencing/st_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 261 lib/fencing/st_output.c return rc; rc 276 lib/fencing/st_output.c int rc = pcmk_rc_no_output; rc 284 lib/fencing/st_output.c PCMK__OUTPUT_LIST_HEADER(out, false, rc, "Fencing History"); rc 292 lib/fencing/st_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 301 lib/fencing/st_output.c rc = pcmk_rc_ok; rc 304 lib/fencing/st_output.c return rc; rc 370 lib/fencing/st_output.c int rc = pcmk_rc_no_output; rc 382 lib/fencing/st_output.c PCMK__OUTPUT_LIST_HEADER(out, print_spacer, rc, "Pending Fencing Actions"); rc 389 lib/fencing/st_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 390 lib/fencing/st_output.c return rc; rc 514 lib/fencing/st_output.c int rc = va_arg(args, int); rc 518 lib/fencing/st_output.c rc ? "failed" : "succeeded"); rc 523 lib/fencing/st_output.c rc ? "failed" : "succeeded"); rc 528 lib/fencing/st_output.c out->subprocess_output(out, rc, output, error_output); rc 529 lib/fencing/st_output.c return rc; rc 540 lib/fencing/st_output.c int rc = va_arg(args, int); rc 544 lib/fencing/st_output.c rc ? "failed" : "succeeded"); rc 547 lib/fencing/st_output.c rc ? "failed" : "succeeded"); rc 550 lib/fencing/st_output.c out->subprocess_output(out, rc, output, error_output); rc 551 lib/fencing/st_output.c return rc; rc 562 lib/fencing/st_output.c int rc = va_arg(args, int); rc 564 lib/fencing/st_output.c const char *valid = pcmk__btoa(rc == pcmk_ok); rc 575 lib/fencing/st_output.c out->subprocess_output(out, rc, output, error_output); rc 578 lib/fencing/st_output.c return rc; rc 134 lib/fencing/st_rhcs.c int rc = stonith__execute(action); rc 138 lib/fencing/st_rhcs.c if (rc < 0) { rc 140 lib/fencing/st_rhcs.c CRM_XS " rc=%d", agent, pcmk_strerror(rc), rc); rc 143 lib/fencing/st_rhcs.c return rc; rc 149 lib/fencing/st_rhcs.c rc = pcmk_rc2legacy(stonith__result2rc(result)); rc 151 lib/fencing/st_rhcs.c return rc; rc 157 lib/fencing/st_rhcs.c rc = pcmk_rc2legacy(stonith__result2rc(result)); rc 159 lib/fencing/st_rhcs.c return rc; rc 230 lib/fencing/st_rhcs.c int rc = stonith__rhcs_get_metadata(agent, timeout_sec, &xml); rc 232 lib/fencing/st_rhcs.c if (rc != pcmk_ok) { rc 240 lib/fencing/st_rhcs.c rc = -pcmk_err_schema_validation; rc 253 lib/fencing/st_rhcs.c return rc; rc 261 lib/fencing/st_rhcs.c int rc = stat(buffer, &prop); rc 264 lib/fencing/st_rhcs.c return (rc >= 0) && S_ISREG(prop.st_mode); rc 273 lib/fencing/st_rhcs.c int rc = pcmk_ok; rc 282 lib/fencing/st_rhcs.c rc = stonith__rhcs_get_metadata(agent, remaining_timeout, &metadata); rc 284 lib/fencing/st_rhcs.c if (rc == pcmk_ok) { rc 301 lib/fencing/st_rhcs.c if (rc == -ETIME || remaining_timeout <= 0 ) { rc 312 lib/fencing/st_rhcs.c rc = stonith__execute(action); rc 316 lib/fencing/st_rhcs.c rc = pcmk_rc2legacy(stonith__result2rc(result)); rc 329 lib/fencing/st_rhcs.c return rc; rc 93 lib/lrmd/lrmd_alerts.c gboolean rc = FALSE; rc 105 lib/lrmd/lrmd_alerts.c rc = TRUE; rc 109 lib/lrmd/lrmd_alerts.c return rc; rc 147 lib/lrmd/lrmd_alerts.c int rc; rc 200 lib/lrmd/lrmd_alerts.c rc = lrmd->cmds->exec_alert(lrmd, entry->id, entry->path, rc 202 lib/lrmd/lrmd_alerts.c if (rc < 0) { rc 204 lib/lrmd/lrmd_alerts.c entry->id, pcmk_strerror(rc), rc); rc 241 lib/lrmd/lrmd_alerts.c int rc = pcmk_ok; rc 254 lib/lrmd/lrmd_alerts.c rc = exec_alert_list(lrmd, alert_list, pcmk__alert_attribute, attr_name, rc 257 lib/lrmd/lrmd_alerts.c return rc; rc 278 lib/lrmd/lrmd_alerts.c int rc = pcmk_ok; rc 289 lib/lrmd/lrmd_alerts.c rc = exec_alert_list(lrmd, alert_list, pcmk__alert_node, NULL, params); rc 291 lib/lrmd/lrmd_alerts.c return rc; rc 314 lib/lrmd/lrmd_alerts.c int rc = pcmk_ok; rc 326 lib/lrmd/lrmd_alerts.c rc = exec_alert_list(lrmd, alert_list, pcmk__alert_fencing, NULL, params); rc 328 lib/lrmd/lrmd_alerts.c return rc; rc 348 lib/lrmd/lrmd_alerts.c int rc = pcmk_ok; rc 357 lib/lrmd/lrmd_alerts.c if ((op->interval_ms == 0) && (target_rc == op->rc) rc 375 lib/lrmd/lrmd_alerts.c params = alert_key2param_int(params, PCMK__alert_key_rc, op->rc); rc 390 lib/lrmd/lrmd_alerts.c services_ocf_exitcode_str(op->rc)); rc 396 lib/lrmd/lrmd_alerts.c rc = exec_alert_list(lrmd, alert_list, pcmk__alert_resource, NULL, params); rc 398 lib/lrmd/lrmd_alerts.c return rc; rc 73 lib/lrmd/lrmd_client.c static void report_async_connection_result(lrmd_t * lrmd, int rc); rc 234 lib/lrmd/lrmd_client.c copy->rc = event->rc; rc 301 lib/lrmd/lrmd_client.c int rc = 0; rc 312 lib/lrmd/lrmd_client.c crm_element_value_int(msg, PCMK__XA_LRMD_EXEC_RC, &rc); rc 313 lib/lrmd/lrmd_client.c event.rc = (enum ocf_exitcode) rc; rc 343 lib/lrmd/lrmd_client.c lrmd__set_result(&event, event.rc, event.op_status, rc 448 lib/lrmd/lrmd_client.c int rc = pcmk_rc_ok; rc 463 lib/lrmd/lrmd_client.c rc = pcmk__remote_ready(native->remote, 0); rc 464 lib/lrmd/lrmd_client.c if (rc == pcmk_rc_ok) { rc 465 lib/lrmd/lrmd_client.c rc = pcmk__read_remote_message(native->remote, -1); rc 468 lib/lrmd/lrmd_client.c if (rc != pcmk_rc_ok && rc != ETIME) { rc 505 lib/lrmd/lrmd_client.c int rc = pcmk__remote_ready(native->remote, 0); rc 507 lib/lrmd/lrmd_client.c switch (rc) { rc 513 lib/lrmd/lrmd_client.c return pcmk_rc2legacy(rc); rc 691 lib/lrmd/lrmd_client.c int rc = pcmk_rc_ok; rc 713 lib/lrmd/lrmd_client.c rc = pcmk__read_remote_message(native->remote, remaining_timeout); rc 714 lib/lrmd/lrmd_client.c if (rc != pcmk_rc_ok) { rc 715 lib/lrmd/lrmd_client.c return rc; rc 760 lib/lrmd/lrmd_client.c return rc; rc 767 lib/lrmd/lrmd_client.c int rc = pcmk_rc_ok; rc 775 lib/lrmd/lrmd_client.c rc = lrmd__remote_send_xml(native->remote, msg, global_remote_msg_id, rc 777 lib/lrmd/lrmd_client.c if (rc != pcmk_rc_ok) { rc 779 lib/lrmd/lrmd_client.c "Pacemaker Remote: %s", pcmk_rc_str(rc)); rc 782 lib/lrmd/lrmd_client.c return rc; rc 788 lib/lrmd/lrmd_client.c int rc = 0; rc 795 lib/lrmd/lrmd_client.c rc = send_remote_message(lrmd, msg); rc 796 lib/lrmd/lrmd_client.c if (rc != pcmk_rc_ok) { rc 797 lib/lrmd/lrmd_client.c return pcmk_rc2legacy(rc); rc 800 lib/lrmd/lrmd_client.c rc = read_remote_reply(lrmd, timeout, global_remote_msg_id, &xml); rc 801 lib/lrmd/lrmd_client.c if (rc != pcmk_rc_ok) { rc 804 lib/lrmd/lrmd_client.c global_remote_msg_id, pcmk_rc_str(rc), rc, timeout); rc 814 lib/lrmd/lrmd_client.c return pcmk_rc2legacy(rc); rc 821 lib/lrmd/lrmd_client.c int rc = pcmk_ok; rc 826 lib/lrmd/lrmd_client.c rc = crm_ipc_send(native->ipc, msg, crm_ipc_client_response, timeout, reply); rc 830 lib/lrmd/lrmd_client.c rc = lrmd_tls_send_recv(lrmd, msg, timeout, reply); rc 836 lib/lrmd/lrmd_client.c rc = -EPROTONOSUPPORT; rc 839 lib/lrmd/lrmd_client.c return rc; rc 845 lib/lrmd/lrmd_client.c int rc = pcmk_ok; rc 850 lib/lrmd/lrmd_client.c rc = crm_ipc_send(native->ipc, msg, crm_ipc_flags_none, 0, NULL); rc 854 lib/lrmd/lrmd_client.c rc = send_remote_message(lrmd, msg); rc 855 lib/lrmd/lrmd_client.c if (rc == pcmk_rc_ok) { rc 861 lib/lrmd/lrmd_client.c rc = pcmk_rc2legacy(rc); rc 867 lib/lrmd/lrmd_client.c rc = -EPROTONOSUPPORT; rc 870 lib/lrmd/lrmd_client.c return rc; rc 915 lib/lrmd/lrmd_client.c int rc = pcmk_ok; rc 940 lib/lrmd/lrmd_client.c rc = lrmd_send_xml(lrmd, op_msg, timeout, &op_reply); rc 942 lib/lrmd/lrmd_client.c rc = lrmd_send_xml_no_reply(lrmd, op_msg); rc 946 lib/lrmd/lrmd_client.c if (rc < 0) { rc 947 lib/lrmd/lrmd_client.c crm_perror(LOG_ERR, "Couldn't perform %s operation (timeout=%d): %d", op, timeout, rc); rc 951 lib/lrmd/lrmd_client.c rc = -ENOMSG; rc 955 lib/lrmd/lrmd_client.c rc = pcmk_ok; rc 957 lib/lrmd/lrmd_client.c if (crm_element_value_int(op_reply, PCMK__XA_LRMD_RC, &rc) != 0) { rc 958 lib/lrmd/lrmd_client.c rc = -ENOMSG; rc 976 lib/lrmd/lrmd_client.c return rc; rc 982 lib/lrmd/lrmd_client.c int rc; rc 987 lib/lrmd/lrmd_client.c rc = lrmd_send_command(lrmd, LRMD_OP_POKE, data, NULL, 0, 0, rc 991 lib/lrmd/lrmd_client.c return rc < 0 ? rc : pcmk_ok; rc 998 lib/lrmd/lrmd_client.c int rc = pcmk_rc_ok; rc 1011 lib/lrmd/lrmd_client.c rc = lrmd_send_command(lrmd, LRMD_OP_CHECK, data, NULL, 0, 0, rc 1014 lib/lrmd/lrmd_client.c return (rc < 0)? pcmk_legacy2rc(rc) : pcmk_rc_ok; rc 1020 lib/lrmd/lrmd_client.c int rc = pcmk_ok; rc 1035 lib/lrmd/lrmd_client.c rc = lrmd_send_xml(lrmd, hello, -1, &reply); rc 1037 lib/lrmd/lrmd_client.c if (rc < 0) { rc 1038 lib/lrmd/lrmd_client.c crm_perror(LOG_DEBUG, "Couldn't complete registration with the executor API: %d", rc); rc 1039 lib/lrmd/lrmd_client.c rc = -ECOMM; rc 1042 lib/lrmd/lrmd_client.c rc = -EPROTO; rc 1052 lib/lrmd/lrmd_client.c crm_element_value_int(reply, PCMK__XA_LRMD_RC, &rc); rc 1066 lib/lrmd/lrmd_client.c if (rc == -EPROTO) { rc 1074 lib/lrmd/lrmd_client.c rc = -EPROTO; rc 1078 lib/lrmd/lrmd_client.c rc = -EPROTO; rc 1083 lib/lrmd/lrmd_client.c rc = pcmk_ok; rc 1090 lib/lrmd/lrmd_client.c if (rc != pcmk_ok) { rc 1093 lib/lrmd/lrmd_client.c return rc; rc 1099 lib/lrmd/lrmd_client.c int rc = pcmk_ok; rc 1113 lib/lrmd/lrmd_client.c rc = pcmk__connect_generic_ipc(native->ipc); rc 1114 lib/lrmd/lrmd_client.c if (rc == pcmk_rc_ok) { rc 1115 lib/lrmd/lrmd_client.c rc = pcmk__ipc_fd(native->ipc, fd); rc 1117 lib/lrmd/lrmd_client.c if (rc != pcmk_rc_ok) { rc 1118 lib/lrmd/lrmd_client.c crm_err("Connection to executor failed: %s", pcmk_rc_str(rc)); rc 1119 lib/lrmd/lrmd_client.c rc = -ENOTCONN; rc 1129 lib/lrmd/lrmd_client.c rc = -ENOTCONN; rc 1132 lib/lrmd/lrmd_client.c return rc; rc 1266 lib/lrmd/lrmd_client.c int rc = pcmk_rc_ok; rc 1281 lib/lrmd/lrmd_client.c rc = read_gnutls_key(location, key); rc 1282 lib/lrmd/lrmd_client.c if (rc != pcmk_rc_ok) { rc 1283 lib/lrmd/lrmd_client.c return rc; rc 1417 lib/lrmd/lrmd_client.c tls_handshake_failed(lrmd_t *lrmd, int tls_rc, int rc) rc 1424 lib/lrmd/lrmd_client.c (rc == EPROTO)? gnutls_strerror(tls_rc) : pcmk_rc_str(rc)); rc 1425 lib/lrmd/lrmd_client.c report_async_connection_result(lrmd, pcmk_rc2legacy(rc)); rc 1436 lib/lrmd/lrmd_client.c int rc = pcmk_rc_ok; rc 1441 lib/lrmd/lrmd_client.c rc = add_tls_to_mainloop(lrmd, true); rc 1442 lib/lrmd/lrmd_client.c report_async_connection_result(lrmd, pcmk_rc2legacy(rc)); rc 1447 lib/lrmd/lrmd_client.c report_async_connection_result(lrmd_t * lrmd, int rc) rc 1455 lib/lrmd/lrmd_client.c event.connection_rc = rc; rc 1474 lib/lrmd/lrmd_client.c int rc = pcmk__tls_client_handshake(native->remote, TLS_HANDSHAKE_TIMEOUT, rc 1477 lib/lrmd/lrmd_client.c if (rc != pcmk_rc_ok) { rc 1478 lib/lrmd/lrmd_client.c tls_handshake_failed(lrmd, tls_rc, rc); rc 1481 lib/lrmd/lrmd_client.c return rc; rc 1497 lib/lrmd/lrmd_client.c int rc = pcmk_rc_ok; rc 1519 lib/lrmd/lrmd_client.c rc = lrmd_handshake(lrmd, name); rc 1520 lib/lrmd/lrmd_client.c rc = pcmk_legacy2rc(rc); rc 1523 lib/lrmd/lrmd_client.c return rc; rc 1540 lib/lrmd/lrmd_client.c int rc = pcmk_rc_ok; rc 1544 lib/lrmd/lrmd_client.c rc = ETIME; rc 1546 lib/lrmd/lrmd_client.c tls_handshake_failed(lrmd, GNUTLS_E_TIMEDOUT, rc); rc 1551 lib/lrmd/lrmd_client.c rc = pcmk__tls_client_try_handshake(remote, &tls_rc); rc 1553 lib/lrmd/lrmd_client.c if (rc == pcmk_rc_ok) { rc 1557 lib/lrmd/lrmd_client.c } else if (rc == EAGAIN) { rc 1561 lib/lrmd/lrmd_client.c rc = EKEYREJECTED; rc 1562 lib/lrmd/lrmd_client.c tls_handshake_failed(lrmd, tls_rc, rc); rc 1569 lib/lrmd/lrmd_client.c lrmd_tcp_connect_cb(void *userdata, int rc, int sock) rc 1578 lib/lrmd/lrmd_client.c if (rc != pcmk_rc_ok) { rc 1582 lib/lrmd/lrmd_client.c native->server, native->port, pcmk_rc_str(rc), rc); rc 1583 lib/lrmd/lrmd_client.c report_async_connection_result(lrmd, pcmk_rc2legacy(rc)); rc 1591 lib/lrmd/lrmd_client.c rc = lrmd__init_remote_key(&psk_key); rc 1592 lib/lrmd/lrmd_client.c if (rc != pcmk_rc_ok) { rc 1595 lib/lrmd/lrmd_client.c native->server, native->port, pcmk_rc_str(rc), rc); rc 1597 lib/lrmd/lrmd_client.c report_async_connection_result(lrmd, pcmk_rc2legacy(rc)); rc 1618 lib/lrmd/lrmd_client.c rc = pcmk__tls_client_try_handshake(native->remote, &tls_rc); rc 1619 lib/lrmd/lrmd_client.c if (rc == EAGAIN) { rc 1634 lib/lrmd/lrmd_client.c } else if (rc == pcmk_rc_ok) { rc 1638 lib/lrmd/lrmd_client.c tls_handshake_failed(lrmd, tls_rc, rc); rc 1645 lib/lrmd/lrmd_client.c int rc = pcmk_rc_ok; rc 1651 lib/lrmd/lrmd_client.c rc = pcmk__connect_remote(native->server, native->port, timeout, &timer_id, rc 1653 lib/lrmd/lrmd_client.c if (rc != pcmk_rc_ok) { rc 1656 lib/lrmd/lrmd_client.c native->server, native->port, pcmk_rc_str(rc), rc); rc 1657 lib/lrmd/lrmd_client.c return rc; rc 1660 lib/lrmd/lrmd_client.c return rc; rc 1666 lib/lrmd/lrmd_client.c int rc = pcmk_rc_ok; rc 1674 lib/lrmd/lrmd_client.c rc = pcmk__connect_remote(native->server, native->port, 0, NULL, rc 1676 lib/lrmd/lrmd_client.c if (rc != pcmk_rc_ok) { rc 1679 lib/lrmd/lrmd_client.c native->server, native->port, pcmk_rc_str(rc), rc); rc 1684 lib/lrmd/lrmd_client.c rc = lrmd__init_remote_key(&psk_key); rc 1685 lib/lrmd/lrmd_client.c if (rc != pcmk_rc_ok) { rc 1687 lib/lrmd/lrmd_client.c return rc; rc 1712 lib/lrmd/lrmd_client.c rc = add_tls_to_mainloop(lrmd, false); rc 1714 lib/lrmd/lrmd_client.c return rc; rc 1721 lib/lrmd/lrmd_client.c int rc = -ENOTCONN; rc 1726 lib/lrmd/lrmd_client.c rc = lrmd_ipc_connect(lrmd, fd); rc 1727 lib/lrmd/lrmd_client.c rc = pcmk_rc2legacy(rc); rc 1731 lib/lrmd/lrmd_client.c rc = lrmd_tls_connect(lrmd, fd); rc 1732 lib/lrmd/lrmd_client.c rc = pcmk_rc2legacy(rc); rc 1738 lib/lrmd/lrmd_client.c rc = -EPROTONOSUPPORT; rc 1741 lib/lrmd/lrmd_client.c if (rc == pcmk_ok) { rc 1742 lib/lrmd/lrmd_client.c rc = lrmd_handshake(lrmd, name); rc 1745 lib/lrmd/lrmd_client.c return rc; rc 1751 lib/lrmd/lrmd_client.c int rc = pcmk_ok; rc 1760 lib/lrmd/lrmd_client.c rc = lrmd_api_connect(lrmd, name, NULL); rc 1761 lib/lrmd/lrmd_client.c if (!rc) { rc 1762 lib/lrmd/lrmd_client.c report_async_connection_result(lrmd, rc); rc 1767 lib/lrmd/lrmd_client.c rc = lrmd_tls_connect_async(lrmd, timeout); rc 1773 lib/lrmd/lrmd_client.c rc = -EPROTONOSUPPORT; rc 1776 lib/lrmd/lrmd_client.c return rc; rc 1839 lib/lrmd/lrmd_client.c int rc = pcmk_ok; rc 1856 lib/lrmd/lrmd_client.c rc = -EPROTONOSUPPORT; rc 1864 lib/lrmd/lrmd_client.c return rc; rc 1873 lib/lrmd/lrmd_client.c int rc = pcmk_ok; rc 1891 lib/lrmd/lrmd_client.c rc = lrmd_send_command(lrmd, LRMD_OP_RSC_REG, data, NULL, 0, options, TRUE); rc 1894 lib/lrmd/lrmd_client.c return rc; rc 1900 lib/lrmd/lrmd_client.c int rc = pcmk_ok; rc 1905 lib/lrmd/lrmd_client.c rc = lrmd_send_command(lrmd, LRMD_OP_RSC_UNREG, data, NULL, 0, options, TRUE); rc 1908 lib/lrmd/lrmd_client.c return rc; rc 1999 lib/lrmd/lrmd_client.c int rc = pcmk_ok; rc 2012 lib/lrmd/lrmd_client.c rc = lrmd_send_command(lrmd, LRMD_OP_GET_RECURRING, data, &output_xml, rc 2019 lib/lrmd/lrmd_client.c if ((rc != pcmk_ok) || (output_xml == NULL)) { rc 2020 lib/lrmd/lrmd_client.c return rc; rc 2025 lib/lrmd/lrmd_client.c (rsc_xml != NULL) && (rc == pcmk_ok); rc 2041 lib/lrmd/lrmd_client.c rc = -ENOMEM; rc 2055 lib/lrmd/lrmd_client.c return rc; rc 2102 lib/lrmd/lrmd_client.c int rc = pcmk_ok; rc 2110 lib/lrmd/lrmd_client.c rc = stonith_api->cmds->metadata(stonith_api, st_opt_sync_call, type, rc 2112 lib/lrmd/lrmd_client.c if ((rc == pcmk_ok) && (*output == NULL)) { rc 2113 lib/lrmd/lrmd_client.c rc = -EIO; rc 2116 lib/lrmd/lrmd_client.c return rc; rc 2160 lib/lrmd/lrmd_client.c if (action->rc != PCMK_OCF_UNKNOWN) { rc 2192 lib/lrmd/lrmd_client.c int rc = pcmk_ok; rc 2209 lib/lrmd/lrmd_client.c rc = lrmd_send_command(lrmd, LRMD_OP_RSC_EXEC, data, NULL, timeout, options, TRUE); rc 2213 lib/lrmd/lrmd_client.c return rc; rc 2221 lib/lrmd/lrmd_client.c int rc = pcmk_ok; rc 2235 lib/lrmd/lrmd_client.c rc = lrmd_send_command(lrmd, LRMD_OP_ALERT_EXEC, data, NULL, timeout, rc 2240 lib/lrmd/lrmd_client.c return rc; rc 2247 lib/lrmd/lrmd_client.c int rc = pcmk_ok; rc 2254 lib/lrmd/lrmd_client.c rc = lrmd_send_command(lrmd, LRMD_OP_RSC_CANCEL, data, NULL, 0, 0, TRUE); rc 2256 lib/lrmd/lrmd_client.c return rc; rc 2262 lib/lrmd/lrmd_client.c int rc = 0; rc 2276 lib/lrmd/lrmd_client.c rc++; rc 2283 lib/lrmd/lrmd_client.c return rc; rc 2290 lib/lrmd/lrmd_client.c int rc = 0; rc 2302 lib/lrmd/lrmd_client.c rc++; rc 2315 lib/lrmd/lrmd_client.c rc += stonith_count; rc 2318 lib/lrmd/lrmd_client.c if (rc == 0) { rc 2320 lib/lrmd/lrmd_client.c rc = -EPROTONOSUPPORT; rc 2322 lib/lrmd/lrmd_client.c return rc; rc 2345 lib/lrmd/lrmd_client.c int rc = pcmk_ok; rc 2357 lib/lrmd/lrmd_client.c rc++; rc 2362 lib/lrmd/lrmd_client.c return rc; rc 2368 lib/lrmd/lrmd_client.c int rc = 0; rc 2376 lib/lrmd/lrmd_client.c rc++; rc 2381 lib/lrmd/lrmd_client.c rc++; rc 2385 lib/lrmd/lrmd_client.c return rc; rc 2558 lib/lrmd/lrmd_client.c pcmk__set_result(&result, action->rc, action->status, rc 2626 lib/lrmd/lrmd_client.c if (action->rc != PCMK_OCF_UNKNOWN) { rc 2627 lib/lrmd/lrmd_client.c pcmk__set_result(&result, action->rc, action->status, rc 2667 lib/lrmd/lrmd_client.c lrmd__set_result(lrmd_event_data_t *event, enum ocf_exitcode rc, int op_status, rc 2674 lib/lrmd/lrmd_client.c event->rc = rc; rc 50 lib/lrmd/lrmd_output.c int rc = pcmk_rc_ok; rc 55 lib/lrmd/lrmd_output.c rc = xml_list(out, list, PCMK_XE_PROVIDER); rc 57 lib/lrmd/lrmd_output.c return rc; rc 76 lib/lrmd/lrmd_output.c int rc = pcmk_rc_ok; rc 87 lib/lrmd/lrmd_output.c rc = xml_list(out, list, PCMK_XE_AGENT); rc 89 lib/lrmd/lrmd_output.c return rc; rc 99 lib/lrmd/lrmd_output.c int rc; rc 102 lib/lrmd/lrmd_output.c rc = default_list(out, list, title); rc 104 lib/lrmd/lrmd_output.c return rc; rc 113 lib/lrmd/lrmd_output.c int rc = pcmk_rc_ok; rc 122 lib/lrmd/lrmd_output.c rc = xml_list(out, list, PCMK_XE_PROVIDER); rc 124 lib/lrmd/lrmd_output.c return rc; rc 239 lib/lrmd/proxy_common.c int rc = pcmk_rc_ok; rc 265 lib/lrmd/proxy_common.c rc = pcmk__xe_get_flags(msg, PCMK__XA_LRMD_IPC_MSG_FLAGS, &flags, 0U); rc 266 lib/lrmd/proxy_common.c if (rc != pcmk_rc_ok) { rc 268 lib/lrmd/proxy_common.c pcmk_rc_str(rc)); rc 276 lib/lrmd/proxy_common.c int rc = 0; rc 287 lib/lrmd/proxy_common.c rc = crm_ipc_send(proxy->ipc, request, flags, 5000, NULL); rc 289 lib/lrmd/proxy_common.c if(rc < 0) { rc 293 lib/lrmd/proxy_common.c op, msg_id, proxy->node_name, crm_ipc_name(proxy->ipc), name, pcmk_strerror(rc), rc); rc 298 lib/lrmd/proxy_common.c crm_xml_add_int(op_reply, PCMK_XA_RC, rc); rc 309 lib/lrmd/proxy_common.c int rc = pcmk_ok; rc 316 lib/lrmd/proxy_common.c rc = crm_ipc_send(proxy->ipc, request, flags, 10000, &op_reply); rc 317 lib/lrmd/proxy_common.c if(rc < 0) { rc 319 lib/lrmd/proxy_common.c op, msg_id, proxy->node_name, crm_ipc_name(proxy->ipc), name, pcmk_strerror(rc), rc); rc 994 lib/pacemaker/libpacemaker_private.h const char *task, guint interval_ms, int rc); rc 293 lib/pacemaker/pcmk_acl.c int rc = pcmk_rc_ok; rc 339 lib/pacemaker/pcmk_acl.c rc = EINVAL; rc 382 lib/pacemaker/pcmk_acl.c rc = EINVAL; rc 389 lib/pacemaker/pcmk_acl.c rc = EINVAL; rc 398 lib/pacemaker/pcmk_acl.c return rc; rc 19 lib/pacemaker/pcmk_agents.c int rc = pcmk_rc_ok; rc 25 lib/pacemaker/pcmk_agents.c rc = lrmd__new(&lrmd_conn, NULL, NULL, 0); rc 26 lib/pacemaker/pcmk_agents.c if (rc != pcmk_rc_ok) { rc 30 lib/pacemaker/pcmk_agents.c rc = lrmd_conn->cmds->list_ocf_providers(lrmd_conn, agent_spec, &list); rc 32 lib/pacemaker/pcmk_agents.c if (rc > 0) { rc 33 lib/pacemaker/pcmk_agents.c rc = out->message(out, "alternatives-list", list, agent_spec); rc 35 lib/pacemaker/pcmk_agents.c rc = pcmk_rc_error; rc 39 lib/pacemaker/pcmk_agents.c if (rc != pcmk_rc_ok) { rc 41 lib/pacemaker/pcmk_agents.c rc = ENXIO; rc 45 lib/pacemaker/pcmk_agents.c return rc; rc 53 lib/pacemaker/pcmk_agents.c int rc = pcmk_rc_ok; rc 55 lib/pacemaker/pcmk_agents.c rc = pcmk__xml_output_new(&out, xml); rc 56 lib/pacemaker/pcmk_agents.c if (rc != pcmk_rc_ok) { rc 57 lib/pacemaker/pcmk_agents.c return rc; rc 62 lib/pacemaker/pcmk_agents.c rc = pcmk__list_alternatives(out, agent_spec); rc 63 lib/pacemaker/pcmk_agents.c pcmk__xml_output_finish(out, pcmk_rc2exitc(rc), xml); rc 64 lib/pacemaker/pcmk_agents.c return rc; rc 79 lib/pacemaker/pcmk_agents.c int rc = pcmk_rc_ok; rc 86 lib/pacemaker/pcmk_agents.c rc = lrmd__new(&lrmd_conn, NULL, NULL, 0); rc 87 lib/pacemaker/pcmk_agents.c if (rc != pcmk_rc_ok) { rc 97 lib/pacemaker/pcmk_agents.c rc = lrmd_conn->cmds->list_agents(lrmd_conn, &list, agent_spec, provider); rc 99 lib/pacemaker/pcmk_agents.c if (rc > 0) { rc 100 lib/pacemaker/pcmk_agents.c rc = out->message(out, "agents-list", list, agent_spec, provider); rc 102 lib/pacemaker/pcmk_agents.c rc = pcmk_rc_error; rc 106 lib/pacemaker/pcmk_agents.c if (rc != pcmk_rc_ok) { rc 116 lib/pacemaker/pcmk_agents.c return rc; rc 124 lib/pacemaker/pcmk_agents.c int rc = pcmk_rc_ok; rc 126 lib/pacemaker/pcmk_agents.c rc = pcmk__xml_output_new(&out, xml); rc 127 lib/pacemaker/pcmk_agents.c if (rc != pcmk_rc_ok) { rc 128 lib/pacemaker/pcmk_agents.c return rc; rc 133 lib/pacemaker/pcmk_agents.c rc = pcmk__list_agents(out, agent_spec); rc 134 lib/pacemaker/pcmk_agents.c pcmk__xml_output_finish(out, pcmk_rc2exitc(rc), xml); rc 135 lib/pacemaker/pcmk_agents.c return rc; rc 141 lib/pacemaker/pcmk_agents.c int rc = pcmk_rc_ok; rc 147 lib/pacemaker/pcmk_agents.c rc = lrmd__new(&lrmd_conn, NULL, NULL, 0); rc 148 lib/pacemaker/pcmk_agents.c if (rc != pcmk_rc_ok) { rc 152 lib/pacemaker/pcmk_agents.c rc = lrmd_conn->cmds->list_ocf_providers(lrmd_conn, agent_spec, &list); rc 154 lib/pacemaker/pcmk_agents.c if (rc > 0) { rc 155 lib/pacemaker/pcmk_agents.c rc = out->message(out, "providers-list", list, agent_spec); rc 157 lib/pacemaker/pcmk_agents.c rc = pcmk_rc_error; rc 161 lib/pacemaker/pcmk_agents.c if (rc != pcmk_rc_ok) { rc 168 lib/pacemaker/pcmk_agents.c rc = ENXIO; rc 172 lib/pacemaker/pcmk_agents.c return rc; rc 180 lib/pacemaker/pcmk_agents.c int rc = pcmk_rc_ok; rc 182 lib/pacemaker/pcmk_agents.c rc = pcmk__xml_output_new(&out, xml); rc 183 lib/pacemaker/pcmk_agents.c if (rc != pcmk_rc_ok) { rc 184 lib/pacemaker/pcmk_agents.c return rc; rc 189 lib/pacemaker/pcmk_agents.c rc = pcmk__list_providers(out, agent_spec); rc 190 lib/pacemaker/pcmk_agents.c pcmk__xml_output_finish(out, pcmk_rc2exitc(rc), xml); rc 191 lib/pacemaker/pcmk_agents.c return rc; rc 197 lib/pacemaker/pcmk_agents.c int rc = pcmk_rc_ok; rc 203 lib/pacemaker/pcmk_agents.c rc = lrmd__new(&lrmd_conn, NULL, NULL, 0); rc 204 lib/pacemaker/pcmk_agents.c if (rc != pcmk_rc_ok) { rc 208 lib/pacemaker/pcmk_agents.c rc = lrmd_conn->cmds->list_standards(lrmd_conn, &list); rc 210 lib/pacemaker/pcmk_agents.c if (rc > 0) { rc 211 lib/pacemaker/pcmk_agents.c rc = out->message(out, "standards-list", list); rc 213 lib/pacemaker/pcmk_agents.c rc = pcmk_rc_error; rc 217 lib/pacemaker/pcmk_agents.c if (rc != pcmk_rc_ok) { rc 219 lib/pacemaker/pcmk_agents.c rc = ENXIO; rc 223 lib/pacemaker/pcmk_agents.c return rc; rc 231 lib/pacemaker/pcmk_agents.c int rc = pcmk_rc_ok; rc 233 lib/pacemaker/pcmk_agents.c rc = pcmk__xml_output_new(&out, xml); rc 234 lib/pacemaker/pcmk_agents.c if (rc != pcmk_rc_ok) { rc 235 lib/pacemaker/pcmk_agents.c return rc; rc 240 lib/pacemaker/pcmk_agents.c rc = pcmk__list_standards(out); rc 241 lib/pacemaker/pcmk_agents.c pcmk__xml_output_finish(out, pcmk_rc2exitc(rc), xml); rc 242 lib/pacemaker/pcmk_agents.c return rc; rc 45 lib/pacemaker/pcmk_cluster_queries.c int rc; rc 73 lib/pacemaker/pcmk_cluster_queries.c if (data->rc == ECONNRESET) { // Unexpected rc 88 lib/pacemaker/pcmk_cluster_queries.c data->rc = EBADMSG; rc 89 lib/pacemaker/pcmk_cluster_queries.c return data->rc; rc 114 lib/pacemaker/pcmk_cluster_queries.c int rc = pcmk_rc_ok; rc 117 lib/pacemaker/pcmk_cluster_queries.c rc = validate_reply_event(data, api, event_type, status); rc 118 lib/pacemaker/pcmk_cluster_queries.c if (rc != pcmk_rc_ok) { rc 119 lib/pacemaker/pcmk_cluster_queries.c return rc; rc 127 lib/pacemaker/pcmk_cluster_queries.c data->rc = EBADMSG; rc 128 lib/pacemaker/pcmk_cluster_queries.c return data->rc; rc 156 lib/pacemaker/pcmk_cluster_queries.c int rc = validate_reply_event(data, api, event_type, status); rc 158 lib/pacemaker/pcmk_cluster_queries.c if (rc != pcmk_rc_ok) { rc 159 lib/pacemaker/pcmk_cluster_queries.c return rc; rc 167 lib/pacemaker/pcmk_cluster_queries.c data->rc = EBADMSG; rc 168 lib/pacemaker/pcmk_cluster_queries.c return data->rc; rc 194 lib/pacemaker/pcmk_cluster_queries.c int rc = validate_controld_reply(data, controld_api, event_type, status, rc 197 lib/pacemaker/pcmk_cluster_queries.c if (rc != pcmk_rc_ok) { rc 205 lib/pacemaker/pcmk_cluster_queries.c data->rc = pcmk_rc_ok; rc 229 lib/pacemaker/pcmk_cluster_queries.c int rc = validate_controld_reply(data, controld_api, event_type, status, rc 232 lib/pacemaker/pcmk_cluster_queries.c if (rc != pcmk_rc_ok) { rc 238 lib/pacemaker/pcmk_cluster_queries.c data->rc = pcmk_rc_ok; rc 261 lib/pacemaker/pcmk_cluster_queries.c int rc = validate_controld_reply(data, controld_api, event_type, status, rc 264 lib/pacemaker/pcmk_cluster_queries.c if (rc != pcmk_rc_ok) { rc 272 lib/pacemaker/pcmk_cluster_queries.c data->rc = pcmk_rc_node_unknown; rc 292 lib/pacemaker/pcmk_cluster_queries.c data->rc = pcmk_rc_ok; rc 315 lib/pacemaker/pcmk_cluster_queries.c int rc = validate_pcmkd_reply(data, pacemakerd_api, event_type, status, rc 318 lib/pacemaker/pcmk_cluster_queries.c if (rc != pcmk_rc_ok) { rc 326 lib/pacemaker/pcmk_cluster_queries.c data->rc = pcmk_rc_ok; rc 347 lib/pacemaker/pcmk_cluster_queries.c int rc; rc 351 lib/pacemaker/pcmk_cluster_queries.c rc = pcmk_new_ipc_api(&api, server); rc 355 lib/pacemaker/pcmk_cluster_queries.c pcmk_rc_str(rc)); rc 356 lib/pacemaker/pcmk_cluster_queries.c data->rc = rc; rc 363 lib/pacemaker/pcmk_cluster_queries.c rc = pcmk__connect_ipc(api, dispatch_type, 5); rc 364 lib/pacemaker/pcmk_cluster_queries.c if (rc != pcmk_rc_ok) { rc 365 lib/pacemaker/pcmk_cluster_queries.c if (rc == EREMOTEIO) { rc 374 lib/pacemaker/pcmk_cluster_queries.c rc = pcmk_rc_ok; rc 377 lib/pacemaker/pcmk_cluster_queries.c pcmk_ipc_name(api, true), pcmk_rc_str(rc)); rc 380 lib/pacemaker/pcmk_cluster_queries.c data->rc = rc; rc 410 lib/pacemaker/pcmk_cluster_queries.c int rc = pcmk_poll_ipc(api, remaining_ms); rc 412 lib/pacemaker/pcmk_cluster_queries.c if (rc == EAGAIN) { rc 417 lib/pacemaker/pcmk_cluster_queries.c if (rc != pcmk_rc_ok) { rc 420 lib/pacemaker/pcmk_cluster_queries.c pcmk__s(on_node, ""), pcmk_rc_str(rc)); rc 421 lib/pacemaker/pcmk_cluster_queries.c data->rc = rc; rc 427 lib/pacemaker/pcmk_cluster_queries.c if (data->rc != EAGAIN) { rc 440 lib/pacemaker/pcmk_cluster_queries.c data->rc = EAGAIN; rc 464 lib/pacemaker/pcmk_cluster_queries.c .rc = EAGAIN, rc 478 lib/pacemaker/pcmk_cluster_queries.c int rc = pcmk_controld_api_ping(controld_api, node_name); rc 479 lib/pacemaker/pcmk_cluster_queries.c if (rc != pcmk_rc_ok) { rc 481 lib/pacemaker/pcmk_cluster_queries.c pcmk__s(node_name, "DC"), pcmk_rc_str(rc)); rc 482 lib/pacemaker/pcmk_cluster_queries.c data.rc = rc; rc 491 lib/pacemaker/pcmk_cluster_queries.c return data.rc; rc 501 lib/pacemaker/pcmk_cluster_queries.c int rc = pcmk_rc_ok; rc 503 lib/pacemaker/pcmk_cluster_queries.c rc = pcmk__xml_output_new(&out, xml); rc 504 lib/pacemaker/pcmk_cluster_queries.c if (rc != pcmk_rc_ok) { rc 505 lib/pacemaker/pcmk_cluster_queries.c return rc; rc 510 lib/pacemaker/pcmk_cluster_queries.c rc = pcmk__controller_status(out, node_name, message_timeout_ms); rc 511 lib/pacemaker/pcmk_cluster_queries.c pcmk__xml_output_finish(out, pcmk_rc2exitc(rc), xml); rc 512 lib/pacemaker/pcmk_cluster_queries.c return rc; rc 534 lib/pacemaker/pcmk_cluster_queries.c .rc = EAGAIN, rc 548 lib/pacemaker/pcmk_cluster_queries.c int rc = pcmk_controld_api_ping(controld_api, NULL); rc 549 lib/pacemaker/pcmk_cluster_queries.c if (rc != pcmk_rc_ok) { rc 551 lib/pacemaker/pcmk_cluster_queries.c pcmk_rc_str(rc)); rc 552 lib/pacemaker/pcmk_cluster_queries.c data.rc = rc; rc 561 lib/pacemaker/pcmk_cluster_queries.c return data.rc; rc 569 lib/pacemaker/pcmk_cluster_queries.c int rc = pcmk_rc_ok; rc 571 lib/pacemaker/pcmk_cluster_queries.c rc = pcmk__xml_output_new(&out, xml); rc 572 lib/pacemaker/pcmk_cluster_queries.c if (rc != pcmk_rc_ok) { rc 573 lib/pacemaker/pcmk_cluster_queries.c return rc; rc 578 lib/pacemaker/pcmk_cluster_queries.c rc = pcmk__designated_controller(out, message_timeout_ms); rc 579 lib/pacemaker/pcmk_cluster_queries.c pcmk__xml_output_finish(out, pcmk_rc2exitc(rc), xml); rc 580 lib/pacemaker/pcmk_cluster_queries.c return rc; rc 624 lib/pacemaker/pcmk_cluster_queries.c .rc = EAGAIN, rc 653 lib/pacemaker/pcmk_cluster_queries.c int rc = pcmk_controld_api_node_info(controld_api, rc 656 lib/pacemaker/pcmk_cluster_queries.c if (rc != pcmk_rc_ok) { rc 659 lib/pacemaker/pcmk_cluster_queries.c "node: %s", pcmk_rc_str(rc)); rc 660 lib/pacemaker/pcmk_cluster_queries.c data.rc = rc; rc 669 lib/pacemaker/pcmk_cluster_queries.c if (data.rc != pcmk_rc_ok) { rc 670 lib/pacemaker/pcmk_cluster_queries.c return data.rc; rc 684 lib/pacemaker/pcmk_cluster_queries.c return data.rc; rc 695 lib/pacemaker/pcmk_cluster_queries.c int rc = pcmk_rc_ok; rc 699 lib/pacemaker/pcmk_cluster_queries.c rc = pcmk__xml_output_new(&out, xml); rc 700 lib/pacemaker/pcmk_cluster_queries.c if (rc != pcmk_rc_ok) { rc 701 lib/pacemaker/pcmk_cluster_queries.c return rc; rc 706 lib/pacemaker/pcmk_cluster_queries.c rc = pcmk__query_node_info(out, node_id, node_name, uuid, state, rc 709 lib/pacemaker/pcmk_cluster_queries.c pcmk__xml_output_finish(out, pcmk_rc2exitc(rc), xml); rc 710 lib/pacemaker/pcmk_cluster_queries.c return rc; rc 744 lib/pacemaker/pcmk_cluster_queries.c .rc = EAGAIN, rc 758 lib/pacemaker/pcmk_cluster_queries.c int rc = pcmk_pacemakerd_api_ping(pacemakerd_api, ipc_name); rc 759 lib/pacemaker/pcmk_cluster_queries.c if (rc != pcmk_rc_ok) { rc 761 lib/pacemaker/pcmk_cluster_queries.c pcmk_rc_str(rc)); rc 762 lib/pacemaker/pcmk_cluster_queries.c data.rc = rc; rc 780 lib/pacemaker/pcmk_cluster_queries.c return data.rc; rc 789 lib/pacemaker/pcmk_cluster_queries.c int rc = pcmk_rc_ok; rc 791 lib/pacemaker/pcmk_cluster_queries.c rc = pcmk__xml_output_new(&out, xml); rc 792 lib/pacemaker/pcmk_cluster_queries.c if (rc != pcmk_rc_ok) { rc 793 lib/pacemaker/pcmk_cluster_queries.c return rc; rc 798 lib/pacemaker/pcmk_cluster_queries.c rc = pcmk__pacemakerd_status(out, ipc_name, message_timeout_ms, true, NULL); rc 799 lib/pacemaker/pcmk_cluster_queries.c pcmk__xml_output_finish(out, pcmk_rc2exitc(rc), xml); rc 800 lib/pacemaker/pcmk_cluster_queries.c return rc; rc 831 lib/pacemaker/pcmk_cluster_queries.c int rc; rc 833 lib/pacemaker/pcmk_cluster_queries.c rc = cib__signon_query(out, NULL, &xml_node); rc 835 lib/pacemaker/pcmk_cluster_queries.c if (rc == pcmk_rc_ok) { rc 883 lib/pacemaker/pcmk_cluster_queries.c return rc; rc 890 lib/pacemaker/pcmk_cluster_queries.c int rc = pcmk_rc_ok; rc 892 lib/pacemaker/pcmk_cluster_queries.c rc = pcmk__xml_output_new(&out, xml); rc 893 lib/pacemaker/pcmk_cluster_queries.c if (rc != pcmk_rc_ok) { rc 894 lib/pacemaker/pcmk_cluster_queries.c return rc; rc 899 lib/pacemaker/pcmk_cluster_queries.c rc = pcmk__list_nodes(out, node_types, FALSE); rc 900 lib/pacemaker/pcmk_cluster_queries.c pcmk__xml_output_finish(out, pcmk_rc2exitc(rc), xml); rc 901 lib/pacemaker/pcmk_cluster_queries.c return rc; rc 46 lib/pacemaker/pcmk_fence.c int rc = pcmk_rc_ok; rc 66 lib/pacemaker/pcmk_fence.c rc = st->cmds->register_level_full(st, st_opts, node, pattern, rc 70 lib/pacemaker/pcmk_fence.c rc = st->cmds->remove_level_full(st, st_opts, node, pattern, rc 74 lib/pacemaker/pcmk_fence.c return pcmk_legacy2rc(rc); rc 149 lib/pacemaker/pcmk_fence.c int rc = stonith_api_connect_retry(st, async_fence_data.name, 10); rc 152 lib/pacemaker/pcmk_fence.c if (rc != pcmk_ok) { rc 155 lib/pacemaker/pcmk_fence.c PCMK_EXEC_NOT_CONNECTED, pcmk_strerror(rc)); rc 192 lib/pacemaker/pcmk_fence.c int rc = pcmk_rc_ok; rc 217 lib/pacemaker/pcmk_fence.c rc = stonith__result2rc(&async_fence_data.result); rc 219 lib/pacemaker/pcmk_fence.c return rc; rc 239 lib/pacemaker/pcmk_fence.c int rc = pcmk_rc_ok; rc 260 lib/pacemaker/pcmk_fence.c rc = st->cmds->history(st, opts, target, &history, (timeout / 1000)); rc 265 lib/pacemaker/pcmk_fence.c return pcmk_legacy2rc(rc); rc 300 lib/pacemaker/pcmk_fence.c return pcmk_legacy2rc(rc); rc 310 lib/pacemaker/pcmk_fence.c int rc = pcmk_rc_ok; rc 312 lib/pacemaker/pcmk_fence.c rc = pcmk__xml_output_new(&out, xml); rc 313 lib/pacemaker/pcmk_fence.c if (rc != pcmk_rc_ok) { rc 314 lib/pacemaker/pcmk_fence.c return rc; rc 321 lib/pacemaker/pcmk_fence.c rc = pcmk__fence_history(out, st, target, timeout, verbose, broadcast, rc 323 lib/pacemaker/pcmk_fence.c pcmk__xml_output_finish(out, pcmk_rc2exitc(rc), xml); rc 324 lib/pacemaker/pcmk_fence.c return rc; rc 332 lib/pacemaker/pcmk_fence.c int rc = pcmk_rc_ok; rc 334 lib/pacemaker/pcmk_fence.c rc = st->cmds->list_agents(st, st_opt_sync_call, NULL, &devices, rc 337 lib/pacemaker/pcmk_fence.c if (rc < 0) { rc 338 lib/pacemaker/pcmk_fence.c return pcmk_legacy2rc(rc); rc 357 lib/pacemaker/pcmk_fence.c int rc = pcmk_rc_ok; rc 359 lib/pacemaker/pcmk_fence.c rc = pcmk__xml_output_new(&out, xml); rc 360 lib/pacemaker/pcmk_fence.c if (rc != pcmk_rc_ok) { rc 361 lib/pacemaker/pcmk_fence.c return rc; rc 366 lib/pacemaker/pcmk_fence.c rc = pcmk__fence_installed(out, st, timeout); rc 367 lib/pacemaker/pcmk_fence.c pcmk__xml_output_finish(out, pcmk_rc2exitc(rc), xml); rc 368 lib/pacemaker/pcmk_fence.c return rc; rc 395 lib/pacemaker/pcmk_fence.c int rc = pcmk_rc_ok; rc 397 lib/pacemaker/pcmk_fence.c rc = pcmk__xml_output_new(&out, xml); rc 398 lib/pacemaker/pcmk_fence.c if (rc != pcmk_rc_ok) { rc 399 lib/pacemaker/pcmk_fence.c return rc; rc 404 lib/pacemaker/pcmk_fence.c rc = pcmk__fence_last(out, target, as_nodeid); rc 405 lib/pacemaker/pcmk_fence.c pcmk__xml_output_finish(out, pcmk_rc2exitc(rc), xml); rc 406 lib/pacemaker/pcmk_fence.c return rc; rc 416 lib/pacemaker/pcmk_fence.c int rc = pcmk_rc_ok; rc 418 lib/pacemaker/pcmk_fence.c rc = st->cmds->list(st, st_opts, device_id, &lists, timeout/1000); rc 419 lib/pacemaker/pcmk_fence.c if (rc != pcmk_rc_ok) { rc 420 lib/pacemaker/pcmk_fence.c return pcmk_legacy2rc(rc); rc 433 lib/pacemaker/pcmk_fence.c return rc; rc 442 lib/pacemaker/pcmk_fence.c int rc = pcmk_rc_ok; rc 444 lib/pacemaker/pcmk_fence.c rc = pcmk__xml_output_new(&out, xml); rc 445 lib/pacemaker/pcmk_fence.c if (rc != pcmk_rc_ok) { rc 446 lib/pacemaker/pcmk_fence.c return rc; rc 451 lib/pacemaker/pcmk_fence.c rc = pcmk__fence_list_targets(out, st, device_id, timeout); rc 452 lib/pacemaker/pcmk_fence.c pcmk__xml_output_finish(out, pcmk_rc2exitc(rc), xml); rc 453 lib/pacemaker/pcmk_fence.c return rc; rc 462 lib/pacemaker/pcmk_fence.c int rc = st->cmds->metadata(st, st_opt_sync_call, agent, NULL, &buffer, rc 465 lib/pacemaker/pcmk_fence.c if (rc != pcmk_rc_ok) { rc 466 lib/pacemaker/pcmk_fence.c return pcmk_legacy2rc(rc); rc 471 lib/pacemaker/pcmk_fence.c return rc; rc 480 lib/pacemaker/pcmk_fence.c int rc = pcmk_rc_ok; rc 482 lib/pacemaker/pcmk_fence.c rc = pcmk__xml_output_new(&out, xml); rc 483 lib/pacemaker/pcmk_fence.c if (rc != pcmk_rc_ok) { rc 484 lib/pacemaker/pcmk_fence.c return rc; rc 489 lib/pacemaker/pcmk_fence.c rc = pcmk__fence_metadata(out, st, agent, timeout); rc 490 lib/pacemaker/pcmk_fence.c pcmk__xml_output_finish(out, pcmk_rc2exitc(rc), xml); rc 491 lib/pacemaker/pcmk_fence.c return rc; rc 500 lib/pacemaker/pcmk_fence.c int rc = pcmk_rc_ok; rc 502 lib/pacemaker/pcmk_fence.c rc = st->cmds->query(st, st_opts, target, &devices, timeout/1000); rc 504 lib/pacemaker/pcmk_fence.c if (rc < 0) { rc 505 lib/pacemaker/pcmk_fence.c return pcmk_legacy2rc(rc); rc 529 lib/pacemaker/pcmk_fence.c int rc = pcmk_rc_ok; rc 531 lib/pacemaker/pcmk_fence.c rc = pcmk__xml_output_new(&out, xml); rc 532 lib/pacemaker/pcmk_fence.c if (rc != pcmk_rc_ok) { rc 533 lib/pacemaker/pcmk_fence.c return rc; rc 538 lib/pacemaker/pcmk_fence.c rc = pcmk__fence_registered(out, st, target, timeout); rc 539 lib/pacemaker/pcmk_fence.c pcmk__xml_output_finish(out, pcmk_rc2exitc(rc), xml); rc 540 lib/pacemaker/pcmk_fence.c return rc; rc 581 lib/pacemaker/pcmk_fence.c int rc; rc 583 lib/pacemaker/pcmk_fence.c rc = st->cmds->validate(st, st_opt_sync_call, id, NULL, agent, params, rc 585 lib/pacemaker/pcmk_fence.c out->message(out, "validate", agent, id, output, error_output, rc); rc 586 lib/pacemaker/pcmk_fence.c return pcmk_legacy2rc(rc); rc 596 lib/pacemaker/pcmk_fence.c int rc = pcmk_rc_ok; rc 598 lib/pacemaker/pcmk_fence.c rc = pcmk__xml_output_new(&out, xml); rc 599 lib/pacemaker/pcmk_fence.c if (rc != pcmk_rc_ok) { rc 600 lib/pacemaker/pcmk_fence.c return rc; rc 605 lib/pacemaker/pcmk_fence.c rc = pcmk__fence_validate(out, st, agent, id, params, timeout); rc 606 lib/pacemaker/pcmk_fence.c pcmk__xml_output_finish(out, pcmk_rc2exitc(rc), xml); rc 607 lib/pacemaker/pcmk_fence.c return rc; rc 615 lib/pacemaker/pcmk_fence.c int rc = pcmk_rc_ok; rc 618 lib/pacemaker/pcmk_fence.c rc = ENOTCONN; rc 620 lib/pacemaker/pcmk_fence.c rc = st->cmds->history(st, st_opt_sync_call, NULL, stonith_history, rc 623 lib/pacemaker/pcmk_fence.c rc = pcmk_legacy2rc(rc); rc 624 lib/pacemaker/pcmk_fence.c if (rc != pcmk_rc_ok) { rc 625 lib/pacemaker/pcmk_fence.c return rc; rc 634 lib/pacemaker/pcmk_fence.c return rc; rc 344 lib/pacemaker/pcmk_graph_consumer.c int rc = initiate_action(graph, action); rc 346 lib/pacemaker/pcmk_graph_consumer.c if (rc != pcmk_rc_ok) { rc 350 lib/pacemaker/pcmk_graph_consumer.c pcmk_rc_str(rc)); rc 840 lib/pacemaker/pcmk_graph_consumer.c int status, int rc, const char *exit_reason) rc 859 lib/pacemaker/pcmk_graph_consumer.c lrmd__set_result(op, rc, status, exit_reason); rc 1008 lib/pacemaker/pcmk_graph_producer.c int rc = pcmk_rc_ok; rc 1035 lib/pacemaker/pcmk_graph_producer.c rc = pcmk__scan_ll(value, &limit, 0LL); rc 1036 lib/pacemaker/pcmk_graph_producer.c if (rc != pcmk_rc_ok) { rc 1038 lib/pacemaker/pcmk_graph_producer.c ": %s", value, pcmk_rc_str(rc)); rc 148 lib/pacemaker/pcmk_injections.c int rc = pcmk_ok; rc 151 lib/pacemaker/pcmk_injections.c rc = cib_conn->cmds->query(cib_conn, xpath, NULL, rc 154 lib/pacemaker/pcmk_injections.c if (rc == -ENXIO) { // Only add if not already existing rc 248 lib/pacemaker/pcmk_injections.c int rc = pcmk_ok; rc 258 lib/pacemaker/pcmk_injections.c rc = cib_conn->cmds->query(cib_conn, xpath, &cib_object, rc 269 lib/pacemaker/pcmk_injections.c if (rc == -ENXIO) { rc 283 lib/pacemaker/pcmk_injections.c rc = cib_conn->cmds->query(cib_conn, xpath_by_uuid, &cib_object, rc 296 lib/pacemaker/pcmk_injections.c rc = cib_conn->cmds->modify(cib_conn, PCMK_XE_STATUS, rc 305 lib/pacemaker/pcmk_injections.c if (rc == -ENXIO) { rc 313 lib/pacemaker/pcmk_injections.c rc = cib_conn->cmds->query(cib_conn, xpath, &cib_object, rc 315 lib/pacemaker/pcmk_injections.c crm_trace("Injecting node state for %s (rc=%d)", node, rc); rc 328 lib/pacemaker/pcmk_injections.c pcmk__assert(rc == pcmk_ok); rc 498 lib/pacemaker/pcmk_injections.c int rc = pcmk_rc_ok; rc 503 lib/pacemaker/pcmk_injections.c rc = pcmk__get_ticket_state(cib, ticket_id, &ticket_state_xml); rc 505 lib/pacemaker/pcmk_injections.c if (rc == pcmk_rc_duplicate_id) { rc 508 lib/pacemaker/pcmk_injections.c rc = pcmk_rc_ok; rc 511 lib/pacemaker/pcmk_injections.c if (rc == pcmk_rc_ok) { // Ticket state found, use it rc 516 lib/pacemaker/pcmk_injections.c } else if (rc == ENXIO) { // No ticket state, create it rc 525 lib/pacemaker/pcmk_injections.c return rc; rc 533 lib/pacemaker/pcmk_injections.c rc = cib->cmds->modify(cib, PCMK_XE_STATUS, xml_top, rc 535 lib/pacemaker/pcmk_injections.c rc = pcmk_legacy2rc(rc); rc 538 lib/pacemaker/pcmk_injections.c return rc; rc 554 lib/pacemaker/pcmk_injections.c int rc; rc 577 lib/pacemaker/pcmk_injections.c rc = sscanf(spec, "%[^@]@%[^=]=%d", key, node, &outcome); rc 578 lib/pacemaker/pcmk_injections.c if (rc != 3) { rc 580 lib/pacemaker/pcmk_injections.c spec, rc); rc 614 lib/pacemaker/pcmk_injections.c rc = cib->cmds->modify(cib, PCMK_XE_STATUS, cib_node, rc 616 lib/pacemaker/pcmk_injections.c pcmk__assert(rc == pcmk_ok); rc 636 lib/pacemaker/pcmk_injections.c int rc = pcmk_ok; rc 649 lib/pacemaker/pcmk_injections.c rc = cib->cmds->modify(cib, NULL, top, cib_sync_call|cib_scope_local); rc 650 lib/pacemaker/pcmk_injections.c pcmk__assert(rc == pcmk_ok); rc 654 lib/pacemaker/pcmk_injections.c rc = cib__update_node_attr(out, cib, cib_sync_call|cib_scope_local, rc 658 lib/pacemaker/pcmk_injections.c pcmk__assert(rc == pcmk_rc_ok); rc 669 lib/pacemaker/pcmk_injections.c rc = cib->cmds->modify(cib, PCMK_XE_STATUS, cib_node, rc 671 lib/pacemaker/pcmk_injections.c pcmk__assert(rc == pcmk_ok); rc 684 lib/pacemaker/pcmk_injections.c rc = cib->cmds->modify(cib, PCMK_XE_STATUS, cib_node, rc 686 lib/pacemaker/pcmk_injections.c pcmk__assert(rc == pcmk_ok); rc 715 lib/pacemaker/pcmk_injections.c rc = cib->cmds->modify(cib, PCMK_XE_STATUS, cib_node, rc 717 lib/pacemaker/pcmk_injections.c pcmk__assert(rc == pcmk_ok); rc 726 lib/pacemaker/pcmk_injections.c rc = set_ticket_state_attr(out, ticket_id, PCMK__XA_GRANTED, true, cib); rc 727 lib/pacemaker/pcmk_injections.c pcmk__assert(rc == pcmk_rc_ok); rc 735 lib/pacemaker/pcmk_injections.c rc = set_ticket_state_attr(out, ticket_id, PCMK__XA_GRANTED, false, rc 737 lib/pacemaker/pcmk_injections.c pcmk__assert(rc == pcmk_rc_ok); rc 745 lib/pacemaker/pcmk_injections.c rc = set_ticket_state_attr(out, ticket_id, PCMK_XA_STANDBY, true, cib); rc 746 lib/pacemaker/pcmk_injections.c pcmk__assert(rc == pcmk_rc_ok); rc 754 lib/pacemaker/pcmk_injections.c rc = set_ticket_state_attr(out, ticket_id, PCMK_XA_STANDBY, false, cib); rc 755 lib/pacemaker/pcmk_injections.c pcmk__assert(rc == pcmk_rc_ok); rc 51 lib/pacemaker/pcmk_options.c int rc = pcmk_rc_ok; rc 53 lib/pacemaker/pcmk_options.c rc = pcmk__xml_output_new(&out, xml); rc 54 lib/pacemaker/pcmk_options.c if (rc != pcmk_rc_ok) { rc 55 lib/pacemaker/pcmk_options.c return rc; rc 60 lib/pacemaker/pcmk_options.c rc = pcmk__list_cluster_options(out, all); rc 62 lib/pacemaker/pcmk_options.c pcmk__xml_output_finish(out, pcmk_rc2exitc(rc), xml); rc 63 lib/pacemaker/pcmk_options.c return rc; rc 100 lib/pacemaker/pcmk_options.c int rc = pcmk_rc_ok; rc 102 lib/pacemaker/pcmk_options.c rc = pcmk__xml_output_new(&out, xml); rc 103 lib/pacemaker/pcmk_options.c if (rc != pcmk_rc_ok) { rc 104 lib/pacemaker/pcmk_options.c return rc; rc 109 lib/pacemaker/pcmk_options.c rc = pcmk__list_fencing_params(out, all); rc 111 lib/pacemaker/pcmk_options.c pcmk__xml_output_finish(out, pcmk_rc2exitc(rc), xml); rc 112 lib/pacemaker/pcmk_options.c return rc; rc 140 lib/pacemaker/pcmk_options.c int rc = pcmk_rc_ok; rc 142 lib/pacemaker/pcmk_options.c rc = pcmk__xml_output_new(&out, xml); rc 143 lib/pacemaker/pcmk_options.c if (rc != pcmk_rc_ok) { rc 144 lib/pacemaker/pcmk_options.c return rc; rc 149 lib/pacemaker/pcmk_options.c rc = pcmk__list_primitive_meta(out, all); rc 151 lib/pacemaker/pcmk_options.c pcmk__xml_output_finish(out, pcmk_rc2exitc(rc), xml); rc 152 lib/pacemaker/pcmk_options.c return rc; rc 73 lib/pacemaker/pcmk_output.c int rc = pcmk_rc_no_output; rc 84 lib/pacemaker/pcmk_output.c PCMK__OUTPUT_LIST_HEADER(out, false, rc, "locations"); rc 98 lib/pacemaker/pcmk_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 101 lib/pacemaker/pcmk_output.c return rc; rc 370 lib/pacemaker/pcmk_output.c int rc = pcmk_rc_no_output; rc 373 lib/pacemaker/pcmk_output.c return rc; rc 384 lib/pacemaker/pcmk_output.c PCMK__OUTPUT_LIST_HEADER(out, false, rc, rc 409 lib/pacemaker/pcmk_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 410 lib/pacemaker/pcmk_output.c return rc; rc 419 lib/pacemaker/pcmk_output.c int rc = pcmk_rc_no_output; rc 422 lib/pacemaker/pcmk_output.c return rc; rc 446 lib/pacemaker/pcmk_output.c return rc; rc 455 lib/pacemaker/pcmk_output.c int rc = pcmk_rc_no_output; rc 458 lib/pacemaker/pcmk_output.c return rc; rc 470 lib/pacemaker/pcmk_output.c PCMK__OUTPUT_LIST_HEADER(out, false, rc, "Resources colocated with %s", rc 495 lib/pacemaker/pcmk_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 496 lib/pacemaker/pcmk_output.c return rc; rc 505 lib/pacemaker/pcmk_output.c int rc = pcmk_rc_no_output; rc 508 lib/pacemaker/pcmk_output.c return rc; rc 533 lib/pacemaker/pcmk_output.c return rc; rc 543 lib/pacemaker/pcmk_output.c int rc = pcmk_rc_no_output; rc 553 lib/pacemaker/pcmk_output.c PCMK__OUTPUT_LIST_HEADER(out, false, rc, "Locations"); rc 561 lib/pacemaker/pcmk_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 562 lib/pacemaker/pcmk_output.c return rc; rc 695 lib/pacemaker/pcmk_output.c int rc = pcmk_rc_ok; rc 716 lib/pacemaker/pcmk_output.c rc = out->info(out, "Status of %s: '%s' (last updated %s)", rc 721 lib/pacemaker/pcmk_output.c return rc; rc 1082 lib/pacemaker/pcmk_output.c int rc = pcmk_rc_no_output; rc 1099 lib/pacemaker/pcmk_output.c return rc; rc 1153 lib/pacemaker/pcmk_output.c CRM_CHECK(next != NULL, return rc); rc 1164 lib/pacemaker/pcmk_output.c rc = out->message(out, "rsc-action-item", "Migrate", rsc, current, rc 1168 lib/pacemaker/pcmk_output.c rc = out->message(out, "rsc-action-item", "Reload", rsc, current, rc 1176 lib/pacemaker/pcmk_output.c rc = out->message(out, "rsc-action-item", "Re-promote", rsc, rc 1190 lib/pacemaker/pcmk_output.c rc = out->message(out, "rsc-action-item", "Stop", rsc, current, rc 1197 lib/pacemaker/pcmk_output.c rc = out->message(out, "rsc-action-item", rc 1202 lib/pacemaker/pcmk_output.c rc = out->message(out, "rsc-action-item", "Recover", rsc, current, rc 1207 lib/pacemaker/pcmk_output.c rc = out->message(out, "rsc-action-item", "Restart", rsc, current, rc 1218 lib/pacemaker/pcmk_output.c return rc; rc 1249 lib/pacemaker/pcmk_output.c rc = pcmk_rc_ok; rc 1259 lib/pacemaker/pcmk_output.c rc = out->message(out, "rsc-action-item", "Recover", rsc, current, rc 1264 lib/pacemaker/pcmk_output.c rc = out->message(out, "rsc-action-item", "Move", rsc, current, next, rc 1269 lib/pacemaker/pcmk_output.c rc = out->message(out, "rsc-action-item", "Reload", rsc, current, next, rc 1274 lib/pacemaker/pcmk_output.c rc = out->message(out, "rsc-action-item", "Restart", rsc, current, rc 1280 lib/pacemaker/pcmk_output.c rc = out->message(out, "rsc-action-item", "Demote", rsc, current, rc 1285 lib/pacemaker/pcmk_output.c rc = out->message(out, "rsc-action-item", "Promote", rsc, current, rc 1290 lib/pacemaker/pcmk_output.c rc = out->message(out, "rsc-action-item", "Start", rsc, current, next, rc 1294 lib/pacemaker/pcmk_output.c return rc; rc 1799 lib/pacemaker/pcmk_output.c int rc = pcmk_rc_no_output; rc 1802 lib/pacemaker/pcmk_output.c CHECK_RC(rc, out->message(out, "cluster-summary", scheduler, pcmkd_state, rc 1806 lib/pacemaker/pcmk_output.c CHECK_RC(rc, out->message(out, "node-list", scheduler->nodes, unames, rc 1807 lib/pacemaker/pcmk_output.c resources, show_opts, rc == pcmk_rc_ok)); rc 1812 lib/pacemaker/pcmk_output.c CHECK_RC(rc, out->message(out, "resource-list", scheduler, show_opts, rc 1813 lib/pacemaker/pcmk_output.c true, unames, resources, rc == pcmk_rc_ok)); rc 1818 lib/pacemaker/pcmk_output.c CHECK_RC(rc, out->message(out, "node-attribute-list", scheduler, rc 1819 lib/pacemaker/pcmk_output.c show_opts, (rc == pcmk_rc_ok), unames, rc 1828 lib/pacemaker/pcmk_output.c CHECK_RC(rc, out->message(out, "node-summary", scheduler, unames, rc 1830 lib/pacemaker/pcmk_output.c (rc == pcmk_rc_ok))); rc 1838 lib/pacemaker/pcmk_output.c CHECK_RC(rc, out->message(out, "failed-action-list", scheduler, unames, rc 1839 lib/pacemaker/pcmk_output.c resources, show_opts, rc == pcmk_rc_ok)); rc 1852 lib/pacemaker/pcmk_output.c CHECK_RC(rc, out->message(out, "failed-fencing-list", rc 1854 lib/pacemaker/pcmk_output.c show_opts, rc == pcmk_rc_ok)); rc 1857 lib/pacemaker/pcmk_output.c PCMK__OUTPUT_SPACER_IF(out, rc == pcmk_rc_ok); rc 1869 lib/pacemaker/pcmk_output.c CHECK_RC(rc, out->message(out, "ticket-list", scheduler->tickets, rc 1870 lib/pacemaker/pcmk_output.c (rc == pcmk_rc_ok), false, false)); rc 1875 lib/pacemaker/pcmk_output.c CHECK_RC(rc, out->message(out, "ban-list", scheduler, prefix, resources, rc 1876 lib/pacemaker/pcmk_output.c show_opts, rc == pcmk_rc_ok)); rc 1884 lib/pacemaker/pcmk_output.c PCMK__OUTPUT_SPACER_IF(out, rc == pcmk_rc_ok); rc 1897 lib/pacemaker/pcmk_output.c CHECK_RC(rc, out->message(out, "fencing-list", hp, unames, rc 1899 lib/pacemaker/pcmk_output.c rc == pcmk_rc_ok)); rc 1908 lib/pacemaker/pcmk_output.c CHECK_RC(rc, out->message(out, "pending-fencing-list", hp, rc 1910 lib/pacemaker/pcmk_output.c rc == pcmk_rc_ok)); rc 1915 lib/pacemaker/pcmk_output.c return rc; rc 126 lib/pacemaker/pcmk_resource.c int rc = pcmk_rc_ok; rc 140 lib/pacemaker/pcmk_resource.c rc = cib->cmds->remove(cib, PCMK_XE_RESOURCES, msg_data, cib_opts); rc 141 lib/pacemaker/pcmk_resource.c rc = pcmk_legacy2rc(rc); rc 144 lib/pacemaker/pcmk_resource.c return rc; rc 151 lib/pacemaker/pcmk_resource.c int rc = pcmk_rc_ok; rc 155 lib/pacemaker/pcmk_resource.c rc = pcmk__xml_output_new(&out, xml); rc 156 lib/pacemaker/pcmk_resource.c if (rc != pcmk_rc_ok) { rc 157 lib/pacemaker/pcmk_resource.c return rc; rc 162 lib/pacemaker/pcmk_resource.c rc = pcmk_rc_cib_corrupt; rc 166 lib/pacemaker/pcmk_resource.c rc = cib->cmds->signon(cib, crm_system_name, cib_command); rc 167 lib/pacemaker/pcmk_resource.c rc = pcmk_legacy2rc(rc); rc 169 lib/pacemaker/pcmk_resource.c if (rc != pcmk_rc_ok) { rc 173 lib/pacemaker/pcmk_resource.c rc = pcmk__resource_delete(cib, cib_opts, rsc_id, rsc_type); rc 180 lib/pacemaker/pcmk_resource.c pcmk__xml_output_finish(out, pcmk_rc2exitc(rc), xml); rc 181 lib/pacemaker/pcmk_resource.c return rc; rc 203 lib/pacemaker/pcmk_resource.c int rc = pcmk_rc_ok; rc 229 lib/pacemaker/pcmk_resource.c rc = out->message(out, "digests", rsc, node, task, interval_ms, digests); rc 232 lib/pacemaker/pcmk_resource.c return rc; rc 240 lib/pacemaker/pcmk_resource.c int rc = pcmk_rc_ok; rc 242 lib/pacemaker/pcmk_resource.c rc = pcmk__xml_output_new(&out, xml); rc 243 lib/pacemaker/pcmk_resource.c if (rc != pcmk_rc_ok) { rc 244 lib/pacemaker/pcmk_resource.c return rc; rc 247 lib/pacemaker/pcmk_resource.c rc = pcmk__resource_digests(out, rsc, node, overrides); rc 248 lib/pacemaker/pcmk_resource.c pcmk__xml_output_finish(out, pcmk_rc2exitc(rc), xml); rc 249 lib/pacemaker/pcmk_resource.c return rc; rc 38 lib/pacemaker/pcmk_result_code.c int rc = pcmk_rc_ok; rc 43 lib/pacemaker/pcmk_result_code.c rc = pcmk_result_get_strings(code, type, &name, &desc); rc 44 lib/pacemaker/pcmk_result_code.c if (rc != pcmk_rc_ok) { rc 46 lib/pacemaker/pcmk_result_code.c return rc; rc 57 lib/pacemaker/pcmk_result_code.c return rc; rc 66 lib/pacemaker/pcmk_result_code.c int rc = pcmk_rc_ok; rc 68 lib/pacemaker/pcmk_result_code.c rc = pcmk__xml_output_new(&out, xml); rc 69 lib/pacemaker/pcmk_result_code.c if (rc != pcmk_rc_ok) { rc 70 lib/pacemaker/pcmk_result_code.c return rc; rc 75 lib/pacemaker/pcmk_result_code.c rc = pcmk__show_result_code(out, code, type, flags); rc 76 lib/pacemaker/pcmk_result_code.c pcmk__xml_output_finish(out, pcmk_rc2exitc(rc), xml); rc 77 lib/pacemaker/pcmk_result_code.c return rc; rc 96 lib/pacemaker/pcmk_result_code.c int rc = pcmk_rc_ok; rc 105 lib/pacemaker/pcmk_result_code.c rc = pcmk__result_bounds(type, &start, &end); rc 106 lib/pacemaker/pcmk_result_code.c if (rc != pcmk_rc_ok) { rc 110 lib/pacemaker/pcmk_result_code.c return rc; rc 146 lib/pacemaker/pcmk_result_code.c return rc; rc 155 lib/pacemaker/pcmk_result_code.c int rc = pcmk_rc_ok; rc 157 lib/pacemaker/pcmk_result_code.c rc = pcmk__xml_output_new(&out, xml); rc 158 lib/pacemaker/pcmk_result_code.c if (rc != pcmk_rc_ok) { rc 159 lib/pacemaker/pcmk_result_code.c return rc; rc 164 lib/pacemaker/pcmk_result_code.c rc = pcmk__list_result_codes(out, type, flags); rc 165 lib/pacemaker/pcmk_result_code.c pcmk__xml_output_finish(out, pcmk_rc2exitc(rc), xml); rc 166 lib/pacemaker/pcmk_result_code.c return rc; rc 41 lib/pacemaker/pcmk_rule.c int rc = pcmk_rc_ok; rc 140 lib/pacemaker/pcmk_rule.c rc = pcmk__evaluate_date_expression(match, scheduler->now, NULL); rc 141 lib/pacemaker/pcmk_rule.c if (rc == pcmk_rc_undetermined) { // Malformed or missing rc 146 lib/pacemaker/pcmk_rule.c return rc; rc 167 lib/pacemaker/pcmk_rule.c int rc = pcmk_rc_ok; rc 176 lib/pacemaker/pcmk_rule.c rc = pcmk__init_scheduler(out, input, date, &scheduler); rc 177 lib/pacemaker/pcmk_rule.c if (rc != pcmk_rc_ok) { rc 178 lib/pacemaker/pcmk_rule.c return rc; rc 188 lib/pacemaker/pcmk_rule.c rc = last_rc; rc 193 lib/pacemaker/pcmk_rule.c return rc; rc 202 lib/pacemaker/pcmk_rule.c int rc = pcmk_rc_ok; rc 204 lib/pacemaker/pcmk_rule.c rc = pcmk__xml_output_new(&out, xml); rc 205 lib/pacemaker/pcmk_rule.c if (rc != pcmk_rc_ok) { rc 206 lib/pacemaker/pcmk_rule.c return rc; rc 211 lib/pacemaker/pcmk_rule.c rc = pcmk__check_rules(out, input, date, rule_ids); rc 212 lib/pacemaker/pcmk_rule.c pcmk__xml_output_finish(out, pcmk_rc2exitc(rc), xml); rc 213 lib/pacemaker/pcmk_rule.c return rc; rc 1218 lib/pacemaker/pcmk_sched_actions.c magic = crm_strdup_printf("%d:%d;%s", op->op_status, op->rc, rc 1233 lib/pacemaker/pcmk_sched_actions.c crm_xml_add_int(xml_op, PCMK__XA_RC_CODE, op->rc); rc 1507 lib/pacemaker/pcmk_sched_actions.c return (digest_data->rc != pcmk__digest_match) && (digest_secure != NULL) rc 1664 lib/pacemaker/pcmk_sched_actions.c switch (digest_data->rc) { rc 585 lib/pacemaker/pcmk_sched_colocation.c int rc = pcmk_rc_ok; rc 596 lib/pacemaker/pcmk_sched_colocation.c rc = pcmk__xe_get_bool_attr(set1, PCMK_XA_SEQUENTIAL, &sequential); rc 597 lib/pacemaker/pcmk_sched_colocation.c if ((rc != pcmk_rc_ok) || sequential) { rc 615 lib/pacemaker/pcmk_sched_colocation.c rc = pcmk__xe_get_bool_attr(set2, PCMK_XA_SEQUENTIAL, &sequential); rc 616 lib/pacemaker/pcmk_sched_colocation.c if ((rc != pcmk_rc_ok) || sequential) { rc 195 lib/pacemaker/pcmk_sched_instances.c int rc = 0; rc 224 lib/pacemaker/pcmk_sched_instances.c rc = 1; rc 230 lib/pacemaker/pcmk_sched_instances.c rc = -1; rc 235 lib/pacemaker/pcmk_sched_instances.c return rc; rc 349 lib/pacemaker/pcmk_sched_instances.c int rc = 0; rc 489 lib/pacemaker/pcmk_sched_instances.c rc = cmp_instance_by_colocation(instance1, instance2); rc 490 lib/pacemaker/pcmk_sched_instances.c if (rc != 0) { rc 491 lib/pacemaker/pcmk_sched_instances.c return rc; rc 495 lib/pacemaker/pcmk_sched_instances.c rc = pcmk__cmp_instance_number(instance1, instance2); rc 496 lib/pacemaker/pcmk_sched_instances.c if (rc < 0) { rc 499 lib/pacemaker/pcmk_sched_instances.c } else if (rc > 0) { rc 506 lib/pacemaker/pcmk_sched_instances.c return rc; rc 132 lib/pacemaker/pcmk_sched_ordering.c int rc = pcmk_rc_ok; rc 143 lib/pacemaker/pcmk_sched_ordering.c rc = pcmk__xe_get_bool_attr(xml_obj, PCMK_XA_SYMMETRICAL, &symmetric); rc 145 lib/pacemaker/pcmk_sched_ordering.c if (rc != pcmk_rc_ok && parent_symmetrical_s != NULL) { rc 147 lib/pacemaker/pcmk_sched_ordering.c rc = pcmk_rc_ok; rc 150 lib/pacemaker/pcmk_sched_ordering.c if (rc == pcmk_rc_ok) { rc 1586 lib/pacemaker/pcmk_sched_primitive.c int rc = pcmk__scan_ll(shutdown, &result_ll, 0LL); rc 1588 lib/pacemaker/pcmk_sched_primitive.c if (rc == pcmk_rc_ok) { rc 1593 lib/pacemaker/pcmk_sched_primitive.c shutdown, pcmk__node_name(node), pcmk_rc_str(rc)); rc 669 lib/pacemaker/pcmk_sched_promotable.c int rc = pcmk_rc_ok; rc 738 lib/pacemaker/pcmk_sched_promotable.c rc = pcmk_parse_score(attr_value, &score, 0); rc 739 lib/pacemaker/pcmk_sched_promotable.c if (rc != pcmk_rc_ok) { rc 664 lib/pacemaker/pcmk_sched_resource.c int rc = 0; rc 678 lib/pacemaker/pcmk_sched_resource.c rc = -1; rc 682 lib/pacemaker/pcmk_sched_resource.c rc = 1; rc 715 lib/pacemaker/pcmk_sched_resource.c rc = -1; rc 719 lib/pacemaker/pcmk_sched_resource.c rc = 1; rc 731 lib/pacemaker/pcmk_sched_resource.c rc = -1; rc 735 lib/pacemaker/pcmk_sched_resource.c rc = 1; rc 745 lib/pacemaker/pcmk_sched_resource.c ((rc < 0)? '>' : ((rc > 0)? '<' : '=')), rc 756 lib/pacemaker/pcmk_sched_resource.c return rc; rc 61 lib/pacemaker/pcmk_scheduler.c switch (digest_data->rc) { rc 873 lib/pacemaker/pcmk_scheduler.c int rc = cib__signon_query(out, NULL, &(new_scheduler->input)); rc 875 lib/pacemaker/pcmk_scheduler.c if (rc != pcmk_rc_ok) { rc 877 lib/pacemaker/pcmk_scheduler.c return rc; rc 44 lib/pacemaker/pcmk_setup.c int rc = pcmk_rc_ok; rc 46 lib/pacemaker/pcmk_setup.c rc = pcmk__xml_output_new(out, xml); rc 47 lib/pacemaker/pcmk_setup.c if (rc != pcmk_rc_ok) { rc 48 lib/pacemaker/pcmk_setup.c return rc; rc 57 lib/pacemaker/pcmk_setup.c rc = (*cib)->cmds->signon(*cib, crm_system_name, cib_command); rc 58 lib/pacemaker/pcmk_setup.c rc = pcmk_legacy2rc(rc); rc 60 lib/pacemaker/pcmk_setup.c if (rc != pcmk_rc_ok) { rc 62 lib/pacemaker/pcmk_setup.c return rc; rc 67 lib/pacemaker/pcmk_setup.c rc = pcmk__init_scheduler(*out, NULL, NULL, scheduler); rc 68 lib/pacemaker/pcmk_setup.c if (rc != pcmk_rc_ok && cib != NULL) { rc 70 lib/pacemaker/pcmk_setup.c return rc; rc 77 lib/pacemaker/pcmk_setup.c return rc; rc 499 lib/pacemaker/pcmk_simulate.c int rc; rc 629 lib/pacemaker/pcmk_simulate.c rc = sscanf(spec, "%*[^=]=%d", (int *) &op->rc); rc 630 lib/pacemaker/pcmk_simulate.c if (rc != 1) { rc 637 lib/pacemaker/pcmk_simulate.c action->id, op->rc); rc 641 lib/pacemaker/pcmk_simulate.c op->interval_ms, op->rc); rc 647 lib/pacemaker/pcmk_simulate.c rc = fake_cib->cmds->modify(fake_cib, PCMK_XE_STATUS, cib_node, rc 649 lib/pacemaker/pcmk_simulate.c pcmk__assert(rc == pcmk_ok); rc 700 lib/pacemaker/pcmk_simulate.c int rc = pcmk_ok; rc 709 lib/pacemaker/pcmk_simulate.c rc = fake_cib->cmds->replace(fake_cib, PCMK_XE_STATUS, cib_node, rc 711 lib/pacemaker/pcmk_simulate.c pcmk__assert(rc == pcmk_ok); rc 783 lib/pacemaker/pcmk_simulate.c int rc = fake_cib->cmds->query(fake_cib, NULL, &cib_object, rc 786 lib/pacemaker/pcmk_simulate.c pcmk__assert(rc == pcmk_ok); rc 802 lib/pacemaker/pcmk_simulate.c int rc = pcmk_rc_ok; rc 806 lib/pacemaker/pcmk_simulate.c rc = cib__signon_query(out, &cib, &input); rc 807 lib/pacemaker/pcmk_simulate.c if (rc != pcmk_rc_ok) { rc 864 lib/pacemaker/pcmk_simulate.c rc = cib->cmds->query(cib, NULL, &input, cib_sync_call); rc 865 lib/pacemaker/pcmk_simulate.c if (rc != pcmk_rc_ok) { rc 866 lib/pacemaker/pcmk_simulate.c rc = pcmk_legacy2rc(rc); rc 876 lib/pacemaker/pcmk_simulate.c rc = pcmk__xml_write_file(input, input_file, false, NULL); rc 877 lib/pacemaker/pcmk_simulate.c if (rc != pcmk_rc_ok) { rc 912 lib/pacemaker/pcmk_simulate.c rc = pcmk__log_output_new(&logger_out); rc 913 lib/pacemaker/pcmk_simulate.c if (rc != pcmk_rc_ok) { rc 934 lib/pacemaker/pcmk_simulate.c rc = pcmk__xml_write_file(scheduler->graph, graph_file, false, rc 936 lib/pacemaker/pcmk_simulate.c if (rc != pcmk_rc_ok) { rc 937 lib/pacemaker/pcmk_simulate.c rc = pcmk_rc_graph_error; rc 943 lib/pacemaker/pcmk_simulate.c rc = write_sim_dotfile(scheduler, dot_file, rc 946 lib/pacemaker/pcmk_simulate.c if (rc != pcmk_rc_ok) { rc 947 lib/pacemaker/pcmk_simulate.c rc = pcmk_rc_dot_error; rc 957 lib/pacemaker/pcmk_simulate.c rc = pcmk_rc_ok; rc 966 lib/pacemaker/pcmk_simulate.c rc = pcmk_rc_invalid_transition; rc 988 lib/pacemaker/pcmk_simulate.c return rc; rc 999 lib/pacemaker/pcmk_simulate.c int rc = pcmk_rc_ok; rc 1001 lib/pacemaker/pcmk_simulate.c rc = pcmk__xml_output_new(&out, xml); rc 1002 lib/pacemaker/pcmk_simulate.c if (rc != pcmk_rc_ok) { rc 1003 lib/pacemaker/pcmk_simulate.c return rc; rc 1009 lib/pacemaker/pcmk_simulate.c rc = pcmk__simulate(scheduler, out, injections, flags, section_opts, rc 1011 lib/pacemaker/pcmk_simulate.c pcmk__xml_output_finish(out, pcmk_rc2exitc(rc), xml); rc 1012 lib/pacemaker/pcmk_simulate.c return rc; rc 29 lib/pacemaker/pcmk_status.c int rc = pcmk_rc_ok; rc 35 lib/pacemaker/pcmk_status.c rc = st->cmds->connect(st, crm_system_name, NULL); rc 36 lib/pacemaker/pcmk_status.c if (rc == pcmk_rc_ok) { rc 87 lib/pacemaker/pcmk_status.c int rc = pcmk_rc_ok; rc 89 lib/pacemaker/pcmk_status.c rc = pcmk__update_configured_schema(&cib_copy, false); rc 90 lib/pacemaker/pcmk_status.c if (rc != pcmk_rc_ok) { rc 93 lib/pacemaker/pcmk_status.c out->err(out, "Upgrade failed: %s", pcmk_rc_str(rc)); rc 94 lib/pacemaker/pcmk_status.c return rc; rc 136 lib/pacemaker/pcmk_status.c rc = pcmk__output_simple_status(out, scheduler); rc 150 lib/pacemaker/pcmk_status.c return rc; rc 158 lib/pacemaker/pcmk_status.c int rc = pcmk_rc_ok; rc 170 lib/pacemaker/pcmk_status.c rc = pcmk__xml_output_new(&out, xml); rc 171 lib/pacemaker/pcmk_status.c if (rc != pcmk_rc_ok) { rc 173 lib/pacemaker/pcmk_status.c return rc; rc 180 lib/pacemaker/pcmk_status.c rc = pcmk__status(out, cib, pcmk__fence_history_full, pcmk_section_all, rc 182 lib/pacemaker/pcmk_status.c pcmk__xml_output_finish(out, pcmk_rc2exitc(rc), xml); rc 185 lib/pacemaker/pcmk_status.c return rc; rc 231 lib/pacemaker/pcmk_status.c int rc = pcmk_rc_ok; rc 241 lib/pacemaker/pcmk_status.c rc = pcmk__pacemakerd_status(out, crm_system_name, timeout_ms, false, rc 243 lib/pacemaker/pcmk_status.c if (rc != pcmk_rc_ok) { rc 244 lib/pacemaker/pcmk_status.c return rc; rc 261 lib/pacemaker/pcmk_status.c return rc; rc 269 lib/pacemaker/pcmk_status.c rc = cib__signon_query(out, &cib, ¤t_cib); rc 270 lib/pacemaker/pcmk_status.c if (rc != pcmk_rc_ok) { rc 279 lib/pacemaker/pcmk_status.c rc = pcmk__output_cluster_status(out, stonith, cib, current_cib, rc 283 lib/pacemaker/pcmk_status.c if (rc != pcmk_rc_ok) { rc 24 lib/pacemaker/pcmk_ticket.c int rc = pcmk__get_ticket_state(cib, ticket_id, ticket_state_xml); rc 26 lib/pacemaker/pcmk_ticket.c if (rc == pcmk_rc_ok || rc == pcmk_rc_duplicate_id) { rc 30 lib/pacemaker/pcmk_ticket.c } else if (rc == ENXIO) { rc 39 lib/pacemaker/pcmk_ticket.c rc = pcmk_rc_ok; rc 46 lib/pacemaker/pcmk_ticket.c return rc; rc 78 lib/pacemaker/pcmk_ticket.c int rc = pcmk_rc_ok; rc 93 lib/pacemaker/pcmk_ticket.c rc = cib->cmds->query(cib, xpath, &xml_search, rc 95 lib/pacemaker/pcmk_ticket.c rc = pcmk_legacy2rc(rc); rc 97 lib/pacemaker/pcmk_ticket.c if (rc == pcmk_rc_ok) { rc 101 lib/pacemaker/pcmk_ticket.c rc = pcmk_rc_duplicate_id; rc 108 lib/pacemaker/pcmk_ticket.c return rc; rc 114 lib/pacemaker/pcmk_ticket.c int rc = pcmk_rc_ok; rc 131 lib/pacemaker/pcmk_ticket.c rc = cib->cmds->query(cib, (const char *) xpath, &result, rc 133 lib/pacemaker/pcmk_ticket.c rc = pcmk_legacy2rc(rc); rc 141 lib/pacemaker/pcmk_ticket.c return rc; rc 148 lib/pacemaker/pcmk_ticket.c int rc = pcmk_rc_ok; rc 151 lib/pacemaker/pcmk_ticket.c rc = pcmk__setup_output_cib_sched(&out, &cib, NULL, xml); rc 152 lib/pacemaker/pcmk_ticket.c if (rc != pcmk_rc_ok) { rc 156 lib/pacemaker/pcmk_ticket.c rc = pcmk__ticket_constraints(out, cib, ticket_id); rc 163 lib/pacemaker/pcmk_ticket.c pcmk__xml_output_finish(out, pcmk_rc2exitc(rc), xml); rc 164 lib/pacemaker/pcmk_ticket.c return rc; rc 170 lib/pacemaker/pcmk_ticket.c int rc = pcmk_rc_ok; rc 173 lib/pacemaker/pcmk_ticket.c rc = cib->cmds->remove(cib, PCMK_XE_STATUS, child, cib_sync_call); rc 174 lib/pacemaker/pcmk_ticket.c rc = pcmk_legacy2rc(rc); rc 176 lib/pacemaker/pcmk_ticket.c return rc; rc 183 lib/pacemaker/pcmk_ticket.c int rc = pcmk_rc_ok; rc 204 lib/pacemaker/pcmk_ticket.c rc = pcmk__get_ticket_state(cib, ticket_id, &state); rc 206 lib/pacemaker/pcmk_ticket.c if (rc == pcmk_rc_duplicate_id) { rc 210 lib/pacemaker/pcmk_ticket.c } else if (rc == ENXIO) { rc 213 lib/pacemaker/pcmk_ticket.c } else if (rc != pcmk_rc_ok) { rc 214 lib/pacemaker/pcmk_ticket.c return rc; rc 219 lib/pacemaker/pcmk_ticket.c if (rc == pcmk_rc_duplicate_id) { rc 220 lib/pacemaker/pcmk_ticket.c rc = pcmk__xe_foreach_child(state, NULL, delete_single_ticket, cib); rc 222 lib/pacemaker/pcmk_ticket.c rc = delete_single_ticket(state, cib); rc 225 lib/pacemaker/pcmk_ticket.c if (rc == pcmk_rc_ok) { rc 230 lib/pacemaker/pcmk_ticket.c return rc; rc 239 lib/pacemaker/pcmk_ticket.c int rc = pcmk_rc_ok; rc 241 lib/pacemaker/pcmk_ticket.c rc = pcmk__setup_output_cib_sched(&out, &cib, &scheduler, xml); rc 242 lib/pacemaker/pcmk_ticket.c if (rc != pcmk_rc_ok) { rc 246 lib/pacemaker/pcmk_ticket.c rc = pcmk__ticket_delete(out, cib, scheduler, ticket_id, force); rc 253 lib/pacemaker/pcmk_ticket.c pcmk__xml_output_finish(out, pcmk_rc2exitc(rc), xml); rc 255 lib/pacemaker/pcmk_ticket.c return rc; rc 263 lib/pacemaker/pcmk_ticket.c int rc = pcmk_rc_ok; rc 284 lib/pacemaker/pcmk_ticket.c rc = ENXIO; rc 287 lib/pacemaker/pcmk_ticket.c return rc; rc 296 lib/pacemaker/pcmk_ticket.c int rc = pcmk_rc_ok; rc 298 lib/pacemaker/pcmk_ticket.c rc = pcmk__setup_output_cib_sched(&out, NULL, &scheduler, xml); rc 299 lib/pacemaker/pcmk_ticket.c if (rc != pcmk_rc_ok) { rc 303 lib/pacemaker/pcmk_ticket.c rc = pcmk__ticket_get_attr(out, scheduler, ticket_id, attr_name, attr_default); rc 306 lib/pacemaker/pcmk_ticket.c pcmk__xml_output_finish(out, pcmk_rc2exitc(rc), xml); rc 308 lib/pacemaker/pcmk_ticket.c return rc; rc 315 lib/pacemaker/pcmk_ticket.c int rc = pcmk_rc_ok; rc 339 lib/pacemaker/pcmk_ticket.c return rc; rc 347 lib/pacemaker/pcmk_ticket.c int rc = pcmk_rc_ok; rc 349 lib/pacemaker/pcmk_ticket.c rc = pcmk__setup_output_cib_sched(&out, NULL, &scheduler, xml); rc 350 lib/pacemaker/pcmk_ticket.c if (rc != pcmk_rc_ok) { rc 360 lib/pacemaker/pcmk_ticket.c rc = pcmk__ticket_info(out, scheduler, ticket_id, false, false); rc 363 lib/pacemaker/pcmk_ticket.c pcmk__xml_output_finish(out, pcmk_rc2exitc(rc), xml); rc 365 lib/pacemaker/pcmk_ticket.c return rc; rc 374 lib/pacemaker/pcmk_ticket.c int rc = pcmk_rc_ok; rc 387 lib/pacemaker/pcmk_ticket.c rc = build_ticket_modify_xml(cib, ticket_id, &ticket_state_xml, &xml_top); rc 389 lib/pacemaker/pcmk_ticket.c if (rc == pcmk_rc_duplicate_id) { rc 391 lib/pacemaker/pcmk_ticket.c } else if (rc != pcmk_rc_ok) { rc 393 lib/pacemaker/pcmk_ticket.c return rc; rc 408 lib/pacemaker/pcmk_ticket.c rc = cib->cmds->replace(cib, PCMK_XE_STATUS, ticket_state_xml, cib_sync_call); rc 409 lib/pacemaker/pcmk_ticket.c rc = pcmk_legacy2rc(rc); rc 412 lib/pacemaker/pcmk_ticket.c return rc; rc 420 lib/pacemaker/pcmk_ticket.c int rc = pcmk_rc_ok; rc 423 lib/pacemaker/pcmk_ticket.c rc = pcmk__setup_output_cib_sched(&out, &cib, &scheduler, xml); rc 424 lib/pacemaker/pcmk_ticket.c if (rc != pcmk_rc_ok) { rc 428 lib/pacemaker/pcmk_ticket.c rc = pcmk__ticket_remove_attr(out, cib, scheduler, ticket_id, attr_delete, force); rc 435 lib/pacemaker/pcmk_ticket.c pcmk__xml_output_finish(out, pcmk_rc2exitc(rc), xml); rc 437 lib/pacemaker/pcmk_ticket.c return rc; rc 446 lib/pacemaker/pcmk_ticket.c int rc = pcmk_rc_ok; rc 459 lib/pacemaker/pcmk_ticket.c rc = build_ticket_modify_xml(cib, ticket_id, &ticket_state_xml, &xml_top); rc 461 lib/pacemaker/pcmk_ticket.c if (rc == pcmk_rc_duplicate_id) { rc 463 lib/pacemaker/pcmk_ticket.c } else if (rc != pcmk_rc_ok) { rc 465 lib/pacemaker/pcmk_ticket.c return rc; rc 476 lib/pacemaker/pcmk_ticket.c rc = cib->cmds->modify(cib, PCMK_XE_STATUS, xml_top, cib_sync_call); rc 477 lib/pacemaker/pcmk_ticket.c rc = pcmk_legacy2rc(rc); rc 480 lib/pacemaker/pcmk_ticket.c return rc; rc 489 lib/pacemaker/pcmk_ticket.c int rc = pcmk_rc_ok; rc 492 lib/pacemaker/pcmk_ticket.c rc = pcmk__setup_output_cib_sched(&out, &cib, &scheduler, xml); rc 493 lib/pacemaker/pcmk_ticket.c if (rc != pcmk_rc_ok) { rc 497 lib/pacemaker/pcmk_ticket.c rc = pcmk__ticket_set_attr(out, cib, scheduler, ticket_id, attr_set, force); rc 504 lib/pacemaker/pcmk_ticket.c pcmk__xml_output_finish(out, pcmk_rc2exitc(rc), xml); rc 506 lib/pacemaker/pcmk_ticket.c return rc; rc 513 lib/pacemaker/pcmk_ticket.c int rc = pcmk_rc_ok; rc 517 lib/pacemaker/pcmk_ticket.c rc = pcmk__get_ticket_state(cib, ticket_id, &state_xml); rc 519 lib/pacemaker/pcmk_ticket.c if (rc == pcmk_rc_duplicate_id) { rc 529 lib/pacemaker/pcmk_ticket.c return rc; rc 536 lib/pacemaker/pcmk_ticket.c int rc = pcmk_rc_ok; rc 539 lib/pacemaker/pcmk_ticket.c rc = pcmk__setup_output_cib_sched(&out, &cib, NULL, xml); rc 540 lib/pacemaker/pcmk_ticket.c if (rc != pcmk_rc_ok) { rc 544 lib/pacemaker/pcmk_ticket.c rc = pcmk__ticket_state(out, cib, ticket_id); rc 551 lib/pacemaker/pcmk_ticket.c pcmk__xml_output_finish(out, pcmk_rc2exitc(rc), xml); rc 552 lib/pacemaker/pcmk_ticket.c return rc; rc 53 lib/pacemaker/pcmk_verify.c int rc = pcmk_rc_ok; rc 60 lib/pacemaker/pcmk_verify.c rc = EBADMSG; rc 73 lib/pacemaker/pcmk_verify.c rc = pcmk_rc_schema_validation; rc 77 lib/pacemaker/pcmk_verify.c rc = pcmk__update_configured_schema(cib_object, false); rc 78 lib/pacemaker/pcmk_verify.c if (rc != pcmk_rc_ok) { rc 110 lib/pacemaker/pcmk_verify.c rc = pcmk_rc_schema_validation; rc 113 lib/pacemaker/pcmk_verify.c rc = pcmk_rc_schema_validation; rc 115 lib/pacemaker/pcmk_verify.c return rc; rc 123 lib/pacemaker/pcmk_verify.c int rc = pcmk_rc_ok; rc 127 lib/pacemaker/pcmk_verify.c rc = pcmk__xml_output_new(&out, xml); rc 128 lib/pacemaker/pcmk_verify.c if (rc != pcmk_rc_ok) { rc 129 lib/pacemaker/pcmk_verify.c return rc; rc 135 lib/pacemaker/pcmk_verify.c rc = pcmk__parse_cib(out, cib_source, &cib_object); rc 136 lib/pacemaker/pcmk_verify.c if (rc != pcmk_rc_ok) { rc 143 lib/pacemaker/pcmk_verify.c rc = errno; rc 144 lib/pacemaker/pcmk_verify.c out->err(out, "Couldn't allocate scheduler data: %s", pcmk_rc_str(rc)); rc 149 lib/pacemaker/pcmk_verify.c rc = pcmk__verify(scheduler, out, &cib_object); rc 153 lib/pacemaker/pcmk_verify.c pcmk__xml_output_finish(out, pcmk_rc2exitc(rc), xml); rc 155 lib/pacemaker/pcmk_verify.c return rc; rc 256 lib/pengine/bundle.c int rc = sscanf(last_ip, "%u.%u.%u.%u", &oct1, &oct2, &oct3, &oct4); rc 258 lib/pengine/bundle.c if (rc != 4) { rc 826 lib/pengine/bundle.c int rc = pcmk_rc_ok; rc 828 lib/pengine/bundle.c rc = create_container_resource(parent, data, replica); rc 829 lib/pengine/bundle.c if (rc != pcmk_rc_ok) { rc 830 lib/pengine/bundle.c return rc; rc 833 lib/pengine/bundle.c rc = create_ip_resource(parent, data, replica); rc 834 lib/pengine/bundle.c if (rc != pcmk_rc_ok) { rc 835 lib/pengine/bundle.c return rc; rc 838 lib/pengine/bundle.c rc = create_remote_resource(parent, data, replica); rc 839 lib/pengine/bundle.c if (rc != pcmk_rc_ok) { rc 840 lib/pengine/bundle.c return rc; rc 858 lib/pengine/bundle.c return rc; rc 1499 lib/pengine/bundle.c int rc = pcmk_rc_no_output; rc 1510 lib/pengine/bundle.c return rc; rc 1551 lib/pengine/bundle.c rc = pe__name_and_nvpairs_xml(out, true, PCMK_XE_BUNDLE, rc 1561 lib/pengine/bundle.c pcmk__assert(rc == pcmk_rc_ok); rc 1565 lib/pengine/bundle.c rc = pe__name_and_nvpairs_xml(out, true, PCMK_XE_REPLICA, rc 1569 lib/pengine/bundle.c pcmk__assert(rc == pcmk_rc_ok); rc 1598 lib/pengine/bundle.c return rc; rc 1663 lib/pengine/bundle.c int rc = pcmk_rc_no_output; rc 1673 lib/pengine/bundle.c return rc; rc 1704 lib/pengine/bundle.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Container bundle%s: %s [%s]%s%s%s%s%s", rc 1744 lib/pengine/bundle.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Container bundle%s: %s [%s]%s%s%s%s%s", rc 1757 lib/pengine/bundle.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 1758 lib/pengine/bundle.c return rc; rc 1802 lib/pengine/bundle.c int rc = pcmk_rc_no_output; rc 1812 lib/pengine/bundle.c return rc; rc 1843 lib/pengine/bundle.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Container bundle%s: %s [%s]%s%s%s%s%s", rc 1883 lib/pengine/bundle.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, rc, "Container bundle%s: %s [%s]%s%s%s%s%s", rc 1896 lib/pengine/bundle.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 1897 lib/pengine/bundle.c return rc; rc 171 lib/pengine/clone.c clone_header(pcmk__output_t *out, int *rc, const pcmk_resource_t *rsc, rc 196 lib/pengine/clone.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, *rc, "Clone Set: %s [%s] (%s)%s%s%s", rc 203 lib/pengine/clone.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, *rc, "Clone Set: %s [%s]%s%s%s", rc 862 lib/pengine/clone.c int rc = pcmk_rc_no_output; rc 867 lib/pengine/clone.c return rc; rc 902 lib/pengine/clone.c rc = pe__name_and_nvpairs_xml(out, true, PCMK_XE_CLONE, rc 914 lib/pengine/clone.c pcmk__assert(rc == pcmk_rc_ok); rc 926 lib/pengine/clone.c return rc; rc 951 lib/pengine/clone.c int rc = pcmk_rc_no_output; rc 959 lib/pengine/clone.c return rc; rc 1049 lib/pengine/clone.c clone_header(out, &rc, rsc, clone_data, desc); rc 1060 lib/pengine/clone.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 1080 lib/pengine/clone.c clone_header(out, &rc, rsc, clone_data, desc); rc 1103 lib/pengine/clone.c clone_header(out, &rc, rsc, clone_data, desc); rc 1168 lib/pengine/clone.c int rc; rc 1172 lib/pengine/clone.c &rc, 0); rc 1174 lib/pengine/clone.c crm_strdup_printf("Stopped (%s)", services_ocf_exitcode_str(rc))); rc 1186 lib/pengine/clone.c clone_header(out, &rc, rsc, clone_data, desc); rc 1212 lib/pengine/clone.c clone_header(out, &rc, rsc, clone_data, desc); rc 1213 lib/pengine/clone.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 1214 lib/pengine/clone.c return rc; rc 1218 lib/pengine/clone.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 1219 lib/pengine/clone.c return rc; rc 632 lib/pengine/complex.c int rc = pcmk_parse_score(value, &(rsc->priority), 0); rc 634 lib/pengine/complex.c if (rc != pcmk_rc_ok) { rc 638 lib/pengine/complex.c rsc->id, value, pcmk_rc_str(rc)); rc 662 lib/pengine/complex.c int rc = pcmk_parse_score(value, &(rsc->stickiness), 0); rc 664 lib/pengine/complex.c if (rc != pcmk_rc_ok) { rc 668 lib/pengine/complex.c rsc->id, value, pcmk_rc_str(rc)); rc 61 lib/pengine/failcounts.c int rc = 0; rc 64 lib/pengine/failcounts.c crm_element_value_int(lrm_op_xml, PCMK__XA_RC_CODE, &rc); rc 65 lib/pengine/failcounts.c if (rc != target_rc) { rc 251 lib/pengine/failcounts.c int rc = pcmk_rc_ok; rc 262 lib/pengine/failcounts.c rc = EINVAL; rc 268 lib/pengine/failcounts.c rc = EINVAL; rc 273 lib/pengine/failcounts.c return rc; rc 304 lib/pengine/failcounts.c int rc = pcmk_parse_score(value, &score, 0); rc 306 lib/pengine/failcounts.c if (rc != pcmk_rc_ok) { rc 310 lib/pengine/failcounts.c value, pcmk_rc_str(rc)); rc 325 lib/pengine/failcounts.c int rc = pcmk__scan_ll(value, &last_ll, 0LL); rc 327 lib/pengine/failcounts.c if (rc != pcmk_rc_ok) { rc 329 lib/pengine/failcounts.c (const char *) value, (const char *) key, pcmk_rc_str(rc)); rc 116 lib/pengine/group.c group_header(pcmk__output_t *out, int *rc, const pcmk_resource_t *rsc, rc 139 lib/pengine/group.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, *rc, "Resource Group: %s (%s)%s%s%s", rc 145 lib/pengine/group.c PCMK__OUTPUT_LIST_HEADER(out, FALSE, *rc, "Resource Group: %s%s%s%s", rc 352 lib/pengine/group.c int rc = pcmk_rc_no_output; rc 360 lib/pengine/group.c return rc; rc 370 lib/pengine/group.c if (rc == pcmk_rc_no_output) { rc 377 lib/pengine/group.c rc = pe__name_and_nvpairs_xml(out, true, PCMK_XE_GROUP, rc 386 lib/pengine/group.c pcmk__assert(rc == pcmk_rc_ok); rc 393 lib/pengine/group.c if (rc == pcmk_rc_ok) { rc 397 lib/pengine/group.c return rc; rc 411 lib/pengine/group.c int rc = pcmk_rc_no_output; rc 422 lib/pengine/group.c return rc; rc 429 lib/pengine/group.c group_header(out, &rc, rsc, !active && partially_active ? inactive_resources(rsc) : 0, rc 433 lib/pengine/group.c rc = pcmk_rc_ok; rc 445 lib/pengine/group.c group_header(out, &rc, rsc, !active && partially_active ? inactive_resources(rsc) : 0, rc 452 lib/pengine/group.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 454 lib/pengine/group.c return rc; rc 620 lib/pengine/native.c int rc; rc 623 lib/pengine/native.c &rc, 0); rc 624 lib/pengine/native.c pcmk__g_strcat(outstr, " (", services_ocf_exitcode_str(rc), ") ", rc 971 lib/pengine/native.c int rc = pcmk_rc_no_output; rc 1012 lib/pengine/native.c rc = pe__name_and_nvpairs_xml(out, true, PCMK_XE_RESOURCE, rc 1031 lib/pengine/native.c pcmk__assert(rc == pcmk_rc_ok); rc 1040 lib/pengine/native.c rc = pe__name_and_nvpairs_xml(out, false, PCMK_XE_NODE, rc 1045 lib/pengine/native.c pcmk__assert(rc == pcmk_rc_ok); rc 1050 lib/pengine/native.c return rc; rc 1355 lib/pengine/native.c int rc = pcmk_rc_no_output; rc 1412 lib/pengine/native.c rc = pcmk_rc_ok; rc 1419 lib/pengine/native.c rc = pcmk_rc_ok; rc 1439 lib/pengine/native.c return rc; rc 1321 lib/pengine/pe_actions.c if (data->rc == pcmk__digest_mismatch) { rc 151 lib/pengine/pe_digest.c data->rc = pcmk__digest_restart; rc 323 lib/pengine/pe_digest.c data->rc = pcmk__digest_match; rc 425 lib/pengine/pe_digest.c data->rc = pcmk__digest_restart; rc 429 lib/pengine/pe_digest.c data->rc = pcmk__digest_unknown; rc 441 lib/pengine/pe_digest.c if ((interval_ms == 0) && (data->rc == pcmk__digest_restart)) { rc 463 lib/pengine/pe_digest.c data->rc = pcmk__digest_mismatch; rc 467 lib/pengine/pe_digest.c data->rc = pcmk__digest_match; rc 564 lib/pengine/pe_digest.c data->rc = pcmk__digest_unknown; rc 571 lib/pengine/pe_digest.c data->rc = pcmk__digest_match; rc 580 lib/pengine/pe_digest.c data->rc = pcmk__digest_match; rc 591 lib/pengine/pe_digest.c data->rc = pcmk__digest_mismatch; rc 85 lib/pengine/pe_health.c int rc = pcmk_parse_score((const char *) value, &score, 0); rc 87 lib/pengine/pe_health.c if (rc != pcmk_rc_ok) { rc 90 lib/pengine/pe_health.c (const char *) value, pcmk_rc_str(rc)); rc 137 lib/pengine/pe_health.c int rc = 1; rc 143 lib/pengine/pe_health.c return rc; rc 160 lib/pengine/pe_health.c rc = 0; rc 177 lib/pengine/pe_health.c rc = 0; rc 181 lib/pengine/pe_health.c return rc; rc 40 lib/pengine/pe_output.c int rc; rc 42 lib/pengine/pe_output.c rc = strcmp((const char *)a, (const char *)b); rc 44 lib/pengine/pe_output.c return rc; rc 233 lib/pengine/pe_output.c int rc, bool print_timing) { rc 283 lib/pengine/pe_output.c rc, services_ocf_exitcode_str(rc)); rc 413 lib/pengine/pe_output.c int rc = pcmk_rc_no_output; rc 417 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, false, rc, "Cluster Summary"); rc 432 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, false, rc, "Cluster Summary"); rc 448 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, false, rc, "Cluster Summary"); rc 454 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, false, rc, "Cluster Summary"); rc 461 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, false, rc, "Cluster Summary"); rc 465 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 469 lib/pengine/pe_output.c rc = pcmk_rc_ok; rc 473 lib/pengine/pe_output.c return rc; rc 486 lib/pengine/pe_output.c int rc = pcmk_rc_no_output; rc 490 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, false, rc, "Cluster Summary"); rc 507 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, false, rc, "Cluster Summary"); rc 523 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, false, rc, "Cluster Summary"); rc 529 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, false, rc, "Cluster Summary"); rc 540 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 546 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 550 lib/pengine/pe_output.c rc = pcmk_rc_ok; rc 554 lib/pengine/pe_output.c return rc; rc 723 lib/pengine/pe_output.c int rc = pcmk_rc_no_output; rc 746 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, print_spacer, rc, "Negative Location Constraints"); rc 752 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 753 lib/pengine/pe_output.c return rc; rc 1403 lib/pengine/pe_output.c const char *op_key, const char *node_name, int rc, rc 1434 lib/pengine/pe_output.c pcmk__g_strcat(str, " returned '", services_ocf_exitcode_str(rc), "'", rc 1489 lib/pengine/pe_output.c const char *op_key, const char *node_name, int rc, rc 1495 lib/pengine/pe_output.c const char *exit_status = services_ocf_exitcode_str(rc); rc 1513 lib/pengine/pe_output.c op_key, node_name, exit_status, rc, call_id, rc 1552 lib/pengine/pe_output.c int rc; rc 1555 lib/pengine/pe_output.c pcmk__scan_min_int(crm_element_value(xml_op, PCMK__XA_RC_CODE), &rc, 0); rc 1565 lib/pengine/pe_output.c failed_action_technical(out, xml_op, op_key, node_name, rc, status, rc 1568 lib/pengine/pe_output.c failed_action_friendly(out, xml_op, op_key, node_name, rc, status, rc 1582 lib/pengine/pe_output.c int rc; rc 1601 lib/pengine/pe_output.c pcmk__scan_min_int(crm_element_value(xml_op, PCMK__XA_RC_CODE), &rc, 0); rc 1608 lib/pengine/pe_output.c exitstatus = services_ocf_exitcode_str(rc); rc 1609 lib/pengine/pe_output.c rc_s = pcmk__itoa(rc); rc 1665 lib/pengine/pe_output.c int rc = pcmk_rc_no_output; rc 1668 lib/pengine/pe_output.c return rc; rc 1697 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, print_spacer, rc, "Failed Resource Actions"); rc 1701 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 1702 lib/pengine/pe_output.c return rc; rc 1815 lib/pengine/pe_output.c int rc = pcmk_rc_no_output; rc 1825 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, false, rc, "Resources"); rc 1832 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 2065 lib/pengine/pe_output.c int rc = pcmk_rc_ok; rc 2067 lib/pengine/pe_output.c rc = pe__name_and_nvpairs_xml(out, true, PCMK_XE_NODE, rc 2086 lib/pengine/pe_output.c pcmk__assert(rc == pcmk_rc_ok); rc 2338 lib/pengine/pe_output.c int rc = pcmk_rc_no_output; rc 2366 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, print_spacer, rc, "Node Attributes"); rc 2390 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 2391 lib/pengine/pe_output.c return rc; rc 2442 lib/pengine/pe_output.c int rc = pcmk_rc_no_output; rc 2496 lib/pengine/pe_output.c if (rc == pcmk_rc_no_output) { rc 2497 lib/pengine/pe_output.c rc = pcmk_rc_ok; rc 2515 lib/pengine/pe_output.c if (rc == pcmk_rc_no_output) { rc 2516 lib/pengine/pe_output.c rc = pcmk_rc_ok; rc 2526 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 2527 lib/pengine/pe_output.c return rc; rc 2539 lib/pengine/pe_output.c int rc = pcmk_rc_no_output; rc 2549 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, false, rc, "Node List"); rc 2554 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 2555 lib/pengine/pe_output.c return rc; rc 2574 lib/pengine/pe_output.c int rc = pcmk_rc_no_output; rc 2586 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, print_spacer, rc, "Node List"); rc 2658 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 2659 lib/pengine/pe_output.c return rc; rc 2705 lib/pengine/pe_output.c int rc = pcmk_rc_no_output; rc 2708 lib/pengine/pe_output.c return rc; rc 2727 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_HEADER(out, print_spacer, rc, rc 2734 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 2735 lib/pengine/pe_output.c return rc; rc 2787 lib/pengine/pe_output.c int rc = va_arg(args, int); rc 2790 lib/pengine/pe_output.c char *buf = op_history_string(xml_op, task, interval_ms_s, rc, rc 2805 lib/pengine/pe_output.c int rc = va_arg(args, int); rc 2809 lib/pengine/pe_output.c char *rc_s = pcmk__itoa(rc); rc 2810 lib/pengine/pe_output.c const char *rc_text = services_ocf_exitcode_str(rc); rc 3016 lib/pengine/pe_output.c int rc = pcmk_rc_no_output; rc 3024 lib/pengine/pe_output.c return rc; rc 3037 lib/pengine/pe_output.c rc = pe__rscs_brief_output(out, rscs, show_opts); rc 3085 lib/pengine/pe_output.c rc = pcmk_rc_ok; rc 3089 lib/pengine/pe_output.c if (print_summary && rc != pcmk_rc_ok) { rc 3109 lib/pengine/pe_output.c return rc; rc 3125 lib/pengine/pe_output.c int rc = pcmk_rc_no_output; rc 3145 lib/pengine/pe_output.c if (rc == pcmk_rc_no_output) { rc 3152 lib/pengine/pe_output.c rc = pcmk_rc_ok; rc 3163 lib/pengine/pe_output.c PCMK__OUTPUT_LIST_FOOTER(out, rc); rc 3164 lib/pengine/pe_output.c return rc; rc 74 lib/pengine/rules.c int rc = pcmk_rc_ok; rc 93 lib/pengine/rules.c rc = pcmk__xe_get_score(pair_a, PCMK_XA_SCORE, &score_a, 0); rc 94 lib/pengine/rules.c if (rc != pcmk_rc_ok) { // Not possible with schema validation enabled rc 99 lib/pengine/rules.c pcmk_rc_str(rc)); rc 102 lib/pengine/rules.c rc = pcmk__xe_get_score(pair_b, PCMK_XA_SCORE, &score_b, 0); rc 103 lib/pengine/rules.c if (rc != pcmk_rc_ok) { // Not possible with schema validation enabled rc 108 lib/pengine/rules.c pcmk_rc_str(rc)); rc 35 lib/pengine/rules_alerts.c int rc = pcmk_rc_ok; rc 44 lib/pengine/rules_alerts.c rc = pcmk_rc_disabled; rc 84 lib/pengine/rules_alerts.c return rc; rc 192 lib/pengine/rules_alerts.c int rc = pcmk_rc_ok; rc 195 lib/pengine/rules_alerts.c rc = get_meta_attrs_from_cib(alert, entry, max_timeout); rc 196 lib/pengine/rules_alerts.c if (rc == pcmk_rc_ok) { rc 199 lib/pengine/rules_alerts.c return rc; rc 651 lib/pengine/unpack.c int rc = pcmk__xe_get_score(xml_obj, PCMK_XA_SCORE, &score, 0); rc 665 lib/pengine/unpack.c if (rc != pcmk_rc_ok) { rc 671 lib/pengine/unpack.c pcmk_rc_str(rc)); rc 1069 lib/pengine/unpack.c int rc = pcmk__scan_ll(last_granted, &last_granted_ll, 0LL); rc 1071 lib/pengine/unpack.c if (rc != pcmk_rc_ok) { rc 1075 lib/pengine/unpack.c pcmk_rc_str(rc)); rc 1336 lib/pengine/unpack.c int rc = pcmk_rc_ok; rc 1428 lib/pengine/unpack.c rc = EAGAIN; // Other node histories might depend on this one rc 1430 lib/pengine/unpack.c return rc; rc 1601 lib/pengine/unpack.c int rc = pcmk_rc_ok; rc 1609 lib/pengine/unpack.c rc = pcmk__scan_ll(value_s, &value, 0LL); rc 1610 lib/pengine/unpack.c if (rc == pcmk_rc_ok) { rc 1615 lib/pengine/unpack.c value_s, pcmk__node_name(node), pcmk_rc_str(rc)); rc 2688 lib/pengine/unpack.c const char *rc = crm_element_value(rsc_op, PCMK__XA_RC_CODE); rc 2690 lib/pengine/unpack.c if (pcmk__strcase_any_of(rc, "0", "8", NULL)) { rc 3004 lib/pengine/unpack.c int rc = PCMK_OCF_UNKNOWN_ERROR; rc 3007 lib/pengine/unpack.c crm_element_value_int(xml, PCMK__XA_RC_CODE, &rc); rc 3009 lib/pengine/unpack.c if ((rc != target_rc) || (status != PCMK_EXEC_DONE)) { rc 4185 lib/pengine/unpack.c switch (digest_data->rc) { rc 280 lib/services/services.c int rc = pcmk_rc_ok; rc 323 lib/services/services.c rc = services__ocf_prepare(op); rc 327 lib/services/services.c rc = services__lsb_prepare(op); rc 331 lib/services/services.c rc = services__systemd_prepare(op); rc 335 lib/services/services.c rc = services__upstart_prepare(op); rc 339 lib/services/services.c rc = services__nagios_prepare(op); rc 343 lib/services/services.c rc = ENOENT; rc 346 lib/services/services.c if (rc != pcmk_rc_ok) { rc 348 lib/services/services.c action, name, strerror(rc)); rc 349 lib/services/services.c services__handle_exec_error(op, rc); rc 363 lib/services/services.c if (op == NULL || op->rc != 0) { rc 368 lib/services/services.c op->rc = PCMK_OCF_OK; rc 1046 lib/services/services.c gboolean rc = TRUE; rc 1063 lib/services/services.c rc = (execute_metadata_action(op) == pcmk_rc_ok); rc 1065 lib/services/services.c rc = (execute_action(op) == pcmk_rc_ok); rc 1068 lib/services/services.c op->rsc, op->action, op->interval_ms, op->opaque->exec, op->rc); rc 1075 lib/services/services.c return rc; rc 1220 lib/services/services.c gboolean rc = FALSE; rc 1226 lib/services/services.c rc = TRUE; rc 1231 lib/services/services.c if (rc == FALSE) { rc 1235 lib/services/services.c rc = FALSE; rc 1242 lib/services/services.c rc = TRUE; rc 1247 lib/services/services.c rc = TRUE; rc 1250 lib/services/services.c if (rc == FALSE) { rc 1258 lib/services/services.c rc = TRUE; rc 1264 lib/services/services.c rc = TRUE; rc 1270 lib/services/services.c rc = TRUE; rc 1274 lib/services/services.c rc = FALSE; rc 1280 lib/services/services.c rc = services__ocf_agent_exists(provider, agent); rc 1284 lib/services/services.c rc = services__lsb_agent_exists(agent); rc 1289 lib/services/services.c rc = systemd_unit_exists(agent); rc 1294 lib/services/services.c rc = upstart_job_exists(agent); rc 1299 lib/services/services.c rc = services__nagios_agent_exists(agent); rc 1303 lib/services/services.c rc = FALSE; rc 1309 lib/services/services.c return rc; rc 1329 lib/services/services.c action->rc = agent_status; rc 1363 lib/services/services.c action->rc = agent_status; rc 182 lib/services/services_linux.c int rc; rc 192 lib/services/services_linux.c rc = pcmk__set_nonblocking(data->pipe_fd[0]); rc 193 lib/services/services_linux.c if (rc != pcmk_rc_ok) { rc 195 lib/services/services_linux.c pcmk_rc_str(rc), rc); rc 197 lib/services/services_linux.c rc = pcmk__set_nonblocking(data->pipe_fd[1]); rc 198 lib/services/services_linux.c if (rc != pcmk_rc_ok) { rc 200 lib/services/services_linux.c pcmk_rc_str(rc), rc); rc 295 lib/services/services_linux.c ssize_t rc = 0; rc 324 lib/services/services_linux.c rc = read(fd, buf, buf_read_len); rc 325 lib/services/services_linux.c if (rc > 0) { rc 327 lib/services/services_linux.c buf[rc] = 0; rc 329 lib/services/services_linux.c (long long) rc, op->id, out_type(is_stderr), buf); rc 330 lib/services/services_linux.c data = pcmk__realloc(data, len + rc + 1); rc 332 lib/services/services_linux.c len += rc; rc 334 lib/services/services_linux.c discarded += rc; rc 338 lib/services/services_linux.c rc = 0; rc 341 lib/services/services_linux.c } while ((rc == buf_read_len) || (rc < 0)); rc 355 lib/services/services_linux.c return rc != 0; rc 430 lib/services/services_linux.c int rc; rc 433 lib/services/services_linux.c rc = setenv(key, value, 1); rc 435 lib/services/services_linux.c rc = unsetenv(key); rc 438 lib/services/services_linux.c if (rc < 0) { rc 970 lib/services/services_linux.c int rc; rc 1011 lib/services/services_linux.c rc = pcmk__substitute_secrets(op->rsc, op->params); rc 1012 lib/services/services_linux.c if (rc != pcmk_rc_ok) { rc 1016 lib/services/services_linux.c op->rsc, pcmk_rc_str(rc)); rc 1020 lib/services/services_linux.c op->rsc, pcmk_rc_str(rc)); rc 1063 lib/services/services_linux.c rc = errno; rc 1064 lib/services/services_linux.c services__handle_exec_error(op, rc); rc 1065 lib/services/services_linux.c crm_err("Unable to execute %s: %s", op->id, strerror(rc)); rc 1066 lib/services/services_linux.c exit_child(op, op->rc, "Child process was unable to execute file"); rc 1195 lib/services/services_linux.c crm_info("%s[%d] exited with status %d", op->id, op->pid, op->rc); rc 1241 lib/services/services_linux.c int rc; rc 1247 lib/services/services_linux.c rc = errno; rc 1249 lib/services/services_linux.c op->opaque->exec, pcmk_rc_str(rc), rc); rc 1250 lib/services/services_linux.c services__handle_exec_error(op, rc); rc 1255 lib/services/services_linux.c rc = errno; rc 1257 lib/services/services_linux.c op->opaque->exec, pcmk_rc_str(rc), rc); rc 1258 lib/services/services_linux.c services__handle_exec_error(op, rc); rc 1263 lib/services/services_linux.c rc = errno; rc 1268 lib/services/services_linux.c op->opaque->exec, pcmk_rc_str(rc), rc); rc 1269 lib/services/services_linux.c services__handle_exec_error(op, rc); rc 1275 lib/services/services_linux.c rc = errno; rc 1281 lib/services/services_linux.c op->opaque->exec, pcmk_rc_str(rc), rc); rc 1282 lib/services/services_linux.c services__handle_exec_error(op, rc); rc 1300 lib/services/services_linux.c rc = errno; rc 1306 lib/services/services_linux.c op->opaque->exec, pcmk_rc_str(rc), rc); rc 1307 lib/services/services_linux.c services__handle_exec_error(op, rc); rc 1362 lib/services/services_linux.c rc = pcmk__set_nonblocking(op->opaque->stdout_fd); rc 1363 lib/services/services_linux.c if (rc != pcmk_rc_ok) { rc 1366 lib/services/services_linux.c op->opaque->exec, pcmk_rc_str(rc), rc); rc 1370 lib/services/services_linux.c rc = pcmk__set_nonblocking(op->opaque->stderr_fd); rc 1371 lib/services/services_linux.c if (rc != pcmk_rc_ok) { rc 1374 lib/services/services_linux.c op->opaque->exec, pcmk_rc_str(rc), rc); rc 1381 lib/services/services_linux.c rc = pcmk__set_nonblocking(op->opaque->stdin_fd); rc 1382 lib/services/services_linux.c if (rc != pcmk_rc_ok) { rc 1385 lib/services/services_linux.c pcmk_rc_str(rc), op->opaque->stdin_fd, rc); rc 1422 lib/services/services_linux.c return (op->rc == PCMK_OCF_OK)? pcmk_rc_ok : pcmk_rc_error; rc 254 lib/services/services_lsb.c bool rc = FALSE; rc 258 lib/services/services_lsb.c rc = (stat(path, &st) == 0); rc 260 lib/services/services_lsb.c return rc; rc 158 lib/services/services_nagios.c gboolean rc = FALSE; rc 162 lib/services/services_nagios.c return rc; rc 167 lib/services/services_nagios.c rc = TRUE; rc 171 lib/services/services_nagios.c return rc; rc 177 lib/services/services_nagios.c int rc = pcmk_ok; rc 202 lib/services/services_nagios.c rc = -EIO; rc 213 lib/services/services_nagios.c rc = -EIO; rc 219 lib/services/services_nagios.c return rc; rc 87 lib/services/services_ocf.c gboolean rc = FALSE; rc 95 lib/services/services_ocf.c return rc; rc 102 lib/services/services_ocf.c rc = TRUE; rc 111 lib/services/services_ocf.c return rc; rc 475 lib/services/systemd.c int rc = pcmk_rc_ok; rc 483 lib/services/systemd.c rc = ENOENT; rc 490 lib/services/systemd.c rc = ENOMEM; rc 497 lib/services/systemd.c return rc; rc 835 lib/services/systemd.c int rc = pcmk__build_path(override_dir, 0755); rc 837 lib/services/systemd.c if (rc != pcmk_rc_ok) { rc 839 lib/services/systemd.c override_dir, pcmk_rc_str(rc)); rc 869 lib/services/systemd.c int rc = fprintf(file_strm, "%s\n", override); rc 872 lib/services/systemd.c if (rc < 0) { rc 888 lib/services/systemd.c int rc = unlink(override_file); rc 890 lib/services/systemd.c if (rc < 0) { rc 1121 lib/services/systemd.c return (op->rc == PCMK_OCF_OK)? pcmk_rc_ok : pcmk_rc_error; rc 118 lib/services/upstart.c bool rc = false; rc 156 lib/services/upstart.c rc = true; rc 162 lib/services/upstart.c return rc; rc 574 lib/services/upstart.c op->rc = PCMK_OCF_UNKNOWN_ERROR; rc 711 lib/services/upstart.c return (op->rc == PCMK_OCF_OK)? pcmk_rc_ok : pcmk_rc_error; rc 540 maint/gnulib/lib/exclude.c int rc; rc 553 maint/gnulib/lib/exclude.c rc = 1; rc 559 maint/gnulib/lib/exclude.c rc = regcomp (&patopts->v.re, tmp, cflags); rc 564 maint/gnulib/lib/exclude.c rc = regcomp (&patopts->v.re, pattern, cflags); rc 566 maint/gnulib/lib/exclude.c if (rc) rc 683 maint/gnulib/lib/exclude.c int rc = add_exclude_fp (call_addfn, ex, in, options, line_end, &add_func); rc 688 maint/gnulib/lib/exclude.c return rc; rc 175 maint/gnulib/lib/gc-gnulib.c Gc_rc rc = GC_OK; rc 195 maint/gnulib/lib/gc-gnulib.c rc = GC_INVALID_CIPHER; rc 209 maint/gnulib/lib/gc-gnulib.c rc = GC_INVALID_CIPHER; rc 222 maint/gnulib/lib/gc-gnulib.c rc = GC_INVALID_CIPHER; rc 238 maint/gnulib/lib/gc-gnulib.c rc = GC_INVALID_CIPHER; rc 244 maint/gnulib/lib/gc-gnulib.c rc = GC_INVALID_CIPHER; rc 247 maint/gnulib/lib/gc-gnulib.c if (rc == GC_OK) rc 252 maint/gnulib/lib/gc-gnulib.c return rc; rc 288 maint/gnulib/lib/gc-gnulib.c rijndael_rc rc; rc 295 maint/gnulib/lib/gc-gnulib.c rc = rijndaelMakeKey (&ctx->aesEncKey, RIJNDAEL_DIR_ENCRYPT, rc 297 maint/gnulib/lib/gc-gnulib.c if (rc < 0) rc 300 maint/gnulib/lib/gc-gnulib.c rc = rijndaelMakeKey (&ctx->aesDecKey, RIJNDAEL_DIR_DECRYPT, rc 302 maint/gnulib/lib/gc-gnulib.c if (rc < 0) rc 305 maint/gnulib/lib/gc-gnulib.c rc = rijndaelCipherInit (&ctx->aesContext, RIJNDAEL_MODE_ECB, NULL); rc 306 maint/gnulib/lib/gc-gnulib.c if (rc < 0) rc 346 maint/gnulib/lib/gc-gnulib.c rijndael_rc rc; rc 353 maint/gnulib/lib/gc-gnulib.c rc = rijndaelCipherInit (&ctx->aesContext, RIJNDAEL_MODE_CBC, rc 355 maint/gnulib/lib/gc-gnulib.c if (rc < 0) rc 561 maint/gnulib/lib/gc-gnulib.c Gc_rc rc = GC_OK; rc 619 maint/gnulib/lib/gc-gnulib.c rc = GC_INVALID_HASH; rc 623 maint/gnulib/lib/gc-gnulib.c if (rc == GC_OK) rc 628 maint/gnulib/lib/gc-gnulib.c return rc; rc 273 maint/gnulib/lib/gc-libgcrypt.c Gc_rc rc = GC_OK; rc 336 maint/gnulib/lib/gc-libgcrypt.c rc = GC_INVALID_HASH; rc 350 maint/gnulib/lib/gc-libgcrypt.c rc = GC_INVALID_HASH; rc 353 maint/gnulib/lib/gc-libgcrypt.c if (rc == GC_OK && gcryalg != GCRY_MD_NONE) rc 357 maint/gnulib/lib/gc-libgcrypt.c rc = GC_INVALID_HASH; rc 360 maint/gnulib/lib/gc-libgcrypt.c if (rc == GC_OK) rc 365 maint/gnulib/lib/gc-libgcrypt.c return rc; rc 43 maint/gnulib/lib/gc-pbkdf2.c int rc; rc 78 maint/gnulib/lib/gc-pbkdf2.c rc = prf (P, Plen, tmp, tmplen, U); rc 81 maint/gnulib/lib/gc-pbkdf2.c rc = prf (P, Plen, U, hLen, U); rc 83 maint/gnulib/lib/gc-pbkdf2.c if (rc != GC_OK) rc 86 maint/gnulib/lib/gc-pbkdf2.c return rc; rc 3808 maint/gnulib/lib/mini-gmp.c mp_limb_t uc, vc, rc; rc 3826 maint/gnulib/lib/mini-gmp.c rc = uc & vc; rc 3830 maint/gnulib/lib/mini-gmp.c rx = -rc; rc 3835 maint/gnulib/lib/mini-gmp.c rp = MPZ_REALLOC (r, rn + (mp_size_t) rc); rc 3849 maint/gnulib/lib/mini-gmp.c rl = ( (ul & vl) ^ rx) + rc; rc 3850 maint/gnulib/lib/mini-gmp.c rc = rl < rc; rc 3861 maint/gnulib/lib/mini-gmp.c rl = ( (ul & vx) ^ rx) + rc; rc 3862 maint/gnulib/lib/mini-gmp.c rc = rl < rc; rc 3865 maint/gnulib/lib/mini-gmp.c if (rc) rc 3866 maint/gnulib/lib/mini-gmp.c rp[rn++] = rc; rc 3880 maint/gnulib/lib/mini-gmp.c mp_limb_t uc, vc, rc; rc 3898 maint/gnulib/lib/mini-gmp.c rc = uc | vc; rc 3902 maint/gnulib/lib/mini-gmp.c rx = -rc; rc 3908 maint/gnulib/lib/mini-gmp.c rp = MPZ_REALLOC (r, rn + (mp_size_t) rc); rc 3922 maint/gnulib/lib/mini-gmp.c rl = ( (ul | vl) ^ rx) + rc; rc 3923 maint/gnulib/lib/mini-gmp.c rc = rl < rc; rc 3934 maint/gnulib/lib/mini-gmp.c rl = ( (ul | vx) ^ rx) + rc; rc 3935 maint/gnulib/lib/mini-gmp.c rc = rl < rc; rc 3938 maint/gnulib/lib/mini-gmp.c if (rc) rc 3939 maint/gnulib/lib/mini-gmp.c rp[rn++] = rc; rc 3953 maint/gnulib/lib/mini-gmp.c mp_limb_t uc, vc, rc; rc 3971 maint/gnulib/lib/mini-gmp.c rc = uc ^ vc; rc 3975 maint/gnulib/lib/mini-gmp.c rx = -rc; rc 3977 maint/gnulib/lib/mini-gmp.c rp = MPZ_REALLOC (r, un + (mp_size_t) rc); rc 3991 maint/gnulib/lib/mini-gmp.c rl = (ul ^ vl ^ rx) + rc; rc 3992 maint/gnulib/lib/mini-gmp.c rc = rl < rc; rc 4003 maint/gnulib/lib/mini-gmp.c rl = (ul ^ ux) + rc; rc 4004 maint/gnulib/lib/mini-gmp.c rc = rl < rc; rc 4007 maint/gnulib/lib/mini-gmp.c if (rc) rc 4008 maint/gnulib/lib/mini-gmp.c rp[un++] = rc; rc 483 maint/gnulib/lib/mountlist.c int rc, mntroot_s; rc 485 maint/gnulib/lib/mountlist.c rc = sscanf(line, "%*u " /* id - discarded */ rc 492 maint/gnulib/lib/mountlist.c if (rc != 2 && rc != 3) /* 3 if %n included in count. */ rc 123 maint/gnulib/lib/pipe-filter-ii.c ULONG rc = (ULONG) -1; rc 140 maint/gnulib/lib/pipe-filter-ii.c rc = DosWaitMuxWaitSem (hmux, ms, &ulUser); rc 147 maint/gnulib/lib/pipe-filter-ii.c if (rc) rc 374 maint/gnulib/lib/poll.c int maxfd, rc; rc 447 maint/gnulib/lib/poll.c rc = select (maxfd + 1, &rfds, &wfds, &efds, ptv); rc 448 maint/gnulib/lib/poll.c if (rc < 0) rc 449 maint/gnulib/lib/poll.c return rc; rc 452 maint/gnulib/lib/poll.c rc = 0; rc 459 maint/gnulib/lib/poll.c rc += pfd[i].revents != 0; rc 462 maint/gnulib/lib/poll.c return rc; rc 472 maint/gnulib/lib/poll.c int rc = 0; rc 622 maint/gnulib/lib/poll.c rc++; rc 625 maint/gnulib/lib/poll.c if (!rc && timeout == INFTIM) rc 631 maint/gnulib/lib/poll.c return rc; rc 279 maint/gnulib/lib/select.c int i, fd, rc; rc 423 maint/gnulib/lib/select.c rc = 0; rc 429 maint/gnulib/lib/select.c rc = select (0, &handle_rfds, &handle_wfds, &handle_xfds, &tv0); rc 430 maint/gnulib/lib/select.c if (rc == 0) rc 471 maint/gnulib/lib/select.c if (rc == 0 && nsock > 0) rc 472 maint/gnulib/lib/select.c rc = select (0, &handle_rfds, &handle_wfds, &handle_xfds, &tv0); rc 492 maint/gnulib/lib/select.c rc++; rc 496 maint/gnulib/lib/select.c if (rc == 0 rc 515 maint/gnulib/lib/select.c if (timeout && wait_timeout == 0 && rc == 0) rc 555 maint/gnulib/lib/select.c return rc; rc 5795 maint/gnulib/lib/vasnprintf.c size_t rc; rc 5796 maint/gnulib/lib/vasnprintf.c for (rc = count; rc > 0; rc--, rp++) rc 35 maint/gnulib/tests/test-gc-arcfour.c Gc_rc rc; rc 37 maint/gnulib/tests/test-gc-arcfour.c rc = gc_init (); rc 38 maint/gnulib/tests/test-gc-arcfour.c if (rc != GC_OK) rc 44 maint/gnulib/tests/test-gc-arcfour.c rc = gc_cipher_open (GC_ARCFOUR40, GC_STREAM, &ctx); rc 45 maint/gnulib/tests/test-gc-arcfour.c if (rc != GC_OK) rc 48 maint/gnulib/tests/test-gc-arcfour.c rc = gc_cipher_setkey (ctx, sizeof (key_1), key_1); rc 49 maint/gnulib/tests/test-gc-arcfour.c if (rc != GC_OK) rc 53 maint/gnulib/tests/test-gc-arcfour.c rc = gc_cipher_encrypt_inline (ctx, sizeof (plaintext_1), scratch); rc 54 maint/gnulib/tests/test-gc-arcfour.c if (rc != GC_OK) rc 72 maint/gnulib/tests/test-gc-arcfour.c rc = gc_cipher_setkey (ctx, sizeof (key_1), key_1); rc 73 maint/gnulib/tests/test-gc-arcfour.c if (rc != GC_OK) rc 76 maint/gnulib/tests/test-gc-arcfour.c rc = gc_cipher_decrypt_inline (ctx, sizeof (plaintext_1), scratch); rc 77 maint/gnulib/tests/test-gc-arcfour.c if (rc != GC_OK) rc 34 maint/gnulib/tests/test-gc-arctwo.c Gc_rc rc; rc 36 maint/gnulib/tests/test-gc-arctwo.c rc = gc_init (); rc 37 maint/gnulib/tests/test-gc-arctwo.c if (rc != GC_OK) rc 43 maint/gnulib/tests/test-gc-arctwo.c rc = gc_cipher_open (GC_ARCTWO40, GC_ECB, &ctx); rc 44 maint/gnulib/tests/test-gc-arctwo.c if (rc != GC_OK) rc 47 maint/gnulib/tests/test-gc-arctwo.c rc = gc_cipher_setkey (ctx, sizeof (key), key); rc 48 maint/gnulib/tests/test-gc-arctwo.c if (rc != GC_OK) rc 52 maint/gnulib/tests/test-gc-arctwo.c rc = gc_cipher_encrypt_inline (ctx, sizeof (plaintext), scratch); rc 53 maint/gnulib/tests/test-gc-arctwo.c if (rc != GC_OK) rc 71 maint/gnulib/tests/test-gc-arctwo.c rc = gc_cipher_setkey (ctx, sizeof (key), key); rc 72 maint/gnulib/tests/test-gc-arctwo.c if (rc != GC_OK) rc 75 maint/gnulib/tests/test-gc-arctwo.c rc = gc_cipher_decrypt_inline (ctx, sizeof (plaintext), scratch); rc 76 maint/gnulib/tests/test-gc-arctwo.c if (rc != GC_OK) rc 28 maint/gnulib/tests/test-gc-des.c Gc_rc rc; rc 30 maint/gnulib/tests/test-gc-des.c rc = gc_init (); rc 31 maint/gnulib/tests/test-gc-des.c if (rc != GC_OK) rc 52 maint/gnulib/tests/test-gc-des.c rc = gc_cipher_open (GC_DES, GC_ECB, &ctx); rc 53 maint/gnulib/tests/test-gc-des.c if (rc != GC_OK) rc 56 maint/gnulib/tests/test-gc-des.c rc = gc_cipher_setkey (ctx, 8, key); rc 57 maint/gnulib/tests/test-gc-des.c if (rc != GC_OK) rc 61 maint/gnulib/tests/test-gc-des.c rc = gc_cipher_encrypt_inline (ctx, 8, temp1); rc 62 maint/gnulib/tests/test-gc-des.c if (rc != GC_OK) rc 66 maint/gnulib/tests/test-gc-des.c rc = gc_cipher_encrypt_inline (ctx, 8, temp2); rc 67 maint/gnulib/tests/test-gc-des.c if (rc != GC_OK) rc 70 maint/gnulib/tests/test-gc-des.c rc = gc_cipher_setkey (ctx, 8, temp2); rc 71 maint/gnulib/tests/test-gc-des.c if (rc != GC_OK) rc 75 maint/gnulib/tests/test-gc-des.c rc = gc_cipher_decrypt_inline (ctx, 8, temp3); rc 76 maint/gnulib/tests/test-gc-des.c if (rc != GC_OK) rc 28 maint/gnulib/tests/test-gc-hmac-md5.c Gc_rc rc; rc 30 maint/gnulib/tests/test-gc-hmac-md5.c rc = gc_init (); rc 31 maint/gnulib/tests/test-gc-hmac-md5.c if (rc != GC_OK) rc 28 maint/gnulib/tests/test-gc-hmac-sha1.c Gc_rc rc; rc 30 maint/gnulib/tests/test-gc-hmac-sha1.c rc = gc_init (); rc 31 maint/gnulib/tests/test-gc-hmac-sha1.c if (rc != GC_OK) rc 28 maint/gnulib/tests/test-gc-hmac-sha256.c Gc_rc rc; rc 30 maint/gnulib/tests/test-gc-hmac-sha256.c rc = gc_init (); rc 31 maint/gnulib/tests/test-gc-hmac-sha256.c if (rc != GC_OK) rc 28 maint/gnulib/tests/test-gc-hmac-sha512.c Gc_rc rc; rc 30 maint/gnulib/tests/test-gc-hmac-sha512.c rc = gc_init (); rc 31 maint/gnulib/tests/test-gc-hmac-sha512.c if (rc != GC_OK) rc 28 maint/gnulib/tests/test-gc-md2.c Gc_rc rc; rc 31 maint/gnulib/tests/test-gc-md2.c rc = gc_init (); rc 32 maint/gnulib/tests/test-gc-md2.c if (rc != GC_OK) rc 92 maint/gnulib/tests/test-gc-md2.c if ((rc = gc_hash_open (GC_MD2, 0, &h)) != GC_OK) rc 94 maint/gnulib/tests/test-gc-md2.c printf ("gc_hash_open(GC_MD2) failed (%d)\n", rc); rc 28 maint/gnulib/tests/test-gc-md4.c Gc_rc rc; rc 31 maint/gnulib/tests/test-gc-md4.c rc = gc_init (); rc 32 maint/gnulib/tests/test-gc-md4.c if (rc != GC_OK) rc 94 maint/gnulib/tests/test-gc-md4.c if ((rc = gc_hash_open (GC_MD4, 0, &h)) != GC_OK) rc 96 maint/gnulib/tests/test-gc-md4.c printf ("gc_hash_open(GC_MD4) failed (%d)\n", rc); rc 28 maint/gnulib/tests/test-gc-md5.c Gc_rc rc; rc 31 maint/gnulib/tests/test-gc-md5.c rc = gc_init (); rc 32 maint/gnulib/tests/test-gc-md5.c if (rc != GC_OK) rc 94 maint/gnulib/tests/test-gc-md5.c if ((rc = gc_hash_open (GC_MD5, 0, &h)) != GC_OK) rc 96 maint/gnulib/tests/test-gc-md5.c printf ("gc_hash_open(GC_MD5) failed (%d)\n", rc); rc 84 maint/gnulib/tests/test-gc-pbkdf2-sha1.c int rc; rc 89 maint/gnulib/tests/test-gc-pbkdf2-sha1.c rc = gc_pbkdf2_sha1 (pkcs5[i].password, strlen (pkcs5[i].password), rc 92 maint/gnulib/tests/test-gc-pbkdf2-sha1.c if (rc != GC_OK) rc 95 maint/gnulib/tests/test-gc-pbkdf2-sha1.c (unsigned long) i, rc); rc 99 maint/gnulib/tests/test-gc-pbkdf2.c int rc; rc 102 maint/gnulib/tests/test-gc-pbkdf2.c rc = gc_pbkdf2_hmac (GC_MD2, "p", 1, "s", 1, 42, out, 17); rc 104 maint/gnulib/tests/test-gc-pbkdf2.c if (rc != GC_INVALID_HASH) rc 106 maint/gnulib/tests/test-gc-pbkdf2.c printf ("PBKDF2 accepts invalid MD2 hash %d\n", rc); rc 112 maint/gnulib/tests/test-gc-pbkdf2.c rc = gc_pbkdf2_hmac (pkcs5[i].hash, rc 116 maint/gnulib/tests/test-gc-pbkdf2.c if (rc != GC_OK) rc 119 maint/gnulib/tests/test-gc-pbkdf2.c (unsigned long) i, rc); rc 28 maint/gnulib/tests/test-gc-rijndael.c Gc_rc rc; rc 30 maint/gnulib/tests/test-gc-rijndael.c rc = gc_init (); rc 31 maint/gnulib/tests/test-gc-rijndael.c if (rc != GC_OK) rc 48 maint/gnulib/tests/test-gc-rijndael.c rc = gc_cipher_open (GC_AES128, GC_ECB, &ctx); rc 49 maint/gnulib/tests/test-gc-rijndael.c if (rc != GC_OK) rc 52 maint/gnulib/tests/test-gc-rijndael.c rc = gc_cipher_setkey (ctx, 16, key); rc 53 maint/gnulib/tests/test-gc-rijndael.c if (rc != GC_OK) rc 60 maint/gnulib/tests/test-gc-rijndael.c rc = gc_cipher_encrypt_inline (ctx, 16, buf); rc 61 maint/gnulib/tests/test-gc-rijndael.c if (rc != GC_OK) rc 63 maint/gnulib/tests/test-gc-rijndael.c printf ("encrypt failed %d\n", rc); rc 83 maint/gnulib/tests/test-gc-rijndael.c rc = gc_cipher_decrypt_inline (ctx, 16, buf); rc 84 maint/gnulib/tests/test-gc-rijndael.c if (rc != GC_OK) rc 86 maint/gnulib/tests/test-gc-rijndael.c printf ("decrypt failed %d\n", rc); rc 121 maint/gnulib/tests/test-gc-rijndael.c rc = gc_cipher_open (GC_AES128, GC_CBC, &ctx); rc 122 maint/gnulib/tests/test-gc-rijndael.c if (rc != GC_OK) rc 125 maint/gnulib/tests/test-gc-rijndael.c rc = gc_cipher_setkey (ctx, 16, key); rc 126 maint/gnulib/tests/test-gc-rijndael.c if (rc != GC_OK) rc 129 maint/gnulib/tests/test-gc-rijndael.c rc = gc_cipher_setiv (ctx, 16, iv); rc 130 maint/gnulib/tests/test-gc-rijndael.c if (rc != GC_OK) rc 137 maint/gnulib/tests/test-gc-rijndael.c rc = gc_cipher_encrypt_inline (ctx, 16, buf); rc 138 maint/gnulib/tests/test-gc-rijndael.c if (rc != GC_OK) rc 140 maint/gnulib/tests/test-gc-rijndael.c printf ("encrypt failed %d\n", rc); rc 28 maint/gnulib/tests/test-gc-sha1.c Gc_rc rc; rc 31 maint/gnulib/tests/test-gc-sha1.c rc = gc_init (); rc 32 maint/gnulib/tests/test-gc-sha1.c if (rc != GC_OK) rc 65 maint/gnulib/tests/test-gc-sha1.c rc = gc_hash_buffer (GC_SHA1, "abcdefgh", 8, out); rc 66 maint/gnulib/tests/test-gc-sha1.c if (rc != GC_OK) rc 68 maint/gnulib/tests/test-gc-sha1.c printf ("gc_hash_buffer(sha1) call failed: %d\n", rc); rc 91 maint/gnulib/tests/test-gc-sha1.c if ((rc = gc_hash_open (GC_SHA1, 0, &h)) != GC_OK) rc 93 maint/gnulib/tests/test-gc-sha1.c printf ("gc_hash_open(GC_SHA1) failed (%d)\n", rc); rc 28 maint/gnulib/tests/test-gc-sha256.c Gc_rc rc; rc 31 maint/gnulib/tests/test-gc-sha256.c rc = gc_init (); rc 32 maint/gnulib/tests/test-gc-sha256.c if (rc != GC_OK) rc 66 maint/gnulib/tests/test-gc-sha256.c rc = gc_hash_buffer (GC_SHA256, "abcdefghijklmnopqrstuvwxyz", 26, out); rc 67 maint/gnulib/tests/test-gc-sha256.c if (rc != GC_OK) rc 69 maint/gnulib/tests/test-gc-sha256.c printf ("gc_hash_buffer(sha256) call failed: %d\n", rc); rc 92 maint/gnulib/tests/test-gc-sha256.c if ((rc = gc_hash_open (GC_SHA256, 0, &h)) != GC_OK) rc 94 maint/gnulib/tests/test-gc-sha256.c printf ("gc_hash_open(GC_SHA256) failed (%d)\n", rc); rc 28 maint/gnulib/tests/test-gc-sha512.c Gc_rc rc; rc 31 maint/gnulib/tests/test-gc-sha512.c rc = gc_init (); rc 32 maint/gnulib/tests/test-gc-sha512.c if (rc != GC_OK) rc 68 maint/gnulib/tests/test-gc-sha512.c rc = gc_hash_buffer (GC_SHA512, "abcdefghijklmnopqrstuvwxyz", 26, out); rc 69 maint/gnulib/tests/test-gc-sha512.c if (rc != GC_OK) rc 71 maint/gnulib/tests/test-gc-sha512.c printf ("gc_hash_buffer(sha512) call failed: %d\n", rc); rc 94 maint/gnulib/tests/test-gc-sha512.c if ((rc = gc_hash_open (GC_SHA512, 0, &h)) != GC_OK) rc 96 maint/gnulib/tests/test-gc-sha512.c printf ("gc_hash_open(GC_SHA512) failed (%d)\n", rc); rc 28 maint/gnulib/tests/test-gc-sm3.c Gc_rc rc; rc 31 maint/gnulib/tests/test-gc-sm3.c rc = gc_init (); rc 32 maint/gnulib/tests/test-gc-sm3.c if (rc != GC_OK) rc 68 maint/gnulib/tests/test-gc-sm3.c rc = gc_hash_buffer (GC_SM3, "abc", 3, out); rc 69 maint/gnulib/tests/test-gc-sm3.c if (rc != GC_OK) rc 71 maint/gnulib/tests/test-gc-sm3.c printf ("gc_hash_buffer(sm3) call failed: %u\n", rc); rc 94 maint/gnulib/tests/test-gc-sm3.c if ((rc = gc_hash_open (GC_SM3, 0, &h)) != GC_OK) rc 96 maint/gnulib/tests/test-gc-sm3.c printf ("gc_hash_open(GC_SM3) failed (%u)\n", rc); rc 28 maint/gnulib/tests/test-gc.c Gc_rc rc; rc 30 maint/gnulib/tests/test-gc.c rc = gc_init (); rc 31 maint/gnulib/tests/test-gc.c if (rc != GC_OK) rc 38 maint/gnulib/tests/test-getdomainname.c int rc; rc 48 maint/gnulib/tests/test-getdomainname.c rc = getdomainname (buf, sizeof (buf)); rc 50 maint/gnulib/tests/test-getdomainname.c if (rc != 0) rc 52 maint/gnulib/tests/test-getdomainname.c printf ("getdomainname failed, rc %d errno %d\n", rc, errno); rc 39 maint/gnulib/tests/test-gethostname.c int rc; rc 49 maint/gnulib/tests/test-gethostname.c rc = gethostname (buf, sizeof (buf)); rc 51 maint/gnulib/tests/test-gethostname.c if (rc != 0) rc 53 maint/gnulib/tests/test-gethostname.c printf ("gethostname failed, rc %d errno %d\n", rc, errno); rc 79 maint/gnulib/tests/test-pipe-filter-gi2-main.c int rc; rc 85 maint/gnulib/tests/test-pipe-filter-gi2-main.c rc = pipe_filter_gi_write (f, "", 1); rc 86 maint/gnulib/tests/test-pipe-filter-gi2-main.c ASSERT (rc == 127 || rc == -1); rc 87 maint/gnulib/tests/test-pipe-filter-gi2-main.c rc = pipe_filter_gi_close (f); rc 88 maint/gnulib/tests/test-pipe-filter-gi2-main.c ASSERT (rc == 127 || rc == -1); rc 106 maint/gnulib/tests/test-pipe-filter-gi2-main.c int rc; rc 113 maint/gnulib/tests/test-pipe-filter-gi2-main.c rc = pipe_filter_gi_write (f, " ", 1); /* write to a closed pipe */ rc 114 maint/gnulib/tests/test-pipe-filter-gi2-main.c ASSERT (rc == -1 && errno == EPIPE); rc 117 maint/gnulib/tests/test-pipe-filter-gi2-main.c rc = pipe_filter_gi_close (f); rc 118 maint/gnulib/tests/test-pipe-filter-gi2-main.c ASSERT (rc == -1 && errno == EPIPE); rc 97 maint/gnulib/tests/test-pipe-filter-ii2-main.c int rc; rc 104 maint/gnulib/tests/test-pipe-filter-ii2-main.c rc = pipe_filter_ii_execute ("pipe-filter-test", path[0], path, true, false, rc 108 maint/gnulib/tests/test-pipe-filter-ii2-main.c ASSERT (rc == 127 || rc == -1); rc 116 maint/gnulib/tests/test-pipe-filter-ii2-main.c int rc; rc 123 maint/gnulib/tests/test-pipe-filter-ii2-main.c rc = pipe_filter_ii_execute ("pipe-filter-test", path[0], path, false, false, rc 127 maint/gnulib/tests/test-pipe-filter-ii2-main.c ASSERT (rc == 1); rc 135 maint/gnulib/tests/test-pipe-filter-ii2-main.c int rc; rc 142 maint/gnulib/tests/test-pipe-filter-ii2-main.c rc = pipe_filter_ii_execute ("pipe-filter-test", path[0], path, false, true, rc 146 maint/gnulib/tests/test-pipe-filter-ii2-main.c ASSERT (rc == 0); rc 28 maint/gnulib/tests/test-rijndael.c int rc; rc 39 maint/gnulib/tests/test-rijndael.c rc = rijndaelMakeKey (&key, RIJNDAEL_DIR_ENCRYPT, rc 41 maint/gnulib/tests/test-rijndael.c if (rc != 0) rc 42 maint/gnulib/tests/test-rijndael.c printf ("makeKey failed %d\n", rc); rc 44 maint/gnulib/tests/test-rijndael.c rc = rijndaelCipherInit (&cipher, RIJNDAEL_MODE_ECB, NULL); rc 45 maint/gnulib/tests/test-rijndael.c if (rc != 0) rc 46 maint/gnulib/tests/test-rijndael.c printf ("cipherInit failed %d\n", rc); rc 52 maint/gnulib/tests/test-rijndael.c rc = rijndaelBlockEncrypt (&cipher, &key, in, 128, out); rc 53 maint/gnulib/tests/test-rijndael.c if (rc < 0) rc 54 maint/gnulib/tests/test-rijndael.c printf ("blockEncrypt failed %d\n", rc); rc 72 maint/gnulib/tests/test-rijndael.c rc = rijndaelMakeKey (&key, RIJNDAEL_DIR_DECRYPT, rc 74 maint/gnulib/tests/test-rijndael.c if (rc != 0) rc 75 maint/gnulib/tests/test-rijndael.c printf ("makeKey failed %d\n", rc); rc 77 maint/gnulib/tests/test-rijndael.c rc = rijndaelCipherInit (&cipher, RIJNDAEL_MODE_ECB, NULL); rc 78 maint/gnulib/tests/test-rijndael.c if (rc != 0) rc 79 maint/gnulib/tests/test-rijndael.c printf ("cipherInit failed %d\n", rc); rc 85 maint/gnulib/tests/test-rijndael.c rc = rijndaelBlockDecrypt (&cipher, &key, in, 128, out); rc 86 maint/gnulib/tests/test-rijndael.c if (rc < 0) rc 87 maint/gnulib/tests/test-rijndael.c printf ("blockEncrypt failed %d\n", rc); rc 289 tools/attrd_updater.c int rc = pcmk_rc_ok; rc 307 tools/attrd_updater.c rc = pcmk__output_new(&out, args->output_ty, args->output_dest, argv); rc 308 tools/attrd_updater.c if (rc != pcmk_rc_ok) { rc 311 tools/attrd_updater.c args->output_ty, pcmk_rc_str(rc)); rc 351 tools/attrd_updater.c int rc = send_attrd_query(out, options.attr_name, options.attr_node, options.query_all); rc 352 tools/attrd_updater.c exit_code = pcmk_rc2exitc(rc); rc 359 tools/attrd_updater.c int rc = send_attrd_update(options.command, options.attr_node, rc 363 tools/attrd_updater.c exit_code = pcmk_rc2exitc(rc); rc 439 tools/attrd_updater.c int rc = pcmk_rc_ok; rc 442 tools/attrd_updater.c rc = pcmk_new_ipc_api(&attrd_api, pcmk_ipc_attrd); rc 443 tools/attrd_updater.c if (rc != pcmk_rc_ok) { rc 444 tools/attrd_updater.c g_set_error(&error, PCMK__RC_ERROR, rc, rc 445 tools/attrd_updater.c "Could not connect to attrd: %s", pcmk_rc_str(rc)); rc 452 tools/attrd_updater.c rc = pcmk__connect_ipc(attrd_api, pcmk_ipc_dispatch_sync, 5); rc 453 tools/attrd_updater.c if (rc != pcmk_rc_ok) { rc 454 tools/attrd_updater.c g_set_error(&error, PCMK__RC_ERROR, rc, rc 456 tools/attrd_updater.c pcmk_ipc_name(attrd_api, true), pcmk_rc_str(rc)); rc 458 tools/attrd_updater.c return rc; rc 466 tools/attrd_updater.c rc = pcmk__attrd_api_query(attrd_api, attr_node, attr_name, options); rc 468 tools/attrd_updater.c if (rc != pcmk_rc_ok) { rc 469 tools/attrd_updater.c g_set_error(&error, PCMK__RC_ERROR, rc, "Could not query value of %s: %s (%d)", rc 470 tools/attrd_updater.c attr_name, pcmk_rc_str(rc), rc); rc 472 tools/attrd_updater.c rc = pcmk_rc_schema_validation; rc 473 tools/attrd_updater.c g_set_error(&error, PCMK__RC_ERROR, rc, rc 480 tools/attrd_updater.c return rc; rc 488 tools/attrd_updater.c int rc = pcmk_rc_ok; rc 492 tools/attrd_updater.c rc = pcmk__attrd_api_update(NULL, attr_node, attr_name, attr_value, rc 498 tools/attrd_updater.c rc = pcmk__attrd_api_delete(NULL, attr_node, attr_name, attr_options); rc 502 tools/attrd_updater.c rc = pcmk__attrd_api_refresh(NULL, attr_node); rc 506 tools/attrd_updater.c rc = pcmk__attrd_api_update(NULL, attr_node, attr_name, attr_value, rc 512 tools/attrd_updater.c rc = pcmk__attrd_api_update(NULL, attr_node, attr_name, NULL, rc 518 tools/attrd_updater.c if (rc != pcmk_rc_ok) { rc 519 tools/attrd_updater.c g_set_error(&error, PCMK__RC_ERROR, rc, "Could not update %s=%s: %s (%d)", rc 520 tools/attrd_updater.c attr_name, attr_value, pcmk_rc_str(rc), rc); rc 523 tools/attrd_updater.c return rc; rc 69 tools/cibadmin.c void cibadmin_op_callback(xmlNode *msg, int call_id, int rc, xmlNode *output, rc 517 tools/cibadmin.c int rc = pcmk_rc_ok; rc 799 tools/cibadmin.c rc = do_init(); rc 800 tools/cibadmin.c if (rc != pcmk_ok) { rc 801 tools/cibadmin.c rc = pcmk_legacy2rc(rc); rc 802 tools/cibadmin.c exit_code = pcmk_rc2exitc(rc); rc 805 tools/cibadmin.c pcmk_rc_str(rc)); rc 808 tools/cibadmin.c pcmk_rc_str(rc)); rc 812 tools/cibadmin.c rc = do_work(input, &output); rc 815 tools/cibadmin.c && (rc >= 0)) { rc 821 tools/cibadmin.c request_id = rc; rc 836 tools/cibadmin.c rc = pcmk_legacy2rc(rc); rc 838 tools/cibadmin.c if ((rc == pcmk_rc_schema_unchanged) rc 843 tools/cibadmin.c } else if (rc != pcmk_rc_ok) { rc 844 tools/cibadmin.c crm_err("Call failed: %s", pcmk_rc_str(rc)); rc 845 tools/cibadmin.c fprintf(stderr, "Call failed: %s\n", pcmk_rc_str(rc)); rc 846 tools/cibadmin.c exit_code = pcmk_rc2exitc(rc); rc 848 tools/cibadmin.c if (rc == pcmk_rc_schema_validation) { rc 871 tools/cibadmin.c rc = pcmk__acl_annotate_permissions(acl_cred, output->doc, &acl_evaled_doc); rc 872 tools/cibadmin.c if (rc == pcmk_rc_ok) { rc 875 tools/cibadmin.c rc = pcmk__acl_evaled_render(acl_evaled_doc, rc 877 tools/cibadmin.c if (rc != pcmk_rc_ok) { rc 881 tools/cibadmin.c pcmk_rc_str(rc)); rc 891 tools/cibadmin.c acl_cred, pcmk_rc_str(rc)); rc 916 tools/cibadmin.c rc = cib__clean_up_connection(&the_cib); rc 918 tools/cibadmin.c exit_code = pcmk_rc2exitc(rc); rc 948 tools/cibadmin.c int rc = pcmk_ok; rc 951 tools/cibadmin.c rc = cib__signon_attempts(the_cib, crm_system_name, cib_command, 5); rc 952 tools/cibadmin.c if (rc != pcmk_ok) { rc 953 tools/cibadmin.c crm_err("Could not connect to the CIB: %s", pcmk_strerror(rc)); rc 955 tools/cibadmin.c pcmk_strerror(rc)); rc 958 tools/cibadmin.c return rc; rc 962 tools/cibadmin.c cibadmin_op_callback(xmlNode * msg, int call_id, int rc, xmlNode * output, void *user_data) rc 964 tools/cibadmin.c rc = pcmk_legacy2rc(rc); rc 965 tools/cibadmin.c exit_code = pcmk_rc2exitc(rc); rc 967 tools/cibadmin.c if (rc == pcmk_rc_schema_unchanged) { rc 970 tools/cibadmin.c } else if (rc != pcmk_rc_ok) { rc 972 tools/cibadmin.c options.cib_action, pcmk_rc_str(rc), rc); rc 974 tools/cibadmin.c options.cib_action, pcmk_rc_str(rc)); rc 374 tools/crm_attribute.c int rc = pcmk_rc_ok; rc 379 tools/crm_attribute.c rc = pcmk__attrd_api_delete(NULL, attr_node, attr_name, opts); rc 383 tools/crm_attribute.c rc = pcmk__attrd_api_update(NULL, attr_node, attr_name, rc 392 tools/crm_attribute.c if (rc != pcmk_rc_ok) { rc 393 tools/crm_attribute.c g_set_error(&error, PCMK__RC_ERROR, rc, "Could not update %s=%s: %s (%d)", rc 394 tools/crm_attribute.c attr_name, attr_value, pcmk_rc_str(rc), rc); rc 397 tools/crm_attribute.c return rc; rc 411 tools/crm_attribute.c int rc = pcmk_rc_ok; rc 417 tools/crm_attribute.c rc = cib__delete_node_attr(dd->out, dd->cib, cib_opts, options.type, rc 422 tools/crm_attribute.c if (rc == ENXIO) { rc 423 tools/crm_attribute.c rc = pcmk_rc_ok; rc 426 tools/crm_attribute.c return rc; rc 448 tools/crm_attribute.c int rc = pcmk_rc_ok; rc 457 tools/crm_attribute.c rc = cib__get_node_attrs(out, cib, options.type, options.dest_node, rc 461 tools/crm_attribute.c if (rc != pcmk_rc_ok) { rc 465 tools/crm_attribute.c rc = pcmk__xe_foreach_child(result, NULL, delete_attr_on_node, &dd); rc 468 tools/crm_attribute.c rc = cib__delete_node_attr(out, cib, cib_opts, options.type, options.dest_node, rc 476 tools/crm_attribute.c if (rc == ENXIO) { rc 481 tools/crm_attribute.c rc = pcmk_rc_ok; rc 484 tools/crm_attribute.c return rc; rc 514 tools/crm_attribute.c int rc = pcmk_rc_ok; rc 528 tools/crm_attribute.c rc = cib__get_node_attrs(out, cib, options.type, options.dest_node, rc 532 tools/crm_attribute.c if (rc != pcmk_rc_ok) { rc 536 tools/crm_attribute.c rc = pcmk__xe_foreach_child(result, NULL, update_attr_on_node, &ud); rc 539 tools/crm_attribute.c rc = cib__update_node_attr(out, cib, cib_opts, options.type, rc 548 tools/crm_attribute.c return rc; rc 585 tools/crm_attribute.c int rc = pcmk_rc_ok; rc 596 tools/crm_attribute.c rc = cib__get_node_attrs(out, cib, options.type, options.dest_node, rc 600 tools/crm_attribute.c rc = cib__get_node_attrs(out, cib, options.type, options.dest_node, rc 605 tools/crm_attribute.c if (rc == ENXIO && options.attr_default) { rc 614 tools/crm_attribute.c rc = pcmk_rc_ok; rc 616 tools/crm_attribute.c } else if (rc != pcmk_rc_ok) { rc 625 tools/crm_attribute.c rc = ENXIO; rc 634 tools/crm_attribute.c return rc; rc 768 tools/crm_attribute.c int rc = pcmk_rc_ok; rc 785 tools/crm_attribute.c rc = pcmk__output_new(&out, args->output_ty, args->output_dest, argv); rc 786 tools/crm_attribute.c if (rc != pcmk_rc_ok) { rc 789 tools/crm_attribute.c args->output_ty, pcmk_rc_str(rc)); rc 821 tools/crm_attribute.c rc = cib__signon_attempts(the_cib, crm_system_name, cib_command, 5); rc 822 tools/crm_attribute.c rc = pcmk_legacy2rc(rc); rc 824 tools/crm_attribute.c if (rc != pcmk_rc_ok) { rc 825 tools/crm_attribute.c exit_code = pcmk_rc2exitc(rc); rc 827 tools/crm_attribute.c "Could not connect to the CIB: %s", pcmk_rc_str(rc)); rc 867 tools/crm_attribute.c rc = pcmk__query_node_name(out, 0, &node_name, 0); rc 869 tools/crm_attribute.c if (rc != pcmk_rc_ok) { rc 870 tools/crm_attribute.c exit_code = pcmk_rc2exitc(rc); rc 878 tools/crm_attribute.c rc = query_node_uuid(the_cib, options.dest_uname, &options.dest_node, &is_remote_node); rc 879 tools/crm_attribute.c rc = pcmk_legacy2rc(rc); rc 881 tools/crm_attribute.c if (rc != pcmk_rc_ok) { rc 882 tools/crm_attribute.c exit_code = pcmk_rc2exitc(rc); rc 944 tools/crm_attribute.c rc = command_delete(out, the_cib); rc 947 tools/crm_attribute.c rc = command_update(out, the_cib, is_remote_node); rc 950 tools/crm_attribute.c rc = command_query(out, the_cib); rc 953 tools/crm_attribute.c if (rc == ENOTUNIQ) { rc 954 tools/crm_attribute.c exit_code = pcmk_rc2exitc(rc); rc 958 tools/crm_attribute.c } else if (rc != pcmk_rc_ok) { rc 959 tools/crm_attribute.c exit_code = pcmk_rc2exitc(rc); rc 961 tools/crm_attribute.c "Error performing operation: %s", pcmk_rc_str(rc)); rc 122 tools/crm_diff.c int rc = xml_apply_patchset(output, patch, as_cib); rc 124 tools/crm_diff.c rc = pcmk_legacy2rc(rc); rc 125 tools/crm_diff.c if (rc != pcmk_rc_ok) { rc 126 tools/crm_diff.c fprintf(stderr, "Could not apply patch: %s\n", pcmk_rc_str(rc)); rc 128 tools/crm_diff.c return rc; rc 308 tools/crm_diff.c int rc = pcmk_rc_ok; rc 366 tools/crm_diff.c rc = apply_patch(object_1, object_2, options.as_cib); rc 368 tools/crm_diff.c rc = generate_patch(object_1, object_2, options.xml_file_2, options.as_cib, options.no_version); rc 370 tools/crm_diff.c exit_code = pcmk_rc2exitc(rc); rc 82 tools/crm_error.c int rc = pcmk_rc_ok; rc 101 tools/crm_error.c rc = pcmk__output_new(&out, args->output_ty, args->output_dest, argv); rc 102 tools/crm_error.c if (rc != pcmk_rc_ok) { rc 106 tools/crm_error.c pcmk_rc_str(rc)); rc 151 tools/crm_mon.c int rc = pcmk_rc_ok; rc 158 tools/crm_mon.c rc = out->info(out, "Not connected to CIB%s%s (%s)", rc 162 tools/crm_mon.c rc = out->info(out, "Not connected to CIB%s%s", rc 167 tools/crm_mon.c return rc; rc 238 tools/crm_mon.c static void clean_up_on_connection_failure(int rc); rc 388 tools/crm_mon.c gboolean rc = TRUE; rc 395 tools/crm_mon.c rc = apply_include(s+10, error); rc 397 tools/crm_mon.c rc = apply_include(s+3, error); rc 399 tools/crm_mon.c rc = apply_exclude(s+10, error); rc 401 tools/crm_mon.c rc = apply_exclude(s+3, error); rc 404 tools/crm_mon.c if (rc != TRUE) { rc 411 tools/crm_mon.c return rc; rc 550 tools/crm_mon.c int rc = crm_get_msec(optarg); rc 552 tools/crm_mon.c if (rc == -1) { rc 610 tools/crm_mon.c gboolean rc = user_include_exclude_cb("--include", s, data, err); rc 612 tools/crm_mon.c return rc; rc 911 tools/crm_mon.c int rc = pcmk_ok; rc 918 tools/crm_mon.c return rc; rc 921 tools/crm_mon.c rc = st->cmds->connect(st, crm_system_name, NULL); rc 922 tools/crm_mon.c if (rc == pcmk_ok) { rc 942 tools/crm_mon.c return rc; rc 948 tools/crm_mon.c int rc = pcmk_rc_ok; rc 954 tools/crm_mon.c return rc; rc 957 tools/crm_mon.c rc = cib__signon_query(out, &cib, ¤t_cib); rc 959 tools/crm_mon.c if (rc == pcmk_rc_ok) { rc 960 tools/crm_mon.c rc = pcmk_legacy2rc(cib->cmds->set_connection_dnotify(cib, rc 962 tools/crm_mon.c if (rc == EPROTONOSUPPORT) { rc 967 tools/crm_mon.c rc = pcmk_rc_ok; rc 970 tools/crm_mon.c if (rc == pcmk_rc_ok) { rc 973 tools/crm_mon.c rc = cib->cmds->add_notify_callback(cib, PCMK__VALUE_CIB_DIFF_NOTIFY, rc 975 tools/crm_mon.c rc = pcmk_legacy2rc(rc); rc 978 tools/crm_mon.c if (rc != pcmk_rc_ok) { rc 979 tools/crm_mon.c if (rc == EPROTONOSUPPORT) { rc 993 tools/crm_mon.c return rc; rc 1035 tools/crm_mon.c int rc = pcmk_rc_ok; rc 1040 tools/crm_mon.c return rc; rc 1044 tools/crm_mon.c rc = pcmk__pacemakerd_status(out, crm_system_name, rc 1047 tools/crm_mon.c if (rc != pcmk_rc_ok) { rc 1048 tools/crm_mon.c return rc; rc 1067 tools/crm_mon.c rc = setup_cib_connection(); rc 1068 tools/crm_mon.c return rc; rc 1100 tools/crm_mon.c gboolean rc = G_SOURCE_CONTINUE; rc 1108 tools/crm_mon.c rc = G_SOURCE_REMOVE; rc 1116 tools/crm_mon.c rc = G_SOURCE_REMOVE; rc 1120 tools/crm_mon.c return rc; rc 1228 tools/crm_mon.c return rc; rc 1452 tools/crm_mon.c clean_up_on_connection_failure(int rc) rc 1456 tools/crm_mon.c pcmk_rc_str(rc)); rc 1458 tools/crm_mon.c } else if (rc == ENOTCONN) { rc 1465 tools/crm_mon.c g_set_error(&error, PCMK__EXITC_ERROR, CRM_EX_ERROR, "Connection to cluster failed: %s", pcmk_rc_str(rc)); rc 1468 tools/crm_mon.c clean_up(pcmk_rc2exitc(rc)); rc 1474 tools/crm_mon.c int rc = pcmk__status(out, cib, fence_history, show, show_opts, rc 1479 tools/crm_mon.c if (rc == pcmk_rc_ok) { rc 1480 tools/crm_mon.c clean_up(pcmk_rc2exitc(rc)); rc 1482 tools/crm_mon.c clean_up_on_connection_failure(rc); rc 1501 tools/crm_mon.c int rc = pcmk_rc_ok; rc 1600 tools/crm_mon.c rc = pcmk__output_new(&out, args->output_ty, args->output_dest, argv); rc 1601 tools/crm_mon.c if (rc != pcmk_rc_ok) { rc 1603 tools/crm_mon.c args->output_ty, pcmk_rc_str(rc)); rc 1726 tools/crm_mon.c rc = setup_api_connections(); rc 1728 tools/crm_mon.c if (rc != pcmk_rc_ok) { rc 1729 tools/crm_mon.c if ((rc == ENOTCONN) || (rc == ECONNREFUSED)) { rc 1743 tools/crm_mon.c } while ((rc == ENOTCONN) || (rc == ECONNREFUSED)); rc 1745 tools/crm_mon.c if (rc != pcmk_rc_ok) { rc 1746 tools/crm_mon.c clean_up_on_connection_failure(rc); rc 1783 tools/crm_mon.c send_custom_trap(const char *node, const char *rsc, const char *task, int target_rc, int rc, rc 1789 tools/crm_mon.c char *rc_s = pcmk__itoa(rc); rc 1829 tools/crm_mon.c int rc = -1; rc 1857 tools/crm_mon.c if (!decode_transition_magic(magic, NULL, NULL, NULL, &status, &rc, rc 1893 tools/crm_mon.c if ((status == PCMK_EXEC_DONE) && (target_rc == rc)) { rc 1895 tools/crm_mon.c if (rc == PCMK_OCF_NOT_RUNNING) { rc 1900 tools/crm_mon.c desc = services_ocf_exitcode_str(rc); rc 1909 tools/crm_mon.c send_custom_trap(node, rsc, task, target_rc, rc, status, desc); rc 2056 tools/crm_mon.c int rc = -1; rc 2066 tools/crm_mon.c rc = xml_apply_patchset(current_cib, diff, TRUE); rc 2068 tools/crm_mon.c switch (rc) { rc 2071 tools/crm_mon.c crm_notice("[%s] Patch aborted: %s (%d)", event, pcmk_strerror(rc), rc); rc 2078 tools/crm_mon.c crm_notice("[%s] ABORTED: %s (%d)", event, pcmk_strerror(rc), rc); rc 2118 tools/crm_mon.c int rc = pcmk_rc_ok; rc 2142 tools/crm_mon.c rc = pcmk__output_cluster_status(out, st, cib, current_cib, pcmkd_state, rc 2148 tools/crm_mon.c if (output_format == mon_output_monitor && rc != pcmk_rc_ok) { rc 2151 tools/crm_mon.c } else if (rc == pcmk_rc_schema_validation) { rc 298 tools/crm_mon_curses.c int rc = OK; rc 307 tools/crm_mon_curses.c rc = echo(); rc 310 tools/crm_mon_curses.c if (rc == OK) { rc 322 tools/crm_mon_curses.c rc = scanw((NCURSES_CONST char *) "%1023s", *dest); rc 326 tools/crm_mon_curses.c if (rc < 1) { rc 451 tools/crm_mon_curses.c int rc = pcmk_rc_no_output; rc 454 tools/crm_mon_curses.c rc = pcmk__cluster_status_text(out, args); rc 456 tools/crm_mon_curses.c return rc; rc 391 tools/crm_node.c int rc; rc 397 tools/crm_node.c rc = pcmk_new_ipc_api(&controld_api, pcmk_ipc_controld); rc 398 tools/crm_node.c if (rc != pcmk_rc_ok) { rc 399 tools/crm_node.c g_set_error(&error, PCMK__RC_ERROR, rc, rc 401 tools/crm_node.c pcmk_rc_str(rc)); rc 407 tools/crm_node.c rc = pcmk__connect_ipc(controld_api, pcmk_ipc_dispatch_main, 5); rc 408 tools/crm_node.c if (rc != pcmk_rc_ok) { rc 409 tools/crm_node.c exit_code = pcmk_rc2exitc(rc); rc 412 tools/crm_node.c pcmk_ipc_name(controld_api, true), pcmk_rc_str(rc)); rc 416 tools/crm_node.c rc = pcmk_controld_api_list_nodes(controld_api); rc 418 tools/crm_node.c if (rc != pcmk_rc_ok) { rc 420 tools/crm_node.c exit_code = pcmk_rc2exitc(rc); rc 422 tools/crm_node.c "Could not ping controller: %s", pcmk_rc_str(rc)); rc 438 tools/crm_node.c int rc = pcmk__query_node_info(out, &nodeid, NULL, NULL, NULL, NULL, NULL, rc 441 tools/crm_node.c if (rc != pcmk_rc_ok) { rc 446 tools/crm_node.c exit_code = pcmk_rc2exitc(rc); rc 450 tools/crm_node.c rc = out->message(out, "node-id", nodeid); rc 452 tools/crm_node.c if (rc != pcmk_rc_ok) { rc 453 tools/crm_node.c g_set_error(&error, PCMK__RC_ERROR, rc, "Could not print node ID: %s", rc 454 tools/crm_node.c pcmk_rc_str(rc)); rc 457 tools/crm_node.c exit_code = pcmk_rc2exitc(rc); rc 463 tools/crm_node.c int rc = pcmk_rc_ok; rc 472 tools/crm_node.c rc = out->message(out, "node-name", 0UL, name); rc 483 tools/crm_node.c rc = pcmk__query_node_name(out, nodeid, &node_name, 0); rc 484 tools/crm_node.c if (rc != pcmk_rc_ok) { rc 485 tools/crm_node.c exit_code = pcmk_rc2exitc(rc); rc 489 tools/crm_node.c rc = out->message(out, "node-name", 0UL, node_name); rc 496 tools/crm_node.c if (rc != pcmk_rc_ok) { rc 497 tools/crm_node.c g_set_error(&error, PCMK__RC_ERROR, rc, "Could not print node name: %s", rc 498 tools/crm_node.c pcmk_rc_str(rc)); rc 501 tools/crm_node.c exit_code = pcmk_rc2exitc(rc); rc 508 tools/crm_node.c int rc = pcmk__query_node_info(out, NULL, NULL, NULL, NULL, &quorum, NULL, rc 511 tools/crm_node.c if (rc != pcmk_rc_ok) { rc 516 tools/crm_node.c exit_code = pcmk_rc2exitc(rc); rc 520 tools/crm_node.c rc = out->message(out, "quorum", quorum); rc 522 tools/crm_node.c if (rc != pcmk_rc_ok) { rc 523 tools/crm_node.c g_set_error(&error, PCMK__RC_ERROR, rc, "Could not print quorum status: %s", rc 524 tools/crm_node.c pcmk_rc_str(rc)); rc 527 tools/crm_node.c exit_code = pcmk_rc2exitc(rc); rc 547 tools/crm_node.c int rc = pcmk_rc_ok; rc 555 tools/crm_node.c rc = cib->cmds->remove(cib, section, xml, cib_transaction); rc 557 tools/crm_node.c return (rc >= 0)? pcmk_rc_ok : pcmk_legacy2rc(rc); rc 573 tools/crm_node.c int rc = pcmk_rc_ok; rc 582 tools/crm_node.c rc = cib__signon_attempts(cib, crm_system_name, cib_command, 5); rc 583 tools/crm_node.c if (rc == pcmk_ok) { rc 584 tools/crm_node.c rc = cib->cmds->init_transaction(cib); rc 586 tools/crm_node.c if (rc != pcmk_ok) { rc 587 tools/crm_node.c rc = pcmk_legacy2rc(rc); rc 589 tools/crm_node.c return rc; rc 593 tools/crm_node.c rc = remove_from_section(cib, PCMK_XE_NODE, PCMK_XE_NODES, node_name, rc 595 tools/crm_node.c if (rc == pcmk_rc_ok) { rc 596 tools/crm_node.c rc = remove_from_section(cib, PCMK__XE_NODE_STATE, PCMK_XE_STATUS, rc 601 tools/crm_node.c commit_rc = cib->cmds->end_transaction(cib, (rc == pcmk_rc_ok), rc 605 tools/crm_node.c if ((rc == pcmk_rc_ok) && (commit_rc == pcmk_ok)) { rc 609 tools/crm_node.c return rc; rc 628 tools/crm_node.c int rc; rc 630 tools/crm_node.c rc = pcmk_new_ipc_api(&api, server); rc 631 tools/crm_node.c if (rc != pcmk_rc_ok) { rc 635 tools/crm_node.c rc = pcmk__connect_ipc(api, pcmk_ipc_dispatch_sync, 5); rc 636 tools/crm_node.c if (rc != pcmk_rc_ok) { rc 640 tools/crm_node.c rc = pcmk_ipc_purge_node(api, node_name, node_id); rc 642 tools/crm_node.c if (rc != pcmk_rc_ok) { // Debug message already logged on success rc 643 tools/crm_node.c g_set_error(&error, PCMK__RC_ERROR, rc, rc 646 tools/crm_node.c pcmk_rc_str(rc)); rc 649 tools/crm_node.c return rc; rc 665 tools/crm_node.c int rc = pcmk_rc_ok; rc 671 tools/crm_node.c rc = ENOTCONN; rc 672 tools/crm_node.c exit_code = pcmk_rc2exitc(rc); rc 676 tools/crm_node.c return rc; rc 679 tools/crm_node.c rc = pcmk__connect_generic_ipc(conn); rc 680 tools/crm_node.c if (rc != pcmk_rc_ok) { rc 681 tools/crm_node.c exit_code = pcmk_rc2exitc(rc); rc 684 tools/crm_node.c pcmk__s(node_name, "by ID"), pcmk_rc_str(rc)); rc 686 tools/crm_node.c return rc; rc 696 tools/crm_node.c rc = crm_ipc_send(conn, cmd, 0, 0, NULL); rc 697 tools/crm_node.c if (rc >= 0) { rc 698 tools/crm_node.c rc = pcmk_rc_ok; rc 702 tools/crm_node.c rc = pcmk_legacy2rc(rc); rc 704 tools/crm_node.c pcmk__s(node_name, "by ID"), pcmk_rc_str(rc)); rc 709 tools/crm_node.c return rc; rc 715 tools/crm_node.c int rc = pcmk_rc_ok; rc 735 tools/crm_node.c rc = purge_node_from(servers[i], node_name, nodeid); rc 736 tools/crm_node.c if (rc != pcmk_rc_ok) { rc 737 tools/crm_node.c exit_code = pcmk_rc2exitc(rc); rc 743 tools/crm_node.c rc = purge_node_from_fencer(node_name, nodeid); rc 744 tools/crm_node.c if (rc != pcmk_rc_ok) { rc 745 tools/crm_node.c exit_code = pcmk_rc2exitc(rc); rc 750 tools/crm_node.c rc = purge_node_from_cib(node_name, nodeid); rc 751 tools/crm_node.c exit_code = pcmk_rc2exitc(rc); rc 783 tools/crm_node.c int rc = pcmk_rc_ok; rc 798 tools/crm_node.c rc = pcmk__output_new(&out, args->output_ty, args->output_dest, argv); rc 799 tools/crm_node.c if (rc != pcmk_rc_ok) { rc 800 tools/crm_node.c exit_code = pcmk_rc2exitc(rc); rc 803 tools/crm_node.c pcmk_rc_str(rc)); rc 854 tools/crm_resource.c int rc = pcmk_rc_ok; rc 863 tools/crm_resource.c rc = cli_resource_ban(out, options.rsc_id, current->details->uname, move_lifetime, rc 883 tools/crm_resource.c rc = cli_resource_ban(out, options.rsc_id, current->details->uname, move_lifetime, rc 889 tools/crm_resource.c rc = EINVAL; rc 900 tools/crm_resource.c rc = EINVAL; rc 908 tools/crm_resource.c return rc; rc 914 tools/crm_resource.c int rc = pcmk_rc_ok; rc 922 tools/crm_resource.c rc = cli_resource_delete(controld_api, options.host_uname, rsc, rc 926 tools/crm_resource.c if ((rc == pcmk_rc_ok) && !out->is_quiet(out)) { rc 931 tools/crm_resource.c if (rc == pcmk_rc_ok) { rc 944 tools/crm_resource.c int rc = pcmk_rc_ok; rc 951 tools/crm_resource.c rc = cli_resource_clear_all_expired(scheduler->input, cib_conn, rc 959 tools/crm_resource.c rc = pcmk_rc_node_unknown; rc 963 tools/crm_resource.c return rc; rc 965 tools/crm_resource.c rc = cli_resource_clear(options.rsc_id, dest->details->uname, NULL, rc 969 tools/crm_resource.c rc = cli_resource_clear(options.rsc_id, NULL, scheduler->nodes, rc 974 tools/crm_resource.c rc = cib_conn->cmds->query(cib_conn, NULL, cib_xml_copy, cib_scope_local | cib_sync_call); rc 975 tools/crm_resource.c rc = pcmk_legacy2rc(rc); rc 977 tools/crm_resource.c if (rc != pcmk_rc_ok) { rc 978 tools/crm_resource.c g_set_error(&error, PCMK__RC_ERROR, rc, rc 979 tools/crm_resource.c _("Could not get modified CIB: %s\n"), pcmk_rc_str(rc)); rc 983 tools/crm_resource.c return rc; rc 1001 tools/crm_resource.c return rc; rc 1007 tools/crm_resource.c int rc = pcmk_rc_ok; rc 1012 tools/crm_resource.c rc = pcmk_rc_cib_corrupt; rc 1015 tools/crm_resource.c rc = cib_conn->cmds->query(cib_conn, NULL, cib_xml_copy, cib_scope_local | cib_sync_call); rc 1016 tools/crm_resource.c rc = pcmk_legacy2rc(rc); rc 1019 tools/crm_resource.c if (rc == pcmk_rc_ok) { rc 1022 tools/crm_resource.c rc = ENOMEM; rc 1028 tools/crm_resource.c rc = update_scheduler_input(scheduler, cib_xml_copy); rc 1032 tools/crm_resource.c if (rc != pcmk_rc_ok) { rc 1035 tools/crm_resource.c return rc; rc 1065 tools/crm_resource.c int rc = pcmk_rc_ok; rc 1075 tools/crm_resource.c rc = ENXIO; rc 1076 tools/crm_resource.c g_set_error(&error, PCMK__RC_ERROR, rc, rc 1079 tools/crm_resource.c return rc; rc 1089 tools/crm_resource.c rc = pcmk_rc_ok; rc 1090 tools/crm_resource.c return rc; rc 1095 tools/crm_resource.c rc = pcmk__attrd_api_clear_failures(NULL, options.host_uname, NULL, rc 1103 tools/crm_resource.c return rc; rc 1109 tools/crm_resource.c int rc = pcmk_rc_ok; rc 1117 tools/crm_resource.c rc = cli_resource_delete(controld_api, options.host_uname, rsc, NULL, 0, rc 1120 tools/crm_resource.c if ((rc == pcmk_rc_ok) && !out->is_quiet(out)) { rc 1125 tools/crm_resource.c if (rc == pcmk_rc_ok) { rc 1133 tools/crm_resource.c int rc = pcmk_rc_ok; rc 1139 tools/crm_resource.c rc = ENXIO; rc 1140 tools/crm_resource.c return rc; rc 1145 tools/crm_resource.c rc = ENXIO; rc 1146 tools/crm_resource.c return rc; rc 1155 tools/crm_resource.c rc = cib_conn->cmds->modify(cib_conn, PCMK_XE_RESOURCES, msg_data, rc 1157 tools/crm_resource.c rc = pcmk_legacy2rc(rc); rc 1160 tools/crm_resource.c return rc; rc 1166 tools/crm_resource.c int rc = pcmk_rc_ok; rc 1173 tools/crm_resource.c rc = lrmd__new(&lrmd_conn, NULL, NULL, 0); rc 1174 tools/crm_resource.c if (rc != pcmk_rc_ok) { rc 1175 tools/crm_resource.c g_set_error(&error, PCMK__RC_ERROR, rc, rc 1178 tools/crm_resource.c return rc; rc 1181 tools/crm_resource.c rc = crm_parse_agent_spec(agent_spec, &standard, &provider, &type); rc 1182 tools/crm_resource.c rc = pcmk_legacy2rc(rc); rc 1184 tools/crm_resource.c if (rc == pcmk_rc_ok) { rc 1185 tools/crm_resource.c rc = lrmd_conn->cmds->get_metadata(lrmd_conn, standard, rc 1188 tools/crm_resource.c rc = pcmk_legacy2rc(rc); rc 1199 tools/crm_resource.c rc = ENXIO; rc 1200 tools/crm_resource.c g_set_error(&error, PCMK__RC_ERROR, rc, rc 1202 tools/crm_resource.c agent_spec, pcmk_rc_str(rc)); rc 1205 tools/crm_resource.c rc = ENXIO; rc 1206 tools/crm_resource.c g_set_error(&error, PCMK__RC_ERROR, rc, rc 1211 tools/crm_resource.c return rc; rc 1526 tools/crm_resource.c int rc = pcmk_rc_ok; rc 1548 tools/crm_resource.c rc = pcmk__output_new(&out, args->output_ty, args->output_dest, argv); rc 1549 tools/crm_resource.c if (rc != pcmk_rc_ok) { rc 1552 tools/crm_resource.c args->output_ty, pcmk_rc_str(rc)); rc 1581 tools/crm_resource.c int rc = sscanf(*s, "%[^=]=%s", name, value); rc 1583 tools/crm_resource.c if (rc == 2) { rc 1711 tools/crm_resource.c rc = cib__signon_attempts(cib_conn, crm_system_name, cib_command, 5); rc 1712 tools/crm_resource.c rc = pcmk_legacy2rc(rc); rc 1713 tools/crm_resource.c if (rc != pcmk_rc_ok) { rc 1714 tools/crm_resource.c exit_code = pcmk_rc2exitc(rc); rc 1716 tools/crm_resource.c _("Could not connect to the CIB: %s"), pcmk_rc_str(rc)); rc 1723 tools/crm_resource.c rc = initialize_scheduler_data(&cib_xml_copy); rc 1724 tools/crm_resource.c if (rc != pcmk_rc_ok) { rc 1725 tools/crm_resource.c exit_code = pcmk_rc2exitc(rc); rc 1770 tools/crm_resource.c rc = pcmk_new_ipc_api(&controld_api, pcmk_ipc_controld); rc 1771 tools/crm_resource.c if (rc != pcmk_rc_ok) { rc 1772 tools/crm_resource.c exit_code = pcmk_rc2exitc(rc); rc 1774 tools/crm_resource.c _("Error connecting to the controller: %s"), pcmk_rc_str(rc)); rc 1779 tools/crm_resource.c rc = pcmk__connect_ipc(controld_api, pcmk_ipc_dispatch_main, 5); rc 1780 tools/crm_resource.c if (rc != pcmk_rc_ok) { rc 1781 tools/crm_resource.c exit_code = pcmk_rc2exitc(rc); rc 1784 tools/crm_resource.c pcmk_ipc_name(controld_api, true), pcmk_rc_str(rc)); rc 1799 tools/crm_resource.c rc = out->message(out, "resource-list", scheduler, rc 1803 tools/crm_resource.c if (rc == pcmk_rc_no_output) { rc 1804 tools/crm_resource.c rc = ENXIO; rc 1810 tools/crm_resource.c rc = out->message(out, "resource-names-list", scheduler->resources); rc 1812 tools/crm_resource.c if (rc != pcmk_rc_ok) { rc 1813 tools/crm_resource.c rc = ENXIO; rc 1823 tools/crm_resource.c rc = pcmk__list_alternatives(out, options.agent_spec); rc 1827 tools/crm_resource.c rc = pcmk__list_agents(out, options.agent_spec); rc 1831 tools/crm_resource.c rc = pcmk__list_standards(out); rc 1835 tools/crm_resource.c rc = pcmk__list_providers(out, options.agent_spec); rc 1839 tools/crm_resource.c rc = show_metadata(out, options.agent_spec); rc 1848 tools/crm_resource.c rc = cli_resource_restart(out, rsc, node, options.move_lifetime, rc 1855 tools/crm_resource.c rc = wait_till_stable(out, options.timeout_ms, cib_conn); rc 1876 tools/crm_resource.c rc = pcmk_rc_node_unknown; rc 1878 tools/crm_resource.c rc = pcmk__resource_digests(out, rsc, node, rc 1884 tools/crm_resource.c rc = out->message(out, "locations-and-colocations", rsc, rc 1889 tools/crm_resource.c rc = pcmk_rc_ok; rc 1896 tools/crm_resource.c rc = cli_resource_fail(controld_api, options.host_uname, rc 1898 tools/crm_resource.c if (rc == pcmk_rc_ok) { rc 1904 tools/crm_resource.c rc = cli_resource_print_operations(options.rsc_id, rc 1910 tools/crm_resource.c rc = cli_resource_print_operations(options.rsc_id, rc 1917 tools/crm_resource.c rc = out->message(out, "resource-search-list", nodes, options.rsc_id); rc 1923 tools/crm_resource.c rc = cli_resource_print(rsc, scheduler, true); rc 1927 tools/crm_resource.c rc = cli_resource_print(rsc, scheduler, false); rc 1932 tools/crm_resource.c rc = pcmk_rc_node_unknown; rc 1934 tools/crm_resource.c rc = out->message(out, "resource-reasons-list", rc 1940 tools/crm_resource.c rc = clear_constraints(out, &cib_xml_copy); rc 1945 tools/crm_resource.c rc = ban_or_move(out, rsc, options.move_lifetime); rc 1947 tools/crm_resource.c rc = cli_resource_move(rsc, options.rsc_id, options.host_uname, rc 1954 tools/crm_resource.c if (rc == EINVAL) { rc 1963 tools/crm_resource.c rc = ban_or_move(out, rsc, options.move_lifetime); rc 1965 tools/crm_resource.c rc = pcmk_rc_node_unknown; rc 1967 tools/crm_resource.c rc = cli_resource_ban(out, options.rsc_id, node->details->uname, rc 1973 tools/crm_resource.c if (rc == EINVAL) { rc 1981 tools/crm_resource.c rc = out->message(out, "property-list", rsc, options.prop_name); rc 1982 tools/crm_resource.c if (rc == pcmk_rc_no_output) { rc 1983 tools/crm_resource.c rc = ENXIO; rc 1989 tools/crm_resource.c rc = set_property(); rc 2040 tools/crm_resource.c rc = out->message(out, "attribute-list", rsc, options.prop_name, value); rc 2057 tools/crm_resource.c rc = cli_resource_update_attribute(rsc, options.rsc_id, rc 2069 tools/crm_resource.c rc = cli_resource_delete_attribute(rsc, options.rsc_id, rc 2079 tools/crm_resource.c rc = cli_cleanup_all(controld_api, options.host_uname, rc 2082 tools/crm_resource.c if (rc == pcmk_rc_ok) { rc 2092 tools/crm_resource.c rc = refresh(out); rc 2104 tools/crm_resource.c rc = ENXIO; rc 2105 tools/crm_resource.c g_set_error(&error, PCMK__RC_ERROR, rc, rc 2108 tools/crm_resource.c rc = pcmk__resource_delete(cib_conn, cib_sync_call, rc 2111 tools/crm_resource.c if (rc != pcmk_rc_ok) { rc 2112 tools/crm_resource.c g_set_error(&error, PCMK__RC_ERROR, rc, rc 2114 tools/crm_resource.c options.rsc_id, pcmk_rc_str(rc)); rc 2128 tools/crm_resource.c if (rc != pcmk_rc_ok && rc != pcmk_rc_no_output) { rc 2129 tools/crm_resource.c exit_code = pcmk_rc2exitc(rc); rc 66 tools/crm_resource_ban.c int rc = pcmk_rc_ok; rc 124 tools/crm_resource_ban.c rc = cib_conn->cmds->modify(cib_conn, PCMK_XE_CONSTRAINTS, fragment, rc 126 tools/crm_resource_ban.c rc = pcmk_legacy2rc(rc); rc 131 tools/crm_resource_ban.c if ((rc != pcmk_rc_ok) rc 139 tools/crm_resource_ban.c rc = banrc; rc 143 tools/crm_resource_ban.c return rc; rc 153 tools/crm_resource_ban.c int rc = pcmk_rc_ok; rc 204 tools/crm_resource_ban.c rc = cib_conn->cmds->modify(cib_conn, PCMK_XE_CONSTRAINTS, fragment, rc 206 tools/crm_resource_ban.c rc = pcmk_legacy2rc(rc); rc 211 tools/crm_resource_ban.c if ((rc != pcmk_rc_ok) rc 219 tools/crm_resource_ban.c rc = preferrc; rc 223 tools/crm_resource_ban.c return rc; rc 251 tools/crm_resource_ban.c int rc = pcmk_rc_ok; rc 265 tools/crm_resource_ban.c rc = cib_conn->cmds->remove(cib_conn, xpath_string, NULL, cib_xpath | cib_options); rc 266 tools/crm_resource_ban.c if (rc == -ENXIO) { rc 267 tools/crm_resource_ban.c rc = pcmk_rc_ok; rc 269 tools/crm_resource_ban.c rc = pcmk_legacy2rc(rc); rc 273 tools/crm_resource_ban.c return rc; rc 281 tools/crm_resource_ban.c int rc = pcmk_rc_ok; rc 299 tools/crm_resource_ban.c rc = cib_conn->cmds->remove(cib_conn, PCMK_XE_CONSTRAINTS, fragment, rc 301 tools/crm_resource_ban.c if (rc == -ENXIO) { rc 302 tools/crm_resource_ban.c rc = pcmk_rc_ok; rc 304 tools/crm_resource_ban.c rc = pcmk_legacy2rc(rc); rc 308 tools/crm_resource_ban.c return rc; rc 316 tools/crm_resource_ban.c int rc = pcmk_rc_ok; rc 323 tools/crm_resource_ban.c rc = resource_clear_node_in_expr(rsc_id, host, cib_conn, cib_options); rc 329 tools/crm_resource_ban.c if (rc == pcmk_rc_ok) { rc 330 tools/crm_resource_ban.c rc = resource_clear_node_in_location(rsc_id, host, cib_conn, rc 344 tools/crm_resource_ban.c rc = cli_resource_clear(rsc_id, target->details->uname, NULL, rc 347 tools/crm_resource_ban.c if (rc != pcmk_rc_ok) { rc 353 tools/crm_resource_ban.c return rc; rc 447 tools/crm_resource_ban.c int rc = pcmk_rc_ok; rc 456 tools/crm_resource_ban.c int rc = pcmk_rc_ok; rc 479 tools/crm_resource_ban.c rc = pcmk__xe_get_datetime(date_expr_node, PCMK_XA_END, &end); rc 480 tools/crm_resource_ban.c if (rc != pcmk_rc_ok) { rc 481 tools/crm_resource_ban.c crm_trace("Invalid " PCMK_XA_END ": %s", pcmk_rc_str(rc)); rc 493 tools/crm_resource_ban.c rc = cib_conn->cmds->remove(cib_conn, PCMK_XE_CONSTRAINTS, fragment, rc 495 tools/crm_resource_ban.c rc = pcmk_legacy2rc(rc); rc 497 tools/crm_resource_ban.c if (rc != pcmk_rc_ok) { rc 513 tools/crm_resource_ban.c return rc; rc 100 tools/crm_resource_print.c int rc = pcmk_rc_no_output; rc 104 tools/crm_resource_print.c return rc; rc 108 tools/crm_resource_print.c rc = pcmk_rc_ok; rc 116 tools/crm_resource_print.c return rc; rc 251 tools/crm_resource_print.c crm_exit_t rc = va_arg(args, crm_exit_t); rc 264 tools/crm_resource_print.c type, (int) rc, services_ocf_exitcode_str((int) rc), rc 296 tools/crm_resource_print.c crm_exit_t rc = va_arg(args, crm_exit_t); rc 299 tools/crm_resource_print.c char *exit_s = pcmk__itoa(rc); rc 300 tools/crm_resource_print.c const char *message = services_ocf_exitcode_str((int) rc); rc 416 tools/crm_resource_print.c crm_exit_t rc = va_arg(args, crm_exit_t); rc 438 tools/crm_resource_print.c type, rc, exit_reason); rc 456 tools/crm_resource_print.c out->subprocess_output(out, rc, stdout_data, stderr_data); rc 476 tools/crm_resource_print.c crm_exit_t rc = va_arg(args, crm_exit_t); rc 512 tools/crm_resource_print.c type, rc, exit_reason); rc 524 tools/crm_resource_print.c out->subprocess_output(out, rc, stdout_data, stderr_data); rc 620 tools/crm_resource_print.c int rc = pcmk_rc_no_output; rc 624 tools/crm_resource_print.c return rc; rc 633 tools/crm_resource_print.c rc = pcmk_rc_ok; rc 657 tools/crm_resource_print.c return rc; rc 90 tools/crm_resource_runtime.c int rc = pcmk_rc_ok; rc 134 tools/crm_resource_runtime.c rc = the_cib->cmds->query(the_cib, (const char *) xpath->str, &xml_search, rc 136 tools/crm_resource_runtime.c rc = pcmk_legacy2rc(rc); rc 138 tools/crm_resource_runtime.c if (rc == pcmk_rc_ok) { rc 141 tools/crm_resource_runtime.c rc = ENOTUNIQ; rc 154 tools/crm_resource_runtime.c return rc; rc 165 tools/crm_resource_runtime.c int rc = pcmk_rc_ok; rc 180 tools/crm_resource_runtime.c rc = find_resource_attr(out, cib, PCMK_XA_ID, lookup_id, attr_set_type, rc 184 tools/crm_resource_runtime.c if((0 == depth) || (pcmk_rc_ok == rc)) { rc 201 tools/crm_resource_runtime.c int rc = pcmk_rc_ok; rc 211 tools/crm_resource_runtime.c int rc = find_resource_attr(out, cib, PCMK_XA_ID, rsc_id, attr_set_type, rc 214 tools/crm_resource_runtime.c if(rc != pcmk_rc_ok) { rc 227 tools/crm_resource_runtime.c rc = find_resource_attr(out, cib, PCMK_XA_ID, lookup_id, rc 230 tools/crm_resource_runtime.c if(rc == pcmk_rc_ok) { rc 251 tools/crm_resource_runtime.c int rc = pcmk_rc_ok; rc 259 tools/crm_resource_runtime.c rc = cib->cmds->replace(cib, PCMK_XE_RESOURCES, rsc->xml, cib_sync_call); rc 260 tools/crm_resource_runtime.c rc = pcmk_legacy2rc(rc); rc 261 tools/crm_resource_runtime.c if (rc == pcmk_rc_ok) { rc 266 tools/crm_resource_runtime.c return rc; rc 280 tools/crm_resource_runtime.c int rc = pcmk_rc_ok; rc 282 tools/crm_resource_runtime.c rc = find_resource_attr(out, cib, PCMK_XA_ID, top_id, rc 286 tools/crm_resource_runtime.c if (rc == pcmk_rc_ok || rc == ENOTUNIQ) { rc 358 tools/crm_resource_runtime.c int rc = pcmk_rc_ok; rc 368 tools/crm_resource_runtime.c rc = resources_with_attr(out, cib, rsc, requested_name, attr_set, attr_set_type, rc 371 tools/crm_resource_runtime.c if (rc != pcmk_rc_ok) { rc 372 tools/crm_resource_runtime.c return rc; rc 389 tools/crm_resource_runtime.c rc = find_resource_attr(out, cib, PCMK_XA_ID, lookup_id, attr_set_type, rc 392 tools/crm_resource_runtime.c switch (rc) { rc 424 tools/crm_resource_runtime.c return rc; rc 435 tools/crm_resource_runtime.c rc = cib->cmds->modify(cib, PCMK_XE_RESOURCES, xml_top, cib_sync_call); rc 436 tools/crm_resource_runtime.c rc = pcmk_legacy2rc(rc); rc 437 tools/crm_resource_runtime.c if (rc == pcmk_rc_ok) { rc 494 tools/crm_resource_runtime.c return rc; rc 506 tools/crm_resource_runtime.c int rc = pcmk_rc_ok; rc 525 tools/crm_resource_runtime.c rc = update_attribute(rsc, requested_name, attr_set, attr_set_type, rc 529 tools/crm_resource_runtime.c if (rc == pcmk_rc_ok) { rc 531 tools/crm_resource_runtime.c return rc; rc 538 tools/crm_resource_runtime.c return rc; rc 549 tools/crm_resource_runtime.c int rc = pcmk_rc_ok; rc 567 tools/crm_resource_runtime.c rc = cib->cmds->replace(cib, PCMK_XE_RESOURCES, rsc->xml, cib_options); rc 568 tools/crm_resource_runtime.c rc = pcmk_legacy2rc(rc); rc 569 tools/crm_resource_runtime.c if (rc == pcmk_rc_ok) { rc 572 tools/crm_resource_runtime.c return rc; rc 588 tools/crm_resource_runtime.c rc = find_resource_attr(out, cib, PCMK_XA_ID, lookup_id, attr_set_type, rc 590 tools/crm_resource_runtime.c switch (rc) { rc 605 tools/crm_resource_runtime.c return rc; rc 616 tools/crm_resource_runtime.c rc = cib->cmds->remove(cib, PCMK_XE_RESOURCES, xml_obj, cib_options); rc 617 tools/crm_resource_runtime.c rc = pcmk_legacy2rc(rc); rc 619 tools/crm_resource_runtime.c if (rc == pcmk_rc_ok) { rc 633 tools/crm_resource_runtime.c return rc; rc 738 tools/crm_resource_runtime.c int rc = pcmk_rc_ok; rc 745 tools/crm_resource_runtime.c rc = send_lrm_rsc_op(controld_api, false, host_uname, rsc_id, scheduler); rc 746 tools/crm_resource_runtime.c if (rc != pcmk_rc_ok) { rc 747 tools/crm_resource_runtime.c return rc; rc 756 tools/crm_resource_runtime.c return rc; rc 765 tools/crm_resource_runtime.c int rc = pcmk_rc_ok; rc 837 tools/crm_resource_runtime.c rc = clear_rsc_history(controld_api, node_name, failed_id, scheduler); rc 838 tools/crm_resource_runtime.c if (rc != pcmk_rc_ok) { rc 839 tools/crm_resource_runtime.c return rc; rc 843 tools/crm_resource_runtime.c return rc; rc 851 tools/crm_resource_runtime.c int rc = pcmk_rc_ok; rc 859 tools/crm_resource_runtime.c rc = pcmk__attrd_api_clear_failures(NULL, node->details->uname, rsc_name, rc 863 tools/crm_resource_runtime.c return rc; rc 874 tools/crm_resource_runtime.c int rc = pcmk_rc_ok; rc 885 tools/crm_resource_runtime.c rc = cli_resource_delete(controld_api, host_uname, child, operation, rc 888 tools/crm_resource_runtime.c if (rc != pcmk_rc_ok) { rc 889 tools/crm_resource_runtime.c return rc; rc 920 tools/crm_resource_runtime.c rc = cli_resource_delete(controld_api, node->details->uname, rsc, rc 924 tools/crm_resource_runtime.c if (rc != pcmk_rc_ok) { rc 926 tools/crm_resource_runtime.c return rc; rc 954 tools/crm_resource_runtime.c rc = clear_rsc_fail_attrs(rsc, operation, interval_spec, node); rc 955 tools/crm_resource_runtime.c if (rc != pcmk_rc_ok) { rc 957 tools/crm_resource_runtime.c rsc->id, host_uname, pcmk_rc_str(rc)); rc 958 tools/crm_resource_runtime.c return rc; rc 962 tools/crm_resource_runtime.c rc = clear_rsc_failures(out, controld_api, host_uname, rsc->id, operation, rc 965 tools/crm_resource_runtime.c rc = clear_rsc_history(controld_api, host_uname, rsc->id, scheduler); rc 967 tools/crm_resource_runtime.c if (rc != pcmk_rc_ok) { rc 969 tools/crm_resource_runtime.c rsc->id, host_uname, pcmk_rc_str(rc)); rc 973 tools/crm_resource_runtime.c return rc; rc 983 tools/crm_resource_runtime.c int rc = pcmk_rc_ok; rc 990 tools/crm_resource_runtime.c return rc; rc 1005 tools/crm_resource_runtime.c rc = pcmk__attrd_api_clear_failures(NULL, node_name, NULL, operation, rc 1007 tools/crm_resource_runtime.c if (rc != pcmk_rc_ok) { rc 1009 tools/crm_resource_runtime.c display_name, pcmk_rc_str(rc)); rc 1010 tools/crm_resource_runtime.c return rc; rc 1014 tools/crm_resource_runtime.c rc = clear_rsc_failures(out, controld_api, node_name, NULL, rc 1016 tools/crm_resource_runtime.c if (rc != pcmk_rc_ok) { rc 1018 tools/crm_resource_runtime.c node_name, pcmk_rc_str(rc)); rc 1019 tools/crm_resource_runtime.c return rc; rc 1025 tools/crm_resource_runtime.c rc = clear_rsc_failures(out, controld_api, node->details->uname, NULL, rc 1027 tools/crm_resource_runtime.c if (rc != pcmk_rc_ok) { rc 1029 tools/crm_resource_runtime.c pcmk_rc_str(rc)); rc 1030 tools/crm_resource_runtime.c return rc; rc 1036 tools/crm_resource_runtime.c return rc; rc 1300 tools/crm_resource_runtime.c int rc = pcmk__update_configured_schema(xml, false); rc 1302 tools/crm_resource_runtime.c if (rc == pcmk_rc_ok) { rc 1306 tools/crm_resource_runtime.c return rc; rc 1325 tools/crm_resource_runtime.c int rc = pcmk_rc_ok; rc 1327 tools/crm_resource_runtime.c rc = cib->cmds->query(cib, NULL, &cib_xml_copy, cib_scope_local | cib_sync_call); rc 1328 tools/crm_resource_runtime.c rc = pcmk_legacy2rc(rc); rc 1330 tools/crm_resource_runtime.c if (rc != pcmk_rc_ok) { rc 1331 tools/crm_resource_runtime.c out->err(out, "Could not obtain the current CIB: %s (%d)", pcmk_rc_str(rc), rc); rc 1332 tools/crm_resource_runtime.c return rc; rc 1334 tools/crm_resource_runtime.c rc = update_scheduler_input(scheduler, &cib_xml_copy); rc 1335 tools/crm_resource_runtime.c if (rc != pcmk_rc_ok) { rc 1338 tools/crm_resource_runtime.c return rc; rc 1341 tools/crm_resource_runtime.c return rc; rc 1351 tools/crm_resource_runtime.c int rc = pcmk_rc_ok; rc 1358 tools/crm_resource_runtime.c rc = update_scheduler_input_to_cib(out, scheduler, cib); rc 1359 tools/crm_resource_runtime.c if (rc != pcmk_rc_ok) { rc 1360 tools/crm_resource_runtime.c return rc; rc 1372 tools/crm_resource_runtime.c rc = ENXIO; rc 1376 tools/crm_resource_runtime.c rc = pcmk__xml_write_file(scheduler->input, shadow_file, false, NULL); rc 1377 tools/crm_resource_runtime.c if (rc != pcmk_rc_ok) { rc 1378 tools/crm_resource_runtime.c out->err(out, "Could not populate shadow cib: %s", pcmk_rc_str(rc)); rc 1382 tools/crm_resource_runtime.c rc = shadow_cib->cmds->signon(shadow_cib, crm_system_name, cib_command); rc 1383 tools/crm_resource_runtime.c rc = pcmk_legacy2rc(rc); rc 1385 tools/crm_resource_runtime.c if (rc != pcmk_rc_ok) { rc 1387 tools/crm_resource_runtime.c pcmk_rc_str(rc)); rc 1400 tools/crm_resource_runtime.c rc = update_dataset(shadow_cib, scheduler, false); rc 1416 tools/crm_resource_runtime.c return rc; rc 1543 tools/crm_resource_runtime.c int rc = pcmk_rc_ok; rc 1642 tools/crm_resource_runtime.c rc = errno; rc 1643 tools/crm_resource_runtime.c out->err(out, "Could not allocate scheduler data: %s", pcmk_rc_str(rc)); rc 1648 tools/crm_resource_runtime.c rc = update_dataset(cib, scheduler, false); rc 1650 tools/crm_resource_runtime.c if(rc != pcmk_rc_ok) { rc 1651 tools/crm_resource_runtime.c out->err(out, "Could not get new resource list: %s (%d)", pcmk_rc_str(rc), rc); rc 1663 tools/crm_resource_runtime.c rc = cli_resource_ban(out, lookup_id, host, move_lifetime, cib, rc 1674 tools/crm_resource_runtime.c rc = find_resource_attr(out, cib, PCMK_XA_VALUE, lookup_id, NULL, NULL, NULL, rc 1677 tools/crm_resource_runtime.c if (rc == pcmk_rc_ok) { rc 1683 tools/crm_resource_runtime.c rc = cli_resource_update_attribute(rsc, rsc_id, NULL, rc 1689 tools/crm_resource_runtime.c if(rc != pcmk_rc_ok) { rc 1691 tools/crm_resource_runtime.c rsc_id, pcmk_rc_str(rc), rc); rc 1703 tools/crm_resource_runtime.c rc = update_dataset(cib, scheduler, true); rc 1704 tools/crm_resource_runtime.c if(rc != pcmk_rc_ok) { rc 1731 tools/crm_resource_runtime.c rc = update_dataset(cib, scheduler, FALSE); rc 1732 tools/crm_resource_runtime.c if(rc != pcmk_rc_ok) { rc 1754 tools/crm_resource_runtime.c rc = ETIME; rc 1761 tools/crm_resource_runtime.c rc = cli_resource_clear(lookup_id, host, NULL, cib, cib_options, true, force); rc 1764 tools/crm_resource_runtime.c rc = cli_resource_update_attribute(rsc, rsc_id, NULL, rc 1771 tools/crm_resource_runtime.c rc = cli_resource_delete_attribute(rsc, rsc_id, NULL, rc 1777 tools/crm_resource_runtime.c if(rc != pcmk_rc_ok) { rc 1780 tools/crm_resource_runtime.c rsc_id, pcmk_rc_str(rc), rc); rc 1810 tools/crm_resource_runtime.c rc = update_dataset(cib, scheduler, false); rc 1811 tools/crm_resource_runtime.c if(rc != pcmk_rc_ok) { rc 1834 tools/crm_resource_runtime.c rc = ETIME; rc 1840 tools/crm_resource_runtime.c rc = pcmk_rc_ok; rc 1875 tools/crm_resource_runtime.c return rc; rc 1961 tools/crm_resource_runtime.c int rc = pcmk_rc_ok; rc 1991 tools/crm_resource_runtime.c rc = ETIME; rc 1998 tools/crm_resource_runtime.c if (rc == pcmk_rc_ok) { /* this avoids sleep on first loop iteration */ rc 2004 tools/crm_resource_runtime.c rc = update_scheduler_input_to_cib(out, scheduler, cib); rc 2005 tools/crm_resource_runtime.c if (rc != pcmk_rc_ok) { rc 2038 tools/crm_resource_runtime.c return rc; rc 2170 tools/crm_resource_runtime.c if (op->rc != PCMK_OCF_UNKNOWN) { rc 2171 tools/crm_resource_runtime.c exit_code = op->rc; rc 2179 tools/crm_resource_runtime.c enum ocf_exitcode ocf_code = services_result2ocf(class, action, op->rc); rc 2289 tools/crm_resource_runtime.c int rc = pcmk_rc_ok; rc 2367 tools/crm_resource_runtime.c rc = cli_resource_prefer(out, rsc_id, dest->details->uname, move_lifetime, rc 2398 tools/crm_resource_runtime.c return rc; rc 104 tools/crm_rule.c int rc = pcmk_rc_ok; rc 124 tools/crm_rule.c rc = pcmk__output_new(&out, args->output_ty, args->output_dest, argv); rc 125 tools/crm_rule.c if (rc != pcmk_rc_ok) { rc 128 tools/crm_rule.c args->output_ty, pcmk_rc_str(rc)); rc 203 tools/crm_rule.c rc = pcmk__check_rules(out, input, rule_date, rc 205 tools/crm_rule.c exit_code = pcmk_rc2exitc(rc); rc 160 tools/crm_shadow.c int rc = pcmk_rc_no_output; rc 163 tools/crm_shadow.c rc = out->info(out, "Instance: %s", pcmk__s(instance, "<unknown>")); rc 166 tools/crm_shadow.c rc = out->info(out, "File name: %s", pcmk__s(filename, "<unknown>")); rc 169 tools/crm_shadow.c rc = out->info(out, "Content:"); rc 190 tools/crm_shadow.c rc = out->info(out, "Diff:"); rc 199 tools/crm_shadow.c return rc; rc 233 tools/crm_shadow.c int rc = pcmk_rc_no_output; rc 242 tools/crm_shadow.c rc = out->info(out, "%s", instance); rc 245 tools/crm_shadow.c rc = out->info(out, "%s", filename); rc 256 tools/crm_shadow.c rc = out->info(out, "%s", str); rc 260 tools/crm_shadow.c rc = out->message(out, "xml-patchset", diff); rc 264 tools/crm_shadow.c return rc; rc 386 tools/crm_shadow.c int rc = pcmk_rc_ok; rc 390 tools/crm_shadow.c rc = ENXIO; rc 391 tools/crm_shadow.c exit_code = pcmk_rc2exitc(rc); rc 395 tools/crm_shadow.c return rc; rc 447 tools/crm_shadow.c int rc = pcmk_rc_ok; rc 451 tools/crm_shadow.c rc = ENOMEM; rc 452 tools/crm_shadow.c exit_code = pcmk_rc2exitc(rc); rc 455 tools/crm_shadow.c return rc; rc 458 tools/crm_shadow.c rc = cib__signon_attempts(*real_cib, crm_system_name, cib_command, 5); rc 459 tools/crm_shadow.c rc = pcmk_legacy2rc(rc); rc 460 tools/crm_shadow.c if (rc != pcmk_rc_ok) { rc 461 tools/crm_shadow.c exit_code = pcmk_rc2exitc(rc); rc 463 tools/crm_shadow.c "Could not connect to CIB: %s", pcmk_rc_str(rc)); rc 465 tools/crm_shadow.c return rc; rc 481 tools/crm_shadow.c int rc = connect_real_cib(&real_cib, error); rc 483 tools/crm_shadow.c if (rc != pcmk_rc_ok) { rc 487 tools/crm_shadow.c rc = real_cib->cmds->query(real_cib, NULL, output, options.cmd_options); rc 488 tools/crm_shadow.c rc = pcmk_legacy2rc(rc); rc 489 tools/crm_shadow.c if (rc != pcmk_rc_ok) { rc 490 tools/crm_shadow.c exit_code = pcmk_rc2exitc(rc); rc 492 tools/crm_shadow.c "Could not query the non-shadow CIB: %s", pcmk_rc_str(rc)); rc 497 tools/crm_shadow.c return rc; rc 513 tools/crm_shadow.c int rc = pcmk_rc_ok; rc 517 tools/crm_shadow.c rc = pcmk_rc_no_input; rc 518 tools/crm_shadow.c exit_code = pcmk_rc2exitc(rc); rc 522 tools/crm_shadow.c return rc; rc 538 tools/crm_shadow.c int rc = pcmk__xml_write_file(xml, filename, false, NULL); rc 540 tools/crm_shadow.c if (rc != pcmk_rc_ok) { rc 541 tools/crm_shadow.c exit_code = pcmk_rc2exitc(rc); rc 545 tools/crm_shadow.c pcmk_rc_str(rc)); rc 547 tools/crm_shadow.c return rc; rc 671 tools/crm_shadow.c int rc = pcmk_rc_ok; rc 702 tools/crm_shadow.c rc = real_cib->cmds->replace(real_cib, section, section_xml, rc 704 tools/crm_shadow.c rc = pcmk_legacy2rc(rc); rc 706 tools/crm_shadow.c if (rc != pcmk_rc_ok) { rc 707 tools/crm_shadow.c exit_code = pcmk_rc2exitc(rc); rc 710 tools/crm_shadow.c options.instance, pcmk_rc_str(rc)); rc 1194 tools/crm_shadow.c int rc = pcmk_rc_ok; rc 1213 tools/crm_shadow.c rc = pcmk__output_new(&out, args->output_ty, args->output_dest, argv); rc 1214 tools/crm_shadow.c if (rc != pcmk_rc_ok) { rc 1218 tools/crm_shadow.c pcmk_rc_str(rc)); rc 349 tools/crm_simulate.c int rc = pcmk_rc_ok; rc 355 tools/crm_simulate.c rc = cib__signon_query(out, NULL, &cib_object); rc 356 tools/crm_simulate.c if (rc != pcmk_rc_ok) { rc 358 tools/crm_simulate.c return rc; rc 369 tools/crm_simulate.c rc = pcmk_rc_bad_input; rc 370 tools/crm_simulate.c g_set_error(error, PCMK__EXITC_ERROR, pcmk_rc2exitc(rc), rc 371 tools/crm_simulate.c "Could not read input XML: %s", pcmk_rc_str(rc)); rc 372 tools/crm_simulate.c return rc; rc 379 tools/crm_simulate.c rc = pcmk__update_configured_schema(&cib_object, false); rc 380 tools/crm_simulate.c if (rc != pcmk_rc_ok) { rc 382 tools/crm_simulate.c return rc; rc 399 tools/crm_simulate.c rc = pcmk__xml_write_file(cib_object, output, false, NULL); rc 400 tools/crm_simulate.c if (rc != pcmk_rc_ok) { rc 402 tools/crm_simulate.c "Could not create '%s': %s", output, pcmk_rc_str(rc)); rc 409 tools/crm_simulate.c return rc; rc 458 tools/crm_simulate.c int rc = pcmk_rc_ok; rc 471 tools/crm_simulate.c rc = ENOMEM; rc 486 tools/crm_simulate.c rc = pcmk__output_new(&out, args->output_ty, args->output_dest, argv); rc 487 tools/crm_simulate.c if (rc != pcmk_rc_ok) { rc 489 tools/crm_simulate.c args->output_ty, pcmk_rc_str(rc)); rc 521 tools/crm_simulate.c rc = ENOMEM; rc 522 tools/crm_simulate.c g_set_error(&error, PCMK__RC_ERROR, rc, rc 539 tools/crm_simulate.c rc = pcmk_rc_ok; rc 543 tools/crm_simulate.c rc = setup_input(out, options.xml_file, rc 546 tools/crm_simulate.c if (rc != pcmk_rc_ok) { rc 550 tools/crm_simulate.c rc = pcmk__simulate(scheduler, out, options.injections, options.flags, rc 581 tools/crm_simulate.c if (rc != pcmk_rc_ok) { rc 582 tools/crm_simulate.c exit_code = pcmk_rc2exitc(rc); rc 351 tools/crm_ticket.c int rc = pcmk_rc_ok; rc 373 tools/crm_ticket.c rc = pcmk__output_new(&out, args->output_ty, args->output_dest, argv); rc 374 tools/crm_ticket.c if (rc != pcmk_rc_ok) { rc 375 tools/crm_ticket.c exit_code = pcmk_rc2exitc(rc); rc 378 tools/crm_ticket.c pcmk_rc_str(rc)); rc 392 tools/crm_ticket.c rc = errno; rc 393 tools/crm_ticket.c exit_code = pcmk_rc2exitc(rc); rc 395 tools/crm_ticket.c "Could not allocate scheduler data: %s", pcmk_rc_str(rc)); rc 408 tools/crm_ticket.c rc = cib__signon_attempts(cib_conn, crm_system_name, cib_command, 5); rc 409 tools/crm_ticket.c rc = pcmk_legacy2rc(rc); rc 411 tools/crm_ticket.c if (rc != pcmk_rc_ok) { rc 412 tools/crm_ticket.c exit_code = pcmk_rc2exitc(rc); rc 414 tools/crm_ticket.c pcmk_rc_str(rc)); rc 422 tools/crm_ticket.c rc = cib_conn->cmds->query(cib_conn, NULL, &cib_xml_copy, cib_scope_local | cib_sync_call); rc 423 tools/crm_ticket.c rc = pcmk_legacy2rc(rc); rc 425 tools/crm_ticket.c if (rc != pcmk_rc_ok) { rc 426 tools/crm_ticket.c exit_code = pcmk_rc2exitc(rc); rc 428 tools/crm_ticket.c pcmk_rc_str(rc)); rc 433 tools/crm_ticket.c rc = pcmk__update_configured_schema(&cib_xml_copy, false); rc 434 tools/crm_ticket.c if (rc != pcmk_rc_ok) { rc 435 tools/crm_ticket.c exit_code = pcmk_rc2exitc(rc); rc 461 tools/crm_ticket.c rc = pcmk__ticket_info(out, scheduler, options.ticket_id, details, raw); rc 462 tools/crm_ticket.c exit_code = pcmk_rc2exitc(rc); rc 464 tools/crm_ticket.c if (rc == ENXIO) { rc 467 tools/crm_ticket.c } else if (rc != pcmk_rc_ok) { rc 469 tools/crm_ticket.c "Could not get ticket info: %s", pcmk_rc_str(rc)); rc 473 tools/crm_ticket.c rc = pcmk__ticket_state(out, cib_conn, options.ticket_id); rc 475 tools/crm_ticket.c if (rc != pcmk_rc_ok && rc != pcmk_rc_duplicate_id) { rc 476 tools/crm_ticket.c exit_code = pcmk_rc2exitc(rc); rc 478 tools/crm_ticket.c "Could not query ticket XML: %s", pcmk_rc_str(rc)); rc 484 tools/crm_ticket.c rc = pcmk__ticket_constraints(out, cib_conn, options.ticket_id); rc 485 tools/crm_ticket.c exit_code = pcmk_rc2exitc(rc); rc 487 tools/crm_ticket.c if (rc != pcmk_rc_ok) { rc 489 tools/crm_ticket.c "Could not show ticket constraints: %s", pcmk_rc_str(rc)); rc 500 tools/crm_ticket.c rc = pcmk__ticket_get_attr(out, scheduler, options.ticket_id, rc 502 tools/crm_ticket.c exit_code = pcmk_rc2exitc(rc); rc 512 tools/crm_ticket.c rc = pcmk__ticket_delete(out, cib_conn, scheduler, options.ticket_id, rc 514 tools/crm_ticket.c exit_code = pcmk_rc2exitc(rc); rc 516 tools/crm_ticket.c switch (rc) { rc 532 tools/crm_ticket.c "Could not clean up ticket: %s", pcmk_rc_str(rc)); rc 561 tools/crm_ticket.c rc = pcmk__ticket_remove_attr(out, cib_conn, scheduler, options.ticket_id, rc 564 tools/crm_ticket.c if (rc == EACCES) { rc 566 tools/crm_ticket.c exit_code = pcmk_rc2exitc(rc); rc 571 tools/crm_ticket.c rc = pcmk__ticket_set_attr(out, cib_conn, scheduler, options.ticket_id, rc 574 tools/crm_ticket.c if (rc == EACCES) { rc 584 tools/crm_ticket.c exit_code = pcmk_rc2exitc(rc); rc 590 tools/crm_ticket.c exit_code = pcmk_rc2exitc(rc); rc 592 tools/crm_ticket.c if (rc != pcmk_rc_ok && error == NULL) { rc 594 tools/crm_ticket.c "Could not modify ticket: %s", pcmk_rc_str(rc)); rc 169 tools/crm_verify.c int rc = pcmk_rc_ok; rc 199 tools/crm_verify.c rc = pcmk__output_new(&out, args->output_ty, args->output_dest, argv); rc 200 tools/crm_verify.c if (rc != pcmk_rc_ok) { rc 203 tools/crm_verify.c args->output_ty, pcmk_rc_str(rc)); rc 231 tools/crm_verify.c rc = ENODATA; rc 236 tools/crm_verify.c rc = pcmk__parse_cib(out, cib_source, &cib_object); rc 238 tools/crm_verify.c if (rc != pcmk_rc_ok) { rc 239 tools/crm_verify.c g_set_error(&error, PCMK__EXITC_ERROR, rc, "Couldn't parse input"); rc 250 tools/crm_verify.c rc = errno; rc 251 tools/crm_verify.c g_set_error(&error, PCMK__RC_ERROR, rc, rc 252 tools/crm_verify.c "Could not allocate scheduler data: %s", pcmk_rc_str(rc)); rc 258 tools/crm_verify.c rc = pcmk__verify(scheduler, out, &cib_object); rc 260 tools/crm_verify.c if (rc == pcmk_rc_schema_validation) { rc 294 tools/crm_verify.c exit_code = pcmk_rc2exitc(rc); rc 175 tools/crmadmin.c int rc; rc 195 tools/crmadmin.c rc = pcmk__output_new(&out, args->output_ty, args->output_dest, argv); rc 196 tools/crmadmin.c if (rc != pcmk_rc_ok) { rc 199 tools/crmadmin.c args->output_ty, pcmk_rc_str(rc)); rc 233 tools/crmadmin.c rc = pcmk__controller_status(out, options.optarg, rc 237 tools/crmadmin.c rc = pcmk__pacemakerd_status(out, options.ipc_name, rc 242 tools/crmadmin.c rc = pcmk__list_nodes(out, options.optarg, options.bash_export); rc 245 tools/crmadmin.c rc = pcmk__designated_controller(out, rc 249 tools/crmadmin.c rc = pcmk_rc_error; rc 253 tools/crmadmin.c if (rc != pcmk_rc_ok) { rc 254 tools/crmadmin.c out->err(out, "error: Command failed: %s", pcmk_rc_str(rc)); rc 255 tools/crmadmin.c exit_code = pcmk_rc2exitc(rc); rc 313 tools/iso8601.c int rc = pcmk_rc_ok; rc 334 tools/iso8601.c rc = pcmk__output_new(&out, args->output_ty, args->output_dest, argv); rc 335 tools/iso8601.c if (rc != pcmk_rc_ok) { rc 336 tools/iso8601.c exit_code = pcmk_rc2exitc(rc); rc 339 tools/iso8601.c pcmk_rc_str(rc)); rc 283 tools/stonith_admin.c int rc = 0; rc 288 tools/stonith_admin.c rc = pcmk__scan_nvpair(optarg, &name, &value); rc 290 tools/stonith_admin.c if (rc != 2) { rc 291 tools/stonith_admin.c rc = pcmk_legacy2rc(rc); rc 292 tools/stonith_admin.c g_set_error(error, PCMK__RC_ERROR, rc, "Invalid option: -o %s: %s", optarg, pcmk_rc_str(rc)); rc 347 tools/stonith_admin.c int rc = pcmk__request_fencing(st, target, command, name, rc 352 tools/stonith_admin.c if (rc != pcmk_rc_ok) { rc 353 tools/stonith_admin.c const char *rc_str = pcmk_rc_str(rc); rc 366 tools/stonith_admin.c g_set_error(error, PCMK__RC_ERROR, rc, rc 374 tools/stonith_admin.c return rc; rc 380 tools/stonith_admin.c int rc = 0; rc 410 tools/stonith_admin.c rc = pcmk__output_new(&out, args->output_ty, args->output_dest, argv); rc 411 tools/stonith_admin.c if (rc != pcmk_rc_ok) { rc 414 tools/stonith_admin.c args->output_ty, pcmk_rc_str(rc)); rc 544 tools/stonith_admin.c rc = -ENOMEM; rc 546 tools/stonith_admin.c rc = st->cmds->connect(st, name, NULL); rc 548 tools/stonith_admin.c if (rc < 0) { rc 549 tools/stonith_admin.c out->err(out, "Could not connect to fencer: %s", pcmk_strerror(rc)); rc 556 tools/stonith_admin.c rc = pcmk__fence_installed(out, st, options.timeout*1000); rc 557 tools/stonith_admin.c if (rc != pcmk_rc_ok) { rc 558 tools/stonith_admin.c out->err(out, "Failed to list installed devices: %s", pcmk_rc_str(rc)); rc 564 tools/stonith_admin.c rc = pcmk__fence_registered(out, st, target, options.timeout*1000); rc 565 tools/stonith_admin.c if (rc != pcmk_rc_ok) { rc 566 tools/stonith_admin.c out->err(out, "Failed to list registered devices: %s", pcmk_rc_str(rc)); rc 572 tools/stonith_admin.c rc = st->cmds->monitor(st, st_opts, device, options.timeout); rc 573 tools/stonith_admin.c if (rc != pcmk_rc_ok) { rc 574 tools/stonith_admin.c rc = st->cmds->list(st, st_opts, device, NULL, options.timeout); rc 576 tools/stonith_admin.c rc = pcmk_legacy2rc(rc); rc 580 tools/stonith_admin.c rc = pcmk__fence_list_targets(out, st, device, options.timeout*1000); rc 581 tools/stonith_admin.c if (rc != pcmk_rc_ok) { rc 582 tools/stonith_admin.c out->err(out, "Couldn't list targets: %s", pcmk_rc_str(rc)); rc 588 tools/stonith_admin.c rc = st->cmds->register_device(st, st_opts, device, NULL, options.agent, rc 590 tools/stonith_admin.c rc = pcmk_legacy2rc(rc); rc 591 tools/stonith_admin.c if (rc != pcmk_rc_ok) { rc 593 tools/stonith_admin.c device, options.agent, pcmk_rc_str(rc)); rc 598 tools/stonith_admin.c rc = st->cmds->remove_device(st, st_opts, device); rc 599 tools/stonith_admin.c rc = pcmk_legacy2rc(rc); rc 600 tools/stonith_admin.c if (rc != pcmk_rc_ok) { rc 602 tools/stonith_admin.c device, pcmk_rc_str(rc)); rc 607 tools/stonith_admin.c rc = pcmk__fence_unregister_level(st, target, options.fence_level); rc 608 tools/stonith_admin.c if (rc != pcmk_rc_ok) { rc 610 tools/stonith_admin.c options.fence_level, target, pcmk_rc_str(rc)); rc 615 tools/stonith_admin.c rc = pcmk__fence_register_level(st, target, options.fence_level, options.devices); rc 616 tools/stonith_admin.c if (rc != pcmk_rc_ok) { rc 618 tools/stonith_admin.c options.fence_level, target, pcmk_rc_str(rc)); rc 623 tools/stonith_admin.c rc = pcmk__fence_metadata(out, st, options.agent, options.timeout*1000); rc 624 tools/stonith_admin.c if (rc != pcmk_rc_ok) { rc 626 tools/stonith_admin.c pcmk_rc_str(rc)); rc 632 tools/stonith_admin.c rc = st->cmds->confirm(st, st_opts, target); rc 633 tools/stonith_admin.c rc = pcmk_legacy2rc(rc); rc 637 tools/stonith_admin.c rc = request_fencing(st, target, PCMK_ACTION_REBOOT, &error); rc 641 tools/stonith_admin.c rc = request_fencing(st, target, PCMK_ACTION_OFF, &error); rc 645 tools/stonith_admin.c rc = request_fencing(st, target, PCMK_ACTION_ON, &error); rc 649 tools/stonith_admin.c rc = pcmk__fence_last(out, target, options.as_nodeid); rc 653 tools/stonith_admin.c rc = pcmk__fence_history(out, st, target, options.timeout*1000, args->verbosity, rc 659 tools/stonith_admin.c rc = pcmk__fence_validate(out, st, options.agent, device, options.params, rc 664 tools/stonith_admin.c crm_info("Command returned: %s (%d)", pcmk_rc_str(rc), rc); rc 665 tools/stonith_admin.c exit_code = pcmk_rc2exitc(rc);