name 107 daemons/attrd/attrd_commands.c xmlNode *parent, const char *name, const char *set, const char *uuid, unsigned int timeout_ms, const char *user, name 112 daemons/attrd/attrd_commands.c crm_xml_add(xml, PCMK__XA_ATTR_NAME, name); name 996 daemons/attrd/attrd_commands.c char *name = user_data; name 997 daemons/attrd/attrd_commands.c attribute_t *a = g_hash_table_lookup(attributes, name); name 1000 daemons/attrd/attrd_commands.c crm_info("Attribute %s no longer exists", name); name 1062 daemons/attrd/attrd_commands.c a->timeout_ms, name); name 250 daemons/attrd/pacemaker-attrd.c if (client->name == NULL) { name 252 daemons/attrd/pacemaker-attrd.c client->name = crm_strdup_printf("%s.%d", value?value:"unknown", client->pid); name 257 daemons/attrd/pacemaker-attrd.c attrd_client_peer_remove(client->name, xml); name 285 daemons/attrd/pacemaker-attrd.c client->name, op); name 170 daemons/based/based_callbacks.c type, cib_client->name, cib_client->id, on_off ? "on" : "off"); name 235 daemons/based/based_callbacks.c if (cib_client->name == NULL) { name 239 daemons/based/based_callbacks.c cib_client->name = crm_itoa(cib_client->pid); name 241 daemons/based/based_callbacks.c cib_client->name = strdup(value); name 254 daemons/based/based_callbacks.c cib_client->name, cib_client->pid, cib_client->queue_max); name 259 daemons/based/based_callbacks.c crm_xml_add(op_request, F_CIB_CLIENTNAME, cib_client->name); name 388 daemons/based/based_callbacks.c rid, client_obj->name, name 392 daemons/based/based_callbacks.c call_id, client_obj->name, from_peer ? "(originator of delegated request)" : ""); name 397 daemons/based/based_callbacks.c call_id, client_obj->name, from_peer ? "(originator of delegated request)" : ""); name 410 daemons/based/based_callbacks.c client_obj->name, pcmk_rc_str(rc), rc); name 492 daemons/based/based_callbacks.c crm_trace("Processing locally scoped %s op from %s", op, cib_client->name); name 496 daemons/based/based_callbacks.c crm_trace("Processing master %s op locally from %s", op, cib_client->name); name 500 daemons/based/based_callbacks.c crm_trace("Processing locally addressed %s op from %s", op, cib_client->name); name 510 daemons/based/based_callbacks.c op, cib_client->name, host ? host : "the master instance"); name 537 daemons/based/based_callbacks.c op, cib_client->name, host ? host : "the master instance"); name 549 daemons/based/based_callbacks.c crm_trace("Processing %s op from %s (stand-alone)", op, cib_client->name); name 552 daemons/based/based_callbacks.c crm_trace("Processing unaddressed %s op from %s", op, cib_client->name); name 555 daemons/based/based_callbacks.c crm_trace("Processing locally addressed %s op from %s", op, cib_client->name); name 558 daemons/based/based_callbacks.c crm_trace("%s op from %s needs to be forwarded to %s", op, cib_client->name, host); name 1426 daemons/based/based_callbacks.c crm_err("Disconnecting %s... Not implemented", crm_str(a_client->name)); name 189 daemons/based/based_io.c const char *name = NULL; name 268 daemons/based/based_io.c name = XML_ATTR_GENERATION_ADMIN; name 269 daemons/based/based_io.c value = crm_element_value(root, name); name 271 daemons/based/based_io.c crm_warn("No value for %s was specified in the configuration.", name); name 277 daemons/based/based_io.c crm_xml_add_int(root, name, 0); name 280 daemons/based/based_io.c name = XML_ATTR_GENERATION; name 281 daemons/based/based_io.c value = crm_element_value(root, name); name 283 daemons/based/based_io.c crm_xml_add_int(root, name, 0); name 286 daemons/based/based_io.c name = XML_ATTR_NUMUPDATES; name 287 daemons/based/based_io.c value = crm_element_value(root, name); name 289 daemons/based/based_io.c crm_xml_add_int(root, name, 0); name 90 daemons/based/based_notify.c crm_warn("Notification of client %s/%s failed", client->name, client->id); name 97 daemons/based/based_notify.c crm_debug("Sent %s notification to client %s/%s", type, client->name, client->id); name 363 daemons/based/based_remote.c crm_trace("Cleaning up after client disconnect: %s/%s", crm_str(client->name), client->id); name 418 daemons/based/based_remote.c if (client->name == NULL) { name 421 daemons/based/based_remote.c client->name = strdup(client->id); name 423 daemons/based/based_remote.c client->name = strdup(value); name 445 daemons/based/based_remote.c crm_xml_add(command, F_CIB_CLIENTNAME, client->name); name 526 daemons/based/based_remote.c client->name = crm_element_value_copy(command, "name"); name 32 daemons/controld/controld_attrd.c log_attrd_error(const char *host, const char *name, const char *value, name 42 daemons/controld/controld_attrd.c CRM_XS " rc=%d", (name? name : "all resources"), node_type, name 59 daemons/controld/controld_attrd.c CRM_XS " rc=%d", name, value, node_type, host, when, name 79 daemons/controld/controld_attrd.c update_attrd_helper(const char *host, const char *name, const char *value, name 112 daemons/controld/controld_attrd.c rc = pcmk__node_attr_request(attrd_ipc, command, host, name, name 119 daemons/controld/controld_attrd.c rc = pcmk__node_attr_request_clear(attrd_ipc, host, name, name 148 daemons/controld/controld_attrd.c log_attrd_error(host, name, value, is_remote_node, command, rc); name 153 daemons/controld/controld_attrd.c update_attrd(const char *host, const char *name, const char *value, name 156 daemons/controld/controld_attrd.c update_attrd_helper(host, name, value, NULL, user_name, is_remote_node, name 675 daemons/controld/controld_control.c crmd_pref(GHashTable * options, const char *name) name 677 daemons/controld/controld_control.c return pcmk__cluster_option(options, crmd_opts, DIMOF(crmd_opts), name); name 1094 daemons/controld/controld_messages.c const char *name = NULL; name 1097 daemons/controld/controld_messages.c name = crm_element_value(stored_msg, XML_ATTR_UNAME); name 1102 daemons/controld/controld_messages.c crm_err("Could not instruct peers to remove references to node %s/%u", name, id); name 1104 daemons/controld/controld_messages.c crm_notice("Instructing peers to remove references to node %s/%u", name, id); name 1109 daemons/controld/controld_messages.c reap_crm_member(id, name); name 1115 daemons/controld/controld_messages.c st_fail_count_reset(name); name 385 daemons/controld/controld_te_actions.c char *name; name 394 daemons/controld/controld_te_actions.c free(peer->name); name 426 daemons/controld/controld_te_actions.c r->name = strdup(target); name 427 daemons/controld/controld_te_actions.c g_hash_table_insert(te_targets, r->name, r); name 491 daemons/controld/controld_te_actions.c r->name = strdup(target); name 492 daemons/controld/controld_te_actions.c g_hash_table_insert(te_targets, r->name, r); name 91 daemons/controld/controld_te_callbacks.c const char *name = crm_element_value(attr, XML_NVPAIR_ATTR_NAME); name 94 daemons/controld/controld_te_callbacks.c if (pcmk__str_eq(CRM_OP_PROBED, name, pcmk__str_casei)) { name 245 daemons/controld/controld_te_callbacks.c } else if (strcmp((const char*)xml->name, XML_CIB_TAG_LRM) == 0) { name 250 daemons/controld/controld_te_callbacks.c CRM_ASSERT(strcmp((const char*)xml->name, XML_LRM_TAG_RESOURCES) == 0); name 443 daemons/controld/controld_te_callbacks.c const char *name = NULL; name 483 daemons/controld/controld_te_callbacks.c name = (const char *)match->name; name 488 daemons/controld/controld_te_callbacks.c (name? " matched by " : ""), (name? name : "")); name 496 daemons/controld/controld_te_callbacks.c || pcmk__str_eq(name, XML_CIB_TAG_TICKETS, pcmk__str_casei)) { name 501 daemons/controld/controld_te_callbacks.c || pcmk__str_eq(name, XML_TAG_TRANSIENT_NODEATTRS, pcmk__str_casei)) { name 508 daemons/controld/controld_te_callbacks.c } else if (name == NULL) { name 512 daemons/controld/controld_te_callbacks.c } else if (strcmp(name, XML_TAG_CIB) == 0) { name 515 daemons/controld/controld_te_callbacks.c } else if (strcmp(name, XML_CIB_TAG_STATUS) == 0) { name 518 daemons/controld/controld_te_callbacks.c } else if (strcmp(name, XML_CIB_TAG_STATE) == 0) { name 521 daemons/controld/controld_te_callbacks.c } else if (strcmp(name, XML_CIB_TAG_LRM) == 0) { name 524 daemons/controld/controld_te_callbacks.c } else if (strcmp(name, XML_LRM_TAG_RESOURCES) == 0) { name 530 daemons/controld/controld_te_callbacks.c } else if (strcmp(name, XML_LRM_TAG_RESOURCE) == 0) { name 536 daemons/controld/controld_te_callbacks.c } else if (strcmp(name, XML_LRM_TAG_RSC_OP) == 0) { name 544 daemons/controld/controld_te_callbacks.c op, xpath, name); name 86 daemons/controld/controld_utils.h void update_attrd(const char *host, const char *name, const char *value, const char *user_name, gboolean is_remote_node); name 509 daemons/execd/execd_commands.c if (client->name == NULL) { name 519 daemons/execd/execd_commands.c client->name); name 541 daemons/execd/execd_commands.c client->name, client->id, msg, rc); name 1946 daemons/execd/execd_commands.c crm_err("Unknown IPC request '%s' from %s", op, client->name); name 1967 daemons/execd/execd_commands.c client->name, pcmk_rc_str(send_rc), send_rc); name 128 daemons/execd/pacemaker-execd.c if (!client->name) { name 132 daemons/execd/pacemaker-execd.c client->name = crm_itoa(pcmk__client_pid(c)); name 134 daemons/execd/pacemaker-execd.c client->name = strdup(value); name 144 daemons/execd/pacemaker-execd.c crm_xml_add(request, F_LRMD_CLIENTNAME, client->name); name 108 daemons/execd/remoted_pidone.c char *name = NULL; name 114 daemons/execd/remoted_pidone.c if (find_env_var_name(line, &name, &end) && (*++end == '=')) { name 175 daemons/execd/remoted_pidone.c setenv(name, value, 0); name 257 daemons/execd/remoted_pidone.c const char *name = "pcmk-init"; name 272 daemons/execd/remoted_pidone.c i = strlen(name); name 275 daemons/execd/remoted_pidone.c snprintf(argv[0], maxlen, "%s", name); name 89 daemons/execd/remoted_proxy.c client->name = crm_strdup_printf("proxy-%s-%d-%.8s", ipc_channel, client->pid, client->id); name 113 daemons/execd/remoted_tls.c if (!client->name) { name 117 daemons/execd/remoted_tls.c client->name = strdup(value); name 127 daemons/execd/remoted_tls.c crm_xml_add(request, F_LRMD_CLIENTNAME, client->name); name 156 daemons/execd/remoted_tls.c (client->name? client->name : ""), client->id); name 596 daemons/fenced/fenced_commands.c char *name = NULL; name 611 daemons/fenced/fenced_commands.c free(name); name 612 daemons/fenced/fenced_commands.c name = calloc(1, 1 + lpc - last); name 613 daemons/fenced/fenced_commands.c memcpy(name, hostmap + last, lpc - last); name 624 daemons/fenced/fenced_commands.c if (name) { name 630 daemons/fenced/fenced_commands.c crm_debug("Adding alias '%s'='%s'", name, value); name 631 daemons/fenced/fenced_commands.c g_hash_table_replace(aliases, name, value); name 636 daemons/fenced/fenced_commands.c name = NULL; name 656 daemons/fenced/fenced_commands.c free(name); name 846 daemons/fenced/fenced_commands.c xml2device_params(const char *name, xmlNode *dev) name 858 daemons/fenced/fenced_commands.c name, STONITH_ATTR_ACTION_OP); name 1303 daemons/fenced/fenced_commands.c const char *name = crm_element_value(level, XML_ATTR_STONITH_TARGET_ATTRIBUTE); name 1306 daemons/fenced/fenced_commands.c if(name && value) { name 1307 daemons/fenced/fenced_commands.c return crm_strdup_printf("%s=%s", name, value); name 2364 daemons/fenced/fenced_commands.c const char *name = NULL; name 2379 daemons/fenced/fenced_commands.c name = names[lpc]; name 2380 daemons/fenced/fenced_commands.c value = crm_element_value(request, name); name 2381 daemons/fenced/fenced_commands.c crm_xml_add(reply, name, value); name 2610 daemons/fenced/fenced_commands.c flag_name, client->name, client->id); name 2617 daemons/fenced/fenced_commands.c flag_name, client->name, client->id); name 2629 daemons/fenced/fenced_commands.c client ? client->name : remote_peer, name 2662 daemons/fenced/fenced_commands.c client->name, client->id, action, target, device ? device : "(any)"); name 2760 daemons/fenced/fenced_commands.c const char *name = NULL; name 2763 daemons/fenced/fenced_commands.c name = crm_element_value(request, XML_ATTR_UNAME); name 2764 daemons/fenced/fenced_commands.c reap_crm_member(node_id, name); name 2770 daemons/fenced/fenced_commands.c op, (client? client->name : remote_peer)); name 2815 daemons/fenced/fenced_commands.c crm_err("Unknown %s reply from %s", op, client ? client->name : remote_peer); name 2845 daemons/fenced/fenced_commands.c id, client ? client->name : remote_peer, call_options); name 2858 daemons/fenced/fenced_commands.c is_reply ? " reply" : "", client ? client->name : remote_peer, name 113 daemons/fenced/pacemaker-fenced.c if (c->name == NULL) { name 119 daemons/fenced/pacemaker-fenced.c c->name = crm_strdup_printf("%s.%u", value, c->pid); name 244 daemons/fenced/pacemaker-fenced.c rid, client_obj->name, from_peer ? "(originator of delegated request)" : ""); name 248 daemons/fenced/pacemaker-fenced.c client_obj->name, from_peer ? "(originator of delegated request)" : ""); name 259 daemons/fenced/pacemaker-fenced.c (client_obj? client_obj->name : "unknown client"), name 265 daemons/fenced/pacemaker-fenced.c get_stonith_flag(const char *name) name 267 daemons/fenced/pacemaker-fenced.c if (pcmk__str_eq(name, T_STONITH_NOTIFY_FENCE, pcmk__str_casei)) { name 270 daemons/fenced/pacemaker-fenced.c } else if (pcmk__str_eq(name, STONITH_OP_DEVICE_ADD, pcmk__str_casei)) { name 273 daemons/fenced/pacemaker-fenced.c } else if (pcmk__str_eq(name, STONITH_OP_DEVICE_DEL, pcmk__str_casei)) { name 276 daemons/fenced/pacemaker-fenced.c } else if (pcmk__str_eq(name, T_STONITH_NOTIFY_HISTORY, pcmk__str_casei)) { name 279 daemons/fenced/pacemaker-fenced.c } else if (pcmk__str_eq(name, T_STONITH_NOTIFY_HISTORY_SYNCED, pcmk__str_casei)) { name 648 daemons/fenced/pacemaker-fenced.c const char *name = NULL; name 659 daemons/fenced/pacemaker-fenced.c while (g_hash_table_iter_next(&gIter, (gpointer *) & name, (gpointer *) & value)) { name 660 daemons/fenced/pacemaker-fenced.c if (!name || !value) { name 663 daemons/fenced/pacemaker-fenced.c params = stonith_key_value_add(params, name, value); name 664 daemons/fenced/pacemaker-fenced.c crm_trace(" %s=%s", name, value); name 871 daemons/fenced/pacemaker-fenced.c node_has_attr(const char *node, const char *name, const char *value) name 887 daemons/fenced/pacemaker-fenced.c node, name, value); name 212 daemons/fenced/pacemaker-fenced.h uint64_t get_stonith_flag(const char *name); name 263 daemons/fenced/pacemaker-fenced.h gboolean node_has_attr(const char *node, const char *name, const char *value); name 68 daemons/pacemakerd/pacemakerd.c const char *name; name 128 daemons/pacemakerd/pacemakerd.c crm_err("Child respawn count exceeded by %s", child->name); name 140 daemons/pacemakerd/pacemakerd.c crm_err("Rebooting system because of %s", child->name); name 146 daemons/pacemakerd/pacemakerd.c child->name, child->endpoint); name 156 daemons/pacemakerd/pacemakerd.c crm_notice("Respawning failed child process: %s", child->name); name 165 daemons/pacemakerd/pacemakerd.c const char *name = mainloop_child_name(p); name 170 daemons/pacemakerd/pacemakerd.c name, pid, signo, core); name 176 daemons/pacemakerd/pacemakerd.c name, pid, exitcode, crm_exit_str(exitcode)); name 181 daemons/pacemakerd/pacemakerd.c name, pid); name 188 daemons/pacemakerd/pacemakerd.c crm_emerg("%s[%d] instructed the machine to reset", name, pid); name 197 daemons/pacemakerd/pacemakerd.c name, pid, exitcode, crm_exit_str(exitcode)); name 218 daemons/pacemakerd/pacemakerd.c child->name, (long long) PCMK__SPECIAL_PID_AS_0(child->pid)); name 223 daemons/pacemakerd/pacemakerd.c crm_trace("Client %s not running", child->name); name 230 daemons/pacemakerd/pacemakerd.c child->name, signal, (long long) child->pid); name 234 daemons/pacemakerd/pacemakerd.c child->name, (long long) child->pid, signal, strerror(errno)); name 261 daemons/pacemakerd/pacemakerd.c crm_info("Nothing to do for child \"%s\"", child->name); name 269 daemons/pacemakerd/pacemakerd.c } else if (env_callgrind != NULL && strstr(env_callgrind, child->name)) { name 276 daemons/pacemakerd/pacemakerd.c } else if (env_valgrind != NULL && strstr(env_valgrind, child->name)) { name 282 daemons/pacemakerd/pacemakerd.c " The location of the valgrind binary is unknown", child->name); name 288 daemons/pacemakerd/pacemakerd.c crm_err("Invalid user (%s) for %s: not found", child->uid, child->name); name 291 daemons/pacemakerd/pacemakerd.c crm_info("Using uid=%u and group=%u for process %s", uid, gid, child->name); name 299 daemons/pacemakerd/pacemakerd.c mainloop_child_add(child->pid, 0, child->name, child, pcmk_child_exit); name 302 daemons/pacemakerd/pacemakerd.c (long long) child->pid, child->name, name 383 daemons/pacemakerd/pacemakerd.c crm_err("Child %s not terminating in a timely manner, forcing", child->name); name 427 daemons/pacemakerd/pacemakerd.c child->name, (long) SHUTDOWN_ESCALATION_PERIOD, name 442 daemons/pacemakerd/pacemakerd.c child->name, (long long) child->pid, name 449 daemons/pacemakerd/pacemakerd.c crm_debug("%s confirmed stopped", child->name); name 744 daemons/pacemakerd/pacemakerd.c child->name); name 792 daemons/pacemakerd/pacemakerd.c int ret = pcmk__pid_active(child->pid, child->name); name 797 daemons/pacemakerd/pacemakerd.c child->name) == pcmk_rc_ok))) { name 862 daemons/pacemakerd/pacemakerd.c crm_err("%s[%lld] terminated%s", pcmk_children[lpc].name, name 867 daemons/pacemakerd/pacemakerd.c crm_notice("%s[%lld] terminated%s", pcmk_children[lpc].name, name 961 daemons/pacemakerd/pacemakerd.c pcmk_children[i].name, WAIT_TRIES - 1); name 969 daemons/pacemakerd/pacemakerd.c pcmk_children[i].name, name 982 daemons/pacemakerd/pacemakerd.c pcmk_children[i].name, name 1009 daemons/pacemakerd/pacemakerd.c pcmk_children[i].name, pcmk_rc_str(rc), rc); name 40 daemons/schedulerd/pacemaker-schedulerd.c const char *name; name 142 daemons/schedulerd/pacemaker-schedulerd.c if (pcmk__read_series_sequence(PE_STATE_DIR, series[series_id].name, name 148 daemons/schedulerd/pacemaker-schedulerd.c series[series_id].name, series_wrap, seq, value); name 157 daemons/schedulerd/pacemaker-schedulerd.c series[series_id].name, seq, true); name 196 daemons/schedulerd/pacemaker-schedulerd.c pcmk__write_series_sequence(PE_STATE_DIR, series[series_id].name, name 43 include/crm/cib.h char *get_shadow_file(const char *name); name 44 include/crm/cib.h cib_t *cib_shadow_new(const char *name); name 73 include/crm/cib/cib_types.h int (*signon) (cib_t *cib, const char *name, enum cib_conn_type type); name 74 include/crm/cib/cib_types.h int (*signon_raw) (cib_t *cib, const char *name, enum cib_conn_type type, name 66 include/crm/cib/util.h const char *cib_pref(GHashTable * options, const char *name); name 139 include/crm/cluster.h guint reap_crm_member(uint32_t id, const char *name); name 69 include/crm/cluster/election.h election_t *election_init(const char *name, const char *uname, guint period_ms, GSourceFunc cb); name 356 include/crm/cluster/internal.h gboolean node_name_is_valid(const char *key, const char *name); name 75 include/crm/common/alerts_internal.h void pcmk__add_alert_key(GHashTable *table, enum pcmk__alert_keys_e name, name 77 include/crm/common/alerts_internal.h void pcmk__add_alert_key_int(GHashTable *table, enum pcmk__alert_keys_e name, name 33 include/crm/common/attrd_internal.h const char *name, const char *value, name 43 include/crm/common/attrd_internal.h const char *pcmk__node_attr_target(const char *name); name 101 include/crm/common/cmdline_internal.h void pcmk__add_arg_group(GOptionContext *context, const char *name, name 71 include/crm/common/internal.h void pcmk__sync_directory(const char *name); name 160 include/crm/common/internal.h const char *pcmk__message_name(const char *name); name 165 include/crm/common/internal.h pid_t pcmk__procfs_pid_of(const char *name); name 198 include/crm/common/internal.h int pcmk__lock_pidfile(const char *filename, const char *name); name 286 include/crm/common/internal.h void pcmk__daemonize(const char *name, const char *pidfile); name 164 include/crm/common/ipc.h crm_ipc_t *crm_ipc_new(const char *name, size_t max_size); name 85 include/crm/common/ipc_internal.h int pcmk__ipc_is_authentic_process_active(const char *name, uid_t refuid, name 140 include/crm/common/ipc_internal.h char *name; name 165 include/crm/common/ipc_internal.h "Client", ((client)->name? (client)->name : "client"), \ name 172 include/crm/common/ipc_internal.h "Client", ((client)->name? (client)->name : "client"), \ name 137 include/crm/common/logging.h # define CRM_TRACE_INIT_DATA(name) name 140 include/crm/common/logging.h # define CRM_TRACE_INIT_DATA(name) QB_LOG_INIT_DATA(name) name 65 include/crm/common/mainloop.h mainloop_timer_t *mainloop_timer_add(const char *name, guint period_ms, bool repeat, GSourceFunc cb, void *userdata); name 78 include/crm/common/mainloop.h qb_ipcs_service_t *mainloop_add_ipc_server(const char *name, enum qb_ipc_type type, name 100 include/crm/common/mainloop.h qb_ipcs_service_t *mainloop_add_ipc_server_with_prio(const char *name, name 107 include/crm/common/mainloop.h mainloop_io_t *mainloop_add_ipc_client(const char *name, int priority, size_t max_size, name 119 include/crm/common/mainloop.h mainloop_io_t *mainloop_add_fd(const char *name, int priority, int fd, void *userdata, name 29 include/crm/common/nvpair.h char *name; name 33 include/crm/common/nvpair.h GSList *pcmk_prepend_nvpair(GSList *nvpairs, const char *name, const char *value); name 40 include/crm/common/nvpair.h const char *name, const char *value); name 47 include/crm/common/nvpair.h const char *crm_xml_add(xmlNode *node, const char *name, const char *value); name 48 include/crm/common/nvpair.h const char *crm_xml_replace(xmlNode *node, const char *name, const char *value); name 49 include/crm/common/nvpair.h const char *crm_xml_add_int(xmlNode *node, const char *name, int value); name 50 include/crm/common/nvpair.h const char *crm_xml_add_ll(xmlNode *node, const char *name, long long value); name 51 include/crm/common/nvpair.h const char *crm_xml_add_ms(xmlNode *node, const char *name, guint ms); name 56 include/crm/common/nvpair.h const char *crm_element_value(const xmlNode *data, const char *name); name 57 include/crm/common/nvpair.h int crm_element_value_int(const xmlNode *data, const char *name, int *dest); name 58 include/crm/common/nvpair.h int crm_element_value_ll(const xmlNode *data, const char *name, long long *dest); name 59 include/crm/common/nvpair.h int crm_element_value_ms(const xmlNode *data, const char *name, guint *dest); name 60 include/crm/common/nvpair.h int crm_element_value_epoch(const xmlNode *xml, const char *name, time_t *dest); name 63 include/crm/common/nvpair.h char *crm_element_value_copy(const xmlNode *data, const char *name); name 96 include/crm/common/nvpair.h crm_xml_add_boolean(xmlNode *node, const char *name, gboolean value) name 98 include/crm/common/nvpair.h return crm_xml_add(node, name, (value? "true" : "false")); name 44 include/crm/common/options_internal.h const char *name; name 83 include/crm/common/options_internal.h const char *name; name 98 include/crm/common/options_internal.h const char *name); name 100 include/crm/common/options_internal.h void pcmk__print_option_metadata(const char *name, const char *version, name 125 include/crm/common/output_internal.h const char *name; name 388 include/crm/common/output_internal.h void (*output_xml) (pcmk__output_t *out, const char *name, const char *buf); name 422 include/crm/common/output_internal.h void (*list_item) (pcmk__output_t *out, const char *name, const char *format, ...) name 528 include/crm/common/output_internal.h pcmk__register_format(GOptionGroup *group, const char *name, name 623 include/crm/common/output_internal.h pcmk__output_xml_create_parent(pcmk__output_t *out, const char *name); name 645 include/crm/common/output_internal.h pcmk__output_create_xml_node(pcmk__output_t *out, const char *name); name 657 include/crm/common/output_internal.h pcmk__output_create_xml_text_node(pcmk__output_t *out, const char *name, const char *content); name 743 include/crm/common/output_internal.h pcmk__html_add_header(const char *name, ...) name 41 include/crm/common/util.h int pcmk_scan_nvpair(const char *input, char **name, char **value); name 42 include/crm/common/util.h char *pcmk_format_nvpair(const char *name, const char *value, const char *units); name 43 include/crm/common/util.h char *pcmk_format_named_time(const char *name, time_t epoch_time); name 215 include/crm/common/util.h bool crm_is_daemon_name(const char *name); name 217 include/crm/common/util.h int crm_user_lookup(const char *name, uid_t * uid, gid_t * gid); name 68 include/crm/common/xml.h void expand_plus_plus(xmlNode * target, const char *name, const char *value); name 78 include/crm/common/xml.h xmlNode *create_xml_node(xmlNode * parent, const char *name); name 88 include/crm/common/xml.h xmlNode *pcmk_create_xml_text_node(xmlNode * parent, const char *name, const char *content); name 115 include/crm/common/xml.h int add_node_nocopy(xmlNode * parent, const char *name, xmlNode * child); name 152 include/crm/common/xml.h void xml_remove_prop(xmlNode * obj, const char *name); name 169 include/crm/common/xml.h return xml? (const char *)(xml->name) : NULL; name 175 include/crm/common/xml.h const char *name = crm_element_name(xml); name 177 include/crm/common/xml.h if (strcmp(name, "master") == 0) { name 180 include/crm/common/xml.h return name; name 235 include/crm/common/xml.h int get_schema_version(const char *name); name 246 include/crm/common/xml.h xmlNode *first_named_child(const xmlNode *parent, const char *name); name 202 include/crm/compatibility.h get_resource_type(const char *name) name 204 include/crm/compatibility.h if (safe_str_eq(name, XML_CIB_TAG_RESOURCE)) { name 207 include/crm/compatibility.h } else if (safe_str_eq(name, XML_CIB_TAG_GROUP)) { name 210 include/crm/compatibility.h } else if (safe_str_eq(name, XML_CIB_TAG_INCARNATION) name 211 include/crm/compatibility.h || safe_str_eq(name, XML_CIB_TAG_MASTER)) { name 214 include/crm/compatibility.h } else if (safe_str_eq(name, XML_CIB_TAG_CONTAINER)) { name 132 include/crm/pengine/common.h const char *pe_pref(GHashTable * options, const char *name); name 215 include/crm/pengine/internal.h void add_hash_param(GHashTable * hash, const char *name, const char *value); name 217 include/crm/pengine/internal.h char *native_parameter(pe_resource_t * rsc, pe_node_t * node, gboolean create, const char *name, name 378 include/crm/pengine/internal.h extern pe_action_t *get_pseudo_op(const char *name, pe_working_set_t * data_set); name 457 include/crm/pengine/internal.h extern enum action_tasks get_complex_task(pe_resource_t * rsc, const char *name, name 554 include/crm/pengine/internal.h void common_print(pe_resource_t * rsc, const char *pre_text, const char *name, pe_node_t *node, long options, void *print_data); name 555 include/crm/pengine/internal.h int pe__common_output_text(pcmk__output_t *out, pe_resource_t * rsc, const char *name, pe_node_t *node, long options); name 556 include/crm/pengine/internal.h int pe__common_output_html(pcmk__output_t *out, pe_resource_t * rsc, const char *name, pe_node_t *node, long options); name 563 include/crm/pengine/internal.h const char *name, name 565 include/crm/pengine/internal.h const char *pe_node_attribute_raw(pe_node_t *node, const char *name); name 221 include/crm/services.h svc_action_t *services_action_create(const char *name, const char *action, name 242 include/crm/services.h svc_action_t *resources_action_create(const char *name, const char *standard, name 251 include/crm/services.h gboolean services_action_kick(const char *name, const char *action, name 294 include/crm/services.h gboolean services_action_cancel(const char *name, const char *action, name 151 include/crm/stonith-ng.h int (*connect) (stonith_t *st, const char *name, int *stonith_fd); name 170 include/crm/stonith-ng.h stonith_t *st, int options, const char *name); name 444 include/crm/stonith-ng.h int stonith_api_connect_retry(stonith_t *st, const char *name, name 45 include/pacemaker.h const char *name, unsigned int timeout, unsigned int tolerance, name 35 include/pcmki/pcmki_fence.h const char *name, unsigned int timeout, unsigned int tolerance, name 82 include/pcmki/pcmki_sched_utils.h pe_action_t *pe_cancel_op(pe_resource_t *rsc, const char *name, name 37 include/portability.h int setenv(const char *name, const char *value, int why); name 411 lib/cib/cib_attrs.c tag = (const char *) (result->name); name 415 lib/cib/cib_attrs.c tag = (const char *) (result->name); name 551 lib/cib/cib_attrs.c if (pcmk__str_eq((const char *)a_child->name, XML_CIB_TAG_NODE, name 214 lib/cib/cib_client.c char *name = crm_strdup_printf("shadow.%s", suffix); name 262 lib/cib/cib_client.c fullname = crm_strdup_printf("%s/%s", dir, name); name 264 lib/cib/cib_client.c free(name); name 65 lib/cib/cib_file.c int cib_file_signon(cib_t * cib, const char *name, enum cib_conn_type type); name 580 lib/cib/cib_file.c cib_file_signon(cib_t * cib, const char *name, enum cib_conn_type type) name 593 lib/cib/cib_file.c private->filename, name); name 599 lib/cib/cib_file.c private->filename, name, pcmk_strerror(rc)); name 50 lib/cib/cib_native.c int cib_native_signon(cib_t * cib, const char *name, enum cib_conn_type type); name 51 lib/cib/cib_native.c int cib_native_signon_raw(cib_t * cib, const char *name, enum cib_conn_type type, int *event_fd); name 84 lib/cib/cib_native.c cib_native_signon(cib_t * cib, const char *name, enum cib_conn_type type) name 86 lib/cib/cib_native.c return cib_native_signon_raw(cib, name, type, NULL); name 147 lib/cib/cib_native.c cib_native_signon_raw(cib_t * cib, const char *name, enum cib_conn_type type, int *async_fd) name 196 lib/cib/cib_native.c crm_info("Could not connect to CIB manager for %s", name); name 206 lib/cib/cib_native.c crm_xml_add(hello, F_CIB_CLIENTNAME, name); name 236 lib/cib/cib_native.c crm_info("Successfully connected to CIB manager for %s", name); name 241 lib/cib/cib_native.c name, pcmk_strerror(rc)); name 303 lib/cib/cib_ops.c crm_trace("No matching object to delete: %s=%s", child->name, ID(child)); name 308 lib/cib/cib_ops.c crm_trace("No matching object to delete: %s=%s", input->name, ID(input)); name 770 lib/cib/cib_ops.c parent->name, id, name 773 lib/cib/cib_ops.c new_path = crm_strdup_printf("/%s%s", parent->name, name 70 lib/cib/cib_remote.c int cib_remote_signon(cib_t * cib, const char *name, enum cib_conn_type type); name 76 lib/cib/cib_remote.c const char *name); name 385 lib/cib/cib_remote.c cib_remote_signon(cib_t * cib, const char *name, enum cib_conn_type type) name 429 lib/cib/cib_remote.c crm_xml_add(hello, F_CIB_CLIENTNAME, name); name 436 lib/cib/cib_remote.c private->server, private->port, name); name 442 lib/cib/cib_remote.c private->server, private->port, name, pcmk_strerror(rc)); name 491 lib/cib/cib_remote.c xmlNode * data, xmlNode ** output_data, int call_options, const char *name) name 29 lib/cib/cib_utils.c const char *name; name 123 lib/cib/cib_utils.c if ((object_type == NULL && known_paths[lpc].name == NULL) name 124 lib/cib/cib_utils.c || pcmk__str_eq(object_type, known_paths[lpc].name, pcmk__str_casei)) { name 138 lib/cib/cib_utils.c if (pcmk__str_eq(object_type, known_paths[lpc].name, pcmk__str_casei)) { name 288 lib/cib/cib_utils.c current_cib = create_xml_node(NULL, (const char *)scratch->name); name 655 lib/cib/cib_utils.c cib_pref(GHashTable * options, const char *name) name 657 lib/cib/cib_utils.c return pcmk__cluster_option(options, cib_opts, DIMOF(cib_opts), name); name 122 lib/cluster/cluster.c static char *name = NULL; name 124 lib/cluster/cluster.c if(name) { name 125 lib/cluster/cluster.c return name; name 127 lib/cluster/cluster.c name = get_node_name(0); name 128 lib/cluster/cluster.c return name; name 134 lib/cluster/cluster.c char *name = NULL; name 141 lib/cluster/cluster.c name = corosync_node_name(0, nodeid); name 149 lib/cluster/cluster.c if(name == NULL && nodeid == 0) { name 150 lib/cluster/cluster.c name = pcmk_hostname(); name 151 lib/cluster/cluster.c if (name == NULL) { name 160 lib/cluster/cluster.c if (name == NULL) { name 164 lib/cluster/cluster.c return name; name 336 lib/cluster/cluster.c node_name_is_valid(const char *key, const char *name) name 340 lib/cluster/cluster.c if (name == NULL) { name 344 lib/cluster/cluster.c } else if (sscanf(name, "%d.%d.%d.%d", &octet, &octet, &octet, &octet) == 4) { name 345 lib/cluster/cluster.c crm_trace("%s contains an ipv4 address, ignoring: %s", key, name); name 348 lib/cluster/cluster.c } else if (strstr(name, ":") != NULL) { name 349 lib/cluster/cluster.c crm_trace("%s contains an ipv6 address, ignoring: %s", key, name); name 66 lib/cluster/corosync.c char *name = NULL; name 124 lib/cluster/corosync.c while (name == NULL && cmap_handle != 0) { name 138 lib/cluster/corosync.c crm_trace("Searching for node name for %u in nodelist.node.%d %s", nodeid, lpc, name); name 139 lib/cluster/corosync.c if (name == NULL) { name 141 lib/cluster/corosync.c cmap_get_string(cmap_handle, key, &name); name 142 lib/cluster/corosync.c crm_trace("%s = %s", key, name); name 145 lib/cluster/corosync.c if (name == NULL) { name 147 lib/cluster/corosync.c cmap_get_string(cmap_handle, key, &name); name 148 lib/cluster/corosync.c crm_trace("%s = %s", key, name); name 150 lib/cluster/corosync.c if (node_name_is_valid(key, name) == FALSE) { name 151 lib/cluster/corosync.c free(name); name 152 lib/cluster/corosync.c name = NULL; name 167 lib/cluster/corosync.c if (name == NULL) { name 170 lib/cluster/corosync.c return name; name 248 lib/cluster/corosync.c char *name = corosync_node_name(0, id); name 251 lib/cluster/corosync.c node = crm_get_peer(id, name); name 252 lib/cluster/corosync.c free(name); name 584 lib/cluster/corosync.c char *name = NULL; name 595 lib/cluster/corosync.c name = corosync_node_name(cmap_handle, nodeid); name 596 lib/cluster/corosync.c if (name != NULL) { name 602 lib/cluster/corosync.c if(node && node->uname && strcasecmp(node->uname, name) == 0) { name 605 lib/cluster/corosync.c nodeid, name); name 612 lib/cluster/corosync.c if (nodeid > 0 || name != NULL) { name 613 lib/cluster/corosync.c crm_trace("Initializing node[%d] %u = %s", lpc, nodeid, name); name 614 lib/cluster/corosync.c crm_get_peer(nodeid, name); name 617 lib/cluster/corosync.c if (nodeid > 0 && name != NULL) { name 624 lib/cluster/corosync.c crm_xml_add(node, XML_ATTR_UNAME, name); name 631 lib/cluster/corosync.c free(name); name 26 lib/cluster/election.c char *name; // Descriptive name for this election name 52 lib/cluster/election.c crm_info("%s timed out, declaring local node as winner", e->name); name 83 lib/cluster/election.c election_init(const char *name, const char *uname, guint period_ms, GSourceFunc cb) name 104 lib/cluster/election.c e->name = name? crm_strdup_printf("election-%s", name) name 107 lib/cluster/election.c e->timeout = mainloop_timer_add(e->name, period_ms, FALSE, name 109 lib/cluster/election.c crm_trace("Created %s", e->name); name 126 lib/cluster/election.c crm_trace("Discarding %s (no-)vote from lost peer %s", e->name, uname); name 140 lib/cluster/election.c crm_trace("Resetting election %s", e->name); name 163 lib/cluster/election.c crm_trace("Destroying %s", e->name); name 166 lib/cluster/election.c free(e->name); name 297 lib/cluster/election.c e->name); name 315 lib/cluster/election.c crm_debug("Started %s round %d", e->name, e->count); name 346 lib/cluster/election.c crm_trace("%s check requested, but no votes received yet", e->name); name 365 lib/cluster/election.c crm_warn("Received too many votes in %s", e->name); name 380 lib/cluster/election.c crm_info("%s won by local node", e->name); name 386 lib/cluster/election.c e->name, num_members - voted_size, num_members); name 436 lib/cluster/election.c (e? e->name : "election")); name 448 lib/cluster/election.c (e? e->name : "election"), vote->op, vote->from); name 454 lib/cluster/election.c (e? e->name : "election"), vote->from, vote->op); name 471 lib/cluster/election.c e->name, vote->op, vote->from); name 575 lib/cluster/election.c e->name, vote.election_id, vote.op, vote.from, name 582 lib/cluster/election.c e->name, vote.election_id, vote.op, vote.from); name 630 lib/cluster/election.c e->name, e->election_wins, STORM_INTERVAL); name 653 lib/cluster/election.c e->name, vote.election_id, vote.op, e->count, vote.from, name 675 lib/cluster/election.c e->name, vote.election_id, vote.election_owner, vote.op, name 693 lib/cluster/election.c e->name, vote.election_id, vote.election_owner, vote.from, name 701 lib/cluster/election.c e->name, vote.election_id, vote.election_owner, vote.op, name 324 lib/cluster/membership.c reap_crm_member(uint32_t id, const char *name) name 335 lib/cluster/membership.c search.uname = name ? strdup(name) : NULL; name 173 lib/common/acl.c if (!strcmp(XML_ACL_TAG_ROLE, (const char *) role->name)) { name 382 lib/common/acl.c const char *prop_name = (const char *)xIter->name; name 389 lib/common/acl.c xmlUnsetProp(xml, tmp->name); name 514 lib/common/acl.c if (strcmp((const char *) prop->name, XML_ATTR_ID) != 0) { name 615 lib/common/acl.c pcmk__check_acl(xmlNode *xml, const char *name, enum xml_private_flags mode) name 630 lib/common/acl.c if (name) { name 632 lib/common/acl.c "[@%s]", name); name 648 lib/common/acl.c if (name) { name 649 lib/common/acl.c xmlAttr *attr = xmlHasProp(xml, (pcmkXmlStr) name); name 153 lib/common/alerts.c pcmk__add_alert_key(GHashTable *table, enum pcmk__alert_keys_e name, name 156 lib/common/alerts.c for (const char **key = pcmk__alert_keys[name]; *key; key++) { name 167 lib/common/alerts.c pcmk__add_alert_key_int(GHashTable *table, enum pcmk__alert_keys_e name, name 170 lib/common/alerts.c for (const char **key = pcmk__alert_keys[name]; *key; key++) { name 238 lib/common/alerts.c const char *name = NULL; name 242 lib/common/alerts.c ((name = crm_element_name(section)) == NULL) || name 243 lib/common/alerts.c (strcmp(name, XML_CIB_TAG_ALERTS) != 0)) { name 136 lib/common/attrd_client.c const char *name, const char *value, name 155 lib/common/attrd_client.c if (name == NULL && command == 'U') { name 193 lib/common/attrd_client.c if (name == NULL) { name 197 lib/common/attrd_client.c crm_xml_add(update, name_as, name); name 221 lib/common/attrd_client.c name, value, display_host, pcmk_rc_str(rc), rc); name 281 lib/common/attrd_client.c pcmk__node_attr_target(const char *name) name 283 lib/common/attrd_client.c if (pcmk__strcase_any_of(name, "auto", "localhost", NULL)) { name 284 lib/common/attrd_client.c name = NULL; name 287 lib/common/attrd_client.c if(name != NULL) { name 288 lib/common/attrd_client.c return name; name 298 lib/common/attrd_client.c name = host_physical; name 304 lib/common/attrd_client.c name = host_pcmk; name 313 lib/common/attrd_client.c return name; name 138 lib/common/cmdline.c pcmk__add_arg_group(GOptionContext *context, const char *name, name 144 lib/common/cmdline.c group = g_option_group_new(name, header, desc, NULL, NULL); name 129 lib/common/crmcommon_private.h bool pcmk__check_acl(xmlNode *xml, const char *name, name 142 lib/common/crmcommon_private.h bool pcmk__xa_filterable(const char *name); name 252 lib/common/digest.c pcmk__xa_filterable(const char *name) name 263 lib/common/digest.c if (strcmp(name, filter[i]) == 0) { name 414 lib/common/io.c pcmk__sync_directory(const char *name) name 419 lib/common/io.c directory = opendir(name); name 421 lib/common/io.c crm_perror(LOG_ERR, "Could not open %s for syncing", name); name 427 lib/common/io.c crm_perror(LOG_ERR, "Could not obtain file descriptor for %s", name); name 432 lib/common/io.c crm_perror(LOG_ERR, "Could not sync %s", name); name 435 lib/common/io.c crm_perror(LOG_ERR, "Could not close %s after fsync", name); name 727 lib/common/ipc_client.c char *name; name 745 lib/common/ipc_client.c crm_ipc_new(const char *name, size_t max_size) name 755 lib/common/ipc_client.c client->name = strdup(name); name 756 lib/common/ipc_client.c if (client->name == NULL) { name 765 lib/common/ipc_client.c free(client->name); name 798 lib/common/ipc_client.c client->ipc = qb_ipcc_connect(client->name, client->buf_size); name 801 lib/common/ipc_client.c crm_debug("Could not establish %s connection: %s (%d)", client->name, pcmk_strerror(errno), errno); name 827 lib/common/ipc_client.c client->name, (long long) PCMK__SPECIAL_PID_AS_0(found_pid), name 836 lib/common/ipc_client.c client->name); name 874 lib/common/ipc_client.c crm_notice("Destroying an active IPC connection to %s", client->name); name 885 lib/common/ipc_client.c crm_trace("Destroying IPC connection to %s: %p", client->name, client); name 887 lib/common/ipc_client.c free(client->name); name 902 lib/common/ipc_client.c (client? client->name : "unspecified client")); name 1027 lib/common/ipc_client.c client->name, header->qb.id, header->qb.size, client->msg_size, name 1031 lib/common/ipc_client.c crm_trace("No message from %s received: %s", client->name, pcmk_strerror(client->msg_size)); name 1035 lib/common/ipc_client.c crm_err("Connection to %s failed", client->name); name 1070 lib/common/ipc_client.c return client->name; name 1082 lib/common/ipc_client.c crm_trace("client %s waiting on reply to msg id %d", client->name, request_id); name 1112 lib/common/ipc_client.c crm_err("Server disconnected client %s while waiting for msg id %d", client->name, name 1158 lib/common/ipc_client.c client->name); name 1170 lib/common/ipc_client.c client->name); name 1175 lib/common/ipc_client.c client->name); name 1185 lib/common/ipc_client.c client->name, pcmk_rc_str(rc), rc); name 1190 lib/common/ipc_client.c pcmk__set_ipc_flags(header->flags, client->name, flags); name 1208 lib/common/ipc_client.c client->name, header->qb.id, header->qb.size, ms_timeout); name 1231 lib/common/ipc_client.c client->name, header->qb.id); name 1260 lib/common/ipc_client.c rc, hdr->qb.id, client->name, header->qb.id, name 1269 lib/common/ipc_client.c client->name, header->qb.id, rc); name 1275 lib/common/ipc_client.c CRM_XS " rc=%d", client->name, header->qb.id, rc); name 1279 lib/common/ipc_client.c client->name, header->qb.id, pcmk_strerror(rc), ms_timeout, name 1285 lib/common/ipc_client.c client->name, header->qb.id, name 1356 lib/common/ipc_client.c pcmk__ipc_is_authentic_process_active(const char *name, uid_t refuid, name 1367 lib/common/ipc_client.c c = qb_ipcc_connect(name, 0); name 1369 lib/common/ipc_client.c crm_info("Could not connect to %s IPC: %s", name, strerror(errno)); name 1378 lib/common/ipc_client.c name, pcmk_rc_str(rc), rc); name 1387 lib/common/ipc_client.c CRM_XS " rc=%d", name, pcmk_rc_str(rc), rc); name 1398 lib/common/ipc_client.c name, (long long) PCMK__SPECIAL_PID_AS_0(found_pid), name 1406 lib/common/ipc_client.c && strncmp(last_asked_name, name, sizeof(last_asked_name))) { name 1411 lib/common/ipc_client.c name, (long long) refuid, (long long) refgid); name 1416 lib/common/ipc_client.c name, (long long) found_uid, (long long) found_gid, name 1419 lib/common/ipc_client.c memccpy(last_asked_name, name, '\0', sizeof(last_asked_name)); name 94 lib/common/ipc_server.c } else if (c->name == NULL && c->id == NULL) { name 96 lib/common/ipc_server.c } else if (c->name == NULL) { name 99 lib/common/ipc_server.c return c->name; name 324 lib/common/ipc_server.c free(c->name); name 923 lib/common/ipc_server.c crm_is_daemon_name(const char *name) name 925 lib/common/ipc_server.c name = pcmk__message_name(name); name 926 lib/common/ipc_server.c return (!strcmp(name, CRM_SYSTEM_CRMD) name 927 lib/common/ipc_server.c || !strcmp(name, CRM_SYSTEM_STONITHD) name 928 lib/common/ipc_server.c || !strcmp(name, "stonith-ng") name 929 lib/common/ipc_server.c || !strcmp(name, "attrd") name 930 lib/common/ipc_server.c || !strcmp(name, CRM_SYSTEM_CIB) name 931 lib/common/ipc_server.c || !strcmp(name, CRM_SYSTEM_MCP) name 932 lib/common/ipc_server.c || !strcmp(name, CRM_SYSTEM_DC) name 933 lib/common/ipc_server.c || !strcmp(name, CRM_SYSTEM_TENGINE) name 934 lib/common/ipc_server.c || !strcmp(name, CRM_SYSTEM_LRMD)); name 633 lib/common/logging.c crm_priority2int(const char *name) name 636 lib/common/logging.c const char *name; name 652 lib/common/logging.c for (lpc = 0; name != NULL && p_names[lpc].name != NULL; lpc++) { name 653 lib/common/logging.c if (pcmk__str_eq(p_names[lpc].name, name, pcmk__str_none)) { name 643 lib/common/mainloop.c mainloop_add_ipc_server(const char *name, enum qb_ipc_type type, name 646 lib/common/mainloop.c return mainloop_add_ipc_server_with_prio(name, type, callbacks, QB_LOOP_MED); name 650 lib/common/mainloop.c mainloop_add_ipc_server_with_prio(const char *name, enum qb_ipc_type type, name 661 lib/common/mainloop.c server = qb_ipcs_create(name, 0, pick_ipc_type(type), callbacks); name 664 lib/common/mainloop.c crm_err("Could not create %s IPC server: %s (%d)", name, pcmk_strerror(rc), rc); name 681 lib/common/mainloop.c crm_err("Could not start %s IPC server: %s (%d)", name, pcmk_strerror(rc), rc); name 697 lib/common/mainloop.c char *name; name 728 lib/common/mainloop.c client->name, client, pcmk_strerror(rc), rc); name 733 lib/common/mainloop.c crm_trace("New message from %s[%p] = %ld (I/O condition=%d)", client->name, client, rc, condition); name 735 lib/common/mainloop.c crm_trace("Connection to %s no longer required", client->name); name 743 lib/common/mainloop.c crm_trace("New message from %s[%p] %u", client->name, client, condition); name 746 lib/common/mainloop.c crm_trace("Connection to %s no longer required", client->name); name 755 lib/common/mainloop.c client->name, client, condition); name 760 lib/common/mainloop.c client->name, client, condition); name 804 lib/common/mainloop.c char *c_name = strdup(client->name); name 831 lib/common/mainloop.c free(client->name); client->name = NULL; name 880 lib/common/mainloop.c mainloop_add_ipc_client(const char *name, int priority, size_t max_size, name 883 lib/common/mainloop.c crm_ipc_t *ipc = crm_ipc_new(name, max_size); name 891 lib/common/mainloop.c name, pcmk_rc_str(rc)); name 915 lib/common/mainloop.c mainloop_add_fd(const char *name, int priority, int fd, void *userdata, name 925 lib/common/mainloop.c client->name = strdup(name); name 950 lib/common/mainloop.c crm_trace("Added connection %d for %s[%p].%d", client->source, client->name, client, fd); name 962 lib/common/mainloop.c crm_trace("Removing client %s[%p]", client->name, client); name 1255 lib/common/mainloop.c char *name; name 1275 lib/common/mainloop.c crm_trace("Invoking callbacks for timer %s", t->name); name 1278 lib/common/mainloop.c crm_trace("Timer %s complete", t->name); name 1305 lib/common/mainloop.c crm_trace("Starting timer %s", t->name); name 1314 lib/common/mainloop.c crm_trace("Stopping timer %s", t->name); name 1337 lib/common/mainloop.c mainloop_timer_add(const char *name, guint period_ms, bool repeat, GSourceFunc cb, void *userdata) name 1342 lib/common/mainloop.c if(name) { name 1343 lib/common/mainloop.c t->name = crm_strdup_printf("%s-%u-%d", name, period_ms, repeat); name 1345 lib/common/mainloop.c t->name = crm_strdup_printf("%p-%u-%d", t, period_ms, repeat); name 1352 lib/common/mainloop.c crm_trace("Created timer %s with %p %p", t->name, userdata, t->userdata); name 1361 lib/common/mainloop.c crm_trace("Destroying timer %s", t->name); name 1363 lib/common/mainloop.c free(t->name); name 182 lib/common/messages.c pcmk__message_name(const char *name) name 184 lib/common/messages.c if (name == NULL) { name 187 lib/common/messages.c } else if (!strcmp(name, "pacemaker-attrd")) { name 190 lib/common/messages.c } else if (!strcmp(name, "pacemaker-based")) { name 193 lib/common/messages.c } else if (!strcmp(name, "pacemaker-controld")) { name 196 lib/common/messages.c } else if (!strcmp(name, "pacemaker-execd")) { name 199 lib/common/messages.c } else if (!strcmp(name, "pacemaker-fenced")) { name 202 lib/common/messages.c } else if (!strcmp(name, "pacemaker-schedulerd")) { name 206 lib/common/messages.c return name; name 48 lib/common/nvpair.c pcmk__new_nvpair(const char *name, const char *value) name 52 lib/common/nvpair.c CRM_ASSERT(name); name 57 lib/common/nvpair.c nvpair->name = strdup(name); name 74 lib/common/nvpair.c free(nvpair->name); name 92 lib/common/nvpair.c pcmk_prepend_nvpair(GSList *nvpairs, const char *name, const char *value) name 94 lib/common/nvpair.c return g_slist_prepend(nvpairs, pcmk__new_nvpair(name, value)); name 125 lib/common/nvpair.c CRM_ASSERT(pair_a->name != NULL); name 128 lib/common/nvpair.c CRM_ASSERT(pair_b->name != NULL); name 130 lib/common/nvpair.c rc = strcmp(pair_a->name, pair_b->name); name 170 lib/common/nvpair.c (const char *) iter->name, name 192 lib/common/nvpair.c crm_xml_add(parent, pair->name, pair->value); name 221 lib/common/nvpair.c pcmk_scan_nvpair(const char *input, char **name, char **value) name 224 lib/common/nvpair.c *name = NULL; name 226 lib/common/nvpair.c if (sscanf(input, "%m[^=]=%m[^\n]", name, value) <= 0) { name 231 lib/common/nvpair.c *name = NULL; name 239 lib/common/nvpair.c *name = strndup(input, sep-input); name 241 lib/common/nvpair.c if (*name == NULL) { name 257 lib/common/nvpair.c if (*name != NULL && *value != NULL) { name 259 lib/common/nvpair.c } else if (*name != NULL || *value != NULL) { name 282 lib/common/nvpair.c pcmk_format_nvpair(const char *name, const char *value, const char *units) { name 283 lib/common/nvpair.c return crm_strdup_printf("%s=\"%s%s\"", name, value, units ? units : ""); name 298 lib/common/nvpair.c pcmk_format_named_time(const char *name, time_t epoch_time) { name 301 lib/common/nvpair.c return crm_strdup_printf("%s=\"%s\"", name, now_str ? now_str : ""); name 317 lib/common/nvpair.c crm_xml_add(xmlNode *node, const char *name, const char *value) name 323 lib/common/nvpair.c CRM_CHECK(name != NULL, return NULL); name 332 lib/common/nvpair.c old_value = crm_element_value(node, name); name 336 lib/common/nvpair.c crm_err("Cannot reset %s with crm_xml_add(%s)", name, value); name 342 lib/common/nvpair.c const char *old = crm_element_value(node, name); name 349 lib/common/nvpair.c if (dirty && (pcmk__check_acl(node, name, xpf_acl_create) == FALSE)) { name 350 lib/common/nvpair.c crm_trace("Cannot add %s=%s to %s", name, value, node->name); name 354 lib/common/nvpair.c attr = xmlSetProp(node, (pcmkXmlStr) name, (pcmkXmlStr) value); name 374 lib/common/nvpair.c crm_xml_replace(xmlNode *node, const char *name, const char *value) name 381 lib/common/nvpair.c CRM_CHECK(name != NULL && name[0] != 0, return NULL); name 383 lib/common/nvpair.c old_value = crm_element_value(node, name); name 388 lib/common/nvpair.c if (pcmk__check_acl(node, name, xpf_acl_write) == FALSE) { name 390 lib/common/nvpair.c crm_trace("Cannot replace %s=%s to %s", name, value, node->name); name 394 lib/common/nvpair.c xml_remove_prop(node, name); name 404 lib/common/nvpair.c attr = xmlSetProp(node, (pcmkXmlStr) name, (pcmkXmlStr) value); name 425 lib/common/nvpair.c crm_xml_add_int(xmlNode *node, const char *name, int value) name 428 lib/common/nvpair.c const char *added = crm_xml_add(node, name, number); name 447 lib/common/nvpair.c crm_xml_add_ms(xmlNode *node, const char *name, guint ms) name 450 lib/common/nvpair.c const char *added = crm_xml_add(node, name, number); name 475 lib/common/nvpair.c crm_xml_add_ll(xmlNode *xml, const char *name, long long value) name 482 lib/common/nvpair.c return crm_xml_add(xml, name, s); name 523 lib/common/nvpair.c crm_element_value(const xmlNode *data, const char *name) name 528 lib/common/nvpair.c crm_err("Couldn't find %s in NULL", name ? name : "<null>"); name 532 lib/common/nvpair.c } else if (name == NULL) { name 540 lib/common/nvpair.c attr = xmlHasProp((xmlNode *) data, (pcmkXmlStr) name); name 559 lib/common/nvpair.c crm_element_value_int(const xmlNode *data, const char *name, int *dest) name 564 lib/common/nvpair.c value = crm_element_value(data, name); name 587 lib/common/nvpair.c crm_element_value_ll(const xmlNode *data, const char *name, long long *dest) name 592 lib/common/nvpair.c value = crm_element_value(data, name); name 615 lib/common/nvpair.c crm_element_value_ms(const xmlNode *data, const char *name, guint *dest) name 623 lib/common/nvpair.c value = crm_element_value(data, name); name 650 lib/common/nvpair.c crm_element_value_epoch(const xmlNode *xml, const char *name, time_t *dest) name 654 lib/common/nvpair.c if (crm_element_value_ll(xml, name, &value_ll) < 0) { name 726 lib/common/nvpair.c crm_element_value_copy(const xmlNode *data, const char *name) name 729 lib/common/nvpair.c const char *value = crm_element_value(data, name); name 753 lib/common/nvpair.c const char *name = key; name 758 lib/common/nvpair.c if (isdigit(name[0])) { name 761 lib/common/nvpair.c crm_xml_add(tmp, XML_NVPAIR_ATTR_NAME, name); name 764 lib/common/nvpair.c } else if (crm_element_value(xml_node, name) == NULL) { name 765 lib/common/nvpair.c crm_xml_add(xml_node, name, s_value); name 766 lib/common/nvpair.c crm_trace("dumped: %s=%s", name, s_value); name 769 lib/common/nvpair.c crm_trace("duplicate: %s=%s", name, s_value); name 787 lib/common/nvpair.c const char *name = key; name 792 lib/common/nvpair.c if (crm_element_value(xml_node, name) == NULL) { name 793 lib/common/nvpair.c crm_xml_add(xml_node, name, s_value); name 796 lib/common/nvpair.c crm_trace("duplicate: %s=%s", name, s_value); name 848 lib/common/nvpair.c crm_create_nvpair_xml(xmlNode *parent, const char *id, const char *name, name 856 lib/common/nvpair.c CRM_CHECK(id || name, return NULL); name 867 lib/common/nvpair.c (parent_id? parent_id : XML_CIB_TAG_NVPAIR), name); name 869 lib/common/nvpair.c crm_xml_add(nvp, XML_NVPAIR_ATTR_NAME, name); name 888 lib/common/nvpair.c const char *name = key; name 892 lib/common/nvpair.c crm_create_nvpair_xml(xml_node, name, name, s_value); name 893 lib/common/nvpair.c crm_trace("dumped: name=%s value=%s", name, s_value); name 931 lib/common/nvpair.c const char *p_name = (const char *)pIter->name; name 942 lib/common/nvpair.c if (strcmp((const char *)child->name, XML_TAG_PARAM) == 0) { name 408 lib/common/operations.c const char *prop_name = (const char *) (xIter->name); name 61 lib/common/options.c long_opts[index].name = "__dummmy__"; name 69 lib/common/options.c for (lpc = 0; long_options[lpc].name != NULL; lpc++) { name 70 lib/common/options.c if (long_options[lpc].name[0] == '-') { name 77 lib/common/options.c long_opts[index].name = long_options[lpc].name; name 86 lib/common/options.c long_opts[index].name = NULL; name 116 lib/common/options.c for (lpc = 0; long_options[lpc].name != NULL; lpc++) { name 165 lib/common/options.c *longname = long_opts[*index].name; name 167 lib/common/options.c crm_notice("Unhandled option --%s", long_opts[*index].name); name 216 lib/common/options.c for (i = 0; crm_long_options[i].name != NULL; i++) { name 235 lib/common/options.c fprintf(stream, " --%s%s\t%s\n", crm_long_options[i].name, name 464 lib/common/options.c const char *name, const char *old_name, name 470 lib/common/options.c CRM_ASSERT(name != NULL); name 473 lib/common/options.c value = g_hash_table_lookup(options, name); name 481 lib/common/options.c old_name, name); name 485 lib/common/options.c g_hash_table_insert(options, strdup(name), new_value); name 492 lib/common/options.c "because '%s' is invalid", name, value); name 506 lib/common/options.c name); name 512 lib/common/options.c crm_err("Bug: default value for cluster option '%s' is invalid", name); name 517 lib/common/options.c value, name); name 520 lib/common/options.c g_hash_table_insert(options, strdup(name), new_value); name 538 lib/common/options.c int len, const char *name) name 543 lib/common/options.c if (pcmk__str_eq(name, option_list[lpc].name, pcmk__str_casei)) { name 545 lib/common/options.c option_list[lpc].name, name 551 lib/common/options.c CRM_CHECK(FALSE, crm_err("Bug: looking for unknown option '%s'", name)); name 556 lib/common/options.c pcmk__print_option_metadata(const char *name, const char *version, name 568 lib/common/options.c " <parameters>\n", name, version, desc_long, desc_short); name 580 lib/common/options.c option_list[lpc].name, name 599 lib/common/options.c option_list[lpc].name, name 82 lib/common/output.c pcmk__register_format(GOptionGroup *group, const char *name, name 96 lib/common/output.c g_hash_table_insert(formatters, strdup(name), create); name 108 lib/common/output.c for (entry = formats; entry->name != NULL; entry++) { name 109 lib/common/output.c pcmk__register_format(group, entry->name, entry->create, entry->options); name 269 lib/common/output_html.c html_output_xml(pcmk__output_t *out, const char *name, const char *buf) { name 323 lib/common/output_html.c html_list_item(pcmk__output_t *out, const char *name, const char *format, ...) { name 340 lib/common/output_html.c if (name != NULL) { name 341 lib/common/output_html.c xmlSetProp(item_node, (pcmkXmlStr) "class", (pcmkXmlStr) name); name 423 lib/common/output_html.c pcmk__html_add_header(const char *name, ...) { name 427 lib/common/output_html.c va_start(ap, name); name 429 lib/common/output_html.c header_node = xmlNewNode(NULL, (pcmkXmlStr) name); name 115 lib/common/output_log.c log_output_xml(pcmk__output_t *out, const char *name, const char *buf) { name 120 lib/common/output_log.c node = create_xml_node(NULL, name); name 122 lib/common/output_log.c crm_log_xml_info(node, name); name 153 lib/common/output_log.c log_list_item(pcmk__output_t *out, const char *name, const char *format, ...) { name 177 lib/common/output_log.c if ((name != NULL) && (strcmp(name, "") != 0)) { name 179 lib/common/output_log.c crm_info("%s: %s: %s", prefix, name, buffer); name 181 lib/common/output_log.c crm_info("%s: %s", name, buffer); name 66 lib/common/output_none.c none_output_xml(pcmk__output_t *out, const char *name, const char *buf) { name 147 lib/common/output_text.c text_output_xml(pcmk__output_t *out, const char *name, const char *buf) { name 274 lib/common/output_xml.c xml_output_xml(pcmk__output_t *out, const char *name, const char *buf) { name 281 lib/common/output_xml.c parent = pcmk__output_create_xml_node(out, name); name 291 lib/common/output_xml.c const char *name = NULL; name 303 lib/common/output_xml.c name = s->to; name 309 lib/common/output_xml.c if (name == NULL) { name 310 lib/common/output_xml.c name = buf; name 314 lib/common/output_xml.c pcmk__output_xml_create_parent(out, name); name 319 lib/common/output_xml.c xmlSetProp(list_node, (pcmkXmlStr) "name", (pcmkXmlStr) name); name 327 lib/common/output_xml.c xml_list_item(pcmk__output_t *out, const char *name, const char *format, ...) { name 343 lib/common/output_xml.c if (name != NULL) { name 344 lib/common/output_xml.c xmlSetProp(item_node, (pcmkXmlStr) "name", (pcmkXmlStr) name); name 415 lib/common/output_xml.c pcmk__output_xml_create_parent(pcmk__output_t *out, const char *name) { name 416 lib/common/output_xml.c xmlNodePtr node = pcmk__output_create_xml_node(out, name); name 432 lib/common/output_xml.c pcmk__output_create_xml_node(pcmk__output_t *out, const char *name) { name 437 lib/common/output_xml.c return create_xml_node(g_queue_peek_tail(priv->parent_q), name); name 441 lib/common/output_xml.c pcmk__output_create_xml_text_node(pcmk__output_t *out, const char *name, const char *content) { name 442 lib/common/output_xml.c xmlNodePtr node = pcmk__output_create_xml_node(out, name); name 141 lib/common/patchset.c crm_xml_add(attr, XML_NVPAIR_ATTR_NAME, (const char *)pIter->name); name 148 lib/common/patchset.c value = crm_element_value(xml, (const char *) pIter->name); name 157 lib/common/patchset.c result = create_xml_node(change, (const char *)xml->name); name 163 lib/common/patchset.c value = crm_element_value(xml, (const char *) pIter->name); name 164 lib/common/patchset.c crm_xml_add(result, (const char *)pIter->name, value); name 181 lib/common/patchset.c xml->name, ID(xml), pcmk__xml_position(xml, xpf_skip)); name 286 lib/common/patchset.c const char *p_name = (const char *) xIter->name; name 559 lib/common/patchset.c const char *name = crm_element_value(child, "name"); name 572 lib/common/patchset.c name, value); name 582 lib/common/patchset.c name); name 650 lib/common/patchset.c const char *name = NULL; name 663 lib/common/patchset.c name = crm_element_name(target); name 664 lib/common/patchset.c CRM_CHECK(name != NULL, return); name 674 lib/common/patchset.c crm_trace("We are the root of the deletion: %s.id=%s", name, id); name 682 lib/common/patchset.c const char *p_name = (const char *)xIter->name; name 711 lib/common/patchset.c const char *name = NULL; name 725 lib/common/patchset.c name = crm_element_name(patch); name 726 lib/common/patchset.c crm_trace("We are the root of the addition: %s.id=%s", name, id); name 732 lib/common/patchset.c name = crm_element_name(patch); name 733 lib/common/patchset.c crm_err("Could not locate: %s.id=%s", name, id); name 741 lib/common/patchset.c name = crm_element_name(target); name 742 lib/common/patchset.c CRM_CHECK(name != NULL, return); name 750 lib/common/patchset.c const char *p_name = (const char *) xIter->name; name 989 lib/common/patchset.c first_matching_xml_child(xmlNode *parent, const char *name, const char *id, name 996 lib/common/patchset.c if (strcmp((const char *) cIter->name, name) != 0) { name 1167 lib/common/patchset.c crm_trace("Processing %s %s", change->name, op); name 1217 lib/common/patchset.c const char *name = (const char *)pIter->name; name 1220 lib/common/patchset.c xml_remove_prop(match, name); name 1225 lib/common/patchset.c const char *name = (const char *) pIter->name; name 1226 lib/common/patchset.c const char *value = crm_element_value(attrs, name); name 1228 lib/common/patchset.c crm_xml_add(match, name, value); name 1268 lib/common/patchset.c crm_trace("Adding %s at position %d", child->name, position); name 1273 lib/common/patchset.c child->name, position); name 1278 lib/common/patchset.c child->name, position); name 1305 lib/common/patchset.c match->name, position, name 1320 lib/common/patchset.c match->name, position); name 1325 lib/common/patchset.c match->name, ID(match), name 1491 lib/common/patchset.c const char *name = NULL; name 1520 lib/common/patchset.c name = crm_element_name(left); name 1521 lib/common/patchset.c CRM_CHECK(name != NULL, return NULL); name 1529 lib/common/patchset.c crm_trace("We are the root of the deletion: %s.id=%s", name, id); name 1535 lib/common/patchset.c diff = create_xml_node(parent, name); name 1558 lib/common/patchset.c const char *p_name = (const char *)pIter->name; name 1571 lib/common/patchset.c const char *prop_name = (const char *) xIter->name; name 1599 lib/common/patchset.c const char *p_name = (const char *) pIter->name; name 1629 lib/common/patchset.c const char *p_name = (const char *) pIter->name; name 214 lib/common/pid.c pcmk__lock_pidfile(const char *filename, const char *name) name 221 lib/common/pid.c rc = pcmk__pidfile_matches(filename, 0, name, NULL); name 241 lib/common/pid.c rc = pcmk__pidfile_matches(filename, mypid, name, NULL); name 40 lib/common/procfs.c pcmk__procfs_process_info(struct dirent *entry, char *name, pid_t *pid) name 82 lib/common/procfs.c if (name != NULL) { name 88 lib/common/procfs.c if (fscanf(file, "Name:\t%15[^\n]", name) != 1) { name 92 lib/common/procfs.c name[15] = 0; name 111 lib/common/procfs.c pcmk__procfs_pid_of(const char *name) name 126 lib/common/procfs.c && pcmk__str_eq(entry_name, name, pcmk__str_casei) name 129 lib/common/procfs.c crm_info("Found %s active as process %lld", name, (long long) pid); name 138 lib/common/results.c const char *name; name 269 lib/common/results.c return pcmk__rcs[pcmk_rc_error - rc].name; name 56 lib/common/schemas.c char *name; name 182 lib/common/schemas.c const char *name, const char *transform, name 204 lib/common/schemas.c known_schemas[last].name = schema_strdup_printf("pacemaker-", *version, ""); name 206 lib/common/schemas.c CRM_ASSERT(name); name 207 lib/common/schemas.c schema_scanf(name, "%*[^-]-", known_schemas[last].version, ""); name 208 lib/common/schemas.c known_schemas[last].name = strdup(name); name 225 lib/common/schemas.c last, known_schemas[last].name); name 229 lib/common/schemas.c last, known_schemas[last].name, name 235 lib/common/schemas.c last, known_schemas[last].name, name 582 lib/common/schemas.c free(known_schemas[lpc].name); name 610 lib/common/schemas.c known_schemas[method].name); name 716 lib/common/schemas.c known_schemas[lpc].name); name 717 lib/common/schemas.c crm_info("XML validated against %s", known_schemas[lpc].name); name 976 lib/common/schemas.c schema->name, schema->transform_enter); name 989 lib/common/schemas.c schema->name, schema->transform); name 1004 lib/common/schemas.c schema->name, transform_leave); name 1026 lib/common/schemas.c return known_schemas[version].name; name 1030 lib/common/schemas.c get_schema_version(const char *name) name 1034 lib/common/schemas.c if (name == NULL) { name 1035 lib/common/schemas.c name = "none"; name 1038 lib/common/schemas.c if (pcmk__str_eq(name, known_schemas[lpc].name, pcmk__str_casei)) { name 1087 lib/common/schemas.c known_schemas[lpc].name ? known_schemas[lpc].name : "<unset>", name 1093 lib/common/schemas.c known_schemas[lpc].name); name 1097 lib/common/schemas.c known_schemas[lpc].name ? known_schemas[lpc].name : "<unset>"); name 1108 lib/common/schemas.c known_schemas[next].name); name 1124 lib/common/schemas.c crm_trace("Stopping at %s", known_schemas[lpc].name); name 1129 lib/common/schemas.c known_schemas[lpc].name, lpc, next, max); name 1140 lib/common/schemas.c known_schemas[lpc].name, known_schemas[next].name); name 1146 lib/common/schemas.c known_schemas[lpc].name, known_schemas[next].name, name 1186 lib/common/schemas.c value ? value : "<none>", known_schemas[*best].name); name 1187 lib/common/schemas.c crm_xml_add(xml, XML_ATTR_VALIDATION, known_schemas[*best].name); name 122 lib/common/utils.c crm_user_lookup(const char *name, uid_t * uid, gid_t * gid) name 134 lib/common/utils.c rc = getpwnam_r(name, &pwd, buffer, PW_BUFFER_LEN, &pwentry); name 142 lib/common/utils.c crm_trace("User %s has uid=%d gid=%d", name, pwentry->pw_uid, pwentry->pw_gid); name 146 lib/common/utils.c crm_info("User %s lookup: %s", name, pcmk_strerror(rc)); name 410 lib/common/utils.c pcmk__daemonize(const char *name, const char *pidfile) name 416 lib/common/utils.c rc = pcmk__pidfile_matches(pidfile, 1, name, &pid); name 419 lib/common/utils.c name, (long long) pid, pidfile); name 421 lib/common/utils.c name, (long long) pid, pidfile); name 427 lib/common/utils.c fprintf(stderr, "%s: could not start daemon\n", name); name 435 lib/common/utils.c rc = pcmk__lock_pidfile(pidfile, name); name 438 lib/common/utils.c pidfile, name, pcmk_rc_str(rc), rc); name 440 lib/common/utils.c pidfile, name, pcmk_rc_str(rc), rc); name 232 lib/common/xml.c if (node->type != XML_DOCUMENT_NODE || node->name == NULL name 233 lib/common/xml.c || node->name[0] != ' ') { name 343 lib/common/xml.c const xmlChar *name = pIter->name; name 349 lib/common/xml.c xml_remove_prop(xml, (const char *)name); name 450 lib/common/xml.c const char *name = "NULL"; name 453 lib/common/xml.c name = crm_element_name(root); name 463 lib/common/xml.c if (strcmp((const char *)a_child->name, search_path) == 0) { name 470 lib/common/xml.c crm_warn("Could not find %s in %s.", search_path, name); name 472 lib/common/xml.c crm_trace("Could not find %s in %s.", search_path, name); name 505 lib/common/xml.c if (pcmk__str_eq(node_name, (const char *) (child->name), name 534 lib/common/xml.c const char *p_name = (const char *)pIter->name; name 552 lib/common/xml.c const char *p_name = (const char *)pIter->name; name 564 lib/common/xml.c expand_plus_plus(xmlNode * target, const char *name, const char *value) name 573 lib/common/xml.c if (value == NULL || name == NULL) { name 577 lib/common/xml.c old_value = crm_element_value(target, name); name 583 lib/common/xml.c } else if (strstr(value, name) != value) { name 587 lib/common/xml.c name_len = strlen(name); name 612 lib/common/xml.c crm_xml_add_int(target, name, int_value); name 620 lib/common/xml.c crm_xml_add(target, name, value); name 655 lib/common/xml.c add_node_nocopy(xmlNode * parent, const char *name, xmlNode * child) name 663 lib/common/xml.c create_xml_node(xmlNode * parent, const char *name) name 668 lib/common/xml.c if (pcmk__str_empty(name)) { name 669 lib/common/xml.c CRM_CHECK(name != NULL && name[0] == 0, return NULL); name 675 lib/common/xml.c node = xmlNewDocRawNode(doc, NULL, (pcmkXmlStr) name, NULL); name 680 lib/common/xml.c node = xmlNewDocRawNode(doc, NULL, (pcmkXmlStr) name, NULL); name 688 lib/common/xml.c pcmk_create_xml_text_node(xmlNode * parent, const char *name, const char *content) name 690 lib/common/xml.c xmlNode *node = create_xml_node(parent, name); name 1415 lib/common/xml.c p_name = (const char *)attr->name; name 1428 lib/common/xml.c const char *name = NULL; name 1438 lib/common/xml.c name = crm_element_name(data); name 1449 lib/common/xml.c buffer_print(buffer, max, offset, "<%s", name); name 1454 lib/common/xml.c const char *p_name = (const char *)pIter->name; name 1514 lib/common/xml.c buffer_print(buffer, max, offset, "</%s>", name); name 1570 lib/common/xml.c const char *aname = (const char*)pIter->name; name 1690 lib/common/xml.c if (!pcmk__xa_filterable((const char *) (xIter->name))) { name 1699 lib/common/xml.c const char *name = NULL; name 1715 lib/common/xml.c name = crm_element_name(data); name 1716 lib/common/xml.c CRM_ASSERT(name != NULL); name 1719 lib/common/xml.c buffer_print(*buffer, *max, *offset, "<%s", name); name 1750 lib/common/xml.c buffer_print(*buffer, *max, *offset, "</%s>", name); name 2019 lib/common/xml.c xml_remove_prop(xmlNode * obj, const char *name) name 2022 lib/common/xml.c crm_trace("Cannot remove %s from %s", name, obj->name); name 2027 lib/common/xml.c xmlAttr *attr = xmlHasProp(obj, (pcmkXmlStr) name); name 2033 lib/common/xml.c xmlUnsetProp(obj, (pcmkXmlStr) name); name 2136 lib/common/xml.c old_attr->name, p_old, p_new, element); name 2159 lib/common/xml.c xmlAttr *new_attr = xmlHasProp(new_xml, attr_iter->name); name 2160 lib/common/xml.c const char *name = (const char *) attr_iter->name; name 2161 lib/common/xml.c const char *old_value = crm_element_value(old_xml, name); name 2165 lib/common/xml.c mark_attr_deleted(new_xml, (const char *) old_xml->name, name, name 2172 lib/common/xml.c const char *new_value = crm_element_value(new_xml, name); name 2178 lib/common/xml.c mark_attr_changed(new_xml, (const char *) old_xml->name, name, name 2183 lib/common/xml.c mark_attr_moved(new_xml, (const char *) old_xml->name, name 2205 lib/common/xml.c const char *attr_name = (const char *) new_attr->name; name 2209 lib/common/xml.c new_xml->name); name 2218 lib/common/xml.c xmlUnsetProp(new_xml, new_attr->name); name 2273 lib/common/xml.c new_child->name, (ID(new_child)? ID(new_child) : "<no id>"), name 2274 lib/common/xml.c p_old, p_new, new_parent->name); name 2376 lib/common/xml.c const char *name = crm_element_name(xml_node); name 2378 lib/common/xml.c if (pcmk__strcase_any_of(name, XML_TAG_RESOURCE_REF, XML_CIB_TAG_OBJ_REF, name 2384 lib/common/xml.c const char *p_name = (const char *)pIter->name; name 2564 lib/common/xml.c const char *p_name = (const char *)pIter->name; name 2687 lib/common/xml.c const char *p_name = (const char *)pIter->name; name 2750 lib/common/xml.c const char *name = NULL; name 2754 lib/common/xml.c name = crm_element_name(input); name 2755 lib/common/xml.c CRM_CHECK(name != NULL, return NULL); name 2757 lib/common/xml.c result = create_xml_node(parent, name); name 2777 lib/common/xml.c first_named_child(const xmlNode *parent, const char *name) name 2788 lib/common/xml.c if (pcmk__str_eq(name, (const char *)match->name, pcmk__str_null_matches)) { name 2806 lib/common/xml.c const char *name = crm_element_name(sibling); name 2809 lib/common/xml.c if (!strcmp(crm_element_name(match), name)) { name 280 lib/common/xpath.c "/%s[@id='%s']", (const char *) xml->name, id); name 281 lib/common/xpath.c } else if(xml->name) { name 283 lib/common/xpath.c "/%s", (const char *) xml->name); name 326 lib/fencing/st_client.c stonith_api_remove_device(stonith_t * st, int call_options, const char *name) name 333 lib/fencing/st_client.c crm_xml_add(data, XML_ATTR_ID, name); name 1462 lib/fencing/st_client.c stonith_api_signon(stonith_t * stonith, const char *name, int *stonith_fd) name 1466 lib/fencing/st_client.c const char *display_name = name? name : "client"; name 1509 lib/fencing/st_client.c crm_xml_add(hello, F_STONITH_CLIENTNAME, name); name 2186 lib/fencing/st_client.c stonith_api_connect_retry(stonith_t *st, const char *name, int max_attempts) name 2191 lib/fencing/st_client.c rc = st->cmds->connect(st, name, NULL); name 2273 lib/fencing/st_client.c char *name = (uname == NULL)? crm_itoa(nodeid) : strdup(uname); name 2276 lib/fencing/st_client.c stonith__set_call_options(opts, name, name 2279 lib/fencing/st_client.c stonith__set_call_options(opts, name, st_opt_cs_nodeid); name 2281 lib/fencing/st_client.c rc = st->cmds->fence(st, opts, name, action, timeout, 0); name 2282 lib/fencing/st_client.c free(name); name 2318 lib/fencing/st_client.c char *name = (uname == NULL)? crm_itoa(nodeid) : strdup(uname); name 2320 lib/fencing/st_client.c stonith__set_call_options(opts, name, st_opt_sync_call); name 2322 lib/fencing/st_client.c stonith__set_call_options(opts, name, st_opt_cs_nodeid); name 2324 lib/fencing/st_client.c rc = st->cmds->history(st, opts, name, &history, 120); name 2325 lib/fencing/st_client.c free(name); name 28 lib/lrmd/lrmd_alerts.c alert_key2param(lrmd_key_value_t *head, enum pcmk__alert_keys_e name, name 36 lib/lrmd/lrmd_alerts.c for (key = pcmk__alert_keys[name]; *key; key++) { name 44 lib/lrmd/lrmd_alerts.c alert_key2param_int(lrmd_key_value_t *head, enum pcmk__alert_keys_e name, name 49 lib/lrmd/lrmd_alerts.c head = alert_key2param(head, name, value_s); name 55 lib/lrmd/lrmd_alerts.c alert_key2param_ms(lrmd_key_value_t *head, enum pcmk__alert_keys_e name, name 60 lib/lrmd/lrmd_alerts.c head = alert_key2param(head, name, value_s); name 945 lib/lrmd/lrmd_client.c lrmd_handshake(lrmd_t * lrmd, const char *name) name 954 lib/lrmd/lrmd_client.c crm_xml_add(hello, F_LRMD_CLIENTNAME, name); name 1185 lib/lrmd/lrmd_client.c char *name; name 1245 lib/lrmd/lrmd_client.c name = crm_strdup_printf("pacemaker-remote-%s:%d", name 1250 lib/lrmd/lrmd_client.c mainloop_add_fd(name, G_PRIORITY_HIGH, native->sock, lrmd, &lrmd_tls_callbacks); name 1252 lib/lrmd/lrmd_client.c rc = lrmd_handshake(lrmd, name); name 1253 lib/lrmd/lrmd_client.c free(name); name 1338 lib/lrmd/lrmd_client.c char *name = crm_strdup_printf("pacemaker-remote-%s:%d", name 1343 lib/lrmd/lrmd_client.c mainloop_add_fd(name, G_PRIORITY_HIGH, native->sock, lrmd, &lrmd_tls_callbacks); name 1344 lib/lrmd/lrmd_client.c free(name); name 1351 lib/lrmd/lrmd_client.c lrmd_api_connect(lrmd_t * lrmd, const char *name, int *fd) name 1370 lib/lrmd/lrmd_client.c rc = lrmd_handshake(lrmd, name); name 1377 lib/lrmd/lrmd_client.c lrmd_api_connect_async(lrmd_t * lrmd, const char *name, int timeout) name 1388 lib/lrmd/lrmd_client.c rc = lrmd_api_connect(lrmd, name, NULL); name 229 lib/lrmd/proxy_common.c const char *name = crm_element_value(msg, F_LRMD_IPC_CLIENT); name 272 lib/lrmd/proxy_common.c op, msg_id, proxy->node_name, crm_ipc_name(proxy->ipc), name, pcmk_strerror(rc), rc); name 283 lib/lrmd/proxy_common.c op, msg_id, proxy->node_name, crm_ipc_name(proxy->ipc), name); name 293 lib/lrmd/proxy_common.c op, msg_id, proxy->node_name, crm_ipc_name(proxy->ipc), name); name 298 lib/lrmd/proxy_common.c op, msg_id, proxy->node_name, crm_ipc_name(proxy->ipc), name, pcmk_strerror(rc), rc); name 301 lib/lrmd/proxy_common.c op, msg_id, proxy->node_name, crm_ipc_name(proxy->ipc), name); name 31 lib/pacemaker/pcmk_fence.c char *name; name 43 lib/pacemaker/pcmk_fence.c char *name = NULL; name 55 lib/pacemaker/pcmk_fence.c name = target; name 66 lib/pacemaker/pcmk_fence.c name, value, fence_level, name 70 lib/pacemaker/pcmk_fence.c name, value, fence_level); name 104 lib/pacemaker/pcmk_fence.c int rc = stonith_api_connect_retry(st, async_fence_data.name, 10); name 137 lib/pacemaker/pcmk_fence.c const char *name, unsigned int timeout, unsigned int tolerance, name 143 lib/pacemaker/pcmk_fence.c async_fence_data.name = strdup(name); name 157 lib/pacemaker/pcmk_fence.c free(async_fence_data.name); name 165 lib/pacemaker/pcmk_fence.c const char *name, unsigned int timeout, unsigned int tolerance, name 168 lib/pacemaker/pcmk_fence.c return pcmk__fence_action(st, target, action, name, timeout, tolerance, delay); name 437 lib/pacemaker/pcmk_sched_allocate.c if (pcmk__str_eq((const char *)rsc_op->name, XML_LRM_TAG_RSC_OP, pcmk__str_none)) { name 565 lib/pacemaker/pcmk_sched_allocate.c if (pcmk__str_eq((const char *)node_state->name, XML_CIB_TAG_STATE, name 592 lib/pacemaker/pcmk_sched_allocate.c if (pcmk__str_eq((const char *)rsc_entry->name, XML_LRM_TAG_RESOURCE, pcmk__str_none)) { name 1476 lib/pacemaker/pcmk_sched_clone.c char *name = NULL; name 1481 lib/pacemaker/pcmk_sched_clone.c name = crm_meta_name(XML_RSC_ATTR_UNIQUE); name 1482 lib/pacemaker/pcmk_sched_clone.c crm_xml_add(xml, name, pe__rsc_bool_str(rsc, pe_rsc_unique)); name 1483 lib/pacemaker/pcmk_sched_clone.c free(name); name 1485 lib/pacemaker/pcmk_sched_clone.c name = crm_meta_name(XML_RSC_ATTR_NOTIFY); name 1486 lib/pacemaker/pcmk_sched_clone.c crm_xml_add(xml, name, pe__rsc_bool_str(rsc, pe_rsc_notify)); name 1487 lib/pacemaker/pcmk_sched_clone.c free(name); name 1489 lib/pacemaker/pcmk_sched_clone.c name = crm_meta_name(XML_RSC_ATTR_INCARNATION_MAX); name 1490 lib/pacemaker/pcmk_sched_clone.c crm_xml_add_int(xml, name, clone_data->clone_max); name 1491 lib/pacemaker/pcmk_sched_clone.c free(name); name 1493 lib/pacemaker/pcmk_sched_clone.c name = crm_meta_name(XML_RSC_ATTR_INCARNATION_NODEMAX); name 1494 lib/pacemaker/pcmk_sched_clone.c crm_xml_add_int(xml, name, clone_data->clone_node_max); name 1495 lib/pacemaker/pcmk_sched_clone.c free(name); name 1498 lib/pacemaker/pcmk_sched_clone.c name = crm_meta_name(XML_RSC_ATTR_PROMOTED_MAX); name 1499 lib/pacemaker/pcmk_sched_clone.c crm_xml_add_int(xml, name, clone_data->promoted_max); name 1500 lib/pacemaker/pcmk_sched_clone.c free(name); name 1502 lib/pacemaker/pcmk_sched_clone.c name = crm_meta_name(XML_RSC_ATTR_PROMOTED_NODEMAX); name 1503 lib/pacemaker/pcmk_sched_clone.c crm_xml_add_int(xml, name, clone_data->promoted_node_max); name 1504 lib/pacemaker/pcmk_sched_clone.c free(name); name 1509 lib/pacemaker/pcmk_sched_clone.c name = crm_meta_name(XML_RSC_ATTR_MASTER_MAX); name 1510 lib/pacemaker/pcmk_sched_clone.c crm_xml_add_int(xml, name, clone_data->promoted_max); name 1511 lib/pacemaker/pcmk_sched_clone.c free(name); name 1513 lib/pacemaker/pcmk_sched_clone.c name = crm_meta_name(XML_RSC_ATTR_MASTER_NODEMAX); name 1514 lib/pacemaker/pcmk_sched_clone.c crm_xml_add_int(xml, name, clone_data->promoted_node_max); name 1515 lib/pacemaker/pcmk_sched_clone.c free(name); name 537 lib/pacemaker/pcmk_sched_constraints.c if (!pcmk__str_eq((const char *)set->name, XML_CONS_TAG_RSC_SET, pcmk__str_casei)) { name 548 lib/pacemaker/pcmk_sched_constraints.c if (!pcmk__str_eq((const char *)xml_rsc->name, XML_TAG_RESOURCE_REF, pcmk__str_casei)) { name 986 lib/pacemaker/pcmk_sched_constraints.c if (pcmk__str_eq((const char *)xml_rsc->name, XML_TAG_RESOURCE_REF, pcmk__str_none)) { name 1016 lib/pacemaker/pcmk_sched_constraints.c if (pcmk__str_eq((const char *)set->name, XML_CONS_TAG_RSC_SET, pcmk__str_none)) { name 1730 lib/pacemaker/pcmk_sched_constraints.c if (pcmk__str_eq((const char *)xml_rsc->name, XML_TAG_RESOURCE_REF, pcmk__str_none)) { name 1910 lib/pacemaker/pcmk_sched_constraints.c if (!pcmk__str_eq((const char *)xml_rsc->name, XML_TAG_RESOURCE_REF, pcmk__str_none)) { name 1926 lib/pacemaker/pcmk_sched_constraints.c if (!pcmk__str_eq((const char *)xml_rsc_2->name, XML_TAG_RESOURCE_REF, pcmk__str_none)) { name 1950 lib/pacemaker/pcmk_sched_constraints.c if (pcmk__str_eq((const char *)xml_rsc->name, XML_TAG_RESOURCE_REF, pcmk__str_none)) { name 1961 lib/pacemaker/pcmk_sched_constraints.c if (pcmk__str_eq((const char *)xml_rsc->name, XML_TAG_RESOURCE_REF, pcmk__str_none)) { name 1975 lib/pacemaker/pcmk_sched_constraints.c if (pcmk__str_eq((const char *)xml_rsc->name, XML_TAG_RESOURCE_REF, pcmk__str_none)) { name 1988 lib/pacemaker/pcmk_sched_constraints.c if (pcmk__str_eq((const char *)xml_rsc->name, XML_TAG_RESOURCE_REF, pcmk__str_none)) { name 2003 lib/pacemaker/pcmk_sched_constraints.c if (pcmk__str_eq((const char *)xml_rsc->name, XML_TAG_RESOURCE_REF, pcmk__str_none)) { name 2015 lib/pacemaker/pcmk_sched_constraints.c if (pcmk__str_eq((const char *)xml_rsc->name, XML_TAG_RESOURCE_REF, pcmk__str_none)) { name 2025 lib/pacemaker/pcmk_sched_constraints.c if (pcmk__str_eq((const char *)xml_rsc->name, XML_TAG_RESOURCE_REF, pcmk__str_none)) { name 2034 lib/pacemaker/pcmk_sched_constraints.c if (pcmk__str_eq((const char *)xml_rsc_2->name, XML_TAG_RESOURCE_REF, pcmk__str_none)) { name 2204 lib/pacemaker/pcmk_sched_constraints.c if (pcmk__str_eq((const char *)set->name, XML_CONS_TAG_RSC_SET, pcmk__str_none)) { name 2312 lib/pacemaker/pcmk_sched_constraints.c if (pcmk__str_eq((const char *)xml_rsc->name, XML_TAG_RESOURCE_REF, pcmk__str_none)) { name 2328 lib/pacemaker/pcmk_sched_constraints.c if (pcmk__str_eq((const char *)xml_rsc->name, XML_TAG_RESOURCE_REF, pcmk__str_none)) { name 2349 lib/pacemaker/pcmk_sched_constraints.c if (pcmk__str_eq((const char *)xml_rsc->name, XML_TAG_RESOURCE_REF, pcmk__str_none)) { name 2358 lib/pacemaker/pcmk_sched_constraints.c if (pcmk__str_eq((const char *)xml_rsc_with->name, XML_TAG_RESOURCE_REF, pcmk__str_none)) { name 2395 lib/pacemaker/pcmk_sched_constraints.c if (pcmk__str_eq((const char *)xml_rsc->name, XML_TAG_RESOURCE_REF, pcmk__str_none)) { name 2409 lib/pacemaker/pcmk_sched_constraints.c if (pcmk__str_eq((const char *)xml_rsc->name, XML_TAG_RESOURCE_REF, pcmk__str_none)) { name 2423 lib/pacemaker/pcmk_sched_constraints.c if (pcmk__str_eq((const char *)xml_rsc->name, XML_TAG_RESOURCE_REF, pcmk__str_none)) { name 2433 lib/pacemaker/pcmk_sched_constraints.c if (pcmk__str_eq((const char *)xml_rsc->name, XML_TAG_RESOURCE_REF, pcmk__str_none)) { name 2443 lib/pacemaker/pcmk_sched_constraints.c if (pcmk__str_eq((const char *)xml_rsc->name, XML_TAG_RESOURCE_REF, pcmk__str_none)) { name 2452 lib/pacemaker/pcmk_sched_constraints.c if (pcmk__str_eq((const char *)xml_rsc_2->name, XML_TAG_RESOURCE_REF, pcmk__str_none)) { name 2692 lib/pacemaker/pcmk_sched_constraints.c if (pcmk__str_eq((const char *)set->name, XML_CONS_TAG_RSC_SET, pcmk__str_none)) { name 3048 lib/pacemaker/pcmk_sched_constraints.c if (pcmk__str_eq((const char *)set->name, XML_CONS_TAG_RSC_SET, pcmk__str_none)) { name 665 lib/pacemaker/pcmk_sched_native.c is_op_dup(pe_resource_t *rsc, const char *name, guint interval_ms) name 677 lib/pacemaker/pcmk_sched_native.c if (pcmk__str_eq((const char *)operation->name, "op", pcmk__str_none)) { name 679 lib/pacemaker/pcmk_sched_native.c if (!pcmk__str_eq(value, name, pcmk__str_casei)) { name 705 lib/pacemaker/pcmk_sched_native.c op_cannot_recur(const char *name) name 707 lib/pacemaker/pcmk_sched_native.c return pcmk__strcase_any_of(name, RSC_STOP, RSC_START, RSC_DEMOTE, RSC_PROMOTE, NULL); name 715 lib/pacemaker/pcmk_sched_native.c const char *name = NULL; name 739 lib/pacemaker/pcmk_sched_native.c name = crm_element_value(operation, "name"); name 740 lib/pacemaker/pcmk_sched_native.c if (is_op_dup(rsc, name, interval_ms)) { name 742 lib/pacemaker/pcmk_sched_native.c ID(operation), interval_ms, name); name 746 lib/pacemaker/pcmk_sched_native.c if (op_cannot_recur(name)) { name 748 lib/pacemaker/pcmk_sched_native.c ID(operation), name); name 752 lib/pacemaker/pcmk_sched_native.c key = pcmk__op_key(rsc->id, name, interval_ms); name 805 lib/pacemaker/pcmk_sched_native.c cancel_op = pe_cancel_op(rsc, name, interval_ms, node, data_set); name 839 lib/pacemaker/pcmk_sched_native.c mon = custom_action(rsc, key, name, node, is_optional, TRUE, data_set); name 902 lib/pacemaker/pcmk_sched_native.c if (pcmk__str_eq((const char *)operation->name, "op", pcmk__str_none)) { name 914 lib/pacemaker/pcmk_sched_native.c const char *name = NULL; name 935 lib/pacemaker/pcmk_sched_native.c name = crm_element_value(operation, "name"); name 936 lib/pacemaker/pcmk_sched_native.c if (is_op_dup(rsc, name, interval_ms)) { name 938 lib/pacemaker/pcmk_sched_native.c ID(operation), interval_ms, name); name 942 lib/pacemaker/pcmk_sched_native.c if (op_cannot_recur(name)) { name 944 lib/pacemaker/pcmk_sched_native.c ID(operation), name); name 948 lib/pacemaker/pcmk_sched_native.c key = pcmk__op_key(rsc->id, name, interval_ms); name 976 lib/pacemaker/pcmk_sched_native.c cancel_op = pe_cancel_op(rsc, name, interval_ms, node, data_set); name 1022 lib/pacemaker/pcmk_sched_native.c stopped_mon = custom_action(rsc, strdup(key), name, stop_node, is_optional, TRUE, data_set); name 1115 lib/pacemaker/pcmk_sched_native.c if (pcmk__str_eq((const char *)operation->name, "op", pcmk__str_none)) { name 3474 lib/pacemaker/pcmk_sched_native.c char *name = NULL; name 3476 lib/pacemaker/pcmk_sched_native.c name = crm_meta_name(XML_RSC_ATTR_INCARNATION); name 3477 lib/pacemaker/pcmk_sched_native.c crm_xml_add(xml, name, value); name 3478 lib/pacemaker/pcmk_sched_native.c free(name); name 3483 lib/pacemaker/pcmk_sched_native.c char *name = NULL; name 3485 lib/pacemaker/pcmk_sched_native.c name = crm_meta_name(XML_RSC_ATTR_REMOTE_NODE); name 3486 lib/pacemaker/pcmk_sched_native.c crm_xml_add(xml, name, value); name 3487 lib/pacemaker/pcmk_sched_native.c free(name); name 199 lib/pacemaker/pcmk_sched_notif.c add_hash_param(action->meta, nvpair->name, nvpair->value); name 461 lib/pacemaker/pcmk_sched_promotable.c lookup_promotion_score(pe_resource_t *rsc, const pe_node_t *node, const char *name) name 465 lib/pacemaker/pcmk_sched_promotable.c if (node && name) { name 466 lib/pacemaker/pcmk_sched_promotable.c char *attr_name = crm_strdup_printf("master-%s", name); name 477 lib/pacemaker/pcmk_sched_promotable.c char *name = rsc->id; name 536 lib/pacemaker/pcmk_sched_promotable.c name = rsc->clone_name; name 539 lib/pacemaker/pcmk_sched_promotable.c attr_value = lookup_promotion_score(rsc, node, name); name 541 lib/pacemaker/pcmk_sched_promotable.c name, node->details->uname, crm_str(attr_value)); name 548 lib/pacemaker/pcmk_sched_promotable.c name = clone_strip(rsc->id); name 549 lib/pacemaker/pcmk_sched_promotable.c if (strcmp(rsc->id, name)) { name 550 lib/pacemaker/pcmk_sched_promotable.c attr_value = lookup_promotion_score(rsc, node, name); name 552 lib/pacemaker/pcmk_sched_promotable.c name, node->details->uname, crm_str(attr_value)); name 554 lib/pacemaker/pcmk_sched_promotable.c free(name); name 52 lib/pacemaker/pcmk_sched_transition.c inject_transient_attr(xmlNode * cib_node, const char *name, const char *value) name 61 lib/pacemaker/pcmk_sched_transition.c name, value, node_path, ID(cib_node)); name 76 lib/pacemaker/pcmk_sched_transition.c crm_create_nvpair_xml(instance_attrs, NULL, name, value); name 90 lib/pacemaker/pcmk_sched_transition.c char *name = NULL; name 93 lib/pacemaker/pcmk_sched_transition.c name = pcmk__failcount_name(resource, task, interval_ms); name 94 lib/pacemaker/pcmk_sched_transition.c inject_transient_attr(cib_node, name, "value++"); name 95 lib/pacemaker/pcmk_sched_transition.c free(name); name 97 lib/pacemaker/pcmk_sched_transition.c name = pcmk__lastfailure_name(resource, task, interval_ms); name 98 lib/pacemaker/pcmk_sched_transition.c inject_transient_attr(cib_node, name, now); name 99 lib/pacemaker/pcmk_sched_transition.c free(name); name 742 lib/pacemaker/pcmk_sched_utils.c const char *name = XML_LRM_ATTR_MIGRATE_SOURCE; name 744 lib/pacemaker/pcmk_sched_utils.c crm_xml_add(xml_op, name, crm_meta_value(op->params, name)); name 746 lib/pacemaker/pcmk_sched_utils.c name = XML_LRM_ATTR_MIGRATE_TARGET; name 747 lib/pacemaker/pcmk_sched_utils.c crm_xml_add(xml_op, name, crm_meta_value(op->params, name)); name 113 lib/pacemaker/pcmk_trans_unpack.c if (pcmk__str_eq((const char *)action_set->name, "action_set", name 139 lib/pacemaker/pcmk_trans_unpack.c if (pcmk__str_eq((const char *)inputs->name, "inputs", pcmk__str_none)) { name 227 lib/pacemaker/pcmk_trans_unpack.c if (pcmk__str_eq((const char *)synapse->name, "synapse", pcmk__str_none)) { name 299 lib/pacemaker/pcmk_trans_unpack.c const char *name = NULL; name 321 lib/pacemaker/pcmk_trans_unpack.c while (g_hash_table_iter_next(&iter, (void **)&name, (void **)&value)) { name 322 lib/pacemaker/pcmk_trans_unpack.c g_hash_table_insert(op->params, strdup(name), strdup(value)); name 84 lib/pengine/bundle.c create_resource(const char *name, const char *provider, const char *kind) name 88 lib/pengine/bundle.c crm_xml_add(rsc, XML_ATTR_ID, name); name 1183 lib/pengine/bundle.c : (const char *)xml_resource->name)); name 1186 lib/pengine/bundle.c crm_xml_set_id(xml_set, "%s-%s-meta", bundle_data->prefix, xml_resource->name); name 188 lib/pengine/clone.c if (pcmk__str_any_of((const char *)a_child->name, XML_CIB_TAG_RESOURCE, XML_CIB_TAG_GROUP, NULL)) { name 312 lib/pengine/common.c pe_pref(GHashTable * options, const char *name) name 314 lib/pengine/common.c return pcmk__cluster_option(options, pe_opts, DIMOF(pe_opts), name); name 573 lib/pengine/common.c add_hash_param(GHashTable * hash, const char *name, const char *value) name 577 lib/pengine/common.c crm_trace("adding: name=%s value=%s", crm_str(name), crm_str(value)); name 578 lib/pengine/common.c if (name == NULL || value == NULL) { name 584 lib/pengine/common.c } else if (g_hash_table_lookup(hash, name) == NULL) { name 585 lib/pengine/common.c g_hash_table_insert(hash, strdup(name), strdup(value)); name 590 lib/pengine/common.c pe_node_attribute_calculated(const pe_node_t *node, const char *name, name 599 lib/pengine/common.c return g_hash_table_lookup(node->details->attrs, name); name 604 lib/pengine/common.c return g_hash_table_lookup(node->details->attrs, name); name 619 lib/pengine/common.c pe_rsc_trace(rsc, "%s: Looking for %s on the container host %s", rsc->id, name, host->details->uname); name 620 lib/pengine/common.c return g_hash_table_lookup(host->details->attrs, name); name 624 lib/pengine/common.c rsc->id, name, node->details->remote_rsc->container->id); name 629 lib/pengine/common.c pe_node_attribute_raw(pe_node_t *node, const char *name) name 634 lib/pengine/common.c return g_hash_table_lookup(node->details->attrs, name); name 71 lib/pengine/complex.c get_resource_type(const char *name) name 73 lib/pengine/complex.c if (pcmk__str_eq(name, XML_CIB_TAG_RESOURCE, pcmk__str_casei)) { name 76 lib/pengine/complex.c } else if (pcmk__str_eq(name, XML_CIB_TAG_GROUP, pcmk__str_casei)) { name 79 lib/pengine/complex.c } else if (pcmk__str_eq(name, XML_CIB_TAG_INCARNATION, pcmk__str_casei)) { name 82 lib/pengine/complex.c } else if (pcmk__str_eq(name, XML_CIB_TAG_MASTER, pcmk__str_casei)) { name 86 lib/pengine/complex.c } else if (pcmk__str_eq(name, XML_CIB_TAG_CONTAINER, pcmk__str_casei)) { name 126 lib/pengine/complex.c const char *prop_name = (const char *)xIter->name; name 210 lib/pengine/complex.c const char *name = crm_element_value(op, "name"); name 219 lib/pengine/complex.c key = crm_strdup_printf("%s-%s", name, role); name 271 lib/pengine/complex.c xmlNodeSetName(new_xml, xml_obj->name); name 287 lib/pengine/complex.c if (pcmk__str_eq((const char *)new_child->name, "operations", pcmk__str_none)) { name 179 lib/pengine/failcounts.c const char *name = (rsc->clone_name? rsc->clone_name : rsc->id); name 181 lib/pengine/failcounts.c return pcmk_is_set(rsc->flags, pe_rsc_unique)? strdup(name) : clone_strip(name); name 55 lib/pengine/group.c if (pcmk__str_eq((const char *)xml_native_rsc->name, name 316 lib/pengine/native.c native_parameter(pe_resource_t * rsc, pe_node_t * node, gboolean create, const char *name, name 325 lib/pengine/native.c CRM_CHECK(name != NULL && strlen(name) != 0, return NULL); name 327 lib/pengine/native.c pe_rsc_trace(rsc, "Looking up %s in %s", name, rsc->id); name 345 lib/pengine/native.c value = g_hash_table_lookup(hash, name); name 348 lib/pengine/native.c value = g_hash_table_lookup(rsc->meta, name); name 574 lib/pengine/native.c native_output_string(pe_resource_t *rsc, const char *name, pe_node_t *node, name 584 lib/pengine/native.c CRM_CHECK(name != NULL, name = "unknown"); name 601 lib/pengine/native.c outstr = g_string_sized_new(strlen(name) + strlen(class) + strlen(kind) name 607 lib/pengine/native.c g_string_printf(outstr, "%s\t(%s%s%s:%s):\t", name, class, name 718 lib/pengine/native.c const char *name, pe_node_t *node, long options) name 761 lib/pengine/native.c gchar *s = native_output_string(rsc, name, node, options, target_role, name 810 lib/pengine/native.c const char *name, pe_node_t *node, long options) name 829 lib/pengine/native.c gchar *s = native_output_string(rsc, name, node, options, target_role, name 876 lib/pengine/native.c common_print(pe_resource_t * rsc, const char *pre_text, const char *name, pe_node_t *node, long options, void *print_data) name 926 lib/pengine/native.c gchar *resource_s = native_output_string(rsc, name, node, options, name 1234 lib/pengine/pe_output.c const char *name = va_arg(args, const char *); name 1244 lib/pengine/pe_output.c out->list_item(out, NULL, "%-32s\t: %-10s\t: Connectivity is lost", name, value); name 1246 lib/pengine/pe_output.c out->list_item(out, NULL, "%-32s\t: %-10s\t: Connectivity is degraded (Expected=%d)", name, value, expected_score); name 1248 lib/pengine/pe_output.c out->list_item(out, NULL, "%-32s\t: %-10s", name, value); name 1251 lib/pengine/pe_output.c out->list_item(out, NULL, "%-32s\t: %-10s", name, value); name 1260 lib/pengine/pe_output.c const char *name = va_arg(args, const char *); name 1267 lib/pengine/pe_output.c char *s = crm_strdup_printf("%s: %s", name, value); name 1281 lib/pengine/pe_output.c out->list_item(out, NULL, "%s: %s", name, value); name 1290 lib/pengine/pe_output.c const char *name = va_arg(args, const char *); name 1296 lib/pengine/pe_output.c xmlSetProp(node, (pcmkXmlStr) "name", (pcmkXmlStr) name); name 266 lib/pengine/rules.c #define CHECK_ONE(spec, name, var) do { \ name 267 lib/pengine/rules.c int subpart_rc = check_one(spec, name, var); \ name 406 lib/pengine/rules.c const char *name; // This block's ID name 425 lib/pengine/rules.c if (pcmk__str_eq(pair_a->name, pair_a->special_name, pcmk__str_casei)) { name 428 lib/pengine/rules.c } else if (pcmk__str_eq(pair_b->name, pair_a->special_name, pcmk__str_casei)) { name 443 lib/pengine/rules.c const char *name = NULL; name 449 lib/pengine/rules.c name = crm_element_name(list->children); name 450 lib/pengine/rules.c if (pcmk__str_eq(XML_TAG_ATTRS, name, pcmk__str_casei)) { name 457 lib/pengine/rules.c if (pcmk__str_eq((const char *)an_attr->name, XML_CIB_TAG_NVPAIR, pcmk__str_none)) { name 460 lib/pengine/rules.c name = crm_element_value(an_attr, XML_NVPAIR_ATTR_NAME); name 461 lib/pengine/rules.c if (name == NULL) { name 462 lib/pengine/rules.c name = crm_element_value(ref_nvpair, XML_NVPAIR_ATTR_NAME); name 470 lib/pengine/rules.c if (name == NULL || value == NULL) { name 474 lib/pengine/rules.c old_value = g_hash_table_lookup(hash, name); name 479 lib/pengine/rules.c name, value); name 480 lib/pengine/rules.c g_hash_table_remove(hash, name); name 485 lib/pengine/rules.c crm_trace("Setting %s=\"%s\"", name, value); name 486 lib/pengine/rules.c g_hash_table_insert(hash, strdup(name), strdup(value)); name 490 lib/pengine/rules.c name, value, old_value); name 491 lib/pengine/rules.c g_hash_table_replace(hash, strdup(name), strdup(value)); name 507 lib/pengine/rules.c if (pcmk__str_eq((const char *)rule->name, XML_TAG_RULE, name 586 lib/pengine/rules.c pair->name, pair->score, name 632 lib/pengine/rules.c if (pcmk__str_eq(set_name, (const char *)attr_set->name, pcmk__str_null_matches)) { name 640 lib/pengine/rules.c pair->name = ID(attr_set); name 1258 lib/pengine/rules.c const char *name = crm_element_value(expr, XML_NVPAIR_ATTR_NAME); name 1280 lib/pengine/rules.c if (!pcmk__str_eq(name, rule_data->op_data->op_name, pcmk__str_none)) { name 1281 lib/pengine/rules.c crm_trace("Name doesn't match: %s != %s", name, rule_data->op_data->op_name); name 84 lib/pengine/rules_alerts.c const char *name = crm_element_value(child, XML_NVPAIR_ATTR_NAME); name 90 lib/pengine/rules_alerts.c g_hash_table_insert(entry->envvars, strdup(name), strdup(value)); name 92 lib/pengine/rules_alerts.c entry->id, name, value); name 472 lib/pengine/unpack.c if (!pcmk__str_eq((const char *)attr_set->name, XML_TAG_META_SETS, name 480 lib/pengine/unpack.c const char *name = crm_element_value(attr, XML_NVPAIR_ATTR_NAME); name 482 lib/pengine/unpack.c if (pcmk__str_eq(name, XML_RSC_ATTR_REMOTE_NODE, pcmk__str_casei)) { name 484 lib/pengine/unpack.c } else if (pcmk__str_eq(name, "remote-addr", pcmk__str_casei)) { name 486 lib/pengine/unpack.c } else if (pcmk__str_eq(name, "remote-port", pcmk__str_casei)) { name 488 lib/pengine/unpack.c } else if (pcmk__str_eq(name, "remote-connect-timeout", pcmk__str_casei)) { name 490 lib/pengine/unpack.c } else if (pcmk__str_eq(name, "remote-allow-migrate", pcmk__str_casei)) { name 492 lib/pengine/unpack.c } else if (pcmk__str_eq(name, XML_RSC_ATTR_MANAGED, pcmk__str_casei)) { name 559 lib/pengine/unpack.c if (pcmk__str_eq((const char *)xml_obj->name, XML_CIB_TAG_NODE, pcmk__str_none)) { name 668 lib/pengine/unpack.c if (pcmk__str_eq((const char *)xml_obj->name, XML_CIB_TAG_RESOURCE, pcmk__str_none)) { name 686 lib/pengine/unpack.c if (pcmk__str_eq((const char *)xml_obj->name, XML_CIB_TAG_GROUP, pcmk__str_none)) { name 788 lib/pengine/unpack.c if (pcmk__str_eq((const char *)xml_obj->name, XML_CIB_TAG_RSC_TEMPLATE, pcmk__str_none)) { name 850 lib/pengine/unpack.c if (!pcmk__str_eq((const char *)xml_tag->name, XML_CIB_TAG_TAG, pcmk__str_none)) { name 865 lib/pengine/unpack.c if (!pcmk__str_eq((const char *)xml_obj_ref->name, XML_CIB_TAG_OBJ_REF, pcmk__str_none)) { name 913 lib/pengine/unpack.c const char *prop_name = (const char *)xIter->name; name 959 lib/pengine/unpack.c if (!pcmk__str_eq((const char *)xml_obj->name, XML_CIB_TAG_TICKET_STATE, pcmk__str_none)) { name 975 lib/pengine/unpack.c if (!pcmk__str_eq((const char *)state->name, XML_CIB_TAG_STATE, pcmk__str_none)) { name 1046 lib/pengine/unpack.c if (!pcmk__str_eq((const char *)state->name, XML_CIB_TAG_STATE, pcmk__str_none)) { name 1147 lib/pengine/unpack.c if (pcmk__str_eq((const char *)state->name, XML_CIB_TAG_TICKETS, pcmk__str_none)) { name 1150 lib/pengine/unpack.c } else if (pcmk__str_eq((const char *)state->name, XML_CIB_TAG_STATE, pcmk__str_none)) { name 2293 lib/pengine/unpack.c if (pcmk__str_eq((const char *)rsc_op->name, XML_LRM_TAG_RSC_OP, name 2381 lib/pengine/unpack.c if (!pcmk__str_eq((const char *)rsc_entry->name, XML_LRM_TAG_RESOURCE, pcmk__str_casei)) { name 2420 lib/pengine/unpack.c if (pcmk__str_eq((const char *)rsc_entry->name, XML_LRM_TAG_RESOURCE, pcmk__str_none)) { name 3912 lib/pengine/unpack.c if (pcmk__str_eq((const char *)rsc_op->name, XML_LRM_TAG_RSC_OP, name 3973 lib/pengine/unpack.c if (pcmk__str_eq((const char *)node_state->name, XML_CIB_TAG_STATE, pcmk__str_none)) { name 4006 lib/pengine/unpack.c if (pcmk__str_eq((const char *)lrm_rsc->name, name 709 lib/pengine/utils.c const char *name = NULL; name 734 lib/pengine/utils.c if (!pcmk__str_eq((const char *)operation->name, "op", pcmk__str_none)) { name 737 lib/pengine/utils.c name = crm_element_value(operation, "name"); name 746 lib/pengine/utils.c } else if (!pcmk__str_eq(name, "monitor", pcmk__str_casei) || !pcmk__str_eq(role, "Master", pcmk__str_casei)) { name 760 lib/pengine/utils.c name = crm_element_value(action->op_entry, "name"); name 765 lib/pengine/utils.c if (!pcmk__str_eq(name, CRMD_ACTION_PROMOTE, pcmk__str_casei) name 766 lib/pengine/utils.c && (!pcmk__str_eq(name, CRMD_ACTION_STATUS, pcmk__str_casei) name 771 lib/pengine/utils.c "allowed for it", action->rsc->id, name); name 784 lib/pengine/utils.c const char *name = NULL; name 794 lib/pengine/utils.c if (pcmk__str_eq((const char *)operation->name, "op", pcmk__str_none)) { name 795 lib/pengine/utils.c name = crm_element_value(operation, "name"); name 802 lib/pengine/utils.c if (!pcmk__str_eq(name, RSC_STATUS, pcmk__str_casei)) { name 952 lib/pengine/utils.c const char *name = crm_element_value(attr, XML_NVPAIR_ATTR_NAME); name 955 lib/pengine/utils.c if (pcmk__str_eq(name, XML_OP_ATTR_START_DELAY, pcmk__str_casei)) { name 959 lib/pengine/utils.c } else if (pcmk__str_eq(name, XML_OP_ATTR_ORIGIN, pcmk__str_casei)) { name 968 lib/pengine/utils.c } else if (pcmk__str_eq(name, XML_ATTR_TIMEOUT, pcmk__str_casei)) { name 1067 lib/pengine/utils.c const char *prop_name = (const char *)xIter->name; name 1304 lib/pengine/utils.c const char *name = NULL; name 1315 lib/pengine/utils.c if (pcmk__str_eq((const char *)operation->name, "op", pcmk__str_none)) { name 1316 lib/pengine/utils.c name = crm_element_value(operation, "name"); name 1324 lib/pengine/utils.c match_key = pcmk__op_key(rsc->id, name, interval_ms); name 1331 lib/pengine/utils.c match_key = pcmk__op_key(rsc->clone_name, name, interval_ms); name 1480 lib/pengine/utils.c get_complex_task(pe_resource_t * rsc, const char *name, gboolean allow_non_atomic) name 1482 lib/pengine/utils.c enum action_tasks task = text2task(name); name 1493 lib/pengine/utils.c crm_trace("Folding %s back into its atomic counterpart for %s", name, rsc->id); name 1929 lib/pengine/utils.c get_pseudo_op(const char *name, pe_working_set_t * data_set) name 1934 lib/pengine/utils.c op = g_hash_table_lookup(data_set->singletons, name); name 1937 lib/pengine/utils.c op = custom_action(NULL, strdup(name), name, NULL, TRUE, TRUE, data_set); name 2001 lib/pengine/utils.c const char *prop_name = (const char *)xIter->name; name 2002 lib/pengine/utils.c char *name = crm_strdup_printf(" %s ", prop_name); name 2003 lib/pengine/utils.c char *match = strstr(param_string, name); name 2005 lib/pengine/utils.c free(name); name 384 lib/services/dbus.c error.name, error.message); name 567 lib/services/dbus.c typedef void (*property_callback_func)(const char *name, // Property name name 573 lib/services/dbus.c char *name; // Property name being queried name 585 lib/services/dbus.c free(data->name); name 601 lib/services/dbus.c data->object, data->name, error.message); name 611 lib/services/dbus.c data->object, data->name); name 620 lib/services/dbus.c "Unexpected variant type", data->object, data->name); name 630 lib/services/dbus.c data->object, data->name); name 636 lib/services/dbus.c "Too many arguments in reply", data->object, data->name); name 641 lib/services/dbus.c data->object, data->name, (value.str? value.str : "")); name 644 lib/services/dbus.c data->callback(data->name, (value.str? value.str : ""), data->userdata); name 695 lib/services/dbus.c const char *obj, const gchar * iface, const char *name, name 704 lib/services/dbus.c && (iface != NULL) && (name != NULL), return NULL); name 707 lib/services/dbus.c target, obj, name); name 713 lib/services/dbus.c "Unable to create message", obj, name); name 720 lib/services/dbus.c DBUS_TYPE_STRING, &name, name 723 lib/services/dbus.c "Could not append arguments", obj, name); name 731 lib/services/dbus.c obj, name); name 740 lib/services/dbus.c query_data->name = strdup(name); name 743 lib/services/dbus.c && (query_data->name != NULL), name 37 lib/services/pcmk-dbus.h DBusConnection *connection, const char *target, const char *obj, const gchar * iface, const char *name, name 38 lib/services/pcmk-dbus.h void (*callback)(const char *name, const char *value, void *userdata), void *userdata, name 165 lib/services/services.c resources_action_create(const char *name, const char *standard, name 178 lib/services/services.c if (pcmk__str_empty(name)) { name 184 lib/services/services.c crm_err("Cannot create operation for %s without resource class", name); name 191 lib/services/services.c crm_err("Cannot create operation for %s without provider", name); name 196 lib/services/services.c crm_err("Cannot create operation for %s without agent name", name); name 201 lib/services/services.c crm_err("Cannot create operation for %s without operation name", name); name 211 lib/services/services.c op->rsc = strdup(name); name 214 lib/services/services.c op->standard = expand_resource_class(name, standard, agent); name 218 lib/services/services.c op->id = pcmk__op_key(name, action, interval_ms); name 550 lib/services/services.c services_action_cancel(const char *name, const char *action, guint interval_ms) name 553 lib/services/services.c char *id = pcmk__op_key(name, action, interval_ms); name 617 lib/services/services.c services_action_kick(const char *name, const char *action, guint interval_ms) name 620 lib/services/services.c char *id = pcmk__op_key(name, action, interval_ms); name 276 lib/services/services_lsb.c services_action_create(const char *name, const char *action, name 279 lib/services/services_lsb.c return resources_action_create(name, PCMK_RESOURCE_CLASS_LSB, NULL, name, name 64 lib/services/services_nagios.c services__nagios_agent_exists(const char *name) name 70 lib/services/services_nagios.c if (name == NULL) { name 74 lib/services/services_nagios.c buf = crm_strdup_printf(NAGIOS_PLUGIN_DIR "/%s", name); name 89 lib/services/systemd.c method, error.message, error.name); name 126 lib/services/systemd.c systemd_get_property(const char *unit, const char *name, name 127 lib/services/systemd.c void (*callback)(const char *name, const char *value, void *userdata), name 132 lib/services/systemd.c name, callback, userdata, pending, timeout) name 158 lib/services/systemd.c systemd_unit_extension(const char *name) name 160 lib/services/systemd.c if (name) { name 161 lib/services/systemd.c const char *dot = strrchr(name, '.'); name 175 lib/services/systemd.c systemd_service_name(const char *name) name 177 lib/services/systemd.c if (name == NULL) { name 181 lib/services/systemd.c if (systemd_unit_extension(name)) { name 182 lib/services/systemd.c return strdup(name); name 185 lib/services/systemd.c return crm_strdup_printf("%s.service", name); name 262 lib/services/systemd.c if(op && !systemd_mask_error(op, error.name)) { name 320 lib/services/systemd.c char *name = NULL; name 337 lib/services/systemd.c name = systemd_service_name(arg_name); name 338 lib/services/systemd.c CRM_LOG_ASSERT(dbus_message_append_args(msg, DBUS_TYPE_STRING, &name, DBUS_TYPE_INVALID)); name 339 lib/services/systemd.c free(name); name 491 lib/services/systemd.c systemd_unit_exists(const char *name) name 498 lib/services/systemd.c unit = systemd_unit_by_name(name, NULL); name 507 lib/services/systemd.c systemd_unit_metadata(const char *name, int timeout) name 511 lib/services/systemd.c char *path = systemd_unit_by_name(name, NULL); name 518 lib/services/systemd.c desc = crm_strdup_printf("Systemd unit file for %s", name); name 539 lib/services/systemd.c " </special>\n" "</resource-agent>\n", name, desc, name); name 553 lib/services/systemd.c if (!systemd_mask_error(op, error.name)) { name 695 lib/services/systemd.c systemd_unit_check(const char *name, const char *state, void *userdata) name 699 lib/services/systemd.c crm_trace("Resource %s has %s='%s'", op->rsc, name, state); name 775 lib/services/systemd.c char *name = systemd_service_name(op->agent); name 777 lib/services/systemd.c CRM_LOG_ASSERT(dbus_message_append_args(msg, DBUS_TYPE_STRING, &name, DBUS_TYPE_INVALID)); name 780 lib/services/systemd.c free(name); name 27 lib/services/systemd.h G_GNUC_INTERNAL gboolean systemd_unit_exists(const gchar * name); name 231 lib/services/upstart.c upstart_job_exists(const char *name) name 233 lib/services/upstart.c return upstart_job_by_name(name, NULL, DBUS_TIMEOUT_USE_DEFAULT); name 297 lib/services/upstart.c upstart_job_check(const char *name, const char *state, void *userdata) name 316 lib/services/upstart.c upstart_job_metadata(const char *name) name 337 lib/services/upstart.c " </special>\n" "</resource-agent>\n", name, name, name); name 381 lib/services/upstart.c if (!upstart_mask_error(op, error.name)) { name 525 lib/services/upstart.c if(!upstart_mask_error(op, error.name)) { name 27 lib/services/upstart.h G_GNUC_INTERNAL gboolean upstart_job_exists(const gchar * name); name 137 libltdl/libltdl/lt__private.h #define LT__STRERROR(name) lt__error_string(LT_CONC(LT_ERROR_,name)) name 63 libltdl/libltdl/lt_dlloader.h const char * name; name 77 libltdl/libltdl/lt_dlloader.h LT_SCOPE lt_dlvtable * lt_dlloader_remove (const char *name); name 78 libltdl/libltdl/lt_dlloader.h LT_SCOPE const lt_dlvtable *lt_dlloader_find (const char *name); name 68 libltdl/loaders/dld_link.c if (vtable && !vtable->name) name 70 libltdl/loaders/dld_link.c vtable->name = "lt_dld_link"; name 148 libltdl/loaders/dld_link.c const char *name) name 150 libltdl/loaders/dld_link.c void *address = dld_get_func (name); name 68 libltdl/loaders/dlopen.c if (vtable && !vtable->name) name 70 libltdl/loaders/dlopen.c vtable->name = "lt_dlopen"; name 265 libltdl/loaders/dlopen.c vm_sym (lt_user_data loader_data LT__UNUSED, lt_module module, const char *name) name 267 libltdl/loaders/dlopen.c void *address = dlsym (module, name); name 69 libltdl/loaders/dyld.c if (vtable && !vtable->name) name 71 libltdl/loaders/dyld.c vtable->name = "lt_dyld"; name 170 libltdl/loaders/dyld.c static const mach_header *lt__match_loadedlib (const char *name); name 322 libltdl/loaders/dyld.c vm_sym (lt_user_data loader_data, lt_module module, const char *name) name 331 libltdl/loaders/dyld.c _dyld_lookup_and_bind (name, (unsigned long*) &address, &unused); name 339 libltdl/loaders/dyld.c if (lt__image_symbol_p (mh, name)) name 341 libltdl/loaders/dyld.c nssym = lt__image_symbol (mh, name, LT__SYMLOOKUP_OPTS); name 348 libltdl/loaders/dyld.c nssym = NSLookupSymbolInModule (module, name); name 359 libltdl/loaders/dyld.c nssym = lt__linkedlib_symbol (name, mh); name 437 libltdl/loaders/dyld.c result=(char*)(((dylib_command*) lc)->dylib.name.offset + name 447 libltdl/loaders/dyld.c lt__match_loadedlib (const char *name) name 458 libltdl/loaders/dyld.c if (id && strneq (id, name)) name 485 libltdl/loaders/dyld.c unsigned long base = ((dylib_command *) lc)->dylib.name.offset; name 486 libltdl/loaders/dyld.c char *name = (char *) (base + (unsigned long) lc); name 487 libltdl/loaders/dyld.c const mach_header *mh1 = lt__match_loadedlib (name); name 492 libltdl/loaders/dyld.c mh1 = lt__addimage (name, name 68 libltdl/loaders/load_add_on.c if (vtable && !vtable->name) name 70 libltdl/loaders/load_add_on.c vtable->name = "lt_load_add_on"; name 122 libltdl/loaders/load_add_on.c image = load_add_on (info.name); name 155 libltdl/loaders/load_add_on.c vm_sym (lt_user_data loader_data LT__UNUSED, lt_module module, const char *name) name 160 libltdl/loaders/load_add_on.c if (get_image_symbol (image, name, B_SYMBOL_TYPE_ANY, address) != B_OK) name 74 libltdl/loaders/loadlibrary.c if (vtable && !vtable->name) name 76 libltdl/loaders/loadlibrary.c vtable->name = "lt_loadlibrary"; name 265 libltdl/loaders/loadlibrary.c vm_sym (lt_user_data loader_data LT__UNUSED, lt_module module, const char *name) name 267 libltdl/loaders/loadlibrary.c void *address = (void *) GetProcAddress ((HMODULE) module, name); name 69 libltdl/loaders/preopen.c if (vtable && !vtable->name) name 71 libltdl/loaders/preopen.c vtable->name = "lt_preopen"; name 169 libltdl/loaders/preopen.c for (symbol= lists->symlist; symbol->name; ++symbol) name 171 libltdl/loaders/preopen.c if (!symbol->address && STREQ (symbol->name, filename)) name 179 libltdl/loaders/preopen.c if (next_symbol->address && next_symbol->name) name 209 libltdl/loaders/preopen.c vm_sym (lt_user_data loader_data LT__UNUSED, lt_module module, const char *name) name 213 libltdl/loaders/preopen.c if (symbol[1].name && STREQ (symbol[1].name, "@INIT@")) name 220 libltdl/loaders/preopen.c while (symbol->name) name 222 libltdl/loaders/preopen.c if (STREQ (symbol->name, name)) name 282 libltdl/loaders/preopen.c if (symlist[1].name && STREQ (symlist[1].name, "@INIT@")) name 351 libltdl/loaders/preopen.c if ((originator && STREQ (list->symlist->name, originator)) name 352 libltdl/loaders/preopen.c || (!originator && STREQ (list->symlist->name, "@PROGRAM@"))) name 361 libltdl/loaders/preopen.c while ((symbol = &list->symlist[++idx])->name != 0) name 364 libltdl/loaders/preopen.c && (STRNEQ (symbol->name, "@PROGRAM@"))) name 366 libltdl/loaders/preopen.c lt_dlhandle handle = lt_dlopen (symbol->name); name 68 libltdl/loaders/shl_load.c if (vtable && !vtable->name) name 70 libltdl/loaders/shl_load.c vtable->name = "lt_shl_load"; name 204 libltdl/loaders/shl_load.c vm_sym (lt_user_data loader_data LT__UNUSED, lt_module module, const char *name) name 213 libltdl/loaders/shl_load.c else if (!shl_findsym((shl_t*) &module, name, TYPE_UNDEFINED, &address)) name 52 libltdl/lt_dlloader.c const char * name = (const char *) userdata; name 56 libltdl/lt_dlloader.c return STREQ (vtable->name, name) ? (void *) item : NULL; name 106 libltdl/lt_dlloader.c fprintf (stderr, ", %s", (vtable && vtable->name) ? vtable->name : "(null)"); name 121 libltdl/lt_dlloader.c fprintf (stderr, "%s", (head && head->name) ? head->name : "(null)"); name 154 libltdl/lt_dlloader.c lt_dlloader_remove (const char *name) name 156 libltdl/lt_dlloader.c const lt_dlvtable * vtable = lt_dlloader_find (name); name 203 libltdl/lt_dlloader.c slist_unbox ((SList *) slist_remove (&loaders, loader_callback, (void *) name)); name 208 libltdl/lt_dlloader.c lt_dlloader_find (const char *name) name 210 libltdl/lt_dlloader.c return lt_dlloader_get (slist_find (loaders, loader_callback, (void *) name)); name 38 libltdl/lt_error.c #define LT_ERROR(name, diagnostic) diagnostic, name 340 libltdl/ltdl.c if ((vtable = lt_dlloader_remove ((char *) vtable->name))) name 378 libltdl/ltdl.c vtable ? vtable->name : "(ALL)"); name 441 libltdl/ltdl.c (loader_vtable && loader_vtable->name) ? loader_vtable->name : "(null)", name 914 libltdl/ltdl.c char *name; name 920 libltdl/ltdl.c name = MALLOC (char, 1+ name_len); name 921 libltdl/ltdl.c if (name) name 922 libltdl/ltdl.c sprintf (name, "lib%s", p+2); name 925 libltdl/ltdl.c name = lt__strdup(p); name 927 libltdl/ltdl.c if (!name) name 930 libltdl/ltdl.c names[depcount++] = name; name 1167 libltdl/ltdl.c char * name = 0; name 1260 libltdl/ltdl.c name = MALLOC (char, ext - base_name + 1); name 1261 libltdl/ltdl.c if (!name) name 1274 libltdl/ltdl.c name[i] = base_name[i]; name 1278 libltdl/ltdl.c name[i] = '_'; name 1281 libltdl/ltdl.c name[ext - base_name] = LT_EOS_CHAR; name 1293 libltdl/ltdl.c archive_name = MALLOC (char, strlen (libprefix) + LT_STRLEN (name) + strlen (libext) + 2); name 1305 libltdl/ltdl.c if (strncmp(name, "lib", 3) == 0) name 1307 libltdl/ltdl.c sprintf (archive_name, "%s%s.%s", libprefix, name + 3, libext); name 1311 libltdl/ltdl.c sprintf (archive_name, "%s.%s", name, libext); name 1501 libltdl/ltdl.c MEMREASSIGN ((*phandle)->info.name, name); name 1512 libltdl/ltdl.c FREE (name); name 1996 libltdl/ltdl.c FREE (cur->info.name); name 2037 libltdl/ltdl.c + LT_STRLEN (handle->info.name); name 2054 libltdl/ltdl.c if (handle->info.name) name 2064 libltdl/ltdl.c strcat(sym, handle->info.name); name 2068 libltdl/ltdl.c strcpy(sym, handle->info.name); name 2438 libltdl/ltdl.c if (cur && cur->info.name && STREQ (cur->info.name, module_name)) name 81 libltdl/ltdl.h LT_SCOPE void * lt_dlsym (lt_dlhandle handle, const char *name); name 93 libltdl/ltdl.h const char *name; name 133 libltdl/ltdl.h char * name; /* module name */ name 71 maint/mocked/based-notifyfenced.c crm_warn("Notification of client %s/%s failed", client->name, client->id); name 184 maint/mocked/based-notifyfenced.c cib_client->name, cib_client->id); name 153 maint/mocked/based.c type, cib_client->name, cib_client->id, on_off ? "on" : "off"); name 204 maint/mocked/based.c assert(cib_client->name == NULL); name 207 maint/mocked/based.c crm_xml_add(op_request, F_CIB_CLIENTNAME, cib_client->name); name 29 replace/setenv.c setenv(const char *name, const char *value, int why) name 33 replace/setenv.c if (name && value) { name 34 replace/setenv.c char *envp = crm_strdup_printf("%s=%s", name, value); name 34 replace/unsetenv.c unsetenv(const char *name) name 36 replace/unsetenv.c const size_t len = strlen(name); name 40 replace/unsetenv.c if (!strncmp(*ep, name, len) && (*ep)[len] == '=') { name 294 tools/attrd_updater.c send_attrd_query(const char *name, const char *host, xmlNode **reply) name 309 tools/attrd_updater.c crm_xml_add(query, PCMK__XA_ATTR_NAME, name); name 312 tools/attrd_updater.c crm_debug("Sending query for value of %s on %s", name, (host? host : "all nodes")); name 388 tools/attrd_updater.c if (!pcmk__str_eq((const char *)child->name, XML_CIB_TAG_NODE, name 390 tools/attrd_updater.c crm_warn("Ignoring unexpected %s tag in query reply", child->name); name 365 tools/cibadmin.c if (pcmk__str_eq((const char *)xml->name, "xpath-query", pcmk__str_casei)) { name 44 tools/crm_error.c get_strings(int rc, const char **name, const char **str) name 48 tools/crm_error.c *name = crm_exit_name(rc); name 51 tools/crm_error.c *name = pcmk_rc_name(rc); name 54 tools/crm_error.c *name = pcmk_errorname(rc); name 79 tools/crm_error.c const char *name = NULL; name 119 tools/crm_error.c get_strings(rc, &name, &desc); name 120 tools/crm_error.c if (pcmk__str_eq(name, "Unknown", pcmk__str_null_matches) || !strcmp(name, "CRM_EX_UNKNOWN")) { name 123 tools/crm_error.c printf("% .*d: %-26s %s\n", width, rc, name, desc); name 140 tools/crm_error.c get_strings(rc, &name, &desc); name 142 tools/crm_error.c printf("%s - %s\n", name, desc); name 167 tools/crm_mon.c const char *name; name 192 tools/crm_mon.c find_section_bit(const char *name) { name 193 tools/crm_mon.c for (int i = 0; sections[i].name != NULL; i++) { name 194 tools/crm_mon.c if (pcmk__str_eq(sections[i].name, name, pcmk__str_casei)) { name 1641 tools/crm_mon.c if(strcmp((const char*)xml->name, XML_LRM_TAG_RSC_OP) != 0) { name 1756 tools/crm_mon.c const char *name = NULL; name 1782 tools/crm_mon.c name = (const char *)match->name; name 1785 tools/crm_mon.c crm_trace("Handling %s operation for %s %p, %s", op, xpath, match, name); name 1789 tools/crm_mon.c } else if(name == NULL) { name 1793 tools/crm_mon.c } else if(strcmp(name, XML_TAG_CIB) == 0) { name 1807 tools/crm_mon.c } else if(strcmp(name, XML_CIB_TAG_STATUS) == 0) { name 1820 tools/crm_mon.c } else if(strcmp(name, XML_CIB_TAG_STATE) == 0) { name 1827 tools/crm_mon.c } else if(strcmp(name, XML_CIB_TAG_LRM) == 0) { name 1831 tools/crm_mon.c } else if(strcmp(name, XML_LRM_TAG_RESOURCES) == 0) { name 1837 tools/crm_mon.c } else if(strcmp(name, XML_LRM_TAG_RESOURCE) == 0) { name 1843 tools/crm_mon.c } else if(strcmp(name, XML_LRM_TAG_RSC_OP) == 0) { name 1850 tools/crm_mon.c crm_trace("Ignoring %s operation for %s %p, %s", op, xpath, match, name); name 110 tools/crm_mon.h GList *append_attr_list(GList *attr_list, char *name); name 160 tools/crm_mon_curses.c curses_output_xml(pcmk__output_t *out, const char *name, const char *buf) { name 43 tools/crm_mon_print.c static void print_node_attribute(gpointer name, gpointer user_data); name 154 tools/crm_mon_print.c if (pcmk__str_eq((const char *)rsc_op->name, XML_LRM_TAG_RSC_OP, pcmk__str_none)) { name 248 tools/crm_mon_print.c if (!pcmk__str_eq((const char *)rsc_entry->name, XML_LRM_TAG_RESOURCE, pcmk__str_none)) { name 340 tools/crm_mon_print.c const char *name = NULL; name 352 tools/crm_mon_print.c name = g_hash_table_lookup(rsc->parameters, "name"); name 354 tools/crm_mon_print.c if (name == NULL) { name 355 tools/crm_mon_print.c name = "pingd"; name 359 tools/crm_mon_print.c if (pcmk__str_eq(name, attrname, pcmk__str_casei)) { name 387 tools/crm_mon_print.c print_node_attribute(gpointer name, gpointer user_data) name 394 tools/crm_mon_print.c value = pe_node_attribute_raw(data->node, name); name 397 tools/crm_mon_print.c name, &expected_score); name 400 tools/crm_mon_print.c data->out->message(data->out, "node-attribute", name, value, add_extra, name 431 tools/crm_mon_print.c if (!pcmk__str_eq((const char *)node_state->name, XML_CIB_TAG_STATE, pcmk__str_none)) { name 52 tools/crm_mon_runtime.c append_attr_list(GList *attr_list, char *name) name 57 tools/crm_mon_runtime.c CRM_CHECK(name != NULL, return attr_list); name 61 tools/crm_mon_runtime.c if (g_str_has_prefix(name, filt_str[i])) { name 66 tools/crm_mon_runtime.c return g_list_insert_sorted(attr_list, name, compare_attribute); name 314 tools/crm_node.c const char *name = getenv("OCF_RESKEY_" CRM_META "_" XML_LRM_ATTR_TARGET); name 316 tools/crm_node.c if (name != NULL) { name 317 tools/crm_node.c printf("%s\n", name); name 328 tools/crm_node.c cib_remove_node(long id, const char *name) name 335 tools/crm_node.c crm_trace("Removing %s from the CIB", name); name 337 tools/crm_node.c if(name == NULL && id == 0) { name 344 tools/crm_node.c crm_xml_add(node, XML_ATTR_UNAME, name); name 345 tools/crm_node.c crm_xml_add(node_state, XML_ATTR_UNAME, name); name 357 tools/crm_node.c name, id, pcmk_strerror(rc)); name 362 tools/crm_node.c name, id, pcmk_strerror(rc)); name 742 tools/crm_resource.c char *name = NULL; name 745 tools/crm_resource.c if (pcmk_scan_nvpair(optarg, &name, &value) != 2) { name 751 tools/crm_resource.c g_hash_table_replace(options.validate_options, name, value); name 1549 tools/crm_resource.c char *name = calloc(1, strlen(*s)); name 1551 tools/crm_resource.c int rc = sscanf(*s, "%[^=]=%s", name, value); name 1554 tools/crm_resource.c g_hash_table_replace(options.override_params, name, value); name 1561 tools/crm_resource.c free(name); name 564 tools/crm_resource_runtime.c const char *name = (rsc->clone_name? rsc->clone_name : rsc->id); name 566 tools/crm_resource_runtime.c return pcmk_is_set(rsc->flags, pe_rsc_unique)? strdup(name) : clone_strip(name); name 1747 tools/crm_resource_runtime.c char *name = NULL; name 1751 tools/crm_resource_runtime.c while (g_hash_table_iter_next(&iter, (gpointer *) & name, (gpointer *) & value)) { name 1753 tools/crm_resource_runtime.c rsc_name, name, value); name 1754 tools/crm_resource_runtime.c g_hash_table_replace(op->params, strdup(name), strdup(value)); name 37 tools/crm_shadow.c get_shadow_prompt(const char *name) name 39 tools/crm_shadow.c return crm_strdup_printf("shadow[%.40s] # ", name); name 43 tools/crm_shadow.c shadow_setup(char *name, gboolean do_switch) name 47 tools/crm_shadow.c char *new_prompt = get_shadow_prompt(name); name 57 tools/crm_shadow.c setenv("CIB_shadow", name, 1); name 73 tools/crm_shadow.c printf(" CIB_shadow=%s ; export CIB_shadow\n", name); name 80 tools/crm_shadow.c shadow_teardown(char *name) name 83 tools/crm_shadow.c char *our_prompt = get_shadow_prompt(name); name 87 tools/crm_ticket.c const char *name = NULL; name 94 tools/crm_ticket.c while (g_hash_table_iter_next(&iter, (void **)&name, (void **)&value)) { name 98 tools/crm_ticket.c fprintf(stdout, "%s=", name); name 99 tools/crm_ticket.c if (pcmk__str_any_of(name, "last-granted", "expires", NULL)) { name 76 tools/ipmiservicelogd.c static void con_usage(const char *name, const char *help, void *cb_data); name 246 tools/ipmiservicelogd.c con_usage(const char *name, const char *help, void *cb_data) name 266 tools/ipmiservicelogd.c struct utsname name; name 271 tools/ipmiservicelogd.c if (uname(&name) == -1) { name 307 tools/ipmiservicelogd.c sl_event.platform = name.machine; /* ppc64, etc */ name 310 tools/ipmiservicelogd.c sl_event.nodename = name.nodename; name 352 tools/ipmiservicelogd.c char name[IPMI_ENTITY_NAME_LEN]; name 365 tools/ipmiservicelogd.c ipmi_sensor_get_id(sensor, name, sizeof(name)); name 413 tools/ipmiservicelogd.c char name[IPMI_ENTITY_NAME_LEN]; name 426 tools/ipmiservicelogd.c ipmi_sensor_get_id(sensor, name, sizeof(name)); name 239 tools/stonith_admin.c static char *name = NULL; name 273 tools/stonith_admin.c char *name = NULL; name 280 tools/stonith_admin.c rc = pcmk_scan_nvpair(optarg, &name, &value); name 287 tools/stonith_admin.c crm_info("Got: '%s'='%s'", name, value); name 288 tools/stonith_admin.c options.params = stonith_key_value_add(options.params, name, value); name 291 tools/stonith_admin.c free(name); name 298 tools/stonith_admin.c free(name); name 299 tools/stonith_admin.c name = crm_strdup_printf("%s.%s", crm_system_name, optarg); name 359 tools/stonith_admin.c name = strdup(crm_system_name); name 507 tools/stonith_admin.c rc = st->cmds->connect(st, name, NULL); name 581 tools/stonith_admin.c rc = pcmk__fence_action(st, target, "reboot", name, options.timeout*1000, name 586 tools/stonith_admin.c rc = pcmk__fence_action(st, target, "off", name, options.timeout*1000, name 591 tools/stonith_admin.c rc = pcmk__fence_action(st, target, "on", name, options.timeout*1000, name 623 tools/stonith_admin.c free(name);