name 112 attrd/commands.c xmlNode *parent, const char *name, const char *set, const char *uuid, unsigned int timeout_ms, const char *user, name 117 attrd/commands.c crm_xml_add(xml, F_ATTRD_ATTRIBUTE, name); name 559 attrd/commands.c const char *name = crm_element_value(xml, F_ATTRD_ATTRIBUTE); name 561 attrd/commands.c crm_trace("Compatibility update of %s from %s", name, peer->uname); name 565 attrd/commands.c const char *name = crm_element_value(xml, F_ATTRD_ATTRIBUTE); name 566 attrd/commands.c attribute_t *a = g_hash_table_lookup(attributes, name); name 940 attrd/commands.c char *name = user_data; name 941 attrd/commands.c attribute_t *a = g_hash_table_lookup(attributes, name); name 944 attrd/commands.c crm_info("Attribute %s no longer exists", name); name 967 attrd/commands.c do_crm_log(level, "Update %d for %s: %s (%d)", call_id, name, pcmk_strerror(rc), rc); name 1005 attrd/legacy.c update_remote_attr(const char *host, const char *name, const char *value, name 1013 attrd/legacy.c name, section, host); name 1016 attrd/legacy.c name, value, section, host); name 1019 attrd/legacy.c if (name == NULL) { name 1032 attrd/legacy.c host, NULL, NULL, NULL, name, NULL, name 1036 attrd/legacy.c host, NULL, NULL, NULL, name, value, name 1040 attrd/legacy.c attrd_send_attribute_alert(host, 0, name, (value? value : "")); name 255 attrd/main.c if (client->name == NULL) { name 257 attrd/main.c client->name = crm_strdup_printf("%s.%d", value?value:"unknown", client->pid); name 262 attrd/main.c attrd_client_peer_remove(client->name, xml); name 290 attrd/main.c client->name, op); name 214 cib/callbacks.c type, cib_client->name, cib_client->id, on_off ? "on" : "off"); name 277 cib/callbacks.c if (cib_client->name == NULL) { name 281 cib/callbacks.c cib_client->name = crm_itoa(cib_client->pid); name 283 cib/callbacks.c cib_client->name = strdup(value); name 296 cib/callbacks.c cib_client->name, cib_client->pid, cib_client->queue_max); name 301 cib/callbacks.c crm_xml_add(op_request, F_CIB_CLIENTNAME, cib_client->name); name 435 cib/callbacks.c rid, client_obj->name, name 439 cib/callbacks.c call_id, client_obj->name, from_peer ? "(originator of delegated request)" : ""); name 444 cib/callbacks.c call_id, client_obj->name, from_peer ? "(originator of delegated request)" : ""); name 460 cib/callbacks.c crm_err("Unknown transport %d for %s", client_obj->kind, client_obj->name); name 467 cib/callbacks.c client_obj ? client_obj->name : "<unknown>", pcmk_strerror(local_rc)); name 533 cib/callbacks.c crm_trace("Processing locally scoped %s op from %s", op, cib_client->name); name 537 cib/callbacks.c crm_trace("Processing master %s op locally from %s", op, cib_client->name); name 541 cib/callbacks.c crm_trace("Processing locally addressed %s op from %s", op, cib_client->name); name 551 cib/callbacks.c op, cib_client->name, host ? host : "the master instance"); name 577 cib/callbacks.c op, cib_client->name, host ? host : "the master instance"); name 589 cib/callbacks.c crm_trace("Processing %s op from %s (stand-alone)", op, cib_client->name); name 592 cib/callbacks.c crm_trace("Processing unaddressed %s op from %s", op, cib_client->name); name 595 cib/callbacks.c crm_trace("Processing locally addressed %s op from %s", op, cib_client->name); name 598 cib/callbacks.c crm_trace("%s op from %s needs to be forwarded to %s", op, cib_client->name, host); name 1619 cib/callbacks.c crm_err("Disconnecting %s... Not implemented", crm_str(a_client->name)); name 200 cib/io.c const char *name = NULL; name 276 cib/io.c name = XML_ATTR_GENERATION_ADMIN; name 277 cib/io.c value = crm_element_value(root, name); name 279 cib/io.c crm_warn("No value for %s was specified in the configuration.", name); name 285 cib/io.c crm_xml_add_int(root, name, 0); name 288 cib/io.c name = XML_ATTR_GENERATION; name 289 cib/io.c value = crm_element_value(root, name); name 291 cib/io.c crm_xml_add_int(root, name, 0); name 294 cib/io.c name = XML_ATTR_NUMUPDATES; name 295 cib/io.c value = crm_element_value(root, name); name 297 cib/io.c crm_xml_add_int(root, name, 0); name 120 cib/notify.c crm_warn("Notification of client %s/%s failed", client->name, client->id); name 127 cib/notify.c crm_debug("Sent %s notification to client %s/%s", type, client->name, client->id); name 131 cib/notify.c crm_err("Unknown transport %d for %s", client->kind, client->name); name 366 cib/remote.c crm_trace("Cleaning up after client disconnect: %s/%s", crm_str(client->name), client->id); name 419 cib/remote.c if (client->name == NULL) { name 422 cib/remote.c client->name = strdup(client->id); name 424 cib/remote.c client->name = strdup(value); name 446 cib/remote.c crm_xml_add(command, F_CIB_CLIENTNAME, client->name); name 525 cib/remote.c client->name = crm_element_value_copy(command, "name"); name 21 crmd/attrd.c log_attrd_error(const char *host, const char *name, const char *value, name 45 crmd/attrd.c name, value, node_type, host, when, pcmk_strerror(rc), rc); name 55 crmd/attrd.c update_attrd_helper(const char *host, const char *name, const char *value, name 82 crmd/attrd.c rc = attrd_update_delegate(attrd_ipc, command, host, name, value, name 87 crmd/attrd.c rc = attrd_clear_delegate(attrd_ipc, host, name, value, interval, name 105 crmd/attrd.c log_attrd_error(host, name, value, is_remote_node, command, rc); name 110 crmd/attrd.c update_attrd(const char *host, const char *name, const char *value, name 113 crmd/attrd.c update_attrd_helper(host, name, value, NULL, user_name, is_remote_node, name 192 crmd/control.c crm_info("Terminating the %s", pe_subsystem->name); name 195 crmd/control.c crm_err("Faking %s exit", pe_subsystem->name); name 648 crmd/control.c cib_subsystem->name = CRM_SYSTEM_CIB; name 658 crmd/control.c te_subsystem->name = CRM_SYSTEM_TENGINE; name 669 crmd/control.c pe_subsystem->name = CRM_SYSTEM_PENGINE; name 769 crmd/control.c crm_info("Received HUP from %s:[%d]", the_subsystem->name, the_subsystem->pid); name 990 crmd/control.c crmd_pref(GHashTable * options, const char *name) name 992 crmd/control.c return get_cluster_pref(options, crmd_opts, DIMOF(crmd_opts), name); name 41 crmd/crmd_fsa.h const char *name; /* executable name */ name 94 crmd/crmd_utils.h void update_attrd(const char *host, const char *name, const char *value, const char *user_name, gboolean is_remote_node); name 857 crmd/messages.c const char *name = NULL; name 860 crmd/messages.c name = crm_element_value(stored_msg, XML_ATTR_UNAME); name 865 crmd/messages.c crm_err("Could not instruct peers to remove references to node %s/%u", name, id); name 867 crmd/messages.c crm_notice("Instructing peers to remove references to node %s/%u", name, id); name 872 crmd/messages.c reap_crm_member(id, name); name 878 crmd/messages.c st_fail_count_reset(name); name 167 crmd/pengine.c crm_info("Ignoring request to start %s while shutting down", this_subsys->name); name 38 crmd/subsystems.c const char *name = mainloop_child_name(p); name 42 crmd/subsystems.c name, signo, pid, core); name 46 crmd/subsystems.c "Child process %s exited (pid=%d, rc=%d)", name, name 56 crmd/subsystems.c crm_trace("Stopping sub-system \"%s\"", the_subsystem->name); name 60 crmd/subsystems.c crm_trace("Client %s not running", the_subsystem->name); name 67 crmd/subsystems.c crm_debug("Stopping %s before it had connected", the_subsystem->name); name 80 crmd/subsystems.c crm_info("Sent -TERM to %s: [%d]", the_subsystem->name, the_subsystem->pid); name 84 crmd/subsystems.c crm_perror(LOG_ERR, "Sent -TERM to %s: [%d]", the_subsystem->name, the_subsystem->pid); name 100 crmd/subsystems.c crm_info("Starting sub-system \"%s\"", the_subsystem->name); name 104 crmd/subsystems.c the_subsystem->name, (int)the_subsystem->pid); name 133 crmd/subsystems.c mainloop_child_add(pid, 0, the_subsystem->name, the_subsystem, crmd_child_exit); name 134 crmd/subsystems.c crm_trace("Client %s is has pid: %d", the_subsystem->name, pid); name 147 crmd/subsystems.c the_subsystem->command, the_subsystem->name, (int)getpid()); name 520 crmd/te_actions.c char *name; name 529 crmd/te_actions.c free(peer->name); name 561 crmd/te_actions.c r->name = strdup(target); name 562 crmd/te_actions.c g_hash_table_insert(te_targets, r->name, r); name 626 crmd/te_actions.c r->name = strdup(target); name 627 crmd/te_actions.c g_hash_table_insert(te_targets, r->name, r); name 116 crmd/te_callbacks.c const char *name = crm_element_value(attr, XML_NVPAIR_ATTR_NAME); name 119 crmd/te_callbacks.c if (safe_str_eq(CRM_OP_PROBED, name)) { name 255 crmd/te_callbacks.c } else if(strcmp((const char*)xml->name, XML_CIB_TAG_LRM) == 0) { name 260 crmd/te_callbacks.c CRM_ASSERT(strcmp((const char*)xml->name, XML_LRM_TAG_RESOURCES) == 0); name 419 crmd/te_callbacks.c const char *name = NULL; name 446 crmd/te_callbacks.c name = (const char *)match->name; name 451 crmd/te_callbacks.c (name? " matched by " : ""), (name? name : "")); name 459 crmd/te_callbacks.c } else if(strstr(xpath, "/"XML_CIB_TAG_TICKETS) || safe_str_eq(name, XML_CIB_TAG_TICKETS)) { name 463 crmd/te_callbacks.c } else if(strstr(xpath, "/"XML_TAG_TRANSIENT_NODEATTRS"[") || safe_str_eq(name, XML_TAG_TRANSIENT_NODEATTRS)) { name 508 crmd/te_callbacks.c } else if(name == NULL) { name 512 crmd/te_callbacks.c } else if(strcmp(name, XML_TAG_CIB) == 0) { name 528 crmd/te_callbacks.c } else if(strcmp(name, XML_CIB_TAG_STATUS) == 0) { name 538 crmd/te_callbacks.c } else if(strcmp(name, XML_CIB_TAG_STATE) == 0) { name 544 crmd/te_callbacks.c } else if(strcmp(name, XML_CIB_TAG_LRM) == 0) { name 548 crmd/te_callbacks.c } else if(strcmp(name, XML_LRM_TAG_RESOURCES) == 0) { name 554 crmd/te_callbacks.c } else if(strcmp(name, XML_LRM_TAG_RESOURCE) == 0) { name 564 crmd/te_callbacks.c } else if(strcmp(name, XML_LRM_TAG_RSC_OP) == 0) { name 571 crmd/te_callbacks.c crm_err("Ignoring %s operation for %s %p, %s", op, xpath, match, name); name 84 crmd/tengine.c crm_info("Ignoring request to start %s while shutting down", te_subsystem->name); name 184 fencing/admin.c char *name; name 199 fencing/admin.c crm_debug("Connecting as %s", async_fence_data.name); name 200 fencing/admin.c rc = st->cmds->connect(st, async_fence_data.name, NULL); name 297 fencing/admin.c char *name = NULL; name 302 fencing/admin.c name = target; name 313 fencing/admin.c name, value, fence_level, name 317 fencing/admin.c name, value, fence_level); name 416 fencing/admin.c char *name = NULL; name 434 fencing/admin.c async_fence_data.name = strdup(crm_system_name); name 467 fencing/admin.c free(async_fence_data.name); name 468 fencing/admin.c async_fence_data.name = crm_strdup_printf("%s.%s", crm_system_name, optarg); name 514 fencing/admin.c rc = sscanf(optarg, "%m[^=]=%m[^=]", &name, &value); name 519 fencing/admin.c crm_info("Got: '%s'='%s'", name, value); name 520 fencing/admin.c params = stonith_key_value_add(params, name, value); name 523 fencing/admin.c free(name); name = NULL; name 562 fencing/admin.c rc = st->cmds->connect(st, async_fence_data.name, NULL); name 692 fencing/admin.c free(async_fence_data.name); name 531 fencing/commands.c char *name = NULL; name 546 fencing/commands.c free(name); name 547 fencing/commands.c name = calloc(1, 1 + lpc - last); name 548 fencing/commands.c memcpy(name, hostmap + last, lpc - last); name 559 fencing/commands.c if (name) { name 565 fencing/commands.c crm_debug("Adding alias '%s'='%s'", name, value); name 566 fencing/commands.c g_hash_table_replace(aliases, name, value); name 571 fencing/commands.c name = NULL; name 591 fencing/commands.c free(name); name 851 fencing/commands.c xml2device_params(const char *name, xmlNode *dev) name 863 fencing/commands.c name, STONITH_ATTR_ACTION_OP); name 1278 fencing/commands.c const char *name = crm_element_value(level, XML_ATTR_STONITH_TARGET_ATTRIBUTE); name 1281 fencing/commands.c if(name && value) { name 1282 fencing/commands.c return crm_strdup_printf("%s=%s", name, value); name 2318 fencing/commands.c const char *name = NULL; name 2340 fencing/commands.c name = names[lpc]; name 2341 fencing/commands.c value = crm_element_value(request, name); name 2342 fencing/commands.c crm_xml_add(reply, name, value); name 2503 fencing/commands.c crm_debug("Setting %s callbacks for %s (%s): ON", flag_name, client->name, client->id); name 2509 fencing/commands.c crm_debug("Setting %s callbacks for %s (%s): off", flag_name, client->name, client->id); name 2523 fencing/commands.c client ? client->name : remote_peer, name 2556 fencing/commands.c client->name, client->id, action, target, device ? device : "(any)"); name 2639 fencing/commands.c const char *name = NULL; name 2642 fencing/commands.c name = crm_element_value(request, XML_ATTR_UNAME); name 2643 fencing/commands.c reap_crm_member(node_id, name); name 2648 fencing/commands.c crm_err("Unknown %s from %s", op, client ? client->name : remote_peer); name 2689 fencing/commands.c crm_err("Unknown %s reply from %s", op, client ? client->name : remote_peer); name 2719 fencing/commands.c id, client ? client->name : remote_peer, call_options); name 2732 fencing/commands.c is_reply ? " reply" : "", client ? client->name : remote_peer, name 28 fencing/config.y char *name; name 54 fencing/config.y line_val.name = $2; name 60 fencing/config.y line_val.name = $2; name 69 fencing/config.y line_val.name = $2; name 80 fencing/config.y line_val.name = $2; name 93 fencing/config.y line_val.name = $2; name 164 fencing/config.y crm_free(line_val.name); name 183 fencing/config.y res |= standalone_cfg_add_device(line_val.name, line_val.agent); name 187 fencing/config.y res |= standalone_cfg_add_device_options(line_val.name, name 194 fencing/config.y res |= standalone_cfg_add_node_priority(line_val.name, name 203 fencing/config.y line_val.name, name 208 fencing/config.y line_val.name, name 173 fencing/internal.h long long get_stonith_flag(const char *name); name 226 fencing/internal.h gboolean node_has_attr(const char *node, const char *name, const char *value); name 129 fencing/main.c if (c->name == NULL) { name 135 fencing/main.c c->name = crm_strdup_printf("%s.%u", value, c->pid); name 282 fencing/main.c rid, client_obj->name, from_peer ? "(originator of delegated request)" : ""); name 286 fencing/main.c client_obj->name, from_peer ? "(originator of delegated request)" : ""); name 295 fencing/main.c client_obj ? client_obj->name : "<unknown>", pcmk_strerror(local_rc)); name 300 fencing/main.c get_stonith_flag(const char *name) name 302 fencing/main.c if (safe_str_eq(name, T_STONITH_NOTIFY_FENCE)) { name 305 fencing/main.c } else if (safe_str_eq(name, STONITH_OP_DEVICE_ADD)) { name 308 fencing/main.c } else if (safe_str_eq(name, STONITH_OP_DEVICE_DEL)) { name 677 fencing/main.c const char *name = NULL; name 689 fencing/main.c while (g_hash_table_iter_next(&gIter, (gpointer *) & name, (gpointer *) & value)) { name 690 fencing/main.c if (!name || !value) { name 693 fencing/main.c params = stonith_key_value_add(params, name, value); name 694 fencing/main.c crm_trace(" %s=%s", name, value); name 903 fencing/main.c node_has_attr(const char *node, const char *name, const char *value) name 919 fencing/main.c node, name, value); name 29 fencing/standalone_config.c char *name; name 58 fencing/standalone_config.c find_device(const char *name) name 63 fencing/standalone_config.c if (!strcasecmp(dev->name, name)) { name 72 fencing/standalone_config.c find_topology(const char *name) name 77 fencing/standalone_config.c if (!strcasecmp(topo->node_name, name)) { name 114 fencing/standalone_config.c dev->name = strdup(device); name 248 fencing/standalone_config.c free(dev->name); name 311 fencing/standalone_config.c data = create_device_registration_xml(dev->name, __FUNCTION__, dev->agent, params); name 27 include/crm/attrd.h const char *attrd_get_target(const char *name); name 30 include/crm/attrd.h const char *name, const char *value, const char *section, name 86 include/crm/cib.h int (*signon) (cib_t * cib, const char *name, enum cib_conn_type type); name 87 include/crm/cib.h int (*signon_raw) (cib_t * cib, const char *name, enum cib_conn_type type, int *event_fd); name 172 include/crm/cib.h char *get_shadow_file(const char *name); name 173 include/crm/cib.h cib_t *cib_shadow_new(const char *name); name 67 include/crm/cib/util.h const char *cib_pref(GHashTable * options, const char *name); name 169 include/crm/cluster.h guint reap_crm_member(uint32_t id, const char *name); name 40 include/crm/cluster/election.h election_t *election_init(const char *name, const char *uname, guint period_ms, GSourceFunc cb); name 470 include/crm/cluster/internal.h gboolean node_name_is_valid(const char *key, const char *name); name 32 include/crm/common/alerts_internal.h char *name; name 87 include/crm/common/alerts_internal.h void crm_insert_alert_key(GHashTable *table, enum crm_alert_keys_e name, name 89 include/crm/common/alerts_internal.h void crm_insert_alert_key_int(GHashTable *table, enum crm_alert_keys_e name, name 41 include/crm/common/internal.h void crm_sync_directory(const char *name); name 50 include/crm/common/internal.h int crm_procfs_process_info(struct dirent *entry, char *name, int *pid); name 51 include/crm/common/internal.h int crm_procfs_pid_of(const char *name); name 63 include/crm/common/ipc.h crm_ipc_t *crm_ipc_new(const char *name, size_t max_size); name 75 include/crm/common/ipcs.h char *name; name 117 include/crm/common/logging.h # define CRM_TRACE_INIT_DATA(name) name 119 include/crm/common/logging.h # define CRM_TRACE_INIT_DATA(name) QB_LOG_INIT_DATA(name) name 64 include/crm/common/mainloop.h mainloop_timer_t *mainloop_timer_add(const char *name, guint period_ms, bool repeat, GSourceFunc cb, void *userdata); name 77 include/crm/common/mainloop.h qb_ipcs_service_t *mainloop_add_ipc_server(const char *name, enum qb_ipc_type type, name 82 include/crm/common/mainloop.h mainloop_io_t *mainloop_add_ipc_client(const char *name, int priority, size_t max_size, name 94 include/crm/common/mainloop.h mainloop_io_t *mainloop_add_fd(const char *name, int priority, int fd, void *userdata, name 176 include/crm/common/util.h bool crm_is_daemon_name(const char *name); name 178 include/crm/common/util.h int crm_user_lookup(const char *name, uid_t * uid, gid_t * gid); name 59 include/crm/common/xml.h const char *name, const char *value); name 78 include/crm/common/xml.h void expand_plus_plus(xmlNode * target, const char *name, const char *value); name 88 include/crm/common/xml.h xmlNode *create_xml_node(xmlNode * parent, const char *name); name 101 include/crm/common/xml.h const char *crm_xml_add(xmlNode * node, const char *name, const char *value); name 103 include/crm/common/xml.h const char *crm_xml_replace(xmlNode * node, const char *name, const char *value); name 105 include/crm/common/xml.h const char *crm_xml_add_int(xmlNode * node, const char *name, int value); name 120 include/crm/common/xml.h crm_xml_add_boolean(xmlNode *node, const char *name, gboolean value) name 122 include/crm/common/xml.h return crm_xml_add(node, name, (value? "true" : "false")); name 147 include/crm/common/xml.h int add_node_nocopy(xmlNode * parent, const char *name, xmlNode * child); name 190 include/crm/common/xml.h void xml_remove_prop(xmlNode * obj, const char *name); name 201 include/crm/common/xml.h int crm_element_value_int(xmlNode * data, const char *name, int *dest); name 202 include/crm/common/xml.h char *crm_element_value_copy(xmlNode * data, const char *name); name 203 include/crm/common/xml.h int crm_element_value_const_int(const xmlNode * data, const char *name, int *dest); name 204 include/crm/common/xml.h const char *crm_element_value_const(const xmlNode * data, const char *name); name 211 include/crm/common/xml.h return xml? (const char *)(xml->name) : NULL; name 214 include/crm/common/xml.h const char *crm_element_value(xmlNode * data, const char *name); name 287 include/crm/common/xml.h int get_schema_version(const char *name); name 353 include/crm/common/xml.h xmlNode *first_named_child(xmlNode * parent, const char *name); name 190 include/crm/compatibility.h || crm_str_eq(filter, (const char *)child->name, TRUE)) { \ name 204 include/crm/compatibility.h prop_name = (const char *)prop_iter->name; \ name 219 include/crm/compatibility.h prop_name = (const char *)prop_iter->name; \ name 264 include/crm/compatibility.h attrd_update(crm_ipc_t * cluster, char command, const char *host, const char *name, name 267 include/crm/compatibility.h return attrd_update_delegate(cluster, command, host, name, value, section, set, dampen, name 272 include/crm/compatibility.h attrd_lazy_update(char command, const char *host, const char *name, name 275 include/crm/compatibility.h return attrd_update_delegate(NULL, command, host, name, value, section, set, dampen, NULL, attrd_opt_none) > 0; name 280 include/crm/compatibility.h const char *name, const char *value, const char *section, name 283 include/crm/compatibility.h return attrd_update_delegate(NULL, command, host, name, value, section, set, dampen, NULL, attrd_opt_none) > 0; name 122 include/crm/pengine/common.h const char *pe_pref(GHashTable * options, const char *name); name 39 include/crm/pengine/complex.h enum pe_obj_types get_resource_type(const char *name); name 60 include/crm/pengine/internal.h void add_hash_param(GHashTable * hash, const char *name, const char *value); name 63 include/crm/pengine/internal.h char *native_parameter(resource_t * rsc, node_t * node, gboolean create, const char *name, name 143 include/crm/pengine/internal.h extern action_t *get_pseudo_op(const char *name, pe_working_set_t * data_set); name 231 include/crm/pengine/internal.h extern enum action_tasks get_complex_task(resource_t * rsc, const char *name, name 321 include/crm/pengine/internal.h void common_print(resource_t * rsc, const char *pre_text, const char *name, node_t *node, long options, void *print_data); name 325 include/crm/pengine/internal.h const char *pe_node_attribute_calculated(pe_node_t *node, const char *name, resource_t *rsc); name 326 include/crm/pengine/internal.h const char *pe_node_attribute_raw(pe_node_t *node, const char *name); name 247 include/crm/services.h svc_action_t *services_action_create(const char *name, const char *action, name 268 include/crm/services.h svc_action_t *resources_action_create(const char *name, const char *standard, name 277 include/crm/services.h gboolean services_action_kick(const char *name, const char *action, int interval /* ms */); name 313 include/crm/services.h gboolean services_action_cancel(const char *name, const char *action, int interval); name 134 include/crm/stonith-ng.h int (*connect) (stonith_t *st, const char *name, int *stonith_fd); name 153 include/crm/stonith-ng.h stonith_t *st, int options, const char *name); name 78 include/crm_internal.h const char *name; name 102 include/crm_internal.h const char *name; name 116 include/crm_internal.h const char *name, const char *old_name, const char *def_value); name 119 include/crm_internal.h const char *name); name 121 include/crm_internal.h void config_metadata(const char *name, const char *version, const char *desc_short, name 144 include/crm_internal.h void crm_make_daemon(const char *name, gboolean daemonize, const char *pidfile); name 46 include/portability.h int setenv(const char *name, const char *value, int why); name 204 lib/ais/plugin.c .name = (char *)"Pacemaker Cluster Manager "PACEMAKER_VERSION, name 239 lib/ais/plugin.c .name = "pacemaker", name 250 lib/ais/plugin.c .name = "pacemaker", name 464 lib/ais/plugin.c ais_perror("Call to wait4(%s) failed", pcmk_children[lpc].name); name 478 lib/ais/plugin.c pcmk_children[lpc].name, sig, pid, name 485 lib/ais/plugin.c "Child process %s exited (pid=%d, rc=%d)", pcmk_children[lpc].name, name 490 lib/ais/plugin.c " to be respawned", pcmk_children[lpc].name); name 507 lib/ais/plugin.c ais_err("Child respawn count exceeded by %s", pcmk_children[lpc].name); name 511 lib/ais/plugin.c ais_notice("Respawning failed child process: %s", pcmk_children[lpc].name); name 840 lib/ais/plugin.c client = pcmk_children[lpc].name; name 1032 lib/ais/plugin.c conn, pcmk_children[type].name, pcmk_children[type].pid); name 1042 lib/ais/plugin.c membership_seq, pcmk_children[type].name); name 1117 lib/ais/plugin.c pcmk_children[lpc].name, pcmk_children[lpc].pid); name 1124 lib/ais/plugin.c pcmk_children[lpc].name, pcmk_children[lpc].pid, name 1128 lib/ais/plugin.c pcmk_children[lpc].name); name 1138 lib/ais/plugin.c ais_notice("%s confirmed stopped", pcmk_children[lpc].name); name 1521 lib/ais/plugin.c if (dest == crm_msg_pe && ais_str_eq(pcmk_children[7].name, lookup)) { name 105 lib/ais/utils.c ais_perror("Could not get scheduling policy for %s", child->name); name 121 lib/ais/utils.c ais_perror("Could not reset scheduling policy to SCHED_OTHER for %s", child->name); name 127 lib/ais/utils.c ais_perror("Could not reset process priority to %d for %s", priority, child->name); name 149 lib/ais/utils.c ais_info("Nothing to do for child \"%s\"", child->name); name 157 lib/ais/utils.c } else if (env_callgrind != NULL && strstr(env_callgrind, child->name)) { name 164 lib/ais/utils.c } else if (env_valgrind != NULL && strstr(env_valgrind, child->name)) { name 170 lib/ais/utils.c " The location of the valgrind binary is unknown", child->name); name 176 lib/ais/utils.c ais_err("Invalid uid (%s) specified for %s", child->uid, child->name); name 179 lib/ais/utils.c ais_info("Using uid=%u and group=%u for process %s", uid, gid, child->name); name 187 lib/ais/utils.c ais_info("Forked child %d for process %s%s", child->pid, child->name, name 259 lib/ais/utils.c ais_info("Nothing to do for child \"%s\"", child->name); name 263 lib/ais/utils.c ais_debug("Stopping CRM child \"%s\"", child->name); name 266 lib/ais/utils.c ais_trace("Client %s not running", child->name); name 272 lib/ais/utils.c ais_notice("Sent -%d to %s: [%d]", signal, child->name, child->pid); name 275 lib/ais/utils.c ais_perror("Sent -%d to %s: [%d]", signal, child->name, child->pid); name 620 lib/ais/utils.c config_find_init(struct corosync_api_v1 * config, char *name) name 625 lib/ais/utils.c config->object_find_create(OBJECT_PARENT_HANDLE, name, strlen(name), &local_handle); name 626 lib/ais/utils.c ais_info("Local handle: %lld for %s", (long long)local_handle, name); name 633 lib/ais/utils.c config_find_next(struct corosync_api_v1 * config, char *name, hdb_handle_t top_handle) name 643 lib/ais/utils.c ais_info("No additional configuration supplied for: %s", name); name 646 lib/ais/utils.c ais_info("Processing additional %s options...", name); name 755 lib/ais/utils.c pcmk_user_lookup(const char *name, uid_t * uid, gid_t * gid) name 763 lib/ais/utils.c getpwnam_r(name, &pwd, buffer, PW_BUFFER_LEN, &pwentry); name 772 lib/ais/utils.c ais_debug("Cluster user %s has uid=%d gid=%d", name, pwentry->pw_uid, pwentry->pw_gid); name 775 lib/ais/utils.c ais_err("Cluster user %s does not exist", name); name 74 lib/ais/utils.h const char *name; name 106 lib/ais/utils.h extern hdb_handle_t config_find_init(struct corosync_api_v1 *config, char *name); name 107 lib/ais/utils.h extern hdb_handle_t config_find_next(struct corosync_api_v1 *config, char *name, name 240 lib/ais/utils.h extern int pcmk_user_lookup(const char *name, uid_t * uid, gid_t * gid); name 416 lib/cib/cib_attrs.c tag = (const char *) (result->name); name 420 lib/cib/cib_attrs.c tag = (const char *) (result->name); name 549 lib/cib/cib_attrs.c if (crm_str_eq((const char *)a_child->name, XML_CIB_TAG_NODE, TRUE)) { name 223 lib/cib/cib_client.c char *name = crm_concat("shadow", suffix, '.'); name 271 lib/cib/cib_client.c fullname = crm_concat(dir, name, '/'); name 273 lib/cib/cib_client.c free(name); name 54 lib/cib/cib_file.c int cib_file_signon(cib_t * cib, const char *name, enum cib_conn_type type); name 564 lib/cib/cib_file.c cib_file_signon(cib_t * cib, const char *name, enum cib_conn_type type) name 576 lib/cib/cib_file.c crm_debug("%s: Opened connection to local file '%s'", name, private->filename); name 582 lib/cib/cib_file.c name, private->filename, pcmk_strerror(rc)); name 51 lib/cib/cib_native.c int cib_native_signon(cib_t * cib, const char *name, enum cib_conn_type type); name 52 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 87 lib/cib/cib_native.c cib_native_signon(cib_t * cib, const char *name, enum cib_conn_type type) name 89 lib/cib/cib_native.c return cib_native_signon_raw(cib, name, type, NULL); name 180 lib/cib/cib_native.c cib_native_signon_raw(cib_t * cib, const char *name, enum cib_conn_type type, int *async_fd) name 240 lib/cib/cib_native.c crm_xml_add(hello, F_CIB_CLIENTNAME, name); name 310 lib/cib/cib_ops.c crm_trace("No matching object to delete: %s=%s", child->name, ID(child)); name 315 lib/cib/cib_ops.c crm_trace("No matching object to delete: %s=%s", input->name, ID(input)); name 776 lib/cib/cib_ops.c extra += strlen((const char *)parent->name); name 788 lib/cib/cib_ops.c snprintf(new_path, path_len + 1, "/%s[@id='%s']%s", parent->name, id, name 791 lib/cib/cib_ops.c snprintf(new_path, path_len + 1, "/%s%s", parent->name, path ? path : ""); name 78 lib/cib/cib_remote.c int cib_remote_signon(cib_t * cib, const char *name, enum cib_conn_type type); name 84 lib/cib/cib_remote.c const char *name); name 380 lib/cib/cib_remote.c cib_remote_signon(cib_t * cib, const char *name, enum cib_conn_type type) name 425 lib/cib/cib_remote.c crm_xml_add(hello, F_CIB_CLIENTNAME, name); name 431 lib/cib/cib_remote.c crm_notice("%s: Opened connection to %s:%d", name, private->server, private->port); name 437 lib/cib/cib_remote.c name, private->server, private->port, pcmk_strerror(rc)); name 486 lib/cib/cib_remote.c xmlNode * data, xmlNode ** output_data, int call_options, const char *name) name 36 lib/cib/cib_utils.c const char *name; name 207 lib/cib/cib_utils.c if ((object_type == NULL && known_paths[lpc].name == NULL) name 208 lib/cib/cib_utils.c || safe_str_eq(object_type, known_paths[lpc].name)) { name 222 lib/cib/cib_utils.c if (safe_str_eq(object_type, known_paths[lpc].name)) { name 370 lib/cib/cib_utils.c current_cib = create_xml_node(NULL, (const char *)scratch->name); name 740 lib/cib/cib_utils.c cib_pref(GHashTable * options, const char *name) name 742 lib/cib/cib_utils.c return get_cluster_pref(options, cib_opts, DIMOF(cib_opts), name); name 291 lib/cluster/cluster.c static char *name = NULL; name 293 lib/cluster/cluster.c if(name) { name 294 lib/cluster/cluster.c return name; name 296 lib/cluster/cluster.c name = get_node_name(0); name 297 lib/cluster/cluster.c return name; name 303 lib/cluster/cluster.c char *name = NULL; name 321 lib/cluster/cluster.c name = classic_node_name(nodeid); name 326 lib/cluster/cluster.c name = corosync_node_name(0, nodeid); name 333 lib/cluster/cluster.c name = cman_node_name(nodeid); name 341 lib/cluster/cluster.c if(name == NULL && nodeid == 0) { name 348 lib/cluster/cluster.c name = strdup(res.nodename); name 351 lib/cluster/cluster.c if (name == NULL) { name 357 lib/cluster/cluster.c if (name == NULL) { name 361 lib/cluster/cluster.c return name; name 651 lib/cluster/cluster.c node_name_is_valid(const char *key, const char *name) name 655 lib/cluster/cluster.c if (name == NULL) { name 659 lib/cluster/cluster.c } else if (sscanf(name, "%d.%d.%d.%d", &octet, &octet, &octet, &octet) == 4) { name 660 lib/cluster/cluster.c crm_trace("%s contains an ipv4 address, ignoring: %s", key, name); name 663 lib/cluster/cluster.c } else if (strstr(name, ":") != NULL) { name 664 lib/cluster/cluster.c crm_trace("%s contains an ipv6 address, ignoring: %s", key, name); name 57 lib/cluster/corosync.c char *name = NULL; name 90 lib/cluster/corosync.c while (name == NULL && cmap_handle != 0) { name 104 lib/cluster/corosync.c crm_trace("Searching for node name for %u in nodelist.node.%d %s", nodeid, lpc, name); name 105 lib/cluster/corosync.c if (name == NULL) { name 107 lib/cluster/corosync.c cmap_get_string(cmap_handle, key, &name); name 108 lib/cluster/corosync.c crm_trace("%s = %s", key, name); name 110 lib/cluster/corosync.c if (node_name_is_valid(key, name) == FALSE) { name 111 lib/cluster/corosync.c free(name); name 112 lib/cluster/corosync.c name = NULL; name 117 lib/cluster/corosync.c if (name == NULL) { name 119 lib/cluster/corosync.c cmap_get_string(cmap_handle, key, &name); name 120 lib/cluster/corosync.c crm_trace("%s = %s %d", key, name, rc); name 133 lib/cluster/corosync.c if (name == NULL) { name 136 lib/cluster/corosync.c return name; name 225 lib/cluster/corosync.c char *name = corosync_node_name(0, id); name 228 lib/cluster/corosync.c node = crm_get_peer(id, name); name 229 lib/cluster/corosync.c free(name); name 514 lib/cluster/corosync.c char *name = NULL; name 525 lib/cluster/corosync.c name = corosync_node_name(cmap_handle, nodeid); name 526 lib/cluster/corosync.c if (name != NULL) { name 532 lib/cluster/corosync.c if(node && node->uname && strcasecmp(node->uname, name) == 0) { name 535 lib/cluster/corosync.c nodeid, name); name 542 lib/cluster/corosync.c if (nodeid > 0 || name != NULL) { name 543 lib/cluster/corosync.c crm_trace("Initializing node[%d] %u = %s", lpc, nodeid, name); name 544 lib/cluster/corosync.c crm_get_peer(nodeid, name); name 547 lib/cluster/corosync.c if (nodeid > 0 && name != NULL) { name 554 lib/cluster/corosync.c crm_xml_add(node, XML_ATTR_UNAME, name); name 561 lib/cluster/corosync.c free(name); name 27 lib/cluster/election.c char *name; name 36 lib/cluster/election.c crm_info("Election %s complete", e->name); name 50 lib/cluster/election.c crm_info("Election %s %p timed out", e->name, e); name 65 lib/cluster/election.c election_init(const char *name, const char *uname, guint period_ms, GSourceFunc cb) name 71 lib/cluster/election.c if(name) { name 72 lib/cluster/election.c e->name = crm_strdup_printf("election-%s", name); name 74 lib/cluster/election.c e->name = crm_strdup_printf("election-%u", count++); name 79 lib/cluster/election.c e->timeout = mainloop_timer_add(e->name, period_ms, FALSE, election_timer_cb, e); name 80 lib/cluster/election.c crm_trace("Created %s %p", e->name, e); name 96 lib/cluster/election.c crm_trace("Resetting election %s", e->name); name 112 lib/cluster/election.c crm_trace("Destroying %s", e->name); name 115 lib/cluster/election.c free(e->name); name 47 lib/cluster/heartbeat.c const char *name = NULL; name 62 lib/cluster/heartbeat.c name = msg->names[lpc]; name 63 lib/cluster/heartbeat.c type = cl_get_type(msg, name); name 67 lib/cluster/heartbeat.c convert_ha_message(parent, msg->values[lpc], name); name 71 lib/cluster/heartbeat.c convert_ha_message(parent, cl_get_struct(msg, name), name); name 76 lib/cluster/heartbeat.c crm_trace("Converting %s/%d/%s", name, type, value[0] == '<' ? "xml" : "field"); name 79 lib/cluster/heartbeat.c crm_xml_add(parent, name, value); name 86 lib/cluster/heartbeat.c crm_err("Conversion of field '%s' failed", name); name 94 lib/cluster/heartbeat.c value = cl_get_binary(msg, name, &orig_len); name 98 lib/cluster/heartbeat.c if (strstr(name, "uuid") == NULL) { name 99 lib/cluster/heartbeat.c crm_err("Skipping non-bzip binary field: %s", name); name 128 lib/cluster/heartbeat.c name, (int)orig_len, size, rc); name 210 lib/cluster/heartbeat.c const char *name = NULL; name 215 lib/cluster/heartbeat.c ha_msg_add(result, F_XML_TAGNAME, (const char *)src_node->name); name 218 lib/cluster/heartbeat.c name = (const char *)prop_iter->name; name 219 lib/cluster/heartbeat.c value = (const char *)xmlGetProp(src_node, prop_iter->name); name 221 lib/cluster/heartbeat.c ha_msg_add(result, name, value); name 240 lib/cluster/heartbeat.c add_ha_nocopy(holder, result, (const char *)src_node->name); name 246 lib/cluster/heartbeat.c add_ha_nocopy(parent, result, (const char *)src_node->name); name 260 lib/cluster/heartbeat.c const char *name = NULL; name 262 lib/cluster/heartbeat.c name = (const char *)xml->name; name 266 lib/cluster/heartbeat.c ha_msg_add(msg, name, buffer); name 278 lib/cluster/heartbeat.c convert_xml_message_struct(msg, xml, name); name 285 lib/cluster/heartbeat.c ha_msg_addbin(msg, name, buffer, len); name 319 lib/cluster/heartbeat.c ha_msg_add(result, F_XML_TAGNAME, (const char *)xml->name); name 322 lib/cluster/heartbeat.c const char *p_name = (const char *)pIter->name; name 56 lib/cluster/legacy.c static bool valid_cman_name(const char *name, uint32_t nodeid) name 63 lib/cluster/legacy.c if(crm_str_eq(fakename, name, TRUE)) { name 392 lib/cluster/legacy.c const char *name = NULL; name 401 lib/cluster/legacy.c name = cman_nodes[lpc].cn_name; name 404 lib/cluster/legacy.c peer = crm_get_peer(cman_nodes[lpc].cn_nodeid, name); name 499 lib/cluster/legacy.c const char *name = NULL; name 546 lib/cluster/legacy.c name = get_local_node_name(); name 548 lib/cluster/legacy.c if (safe_str_neq(name, cluster->uname)) { name 550 lib/cluster/legacy.c cluster->uname, name); name 651 lib/cluster/legacy.c char *name = NULL; name 663 lib/cluster/legacy.c name = strdup(us.cn_name); name 664 lib/cluster/legacy.c crm_info("Using CMAN node name %s for %u", name, nodeid); name 670 lib/cluster/legacy.c if (name == NULL) { name 673 lib/cluster/legacy.c return name; name 855 lib/cluster/legacy.c config_find_next(confdb_handle_t config, const char *name, confdb_handle_t top_handle) name 861 lib/cluster/legacy.c crm_err("Couldn't search for %s: no valid context", name); name 865 lib/cluster/legacy.c crm_trace("Searching for %s in " HDB_X_FORMAT, name, top_handle); name 866 lib/cluster/legacy.c rc = confdb_object_find(config, top_handle, name, strlen(name), &local_handle); name 868 lib/cluster/legacy.c crm_info("No additional configuration supplied for: %s", name); name 871 lib/cluster/legacy.c crm_info("Processing additional %s options...", name); name 352 lib/cluster/membership.c reap_crm_member(uint32_t id, const char *name) name 363 lib/cluster/membership.c search.uname = name ? strdup(name) : NULL; name 53 lib/common/alerts.c free(entry->name); name 105 lib/common/alerts.c dst->name = strdup(src->name); name 142 lib/common/alerts.c enum crm_alert_keys_e name; name 144 lib/common/alerts.c for(name = 0; name < DIMOF(crm_alert_keys); name++) { name 145 lib/common/alerts.c for(key = crm_alert_keys[name]; *key; key++) { name 153 lib/common/alerts.c crm_insert_alert_key(GHashTable *table, enum crm_alert_keys_e name, name 156 lib/common/alerts.c for (const char **key = crm_alert_keys[name]; *key; key++) { name 167 lib/common/alerts.c crm_insert_alert_key_int(GHashTable *table, enum crm_alert_keys_e name, name 170 lib/common/alerts.c for (const char **key = crm_alert_keys[name]; *key; key++) { name 271 lib/common/alerts.c const char *name = NULL; name 275 lib/common/alerts.c ((name = crm_element_name(section)) == NULL) || name 276 lib/common/alerts.c (strcmp(name, XML_CIB_TAG_ALERTS) != 0)) { name 136 lib/common/attrd_client.c const char *name, const char *value, const char *section, 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 219 lib/common/attrd_client.c name, value, display_host, pcmk_strerror(rc), rc); name 264 lib/common/attrd_client.c attrd_get_target(const char *name) name 266 lib/common/attrd_client.c if(safe_str_eq(name, "auto") || safe_str_eq(name, "localhost")) { name 267 lib/common/attrd_client.c name = NULL; name 270 lib/common/attrd_client.c if(name != NULL) { name 271 lib/common/attrd_client.c return name; name 281 lib/common/attrd_client.c name = host_physical; name 287 lib/common/attrd_client.c name = host_pcmk; name 296 lib/common/attrd_client.c return name; name 358 lib/common/io.c crm_sync_directory(const char *name) name 363 lib/common/io.c directory = opendir(name); name 365 lib/common/io.c crm_perror(LOG_ERR, "Could not open %s for syncing", name); name 371 lib/common/io.c crm_perror(LOG_ERR, "Could not obtain file descriptor for %s", name); name 376 lib/common/io.c crm_perror(LOG_ERR, "Could not sync %s", name); name 379 lib/common/io.c crm_perror(LOG_ERR, "Could not close %s after fsync", name); name 242 lib/common/ipc.c } else if (c->name == NULL && c->id == NULL) { name 244 lib/common/ipc.c } else if (c->name == NULL) { name 247 lib/common/ipc.c return c->name; name 400 lib/common/ipc.c free(c->name); name 816 lib/common/ipc.c char *name; name 845 lib/common/ipc.c crm_ipc_new(const char *name, size_t max_size) name 851 lib/common/ipc.c client->name = strdup(name); name 876 lib/common/ipc.c client->ipc = qb_ipcc_connect(client->name, client->buf_size); name 879 lib/common/ipc.c crm_debug("Could not establish %s connection: %s (%d)", client->name, pcmk_strerror(errno), errno); name 885 lib/common/ipc.c crm_debug("Could not obtain file descriptor for %s connection: %s (%d)", client->name, pcmk_strerror(errno), errno); name 907 lib/common/ipc.c crm_trace("Disconnecting %s IPC connection %p (%p)", client->name, client, client->ipc); name 923 lib/common/ipc.c crm_notice("Destroying an active IPC connection to %s", client->name); name 934 lib/common/ipc.c crm_trace("Destroying IPC connection to %s: %p", client->name, client); name 936 lib/common/ipc.c free(client->name); name 951 lib/common/ipc.c (client? client->name : "unspecified client")); name 1077 lib/common/ipc.c client->name, header->qb.id, header->qb.size, client->msg_size, name 1081 lib/common/ipc.c crm_trace("No message from %s received: %s", client->name, pcmk_strerror(client->msg_size)); name 1085 lib/common/ipc.c crm_err("Connection to %s failed", client->name); name 1120 lib/common/ipc.c return client->name; name 1157 lib/common/ipc.c crm_trace("client %s waiting on reply to msg id %d", client->name, request_id); name 1188 lib/common/ipc.c crm_err("Server disconnected client %s while waiting for msg id %d", client->name, name 1216 lib/common/ipc.c crm_notice("Connection to %s closed", client->name); name 1225 lib/common/ipc.c crm_trace("Trying again to obtain pending reply from %s", client->name); name 1228 lib/common/ipc.c crm_warn("Sending to %s (%p) is disabled until pending reply is received", client->name, name 1233 lib/common/ipc.c crm_notice("Lost reply from %s (%p) finally arrived, sending re-enabled", client->name, name 1264 lib/common/ipc.c client->name, header->qb.id, header->qb.size, ms_timeout); name 1272 lib/common/ipc.c client->name, header->qb.id, header->qb.size); name 1277 lib/common/ipc.c header->qb.id, client->name, header->qb.size); name 1314 lib/common/ipc.c crm_notice("Connection to %s closed: %s (%ld)", client->name, pcmk_strerror(rc), rc); name 1318 lib/common/ipc.c header->qb.id, client->name, client->ipc, pcmk_strerror(rc), rc, ms_timeout); name 1323 lib/common/ipc.c header->qb.id, client->name, client->ipc, pcmk_strerror(rc), rc); name 649 lib/common/logging.c crm_priority2int(const char *name) name 652 lib/common/logging.c const char *name; name 668 lib/common/logging.c for (lpc = 0; name != NULL && p_names[lpc].name != NULL; lpc++) { name 669 lib/common/logging.c if (crm_str_eq(p_names[lpc].name, name, TRUE)) { name 145 lib/common/mainloop.c char *name; name 589 lib/common/mainloop.c mainloop_add_ipc_server(const char *name, enum qb_ipc_type type, name 600 lib/common/mainloop.c server = qb_ipcs_create(name, 0, pick_ipc_type(type), callbacks); name 611 lib/common/mainloop.c crm_err("Could not start %s IPC server: %s (%d)", name, pcmk_strerror(rc), rc); name 627 lib/common/mainloop.c char *name; name 658 lib/common/mainloop.c client->name, client, pcmk_strerror(rc), rc); name 663 lib/common/mainloop.c crm_trace("New message from %s[%p] = %ld (I/O condition=%d)", client->name, client, rc, condition); name 665 lib/common/mainloop.c crm_trace("Connection to %s no longer required", client->name); name 673 lib/common/mainloop.c crm_trace("New message from %s[%p] %u", client->name, client, condition); name 676 lib/common/mainloop.c crm_trace("Connection to %s no longer required", client->name); name 684 lib/common/mainloop.c crm_err("Connection to %s[%p] closed (I/O condition=%d)", client->name, client, condition); name 689 lib/common/mainloop.c client->name, client, condition); name 733 lib/common/mainloop.c char *c_name = strdup(client->name); name 760 lib/common/mainloop.c free(client->name); client->name = NULL; name 767 lib/common/mainloop.c mainloop_add_ipc_client(const char *name, int priority, size_t max_size, void *userdata, name 771 lib/common/mainloop.c crm_ipc_t *conn = crm_ipc_new(name, max_size); name 776 lib/common/mainloop.c client = mainloop_add_fd(name, priority, fd, userdata, NULL); name 780 lib/common/mainloop.c crm_perror(LOG_TRACE, "Connection to %s failed", name); name 810 lib/common/mainloop.c mainloop_add_fd(const char *name, int priority, int fd, void *userdata, name 820 lib/common/mainloop.c client->name = strdup(name); name 845 lib/common/mainloop.c crm_trace("Added connection %d for %s[%p].%d", client->source, client->name, client, fd); name 857 lib/common/mainloop.c crm_trace("Removing client %s[%p]", client->name, client); name 1141 lib/common/mainloop.c char *name; name 1162 lib/common/mainloop.c crm_trace("Invoking callbacks for timer %s", t->name); name 1165 lib/common/mainloop.c crm_trace("Timer %s complete", t->name); name 1190 lib/common/mainloop.c crm_trace("Starting timer %s", t->name); name 1198 lib/common/mainloop.c crm_trace("Stopping timer %s", t->name); name 1221 lib/common/mainloop.c mainloop_timer_add(const char *name, guint period_ms, bool repeat, GSourceFunc cb, void *userdata) name 1226 lib/common/mainloop.c if(name) { name 1227 lib/common/mainloop.c t->name = crm_strdup_printf("%s-%u-%d", name, period_ms, repeat); name 1229 lib/common/mainloop.c t->name = crm_strdup_printf("%p-%u-%d", t, period_ms, repeat); name 1236 lib/common/mainloop.c crm_trace("Created timer %s with %p %p", t->name, userdata, t->userdata); name 1245 lib/common/mainloop.c crm_trace("Destroying timer %s", t->name); name 1247 lib/common/mainloop.c free(t->name); name 325 lib/common/operations.c const char *prop_name = (const char *)xIter->name; name 598 lib/common/operations.c const char *name = XML_LRM_ATTR_MIGRATE_SOURCE; name 600 lib/common/operations.c crm_xml_add(xml_op, name, crm_meta_value(op->params, name)); name 602 lib/common/operations.c name = XML_LRM_ATTR_MIGRATE_TARGET; name 603 lib/common/operations.c crm_xml_add(xml_op, name, crm_meta_value(op->params, name)); name 47 lib/common/procfs.c crm_procfs_process_info(struct dirent *entry, char *name, int *pid) name 89 lib/common/procfs.c if (name != NULL) { name 95 lib/common/procfs.c if ((fscanf(file, "%15s%63s", key, name) != 2) name 118 lib/common/procfs.c crm_procfs_pid_of(const char *name) name 133 lib/common/procfs.c && safe_str_eq(entry_name, name) name 136 lib/common/procfs.c crm_info("Found %s active as process %d", name, pid); name 67 lib/common/schemas.c char *name; name 142 lib/common/schemas.c get_schema_path(const char *name, const char *file) name 149 lib/common/schemas.c return crm_strdup_printf("%s/%s.rng", base, name); name 211 lib/common/schemas.c const char *name, const char *location, const char *transform, name 232 lib/common/schemas.c known_schemas[last].name = schema_strdup_printf("pacemaker-", *version, ""); name 234 lib/common/schemas.c known_schemas[last].name); name 236 lib/common/schemas.c CRM_ASSERT(name); name 238 lib/common/schemas.c schema_scanf(name, "%*[^-]-", known_schemas[last].version, ""); name 239 lib/common/schemas.c known_schemas[last].name = strdup(name); name 253 lib/common/schemas.c last, known_schemas[last].name, known_schemas[last].location); name 257 lib/common/schemas.c last, known_schemas[last].name, known_schemas[last].location, name 263 lib/common/schemas.c last, known_schemas[last].name, known_schemas[last].location, name 541 lib/common/schemas.c free(known_schemas[lpc].name); name 566 lib/common/schemas.c file = get_schema_path(known_schemas[method].name, name 674 lib/common/schemas.c known_schemas[lpc].name); name 675 lib/common/schemas.c crm_info("XML validated against %s", known_schemas[lpc].name); name 762 lib/common/schemas.c return known_schemas[version].name; name 766 lib/common/schemas.c get_schema_version(const char *name) name 770 lib/common/schemas.c if (name == NULL) { name 771 lib/common/schemas.c name = "none"; name 774 lib/common/schemas.c if (safe_str_eq(name, known_schemas[lpc].name)) { name 823 lib/common/schemas.c known_schemas[lpc].name ? known_schemas[lpc].name : "<unset>", name 829 lib/common/schemas.c known_schemas[lpc].name); name 833 lib/common/schemas.c known_schemas[lpc].name ? known_schemas[lpc].name : "<unset>"); name 844 lib/common/schemas.c known_schemas[next].name); name 860 lib/common/schemas.c crm_trace("Stopping at %s", known_schemas[lpc].name); name 865 lib/common/schemas.c known_schemas[lpc].name, lpc, next, max); name 870 lib/common/schemas.c known_schemas[lpc].name, known_schemas[next].name); name 876 lib/common/schemas.c known_schemas[lpc].name, known_schemas[next].name, name 916 lib/common/schemas.c value ? value : "<none>", known_schemas[*best].name); name 917 lib/common/schemas.c crm_xml_add(xml, XML_ATTR_VALIDATION, known_schemas[*best].name); name 295 lib/common/utils.c const char *name, const char *old_name, const char *def_value) name 300 lib/common/utils.c CRM_ASSERT(name != NULL); name 303 lib/common/utils.c value = g_hash_table_lookup(options, name); name 310 lib/common/utils.c old_name, name); name 314 lib/common/utils.c g_hash_table_insert(options, strdup(name), new_value); name 321 lib/common/utils.c name, value); name 335 lib/common/utils.c name); name 341 lib/common/utils.c crm_err("Bug: default value for cluster option '%s' is invalid", name); name 346 lib/common/utils.c value, name); name 349 lib/common/utils.c g_hash_table_insert(options, strdup(name), new_value); name 356 lib/common/utils.c get_cluster_pref(GHashTable * options, pe_cluster_option * option_list, int len, const char *name) name 361 lib/common/utils.c if (safe_str_eq(name, option_list[lpc].name)) { name 364 lib/common/utils.c option_list[lpc].name, name 370 lib/common/utils.c CRM_CHECK(FALSE, crm_err("Bug: looking for unknown option '%s'", name)); name 375 lib/common/utils.c config_metadata(const char *name, const char *version, const char *desc_short, name 386 lib/common/utils.c " <parameters>\n", name, version, desc_long, desc_short); name 397 lib/common/utils.c option_list[lpc].name, name 417 lib/common/utils.c option_list[lpc].name, name 433 lib/common/utils.c crm_user_lookup(const char *name, uid_t * uid, gid_t * gid) name 441 lib/common/utils.c rc = getpwnam_r(name, &pwd, buffer, PW_BUFFER_LEN, &pwentry); name 449 lib/common/utils.c crm_trace("User %s has uid=%d gid=%d", name, pwentry->pw_uid, pwentry->pw_gid); name 453 lib/common/utils.c crm_info("User %s lookup: %s", name, pcmk_strerror(rc)); name 845 lib/common/utils.c crm_lock_pidfile(const char *filename, const char *name) name 853 lib/common/utils.c rc = crm_pidfile_inuse(filename, 0, name); name 876 lib/common/utils.c return crm_pidfile_inuse(filename, mypid, name); name 880 lib/common/utils.c crm_make_daemon(const char *name, gboolean daemonize, const char *pidfile) name 891 lib/common/utils.c rc = crm_pidfile_inuse(pidfile, 1, name); name 894 lib/common/utils.c crm_err("%s: already running [pid %ld in %s]", name, pid, pidfile); name 895 lib/common/utils.c printf("%s: already running [pid %ld in %s]\n", name, pid, pidfile); name 901 lib/common/utils.c fprintf(stderr, "%s: could not start daemon\n", name); name 909 lib/common/utils.c rc = crm_lock_pidfile(pidfile, name); name 911 lib/common/utils.c crm_err("Could not lock '%s' for %s: %s (%d)", pidfile, name, pcmk_strerror(rc), rc); name 912 lib/common/utils.c printf("Could not lock '%s' for %s: %s (%d)\n", pidfile, name, pcmk_strerror(rc), rc); name 979 lib/common/utils.c long_opts[index].name = "__dummmy__"; name 985 lib/common/utils.c for (lpc = 0; long_options[lpc].name != NULL; lpc++) { name 986 lib/common/utils.c if (long_options[lpc].name[0] == '-') { name 993 lib/common/utils.c long_opts[index].name = long_options[lpc].name; name 1002 lib/common/utils.c long_opts[index].name = NULL; name 1023 lib/common/utils.c for (lpc = 0; long_options[lpc].name != NULL; lpc++) { name 1077 lib/common/utils.c *longname = long_opts[*index].name; name 1079 lib/common/utils.c crm_notice("Unhandled option --%s", long_opts[*index].name); name 1128 lib/common/utils.c for (i = 0; crm_long_options[i].name != NULL; i++) { name 1147 lib/common/utils.c fprintf(stream, " --%s%s\t%s\n", crm_long_options[i].name, name 1408 lib/common/utils.c crm_is_daemon_name(const char *name) name 1410 lib/common/utils.c return (name && name 1411 lib/common/utils.c (!strcmp(name, CRM_SYSTEM_CRMD) name 1412 lib/common/utils.c || !strcmp(name, CRM_SYSTEM_STONITHD) name 1413 lib/common/utils.c || !strcmp(name, T_ATTRD) name 1414 lib/common/utils.c || !strcmp(name, CRM_SYSTEM_CIB) name 1415 lib/common/utils.c || !strcmp(name, CRM_SYSTEM_MCP) name 1416 lib/common/utils.c || !strcmp(name, CRM_SYSTEM_DC) name 1417 lib/common/utils.c || !strcmp(name, CRM_SYSTEM_TENGINE) name 1418 lib/common/utils.c || !strcmp(name, CRM_SYSTEM_LRMD))); name 110 lib/common/xml.c static bool __xml_acl_check(xmlNode *xml, const char *name, enum xml_private_flags mode); name 472 lib/common/xml.c if (strcmp(XML_ACL_TAG_ROLE, (const char *)role->name) == 0) { name 676 lib/common/xml.c const char *prop_name = (const char *)xIter->name; name 683 lib/common/xml.c xmlUnsetProp(xml, tmp->name); name 790 lib/common/xml.c const char *prop_name = (const char *)xIter->name; name 1023 lib/common/xml.c crm_xml_add(attr, XML_NVPAIR_ATTR_NAME, (const char *)pIter->name); name 1028 lib/common/xml.c const char *value = crm_element_value(xml, (const char *)pIter->name); name 1039 lib/common/xml.c result = create_xml_node(change, (const char *)xml->name); name 1042 lib/common/xml.c const char *value = crm_element_value(xml, (const char *)pIter->name); name 1046 lib/common/xml.c crm_xml_add(result, (const char *)pIter->name, value); name 1060 lib/common/xml.c crm_trace("%s.%s moved to position %d", xml->name, ID(xml), __xml_offset(xml)); name 1082 lib/common/xml.c const xmlChar *name = pIter->name; name 1088 lib/common/xml.c xml_remove_prop(xml, (const char *)name); name 1191 lib/common/xml.c const char *p_name = (const char *)xIter->name; name 1472 lib/common/xml.c const char *name = crm_element_value(child, "name"); name 1482 lib/common/xml.c o_set += snprintf(buffer_set + o_set, XML_BUFFER_SIZE - o_set, "@%s=%s", name, value); name 1488 lib/common/xml.c o_unset += snprintf(buffer_unset + o_unset, XML_BUFFER_SIZE - o_unset, "@%s", name); name 1615 lib/common/xml.c const char *name = NULL; name 1628 lib/common/xml.c name = crm_element_name(target); name 1629 lib/common/xml.c CRM_CHECK(name != NULL, return); name 1637 lib/common/xml.c crm_trace("We are the root of the deletion: %s.id=%s", name, id); name 1644 lib/common/xml.c const char *p_name = (const char *)xIter->name; name 1672 lib/common/xml.c const char *name = NULL; name 1687 lib/common/xml.c name = crm_element_name(patch); name 1688 lib/common/xml.c crm_trace("We are the root of the addition: %s.id=%s", name, id); name 1694 lib/common/xml.c name = crm_element_name(patch); name 1695 lib/common/xml.c crm_err("Could not locate: %s.id=%s", name, id); name 1703 lib/common/xml.c name = crm_element_name(target); name 1704 lib/common/xml.c CRM_CHECK(name != NULL, return); name 1709 lib/common/xml.c const char *p_name = (const char *)xIter->name; name 1922 lib/common/xml.c __first_xml_child_match(xmlNode *parent, const char *name, const char *id, int position) name 1927 lib/common/xml.c if(strcmp((const char *)cIter->name, name) != 0) { name 2032 lib/common/xml.c crm_trace("Processing %s %s", change->name, op); name 2070 lib/common/xml.c crm_trace("Adding %s at position %d", child->name, position); name 2074 lib/common/xml.c crm_trace("Adding %s at position %d (end)", child->name, position); name 2078 lib/common/xml.c crm_trace("Adding %s at position %d (first)", child->name, position); name 2104 lib/common/xml.c match->name, position, __xml_offset(match), match->prev, name 2116 lib/common/xml.c crm_trace("%s is already in position %d", match->name, position); name 2121 lib/common/xml.c match->name, ID(match), __xml_offset(match), position, match->prev); name 2137 lib/common/xml.c const char *name = (const char *)pIter->name; name 2140 lib/common/xml.c xml_remove_prop(match, name); name 2144 lib/common/xml.c const char *name = (const char *)pIter->name; name 2145 lib/common/xml.c const char *value = crm_element_value(attrs, name); name 2147 lib/common/xml.c crm_xml_add(match, name, value); name 2238 lib/common/xml.c const char *name = "NULL"; name 2241 lib/common/xml.c name = crm_element_name(root); name 2250 lib/common/xml.c if (strcmp((const char *)a_child->name, search_path) == 0) { name 2257 lib/common/xml.c crm_warn("Could not find %s in %s.", search_path, name); name 2259 lib/common/xml.c crm_trace("Could not find %s in %s.", search_path, name); name 2274 lib/common/xml.c if (node_name == NULL || strcmp((const char *)a_child->name, node_name) == 0) { name 2299 lib/common/xml.c const char *p_name = (const char *)pIter->name; name 2317 lib/common/xml.c const char *p_name = (const char *)pIter->name; name 2328 lib/common/xml.c expand_plus_plus(xmlNode * target, const char *name, const char *value) name 2337 lib/common/xml.c if (value == NULL || name == NULL) { name 2341 lib/common/xml.c old_value = crm_element_value(target, name); name 2347 lib/common/xml.c } else if (strstr(value, name) != value) { name 2351 lib/common/xml.c name_len = strlen(name); name 2376 lib/common/xml.c crm_xml_add_int(target, name, int_value); name 2384 lib/common/xml.c crm_xml_add(target, name, value); name 2419 lib/common/xml.c add_node_nocopy(xmlNode * parent, const char *name, xmlNode * child) name 2427 lib/common/xml.c __xml_acl_check(xmlNode *xml, const char *name, enum xml_private_flags mode) name 2448 lib/common/xml.c if(name) { name 2449 lib/common/xml.c offset += snprintf(buffer + offset, XML_BUFFER_SIZE - offset, "[@%s]", name); name 2458 lib/common/xml.c if(name) { name 2459 lib/common/xml.c xmlAttr *attr = xmlHasProp(xml, (const xmlChar *)name); name 2490 lib/common/xml.c crm_xml_add(xmlNode * node, const char *name, const char *value) name 2496 lib/common/xml.c CRM_CHECK(name != NULL, return NULL); name 2505 lib/common/xml.c old_value = crm_element_value(node, name); name 2508 lib/common/xml.c CRM_CHECK(old_value != value, crm_err("Cannot reset %s with crm_xml_add(%s)", name, value); name 2514 lib/common/xml.c const char *old = crm_element_value(node, name); name 2521 lib/common/xml.c if(dirty && __xml_acl_check(node, name, xpf_acl_create) == FALSE) { name 2522 lib/common/xml.c crm_trace("Cannot add %s=%s to %s", name, value, node->name); name 2526 lib/common/xml.c attr = xmlSetProp(node, (const xmlChar *)name, (const xmlChar *)value); name 2536 lib/common/xml.c crm_xml_replace(xmlNode * node, const char *name, const char *value) name 2543 lib/common/xml.c CRM_CHECK(name != NULL && name[0] != 0, return NULL); name 2545 lib/common/xml.c old_value = crm_element_value(node, name); name 2550 lib/common/xml.c if(__xml_acl_check(node, name, xpf_acl_write) == FALSE) { name 2552 lib/common/xml.c crm_trace("Cannot replace %s=%s to %s", name, value, node->name); name 2556 lib/common/xml.c xml_remove_prop(node, name); name 2569 lib/common/xml.c attr = xmlSetProp(node, (const xmlChar *)name, (const xmlChar *)value); name 2578 lib/common/xml.c crm_xml_add_int(xmlNode * node, const char *name, int value) name 2581 lib/common/xml.c const char *added = crm_xml_add(node, name, number); name 2588 lib/common/xml.c create_xml_node(xmlNode * parent, const char *name) name 2593 lib/common/xml.c if (name == NULL || name[0] == 0) { name 2594 lib/common/xml.c CRM_CHECK(name != NULL && name[0] == 0, return NULL); name 2600 lib/common/xml.c node = xmlNewDocRawNode(doc, NULL, (const xmlChar *)name, NULL); name 2605 lib/common/xml.c node = xmlNewDocRawNode(doc, NULL, (const xmlChar *)name, NULL); name 2622 lib/common/xml.c offset += snprintf(buffer + offset, XML_BUFFER_SIZE - offset, "/%s[@id='%s']", (const char *)xml->name, id); name 2623 lib/common/xml.c } else if(xml->name) { name 2624 lib/common/xml.c offset += snprintf(buffer + offset, XML_BUFFER_SIZE - offset, "/%s", (const char *)xml->name); name 3298 lib/common/xml.c p_name = (const char *)attr->name; name 3310 lib/common/xml.c const char *name = NULL; name 3320 lib/common/xml.c name = crm_element_name(data); name 3331 lib/common/xml.c buffer_print(buffer, max, offset, "<%s", name); name 3336 lib/common/xml.c const char *p_name = (const char *)pIter->name; name 3392 lib/common/xml.c buffer_print(buffer, max, offset, "</%s>", name); name 3446 lib/common/xml.c const char *aname = (const char*)pIter->name; name 3562 lib/common/xml.c const char *p_name = (const char *)xIter->name; name 3581 lib/common/xml.c const char *name = NULL; name 3597 lib/common/xml.c name = crm_element_name(data); name 3598 lib/common/xml.c CRM_ASSERT(name != NULL); name 3601 lib/common/xml.c buffer_print(*buffer, *max, *offset, "<%s", name); name 3632 lib/common/xml.c buffer_print(*buffer, *max, *offset, "</%s>", name); name 3844 lib/common/xml.c crm_element_value_int(xmlNode * data, const char *name, int *dest) name 3846 lib/common/xml.c const char *value = crm_element_value(data, name); name 3857 lib/common/xml.c crm_element_value_const_int(const xmlNode * data, const char *name, int *dest) name 3859 lib/common/xml.c return crm_element_value_int((xmlNode *) data, name, dest); name 3863 lib/common/xml.c crm_element_value_const(const xmlNode * data, const char *name) name 3865 lib/common/xml.c return crm_element_value((xmlNode *) data, name); name 3869 lib/common/xml.c crm_element_value_copy(xmlNode * data, const char *name) name 3872 lib/common/xml.c const char *value = crm_element_value(data, name); name 3881 lib/common/xml.c xml_remove_prop(xmlNode * obj, const char *name) name 3884 lib/common/xml.c crm_trace("Cannot remove %s from %s", name, obj->name); name 3889 lib/common/xml.c xmlAttr *attr = xmlHasProp(obj, (const xmlChar *)name); name 3897 lib/common/xml.c xmlUnsetProp(obj, (const xmlChar *)name); name 4049 lib/common/xml.c const char *name = (const char *)pIter->name; name 4050 lib/common/xml.c const char *old_value = crm_element_value(old, name); name 4051 lib/common/xml.c xmlAttr *exists = xmlHasProp(new, pIter->name); name 4059 lib/common/xml.c exists = xmlSetProp(new, (const xmlChar *)name, (const xmlChar *)old_value); name 4065 lib/common/xml.c crm_trace("Lost %s@%s=%s", old->name, name, old_value); name 4066 lib/common/xml.c xml_remove_prop(new, name); name 4071 lib/common/xml.c const char *value = crm_element_value(new, name); name 4080 lib/common/xml.c char *vcopy = crm_element_value_copy(new, name); name 4082 lib/common/xml.c crm_trace("Modified %s@%s %s->%s", old->name, name, old_value, vcopy); name 4083 lib/common/xml.c xmlSetProp(new, prop->name, (const xmlChar *)old_value); name 4084 lib/common/xml.c crm_xml_add(new, name, vcopy); name 4088 lib/common/xml.c crm_info("Moved %s@%s (%d -> %d)", old->name, name, p_old, p_new); name 4110 lib/common/xml.c char *name = strdup((const char *)prop->name); name 4111 lib/common/xml.c char *value = crm_element_value_copy(new, name); name 4113 lib/common/xml.c crm_trace("Created %s@%s=%s", new->name, name, value); name 4115 lib/common/xml.c if(__xml_acl_check(new, name, xpf_acl_write)) { name 4118 lib/common/xml.c xmlUnsetProp(new, prop->name); /* Remove - change not allowed */ name 4122 lib/common/xml.c free(name); name 4171 lib/common/xml.c new_child->name, ID(new_child), p_old, p_new); name 4233 lib/common/xml.c const char *name = crm_element_name(xml_node); name 4235 lib/common/xml.c if (safe_str_eq(name, XML_TAG_RESOURCE_REF) name 4236 lib/common/xml.c || safe_str_eq(name, XML_CIB_TAG_OBJ_REF) name 4237 lib/common/xml.c || safe_str_eq(name, XML_ACL_TAG_ROLE_REF) name 4238 lib/common/xml.c || safe_str_eq(name, XML_ACL_TAG_ROLE_REFv1)) { name 4243 lib/common/xml.c const char *p_name = (const char *)pIter->name; name 4273 lib/common/xml.c const char *name = crm_element_name(xml_node); name 4275 lib/common/xml.c CRM_CHECK(xml_node != NULL && name != NULL, return); name 4277 lib/common/xml.c us = create_xml_node(parent, name); name 4279 lib/common/xml.c const char *p_name = (const char *)pIter->name; name 4397 lib/common/xml.c const char *name = NULL; name 4428 lib/common/xml.c name = crm_element_name(left); name 4429 lib/common/xml.c CRM_CHECK(name != NULL, return NULL); name 4435 lib/common/xml.c crm_trace("We are the root of the deletion: %s.id=%s", name, id); name 4441 lib/common/xml.c diff = create_xml_node(parent, name); name 4467 lib/common/xml.c const char *p_name = (const char *)pIter->name; name 4482 lib/common/xml.c const char *prop_name = (const char *)xIter->name; name 4516 lib/common/xml.c const char *p_name = (const char *)pIter->name; name 4545 lib/common/xml.c const char *p_name = (const char *)pIter->name; name 4649 lib/common/xml.c const char *p_name = (const char *)pIter->name; name 4763 lib/common/xml.c const char *p_name = (const char *)pIter->name; name 4831 lib/common/xml.c crm_create_nvpair_xml(xmlNode *parent, const char *id, const char *name, name 4839 lib/common/xml.c CRM_CHECK(id || name, return NULL); name 4850 lib/common/xml.c (parent_id? parent_id : XML_CIB_TAG_NVPAIR), name); name 4852 lib/common/xml.c crm_xml_add(nvp, XML_NVPAIR_ATTR_NAME, name); name 4860 lib/common/xml.c const char *name = key; name 4864 lib/common/xml.c crm_create_nvpair_xml(xml_node, name, name, s_value); name 4865 lib/common/xml.c crm_trace("dumped: name=%s value=%s", name, s_value); name 4871 lib/common/xml.c const char *name = key; name 4876 lib/common/xml.c if (isdigit(name[0])) { name 4879 lib/common/xml.c crm_xml_add(tmp, XML_NVPAIR_ATTR_NAME, name); name 4882 lib/common/xml.c } else if (crm_element_value(xml_node, name) == NULL) { name 4883 lib/common/xml.c crm_xml_add(xml_node, name, s_value); name 4884 lib/common/xml.c crm_trace("dumped: %s=%s", name, s_value); name 4887 lib/common/xml.c crm_trace("duplicate: %s=%s", name, s_value); name 4894 lib/common/xml.c const char *name = key; name 4899 lib/common/xml.c if (crm_element_value(xml_node, name) == NULL) { name 4900 lib/common/xml.c crm_xml_add(xml_node, name, s_value); name 4903 lib/common/xml.c crm_trace("duplicate: %s=%s", name, s_value); name 4949 lib/common/xml.c const char *p_name = (const char *)pIter->name; name 4958 lib/common/xml.c if (strcmp((const char *)child->name, XML_TAG_PARAM) == 0) { name 4973 lib/common/xml.c const char *name; name 4985 lib/common/xml.c CRM_ASSERT(pair_a->name != NULL); name 4988 lib/common/xml.c CRM_ASSERT(pair_b->name != NULL); name 4990 lib/common/xml.c rc = strcmp(pair_a->name, pair_b->name); name 5005 lib/common/xml.c crm_xml_add(parent, pair->name, pair->value); name 5016 lib/common/xml.c const char *name = NULL; name 5021 lib/common/xml.c name = crm_element_name(input); name 5022 lib/common/xml.c CRM_CHECK(name != NULL, return NULL); name 5024 lib/common/xml.c result = create_xml_node(parent, name); name 5027 lib/common/xml.c const char *p_name = (const char *)pIter->name; name 5031 lib/common/xml.c pair->name = p_name; name 5053 lib/common/xml.c first_named_child(xmlNode * parent, const char *name) name 5063 lib/common/xml.c if (name == NULL || strcmp((const char *)match->name, name) == 0) { name 5081 lib/common/xml.c const char *name = crm_element_name(sibling); name 5084 lib/common/xml.c if (!strcmp(crm_element_name(match), name)) { name 5165 lib/common/xml.c crm_element_value(xmlNode * data, const char *name) name 5170 lib/common/xml.c crm_err("Couldn't find %s in NULL", name ? name : "<null>"); name 5174 lib/common/xml.c } else if (name == NULL) { name 5179 lib/common/xml.c attr = xmlHasProp(data, (const xmlChar *)name); name 251 lib/fencing/st_client.c stonith_api_remove_device(stonith_t * st, int call_options, const char *name) name 258 lib/fencing/st_client.c crm_xml_add(data, XML_ATTR_ID, name); name 440 lib/fencing/st_client.c char *name = NULL; name 457 lib/fencing/st_client.c free(name); name 458 lib/fencing/st_client.c name = calloc(1, 1 + lpc - last); name 459 lib/fencing/st_client.c memcpy(name, map + last, lpc - last); name 460 lib/fencing/st_client.c crm_debug("Got name: %s", name); name 472 lib/fencing/st_client.c if (name == NULL) { name 488 lib/fencing/st_client.c crm_debug("Setting '%s'='%s' (%s) for %s", name, value, param, victim); name 489 lib/fencing/st_client.c append_arg(name, value, arg_list); name 492 lib/fencing/st_client.c crm_err("No node attribute '%s' for '%s'", name, victim); name 495 lib/fencing/st_client.c free(name); name 496 lib/fencing/st_client.c name = NULL; name 506 lib/fencing/st_client.c free(name); name 1733 lib/fencing/st_client.c stonith_api_signon(stonith_t * stonith, const char *name, int *stonith_fd) name 1775 lib/fencing/st_client.c crm_xml_add(hello, F_STONITH_CLIENTNAME, name); name 2554 lib/fencing/st_client.c char *name = NULL; name 2571 lib/fencing/st_client.c name = strdup(uname); name 2575 lib/fencing/st_client.c name = crm_itoa(nodeid); name 2583 lib/fencing/st_client.c rc = st->cmds->fence(st, opts, name, action, timeout, 0); name 2596 lib/fencing/st_client.c free(name); name 2604 lib/fencing/st_client.c char *name = NULL; name 2620 lib/fencing/st_client.c name = strdup(uname); name 2624 lib/fencing/st_client.c name = crm_itoa(nodeid); name 2632 lib/fencing/st_client.c rc = st->cmds->history(st, opts, name, &history, 120); name 2665 lib/fencing/st_client.c free(name); name 38 lib/lrmd/lrmd_alerts.c alert_key2param(lrmd_key_value_t *head, enum crm_alert_keys_e name, name 46 lib/lrmd/lrmd_alerts.c for (key = crm_alert_keys[name]; *key; key++) { name 54 lib/lrmd/lrmd_alerts.c alert_key2param_int(lrmd_key_value_t *head, enum crm_alert_keys_e name, name 59 lib/lrmd/lrmd_alerts.c head = alert_key2param(head, name, value_s); name 895 lib/lrmd/lrmd_client.c lrmd_handshake(lrmd_t * lrmd, const char *name) name 904 lib/lrmd/lrmd_client.c crm_xml_add(hello, F_LRMD_CLIENTNAME, name); name 1122 lib/lrmd/lrmd_client.c char *name; name 1175 lib/lrmd/lrmd_client.c name = crm_strdup_printf("remote-lrmd-%s:%d", native->server, native->port); name 1179 lib/lrmd/lrmd_client.c mainloop_add_fd(name, G_PRIORITY_HIGH, native->sock, lrmd, &lrmd_tls_callbacks); name 1181 lib/lrmd/lrmd_client.c rc = lrmd_handshake(lrmd, name); name 1182 lib/lrmd/lrmd_client.c free(name); name 1257 lib/lrmd/lrmd_client.c char *name = crm_strdup_printf("remote-lrmd-%s:%d", name 1262 lib/lrmd/lrmd_client.c mainloop_add_fd(name, G_PRIORITY_HIGH, native->sock, lrmd, &lrmd_tls_callbacks); name 1263 lib/lrmd/lrmd_client.c free(name); name 1270 lib/lrmd/lrmd_client.c lrmd_api_connect(lrmd_t * lrmd, const char *name, int *fd) name 1289 lib/lrmd/lrmd_client.c rc = lrmd_handshake(lrmd, name); name 1296 lib/lrmd/lrmd_client.c lrmd_api_connect_async(lrmd_t * lrmd, const char *name, int timeout) name 1310 lib/lrmd/lrmd_client.c rc = lrmd_api_connect(lrmd, name, NULL); name 238 lib/lrmd/proxy_common.c const char *name = crm_element_value(msg, F_LRMD_IPC_CLIENT); name 280 lib/lrmd/proxy_common.c op, msg_id, proxy->node_name, crm_ipc_name(proxy->ipc), name, pcmk_strerror(rc), rc); name 291 lib/lrmd/proxy_common.c op, msg_id, proxy->node_name, crm_ipc_name(proxy->ipc), name); name 301 lib/lrmd/proxy_common.c op, msg_id, proxy->node_name, crm_ipc_name(proxy->ipc), name); name 306 lib/lrmd/proxy_common.c op, msg_id, proxy->node_name, crm_ipc_name(proxy->ipc), name, pcmk_strerror(rc), rc); name 309 lib/lrmd/proxy_common.c op, msg_id, proxy->node_name, crm_ipc_name(proxy->ipc), name); name 202 lib/pengine/clone.c if (crm_str_eq((const char *)a_child->name, XML_CIB_TAG_RESOURCE, TRUE) name 203 lib/pengine/clone.c || crm_str_eq((const char *)a_child->name, XML_CIB_TAG_GROUP, TRUE)) { name 190 lib/pengine/common.c pe_pref(GHashTable * options, const char *name) name 192 lib/pengine/common.c return get_cluster_pref(options, pe_opts, DIMOF(pe_opts), name); name 423 lib/pengine/common.c add_hash_param(GHashTable * hash, const char *name, const char *value) name 427 lib/pengine/common.c crm_trace("adding: name=%s value=%s", crm_str(name), crm_str(value)); name 428 lib/pengine/common.c if (name == NULL || value == NULL) { name 434 lib/pengine/common.c } else if (g_hash_table_lookup(hash, name) == NULL) { name 435 lib/pengine/common.c g_hash_table_insert(hash, strdup(name), strdup(value)); name 440 lib/pengine/common.c pe_node_attribute_calculated(pe_node_t *node, const char *name, resource_t *rsc) name 448 lib/pengine/common.c return g_hash_table_lookup(node->details->attrs, name); name 453 lib/pengine/common.c return g_hash_table_lookup(node->details->attrs, name); name 468 lib/pengine/common.c pe_rsc_trace(rsc, "%s: Looking for %s on the container host %s", rsc->id, name, host->details->uname); name 469 lib/pengine/common.c return g_hash_table_lookup(host->details->attrs, name); name 473 lib/pengine/common.c rsc->id, name, node->details->remote_rsc->container->id); name 478 lib/pengine/common.c pe_node_attribute_raw(pe_node_t *node, const char *name) name 483 lib/pengine/common.c return g_hash_table_lookup(node->details->attrs, name); name 83 lib/pengine/complex.c get_resource_type(const char *name) name 85 lib/pengine/complex.c if (safe_str_eq(name, XML_CIB_TAG_RESOURCE)) { name 88 lib/pengine/complex.c } else if (safe_str_eq(name, XML_CIB_TAG_GROUP)) { name 91 lib/pengine/complex.c } else if (safe_str_eq(name, XML_CIB_TAG_INCARNATION)) { name 94 lib/pengine/complex.c } else if (safe_str_eq(name, XML_CIB_TAG_MASTER)) { name 97 lib/pengine/complex.c } else if (safe_str_eq(name, XML_CIB_TAG_CONTAINER)) { name 145 lib/pengine/complex.c const char *prop_name = (const char *)xIter->name; name 226 lib/pengine/complex.c const char *name = crm_element_value(op, "name"); name 235 lib/pengine/complex.c key = crm_concat(name, role, '-'); name 286 lib/pengine/complex.c xmlNodeSetName(new_xml, xml_obj->name); name 302 lib/pengine/complex.c if (crm_str_eq((const char *)new_child->name, "operations", TRUE)) { name 93 lib/pengine/container.c create_resource(const char *name, const char *provider, const char *kind) name 97 lib/pengine/container.c crm_xml_add(rsc, XML_ATTR_ID, name); name 757 lib/pengine/container.c const char *name; name 774 lib/pengine/container.c name = "addr"; name 775 lib/pengine/container.c value = g_hash_table_lookup(rsc->parameters, name); name 781 lib/pengine/container.c name = attr_list[lpc]; name 961 lib/pengine/container.c crm_xml_set_id(xml_resource, "%s-%s", container_data->prefix, xml_resource->name); name 964 lib/pengine/container.c crm_xml_set_id(xml_set, "%s-%s-meta", container_data->prefix, xml_resource->name); name 165 lib/pengine/failcounts.c const char *name = (rsc->clone_name? rsc->clone_name : rsc->id); name 167 lib/pengine/failcounts.c return is_set(rsc->flags, pe_rsc_unique)? strdup(name) : clone_strip(name); name 62 lib/pengine/group.c if (crm_str_eq((const char *)xml_native_rsc->name, XML_CIB_TAG_RESOURCE, TRUE)) { name 242 lib/pengine/native.c native_parameter(resource_t * rsc, node_t * node, gboolean create, const char *name, name 251 lib/pengine/native.c CRM_CHECK(name != NULL && strlen(name) != 0, return NULL); name 253 lib/pengine/native.c pe_rsc_trace(rsc, "Looking up %s in %s", name, rsc->id); name 269 lib/pengine/native.c value = g_hash_table_lookup(hash, name); name 272 lib/pengine/native.c value = g_hash_table_lookup(rsc->meta, name); name 479 lib/pengine/native.c common_print(resource_t * rsc, const char *pre_text, const char *name, node_t *node, long options, void *print_data) name 541 lib/pengine/native.c offset += snprintf(buffer + offset, LINE_MAX - offset, "%s", name); name 50 lib/pengine/rules.c if (crm_str_eq((const char *)rule->name, XML_TAG_RULE, TRUE)) { name 461 lib/pengine/rules.c decodeNVpair(const char *srcstring, char separator, char **name, char **value) name 467 lib/pengine/rules.c CRM_ASSERT(name != NULL && value != NULL); name 468 lib/pengine/rules.c *name = NULL; name 476 lib/pengine/rules.c *name = calloc(1, lpc + 1); name 477 lib/pengine/rules.c if (*name == NULL) { name 480 lib/pengine/rules.c memcpy(*name, srcstring, lpc); name 481 lib/pengine/rules.c (*name)[lpc] = '\0'; name 506 lib/pengine/rules.c if (*name != NULL) { name 507 lib/pengine/rules.c free(*name); name 508 lib/pengine/rules.c *name = NULL; name 510 lib/pengine/rules.c *name = NULL; name 677 lib/pengine/rules.c const char *name; name 696 lib/pengine/rules.c if (safe_str_eq(pair_a->name, pair_a->special_name)) { name 699 lib/pengine/rules.c } else if (safe_str_eq(pair_b->name, pair_a->special_name)) { name 714 lib/pengine/rules.c const char *name = NULL; name 720 lib/pengine/rules.c name = crm_element_name(list->children); name 721 lib/pengine/rules.c if (safe_str_eq(XML_TAG_ATTRS, name)) { name 726 lib/pengine/rules.c if (crm_str_eq((const char *)an_attr->name, XML_CIB_TAG_NVPAIR, TRUE)) { name 729 lib/pengine/rules.c name = crm_element_value(an_attr, XML_NVPAIR_ATTR_NAME); name 730 lib/pengine/rules.c if (name == NULL) { name 731 lib/pengine/rules.c name = crm_element_value(ref_nvpair, XML_NVPAIR_ATTR_NAME); name 734 lib/pengine/rules.c crm_trace("Setting attribute: %s", name); name 740 lib/pengine/rules.c if (name == NULL || value == NULL) { name 745 lib/pengine/rules.c old_value = g_hash_table_lookup(hash, name); name 749 lib/pengine/rules.c crm_trace("Removing value for %s (%s)", name, value); name 750 lib/pengine/rules.c g_hash_table_remove(hash, name); name 755 lib/pengine/rules.c g_hash_table_insert(hash, strdup(name), strdup(value)); name 758 lib/pengine/rules.c crm_debug("Overwriting value of %s: %s -> %s", name, old_value, value); name 759 lib/pengine/rules.c g_hash_table_replace(hash, strdup(name), strdup(value)); name 773 lib/pengine/rules.c if (crm_str_eq((const char *)rule->name, XML_TAG_RULE, TRUE)) { name 847 lib/pengine/rules.c crm_trace("Adding attributes from %s", pair->name); name 884 lib/pengine/rules.c if (set_name == NULL || crm_str_eq((const char *)attr_set->name, set_name, TRUE)) { name 892 lib/pengine/rules.c pair->name = ID(attr_set); name 111 lib/pengine/rules_alerts.c const char *name = crm_element_value(child, XML_NVPAIR_ATTR_NAME); name 117 lib/pengine/rules_alerts.c g_hash_table_insert(entry->envvars, strdup(name), strdup(value)); name 119 lib/pengine/rules_alerts.c entry->id, name, value); name 461 lib/pengine/unpack.c if (safe_str_neq((const char *)attr_set->name, XML_TAG_META_SETS)) { name 467 lib/pengine/unpack.c const char *name = crm_element_value(attr, XML_NVPAIR_ATTR_NAME); name 469 lib/pengine/unpack.c if (safe_str_eq(name, XML_RSC_ATTR_REMOTE_NODE)) { name 471 lib/pengine/unpack.c } else if (safe_str_eq(name, "remote-addr")) { name 473 lib/pengine/unpack.c } else if (safe_str_eq(name, "remote-port")) { name 475 lib/pengine/unpack.c } else if (safe_str_eq(name, "remote-connect-timeout")) { name 477 lib/pengine/unpack.c } else if (safe_str_eq(name, "remote-allow-migrate")) { name 479 lib/pengine/unpack.c } else if (safe_str_eq(name, XML_RSC_ATTR_MANAGED)) { name 535 lib/pengine/unpack.c if (crm_str_eq((const char *)xml_obj->name, XML_CIB_TAG_NODE, TRUE)) { name 640 lib/pengine/unpack.c if (crm_str_eq((const char *)xml_obj->name, XML_CIB_TAG_RESOURCE, TRUE)) { name 652 lib/pengine/unpack.c } else if (crm_str_eq((const char *)xml_obj->name, XML_CIB_TAG_GROUP, TRUE)) { name 749 lib/pengine/unpack.c if (crm_str_eq((const char *)xml_obj->name, XML_CIB_TAG_RSC_TEMPLATE, TRUE)) { name 808 lib/pengine/unpack.c if (crm_str_eq((const char *)xml_tag->name, XML_CIB_TAG_TAG, TRUE) == FALSE) { name 821 lib/pengine/unpack.c if (crm_str_eq((const char *)xml_obj_ref->name, XML_CIB_TAG_OBJ_REF, TRUE) == FALSE) { name 869 lib/pengine/unpack.c const char *prop_name = (const char *)xIter->name; name 913 lib/pengine/unpack.c if (crm_str_eq((const char *)xml_obj->name, XML_CIB_TAG_TICKET_STATE, TRUE) == FALSE) { name 1011 lib/pengine/unpack.c if (crm_str_eq((const char *)state->name, XML_CIB_TAG_STATE, TRUE) == FALSE) { name 1079 lib/pengine/unpack.c if (crm_str_eq((const char *)state->name, XML_CIB_TAG_STATE, TRUE) == FALSE) { name 1173 lib/pengine/unpack.c if (crm_str_eq((const char *)state->name, XML_CIB_TAG_TICKETS, TRUE)) { name 1194 lib/pengine/unpack.c if (crm_str_eq((const char *)state->name, XML_CIB_TAG_STATE, TRUE)) { name 2217 lib/pengine/unpack.c if (crm_str_eq((const char *)rsc_op->name, XML_LRM_TAG_RSC_OP, TRUE)) { name 2293 lib/pengine/unpack.c if (safe_str_neq((const char *)rsc_entry->name, XML_LRM_TAG_RESOURCE)) { name 2334 lib/pengine/unpack.c if (crm_str_eq((const char *)rsc_entry->name, XML_LRM_TAG_RESOURCE, TRUE)) { name 3374 lib/pengine/unpack.c if (crm_str_eq((const char *)rsc_op->name, XML_LRM_TAG_RSC_OP, TRUE)) { name 3434 lib/pengine/unpack.c if (crm_str_eq((const char *)node_state->name, XML_CIB_TAG_STATE, TRUE)) { name 3465 lib/pengine/unpack.c if (crm_str_eq((const char *)lrm_rsc->name, XML_LRM_TAG_RESOURCE, TRUE)) { name 641 lib/pengine/utils.c const char *name = NULL; name 652 lib/pengine/utils.c if (!crm_str_eq((const char *)operation->name, "op", TRUE)) { name 655 lib/pengine/utils.c name = crm_element_value(operation, "name"); name 664 lib/pengine/utils.c } else if (safe_str_neq(name, "monitor") || safe_str_neq(role, "Master")) { name 682 lib/pengine/utils.c const char *name = NULL; name 691 lib/pengine/utils.c if (crm_str_eq((const char *)operation->name, "op", TRUE)) { name 692 lib/pengine/utils.c name = crm_element_value(operation, "name"); name 699 lib/pengine/utils.c if (safe_str_neq(name, RSC_STATUS)) { name 891 lib/pengine/utils.c const char *name = crm_element_value(attr, XML_NVPAIR_ATTR_NAME); name 894 lib/pengine/utils.c if (safe_str_eq(name, XML_OP_ATTR_START_DELAY)) { name 898 lib/pengine/utils.c } else if (safe_str_eq(name, XML_OP_ATTR_ORIGIN)) { name 903 lib/pengine/utils.c } else if (safe_str_eq(name, XML_ATTR_TIMEOUT)) { name 935 lib/pengine/utils.c const char *prop_name = (const char *)xIter->name; name 1173 lib/pengine/utils.c const char *name = NULL; name 1183 lib/pengine/utils.c if (crm_str_eq((const char *)operation->name, "op", TRUE)) { name 1184 lib/pengine/utils.c name = crm_element_value(operation, "name"); name 1192 lib/pengine/utils.c match_key = generate_op_key(rsc->id, name, number); name 1199 lib/pengine/utils.c match_key = generate_op_key(rsc->clone_name, name, number); name 1361 lib/pengine/utils.c get_complex_task(resource_t * rsc, const char *name, gboolean allow_non_atomic) name 1363 lib/pengine/utils.c enum action_tasks task = text2task(name); name 1374 lib/pengine/utils.c crm_trace("Folding %s back into its atomic counterpart for %s", name, rsc->id); name 1778 lib/pengine/utils.c get_pseudo_op(const char *name, pe_working_set_t * data_set) name 1783 lib/pengine/utils.c op = g_hash_table_lookup(data_set->singletons, name); name 1786 lib/pengine/utils.c op = custom_action(NULL, strdup(name), name, NULL, TRUE, TRUE, data_set); name 1850 lib/pengine/utils.c const char *prop_name = (const char *)xIter->name; name 1851 lib/pengine/utils.c char *name = crm_strdup_printf(" %s ", prop_name); name 1852 lib/pengine/utils.c char *match = strstr(param_string, name); name 1854 lib/pengine/utils.c free(name); name 19 lib/services/dbus.c char *name; name 23 lib/services/dbus.c void (*callback)(const char *name, const char *value, void *userdata); name 121 lib/services/dbus.c error.name, error.message); name 308 lib/services/dbus.c DBusBasicValue name; name 322 lib/services/dbus.c dbus_message_iter_get_basic(&sv, &name); name 324 lib/services/dbus.c if(data->name && strcmp(name.str, data->name) != 0) { name 333 lib/services/dbus.c crm_trace("Property %s[%s] is '%s'", data->object, name.str, value.str); name 335 lib/services/dbus.c data->callback(name.str, value.str, data->userdata); name 342 lib/services/dbus.c if(data->name) { name 356 lib/services/dbus.c if(data->name && data->callback) { name 357 lib/services/dbus.c crm_trace("No value for property %s[%s]", data->object, data->name); name 358 lib/services/dbus.c data->callback(data->name, NULL, data->userdata); name 364 lib/services/dbus.c free(data->name); name 390 lib/services/dbus.c const char *obj, const gchar * iface, const char *name, name 391 lib/services/dbus.c void (*callback)(const char *name, const char *value, void *userdata), name 421 lib/services/dbus.c query_data->name = NULL; name 423 lib/services/dbus.c if(name) { name 424 lib/services/dbus.c query_data->name = strdup(name); name 38 lib/services/pcmk-dbus.h DBusConnection *connection, const char *target, const char *obj, const gchar * iface, const char *name, name 39 lib/services/pcmk-dbus.h void (*callback)(const char *name, const char *value, void *userdata), void *userdata, name 52 lib/services/services.c services_action_create(const char *name, const char *action, int interval, int timeout) name 54 lib/services/services.c return resources_action_create(name, PCMK_RESOURCE_CLASS_LSB, NULL, name, name 165 lib/services/services.c resources_action_create(const char *name, const char *standard, const char *provider, name 176 lib/services/services.c if (crm_strlen_zero(name)) { name 182 lib/services/services.c crm_err("Cannot create operation for %s without resource class", name); name 187 lib/services/services.c crm_err("Cannot create OCF operation for %s without provider", name); name 192 lib/services/services.c crm_err("Cannot create operation for %s without agent name", name); name 197 lib/services/services.c crm_err("Cannot create operation for %s without operation name", name); name 207 lib/services/services.c op->rsc = strdup(name); name 210 lib/services/services.c op->standard = expand_resource_class(name, standard, agent); name 214 lib/services/services.c op->id = generate_op_key(name, action, interval); name 641 lib/services/services.c services_action_cancel(const char *name, const char *action, int interval) name 644 lib/services/services.c char *id = generate_op_key(name, action, interval); name 704 lib/services/services.c services_action_kick(const char *name, const char *action, int interval /* ms */) name 707 lib/services/services.c char *id = generate_op_key(name, action, interval); name 87 lib/services/systemd.c method, error.message, error.name); name 124 lib/services/systemd.c systemd_get_property(const char *unit, const char *name, name 125 lib/services/systemd.c void (*callback)(const char *name, const char *value, void *userdata), name 130 lib/services/systemd.c name, callback, userdata, pending, timeout) name 156 lib/services/systemd.c systemd_unit_extension(const char *name) name 158 lib/services/systemd.c if (name) { name 159 lib/services/systemd.c const char *dot = strrchr(name, '.'); name 169 lib/services/systemd.c systemd_service_name(const char *name) name 171 lib/services/systemd.c if (name == NULL) { name 175 lib/services/systemd.c if (systemd_unit_extension(name)) { name 176 lib/services/systemd.c return strdup(name); name 179 lib/services/systemd.c return crm_strdup_printf("%s.service", name); name 256 lib/services/systemd.c if(op && !systemd_mask_error(op, error.name)) { name 309 lib/services/systemd.c char *name = NULL; name 326 lib/services/systemd.c name = systemd_service_name(arg_name); name 327 lib/services/systemd.c CRM_LOG_ASSERT(dbus_message_append_args(msg, DBUS_TYPE_STRING, &name, DBUS_TYPE_INVALID)); name 328 lib/services/systemd.c free(name); name 465 lib/services/systemd.c systemd_unit_exists(const char *name) name 472 lib/services/systemd.c unit = systemd_unit_by_name(name, NULL); name 481 lib/services/systemd.c systemd_unit_metadata(const char *name, int timeout) name 485 lib/services/systemd.c char *path = systemd_unit_by_name(name, NULL); name 492 lib/services/systemd.c desc = crm_strdup_printf("Systemd unit file for %s", name); name 513 lib/services/systemd.c " </special>\n" "</resource-agent>\n", name, desc, name); name 527 lib/services/systemd.c if (!systemd_mask_error(op, error.name)) { name 575 lib/services/systemd.c systemd_unit_check(const char *name, const char *state, void *userdata) name 579 lib/services/systemd.c crm_trace("Resource %s has %s='%s'", op->rsc, name, state); name 701 lib/services/systemd.c char *name = systemd_service_name(op->agent); name 703 lib/services/systemd.c CRM_LOG_ASSERT(dbus_message_append_args(msg, DBUS_TYPE_STRING, &name, DBUS_TYPE_INVALID)); name 706 lib/services/systemd.c free(name); name 27 lib/services/systemd.h G_GNUC_INTERNAL gboolean systemd_unit_exists(const gchar * name); name 28 lib/services/systemd.h G_GNUC_INTERNAL gboolean systemd_unit_running(const gchar * name); name 230 lib/services/upstart.c upstart_job_exists(const char *name) name 232 lib/services/upstart.c return upstart_job_by_name(name, NULL, DBUS_TIMEOUT_USE_DEFAULT); name 296 lib/services/upstart.c upstart_job_check(const char *name, const char *state, void *userdata) name 315 lib/services/upstart.c upstart_job_metadata(const char *name) name 336 lib/services/upstart.c " </special>\n" "</resource-agent>\n", name, name, name); name 380 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 28 lib/services/upstart.h G_GNUC_INTERNAL gboolean upstart_job_running(const gchar * name); name 121 lib/transition/unpack.c if (crm_str_eq((const char *)action_set->name, "action_set", TRUE)) { name 144 lib/transition/unpack.c if (crm_str_eq((const char *)inputs->name, "inputs", TRUE)) { name 230 lib/transition/unpack.c if (crm_str_eq((const char *)synapse->name, "synapse", TRUE)) { name 302 lib/transition/unpack.c const char *name = NULL; name 328 lib/transition/unpack.c while (g_hash_table_iter_next(&iter, (void **)&name, (void **)&value)) { name 329 lib/transition/unpack.c g_hash_table_insert(op->params, strdup(name), strdup(value)); name 137 libltdl/libltdl/lt__private.h #define LT__STRERROR(name) lt__error_string(LT_CONC(LT_ERROR_,name)) name 62 libltdl/libltdl/lt_dlloader.h const char * name; name 76 libltdl/libltdl/lt_dlloader.h LT_SCOPE lt_dlvtable * lt_dlloader_remove (const char *name); name 77 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 225 libltdl/loaders/dlopen.c vm_sym (lt_user_data LT__UNUSED loader_data, lt_module module, const char *name) name 227 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 LT__UNUSED loader_data, 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 LT__UNUSED loader_data, 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 LT__UNUSED loader_data, lt_module module, const char *name) name 215 libltdl/loaders/preopen.c while (symbol->name) name 217 libltdl/loaders/preopen.c if (streq (symbol->name, name)) name 339 libltdl/loaders/preopen.c if ((originator && streq (list->symlist->name, originator)) name 340 libltdl/loaders/preopen.c || (!originator && streq (list->symlist->name, "@PROGRAM@"))) name 349 libltdl/loaders/preopen.c while ((symbol = &list->symlist[++idx])->name != 0) name 352 libltdl/loaders/preopen.c && (strneq (symbol->name, "@PROGRAM@"))) name 354 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 LT__UNUSED loader_data, 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 51 libltdl/lt_dlloader.c const char * name = (const char *) userdata; name 55 libltdl/lt_dlloader.c return streq (vtable->name, name) ? (void *) item : NULL; name 105 libltdl/lt_dlloader.c fprintf (stderr, ", %s", (vtable && vtable->name) ? vtable->name : "(null)"); name 120 libltdl/lt_dlloader.c fprintf (stderr, "%s", (head && head->name) ? head->name : "(null)"); name 153 libltdl/lt_dlloader.c lt_dlloader_remove (const char *name) name 155 libltdl/lt_dlloader.c const lt_dlvtable * vtable = lt_dlloader_find (name); name 206 libltdl/lt_dlloader.c slist_unbox ((SList *) slist_remove (&loaders, loader_callback, (void *) name)); name 211 libltdl/lt_dlloader.c lt_dlloader_find (const char *name) name 213 libltdl/lt_dlloader.c return lt_dlloader_get (slist_find (loaders, loader_callback, (void *) name)); name 37 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 907 libltdl/ltdl.c char *name; name 913 libltdl/ltdl.c name = MALLOC (char, 1+ name_len); name 914 libltdl/ltdl.c if (name) name 915 libltdl/ltdl.c sprintf (name, "lib%s", p+2); name 918 libltdl/ltdl.c name = lt__strdup(p); name 920 libltdl/ltdl.c if (!name) name 923 libltdl/ltdl.c names[depcount++] = name; name 1160 libltdl/ltdl.c char * name = 0; name 1253 libltdl/ltdl.c name = MALLOC (char, ext - base_name + 1); name 1254 libltdl/ltdl.c if (!name) name 1267 libltdl/ltdl.c name[i] = base_name[i]; name 1271 libltdl/ltdl.c name[i] = '_'; name 1274 libltdl/ltdl.c name[ext - base_name] = LT_EOS_CHAR; name 1286 libltdl/ltdl.c archive_name = MALLOC (char, strlen (libprefix) + LT_STRLEN (name) + strlen (libext) + 2); name 1298 libltdl/ltdl.c if (strncmp(name, "lib", 3) == 0) name 1300 libltdl/ltdl.c sprintf (archive_name, "%s%s.%s", libprefix, name + 3, libext); name 1304 libltdl/ltdl.c sprintf (archive_name, "%s.%s", name, libext); name 1494 libltdl/ltdl.c MEMREASSIGN ((*phandle)->info.name, name); name 1505 libltdl/ltdl.c FREE (name); name 1989 libltdl/ltdl.c FREE (cur->info.name); name 2030 libltdl/ltdl.c + LT_STRLEN (handle->info.name); name 2047 libltdl/ltdl.c if (handle->info.name) name 2057 libltdl/ltdl.c strcat(sym, handle->info.name); name 2061 libltdl/ltdl.c strcpy(sym, handle->info.name); name 2431 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 99 lrmd/ipc_proxy.c client->name = crm_strdup_printf("proxy-%s-%d-%.8s", ipc_channel, client->pid, client->id); name 390 lrmd/lrmd.c crm_warn("LRMD reply to %s failed: %d", client->name, send_rc); name 404 lrmd/lrmd.c } else if (client->name == NULL) { name 412 lrmd/lrmd.c client->name, client->id, name 1469 lrmd/lrmd.c crm_warn("LRMD reply to %s failed: %d", client->name, send_rc); name 1696 lrmd/lrmd.c crm_err("Unknown %s from %s", op, client->name); name 143 lrmd/main.c if (!client->name) { name 147 lrmd/main.c client->name = crm_itoa(crm_ipcs_client_pid(c)); name 149 lrmd/main.c client->name = strdup(value); name 159 lrmd/main.c crm_xml_add(request, F_LRMD_CLIENTNAME, client->name); name 470 lrmd/main.c const char *name = "pcmk-init"; name 485 lrmd/main.c i = strlen(name); name 487 lrmd/main.c snprintf(argv[0], maxlen, "%s", name); name 104 lrmd/tls_backend.c if (!client->name) { name 108 lrmd/tls_backend.c client->name = strdup(value); name 118 lrmd/tls_backend.c crm_xml_add(request, F_LRMD_CLIENTNAME, client->name); name 154 lrmd/tls_backend.c client->name ? client->name : "<unknown>", client->id); name 216 mcp/corosync.c config_find_next(confdb_handle_t config, const char *name, confdb_handle_t top_handle) name 222 mcp/corosync.c crm_err("Couldn't search for %s: no valid context", name); name 226 mcp/corosync.c crm_trace("Searching for %s in " HDB_X_FORMAT, name, top_handle); name 227 mcp/corosync.c rc = confdb_object_find(config, top_handle, name, strlen(name), &local_handle); name 229 mcp/corosync.c crm_info("No additional configuration supplied for: %s", name); name 232 mcp/corosync.c crm_info("Processing additional %s options...", name); name 56 mcp/pacemaker.c const char *name; name 138 mcp/pacemaker.c crm_err("Child respawn count exceeded by %s", child->name); name 147 mcp/pacemaker.c crm_err("Rebooting system because of %s", child->name); name 151 mcp/pacemaker.c crm_notice("Respawning failed child process: %s", child->name); name 160 mcp/pacemaker.c const char *name = mainloop_child_name(p); name 163 mcp/pacemaker.c crm_warn("The %s process (%d) terminated with signal %d (core=%d)", name, pid, signo, core); name 166 mcp/pacemaker.c crm_err("The %s process (%d) terminated with signal %d (core=%d)", name, pid, signo, core); name 171 mcp/pacemaker.c crm_info("The %s process (%d) exited: %s (%d)", name, pid, pcmk_strerror(exitcode), exitcode); name 175 mcp/pacemaker.c crm_warn("The %s process (%d) can no longer be respawned, shutting the cluster down.", name, pid); name 182 mcp/pacemaker.c do_crm_log_always(LOG_EMERG, "The %s process (%d) instructed the machine to reset", name, pid); name 190 mcp/pacemaker.c crm_err("The %s process (%d) exited: %s (%d)", name, pid, pcmk_strerror(exitcode), exitcode); name 206 mcp/pacemaker.c crm_debug("Nothing to do for child \"%s\"", child->name); name 211 mcp/pacemaker.c crm_trace("Client %s not running", child->name); name 218 mcp/pacemaker.c child->name, signal, child->pid); name 222 mcp/pacemaker.c child->name, child->pid, signal); name 248 mcp/pacemaker.c crm_info("Nothing to do for child \"%s\"", child->name); name 256 mcp/pacemaker.c } else if (env_callgrind != NULL && strstr(env_callgrind, child->name)) { name 263 mcp/pacemaker.c } else if (env_valgrind != NULL && strstr(env_valgrind, child->name)) { name 269 mcp/pacemaker.c " The location of the valgrind binary is unknown", child->name); name 275 mcp/pacemaker.c crm_err("Invalid user (%s) for %s: not found", child->uid, child->name); name 278 mcp/pacemaker.c crm_info("Using uid=%u and group=%u for process %s", uid, gid, child->name); name 286 mcp/pacemaker.c mainloop_child_add(child->pid, 0, child->name, child, pcmk_child_exit); name 288 mcp/pacemaker.c crm_info("Forked child %d for process %s%s", child->pid, child->name, name 363 mcp/pacemaker.c crm_err("Child %s not terminating in a timely manner, forcing", child->name); name 411 mcp/pacemaker.c child->name, child->pid, child->start_seq); name 417 mcp/pacemaker.c crm_debug("%s confirmed stopped", child->name); name 506 mcp/pacemaker.c const char *name = NULL; name 509 mcp/pacemaker.c name = crm_element_value(msg, XML_ATTR_UNAME); name 510 mcp/pacemaker.c crm_notice("Instructing peers to remove references to node %s/%u", name, id); name 704 mcp/pacemaker.c const char *name = pcmk_children[lpc].name; name 706 mcp/pacemaker.c name = "stonithd"; name 709 mcp/pacemaker.c if (crm_pid_active(pcmk_children[lpc].pid, name) != 1) { name 711 mcp/pacemaker.c name, pcmk_children[lpc].pid); name 749 mcp/pacemaker.c const char *name = pcmk_children[i].name; name 755 mcp/pacemaker.c name = "stonithd"; name 757 mcp/pacemaker.c if (safe_str_eq(entry_name, name) && (crm_pid_active(pid, NULL) == 1)) { name 758 mcp/pacemaker.c crm_notice("Tracking existing %s process (pid=%d)", name, pid); name 849 mcp/pacemaker.c const char *name = NULL; name 852 mcp/pacemaker.c name = crm_element_value(xml, XML_ATTR_UNAME); name 853 mcp/pacemaker.c reap_crm_member(id, name); name 423 pengine/allocate.c if (crm_str_eq((const char *)rsc_op->name, XML_LRM_TAG_RSC_OP, TRUE)) { name 554 pengine/allocate.c if (crm_str_eq((const char *)node_state->name, XML_CIB_TAG_STATE, TRUE)) { name 577 pengine/allocate.c if (crm_str_eq((const char *)rsc_entry->name, XML_LRM_TAG_RESOURCE, TRUE)) { name 1426 pengine/clone.c char *name = NULL; name 1431 pengine/clone.c name = crm_meta_name(XML_RSC_ATTR_UNIQUE); name 1432 pengine/clone.c crm_xml_add(xml, name, is_set(rsc->flags, pe_rsc_unique) ? "true" : "false"); name 1433 pengine/clone.c free(name); name 1435 pengine/clone.c name = crm_meta_name(XML_RSC_ATTR_NOTIFY); name 1436 pengine/clone.c crm_xml_add(xml, name, is_set(rsc->flags, pe_rsc_notify) ? "true" : "false"); name 1437 pengine/clone.c free(name); name 1439 pengine/clone.c name = crm_meta_name(XML_RSC_ATTR_INCARNATION_MAX); name 1440 pengine/clone.c crm_xml_add_int(xml, name, clone_data->clone_max); name 1441 pengine/clone.c free(name); name 1443 pengine/clone.c name = crm_meta_name(XML_RSC_ATTR_INCARNATION_NODEMAX); name 1444 pengine/clone.c crm_xml_add_int(xml, name, clone_data->clone_node_max); name 1445 pengine/clone.c free(name); name 472 pengine/constraints.c if (safe_str_neq((const char *)set->name, XML_CONS_TAG_RSC_SET)) { name 481 pengine/constraints.c if (safe_str_neq((const char *)xml_rsc->name, XML_TAG_RESOURCE_REF)) { name 763 pengine/constraints.c if (crm_str_eq((const char *)rule_xml->name, XML_TAG_RULE, TRUE)) { name 906 pengine/constraints.c if (crm_str_eq((const char *)xml_rsc->name, XML_TAG_RESOURCE_REF, TRUE)) { name 934 pengine/constraints.c if (crm_str_eq((const char *)set->name, XML_CONS_TAG_RSC_SET, TRUE)) { name 1614 pengine/constraints.c if (crm_str_eq((const char *)xml_rsc->name, XML_TAG_RESOURCE_REF, TRUE)) { name 1798 pengine/constraints.c if (!crm_str_eq((const char *)xml_rsc->name, XML_TAG_RESOURCE_REF, TRUE)) { name 1811 pengine/constraints.c if (!crm_str_eq((const char *)xml_rsc_2->name, XML_TAG_RESOURCE_REF, TRUE)) { name 1833 pengine/constraints.c if (crm_str_eq((const char *)xml_rsc->name, XML_TAG_RESOURCE_REF, TRUE)) { name 1842 pengine/constraints.c if (crm_str_eq((const char *)xml_rsc->name, XML_TAG_RESOURCE_REF, TRUE)) { name 1854 pengine/constraints.c if (crm_str_eq((const char *)xml_rsc->name, XML_TAG_RESOURCE_REF, TRUE)) { name 1865 pengine/constraints.c if (crm_str_eq((const char *)xml_rsc->name, XML_TAG_RESOURCE_REF, TRUE)) { name 1878 pengine/constraints.c if (crm_str_eq((const char *)xml_rsc->name, XML_TAG_RESOURCE_REF, TRUE)) { name 1888 pengine/constraints.c if (crm_str_eq((const char *)xml_rsc->name, XML_TAG_RESOURCE_REF, TRUE)) { name 1896 pengine/constraints.c if (crm_str_eq((const char *)xml_rsc->name, XML_TAG_RESOURCE_REF, TRUE)) { name 1903 pengine/constraints.c if (crm_str_eq((const char *)xml_rsc_2->name, XML_TAG_RESOURCE_REF, TRUE)) { name 2077 pengine/constraints.c if (crm_str_eq((const char *)set->name, XML_CONS_TAG_RSC_SET, TRUE)) { name 2182 pengine/constraints.c if (crm_str_eq((const char *)xml_rsc->name, XML_TAG_RESOURCE_REF, TRUE)) { name 2196 pengine/constraints.c if (crm_str_eq((const char *)xml_rsc->name, XML_TAG_RESOURCE_REF, TRUE)) { name 2215 pengine/constraints.c if (crm_str_eq((const char *)xml_rsc->name, XML_TAG_RESOURCE_REF, TRUE)) { name 2222 pengine/constraints.c if (crm_str_eq((const char *)xml_rsc_with->name, XML_TAG_RESOURCE_REF, TRUE)) { name 2261 pengine/constraints.c if (crm_str_eq((const char *)xml_rsc->name, XML_TAG_RESOURCE_REF, TRUE)) { name 2273 pengine/constraints.c if (crm_str_eq((const char *)xml_rsc->name, XML_TAG_RESOURCE_REF, TRUE)) { name 2285 pengine/constraints.c if (crm_str_eq((const char *)xml_rsc->name, XML_TAG_RESOURCE_REF, TRUE)) { name 2293 pengine/constraints.c if (crm_str_eq((const char *)xml_rsc->name, XML_TAG_RESOURCE_REF, TRUE)) { name 2301 pengine/constraints.c if (crm_str_eq((const char *)xml_rsc->name, XML_TAG_RESOURCE_REF, TRUE)) { name 2308 pengine/constraints.c if (crm_str_eq((const char *)xml_rsc_2->name, XML_TAG_RESOURCE_REF, TRUE)) { name 2540 pengine/constraints.c if (crm_str_eq((const char *)set->name, XML_CONS_TAG_RSC_SET, TRUE)) { name 2888 pengine/constraints.c if (crm_str_eq((const char *)set->name, XML_CONS_TAG_RSC_SET, TRUE)) { name 451 pengine/master.c lookup_master_score(resource_t * rsc, node_t *node, const char *name) name 455 pengine/master.c if (node && name) { name 456 pengine/master.c char *attr_name = crm_strdup_printf("master-%s", name); name 467 pengine/master.c char *name = rsc->id; name 524 pengine/master.c name = rsc->clone_name; name 527 pengine/master.c attr_value = lookup_master_score(rsc, node, name); name 529 pengine/master.c name, node->details->uname, crm_str(attr_value)); name 536 pengine/master.c name = clone_strip(rsc->id); name 537 pengine/master.c if (strcmp(rsc->id, name)) { name 538 pengine/master.c attr_value = lookup_master_score(rsc, node, name); name 540 pengine/master.c name, node->details->uname, crm_str(attr_value)); name 542 pengine/master.c free(name); name 1069 pengine/master.c char *name = NULL; name 1076 pengine/master.c name = crm_meta_name(XML_RSC_ATTR_MASTER_MAX); name 1077 pengine/master.c crm_xml_add_int(xml, name, clone_data->master_max); name 1078 pengine/master.c free(name); name 1080 pengine/master.c name = crm_meta_name(XML_RSC_ATTR_MASTER_NODEMAX); name 1081 pengine/master.c crm_xml_add_int(xml, name, clone_data->master_node_max); name 1082 pengine/master.c free(name); name 588 pengine/native.c is_op_dup(resource_t * rsc, const char *name, const char *interval) name 598 pengine/native.c if (crm_str_eq((const char *)operation->name, "op", TRUE)) { name 600 pengine/native.c if (safe_str_neq(value, name)) { name 633 pengine/native.c const char *name = NULL; name 665 pengine/native.c name = crm_element_value(operation, "name"); name 666 pengine/native.c if (is_op_dup(rsc, name, interval)) { name 670 pengine/native.c if (safe_str_eq(name, RSC_STOP) name 671 pengine/native.c || safe_str_eq(name, RSC_START) name 672 pengine/native.c || safe_str_eq(name, RSC_DEMOTE) name 673 pengine/native.c || safe_str_eq(name, RSC_PROMOTE) name 675 pengine/native.c crm_config_err("Invalid recurring action %s wth name: '%s'", ID(operation), name); name 679 pengine/native.c key = generate_op_key(rsc->id, name, interval_ms); name 733 pengine/native.c mon->cancel_task = strdup(name); name 735 pengine/native.c add_hash_param(mon->meta, XML_LRM_ATTR_TASK, name); name 773 pengine/native.c mon = custom_action(rsc, key, name, node, is_optional, TRUE, data_set); name 832 pengine/native.c if (crm_str_eq((const char *)operation->name, "op", TRUE)) { name 844 pengine/native.c const char *name = NULL; name 879 pengine/native.c name = crm_element_value(operation, "name"); name 880 pengine/native.c if (is_op_dup(rsc, name, interval)) { name 884 pengine/native.c if (safe_str_eq(name, RSC_STOP) name 885 pengine/native.c || safe_str_eq(name, RSC_START) name 886 pengine/native.c || safe_str_eq(name, RSC_DEMOTE) name 887 pengine/native.c || safe_str_eq(name, RSC_PROMOTE) name 889 pengine/native.c crm_config_err("Invalid recurring action %s wth name: '%s'", ID(operation), name); name 893 pengine/native.c key = generate_op_key(rsc->id, name, interval_ms); name 914 pengine/native.c cancel_op->cancel_task = strdup(name); name 916 pengine/native.c add_hash_param(cancel_op->meta, XML_LRM_ATTR_TASK, name); name 965 pengine/native.c stopped_mon = custom_action(rsc, strdup(key), name, stop_node, is_optional, TRUE, data_set); name 1056 pengine/native.c if (crm_str_eq((const char *)operation->name, "op", TRUE)) { name 3329 pengine/native.c char *name = NULL; name 3331 pengine/native.c name = crm_meta_name(XML_RSC_ATTR_INCARNATION); name 3332 pengine/native.c crm_xml_add(xml, name, value); name 3333 pengine/native.c free(name); name 3338 pengine/native.c char *name = NULL; name 3340 pengine/native.c name = crm_meta_name(XML_RSC_ATTR_REMOTE_NODE); name 3341 pengine/native.c crm_xml_add(xml, name, value); name 3342 pengine/native.c free(name); name 3353 pengine/native.c char *name = NULL; name 3363 pengine/native.c name = crm_meta_name(XML_RSC_ATTR_ISOLATION_WRAPPER); name 3364 pengine/native.c crm_xml_add(xml, name, iso_parent->isolation_wrapper); name 3365 pengine/native.c free(name); name 3368 pengine/native.c name = crm_meta_name(XML_RSC_ATTR_ISOLATION_INSTANCE); name 3391 pengine/native.c crm_xml_add(xml, name, iso); name 3416 pengine/native.c crm_xml_add(xml, name, iso_parent->id); name 3418 pengine/native.c crm_xml_add(xml, name, iso); name 3421 pengine/native.c crm_xml_add(xml, name, iso_parent->id); name 3424 pengine/native.c free(name); name 48 pengine/pengine.c const char *name; name 146 pengine/pengine.c seq = get_last_sequence(PE_STATE_DIR, series[series_id].name); name 148 pengine/pengine.c series[series_id].name, series_wrap, seq, value); name 157 pengine/pengine.c generate_series_filename(PE_STATE_DIR, series[series_id].name, seq, HAVE_BZLIB_H); name 211 pengine/pengine.c write_last_sequence(PE_STATE_DIR, series[series_id].name, seq + 1, series_wrap); name 29 replace/setenv.c setenv(const char *name, const char *value, int why) name 33 replace/setenv.c if (name && value) { name 36 replace/setenv.c envp = malloc(strlen(name) + strlen(value) + 2); name 43 replace/setenv.c sprintf(envp, "%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 224 tools/attrd_updater.c send_attrd_query(const char *name, const char *host, xmlNode **reply) name 239 tools/attrd_updater.c crm_xml_add(query, F_ATTRD_ATTRIBUTE, name); name 242 tools/attrd_updater.c crm_debug("Sending query for value of %s on %s", name, (host? host : "all nodes")); name 315 tools/attrd_updater.c if (safe_str_neq((const char*)child->name, XML_CIB_TAG_NODE)) { name 316 tools/attrd_updater.c crm_warn("Ignoring unexpected %s tag in query reply", child->name); name 55 tools/cib_shadow.c get_shadow_prompt(const char *name) name 57 tools/cib_shadow.c return crm_strdup_printf("shadow[%.40s] # ", name); name 61 tools/cib_shadow.c shadow_setup(char *name, gboolean do_switch) name 65 tools/cib_shadow.c char *new_prompt = get_shadow_prompt(name); name 75 tools/cib_shadow.c setenv("CIB_shadow", name, 1); name 91 tools/cib_shadow.c printf(" CIB_shadow=%s ; export CIB_shadow\n", name); name 98 tools/cib_shadow.c shadow_teardown(char *name) name 101 tools/cib_shadow.c char *our_prompt = get_shadow_prompt(name); name 182 tools/cibadmin.c if (safe_str_eq((const char *)xml->name, "xpath-query")) { name 80 tools/crm_error.c const char *name = pcmk_errorname(rc); name 82 tools/crm_error.c if(name == NULL || strcmp("Unknown", name) == 0) { name 85 tools/crm_error.c printf("%.3d: %-25s %s\n", rc, name, desc); name 427 tools/crm_mon.c for (lpc = 0; long_options[lpc].name != NULL; lpc++) { name 429 tools/crm_mon.c if (long_options[lpc].name[0] == '-') name 936 tools/crm_mon.c print_nvpair(FILE *stream, const char *name, const char *value, name 943 tools/crm_mon.c print_as(" %s=", name); name 949 tools/crm_mon.c fprintf(stream, " %s=", name); name 1529 tools/crm_mon.c if (crm_str_eq((const char *)rsc_op->name, XML_LRM_TAG_RSC_OP, TRUE)) { name 1599 tools/crm_mon.c if (crm_str_eq((const char *)rsc_entry->name, XML_LRM_TAG_RESOURCE, TRUE)) { name 1635 tools/crm_mon.c const char *name = g_hash_table_lookup(rsc->parameters, "name"); name 1637 tools/crm_mon.c if (name == NULL) { name 1638 tools/crm_mon.c name = "pingd"; name 1642 tools/crm_mon.c if (safe_str_eq(name, attrname)) { name 1703 tools/crm_mon.c create_attr_list(gpointer name, gpointer value, gpointer data) name 1708 tools/crm_mon.c CRM_CHECK(name != NULL, return); name 1712 tools/crm_mon.c if (g_str_has_prefix(name, filt_str[i])) { name 1717 tools/crm_mon.c attr_list = g_list_insert_sorted(attr_list, name, compare_attribute); name 1727 tools/crm_mon.c print_node_attribute(gpointer name, gpointer user_data) name 1732 tools/crm_mon.c value = pe_node_attribute_raw(data->node, name); name 1738 tools/crm_mon.c print_as(" + %-32s\t: %-10s", (char *)name, value); name 1744 tools/crm_mon.c (char *)name, value); name 1750 tools/crm_mon.c (char *)name, value); name 1759 tools/crm_mon.c name, value); name 1819 tools/crm_mon.c if (crm_str_eq((const char *)node_state->name, XML_CIB_TAG_STATE, TRUE)) { name 1836 tools/crm_mon.c print_ticket(gpointer name, gpointer value, gpointer data) name 3336 tools/crm_mon.c oid name[MAX_OID_LEN]; \ name 3338 tools/crm_mon.c if (snmp_parse_oid(oid_string, name, &name_length)) { \ name 3339 tools/crm_mon.c int s_rc = snmp_add_var(list, name, name_length, 's', (value)); \ name 3351 tools/crm_mon.c oid name[MAX_OID_LEN]; \ name 3353 tools/crm_mon.c if (snmp_parse_oid(oid_string, name, &name_length)) { \ name 3355 tools/crm_mon.c list, name, name_length, ASN_INTEGER, \ name 3812 tools/crm_mon.c if(strcmp((const char*)xml->name, XML_LRM_TAG_RSC_OP) != 0) { name 3931 tools/crm_mon.c const char *name = NULL; name 3957 tools/crm_mon.c name = (const char *)match->name; name 3960 tools/crm_mon.c crm_trace("Handling %s operation for %s %p, %s", op, xpath, match, name); name 3964 tools/crm_mon.c } else if(name == NULL) { name 3968 tools/crm_mon.c } else if(strcmp(name, XML_TAG_CIB) == 0) { name 3980 tools/crm_mon.c } else if(strcmp(name, XML_CIB_TAG_STATUS) == 0) { name 3991 tools/crm_mon.c } else if(strcmp(name, XML_CIB_TAG_STATE) == 0) { name 3998 tools/crm_mon.c } else if(strcmp(name, XML_CIB_TAG_LRM) == 0) { name 4002 tools/crm_mon.c } else if(strcmp(name, XML_LRM_TAG_RESOURCES) == 0) { name 4008 tools/crm_mon.c } else if(strcmp(name, XML_LRM_TAG_RESOURCE) == 0) { name 4014 tools/crm_mon.c } else if(strcmp(name, XML_LRM_TAG_RSC_OP) == 0) { name 4021 tools/crm_mon.c crm_trace("Ignoring %s operation for %s %p, %s", op, xpath, match, name); name 89 tools/crm_node.c cib_remove_node(uint32_t id, const char *name) name 96 tools/crm_node.c crm_trace("Removing %s from the CIB", name); name 98 tools/crm_node.c if(name == NULL && id == 0) { name 105 tools/crm_node.c crm_xml_add(node, XML_ATTR_UNAME, name); name 106 tools/crm_node.c crm_xml_add(node_state, XML_ATTR_UNAME, name); name 117 tools/crm_node.c printf("Could not remove %s/%u from " XML_CIB_TAG_NODES ": %s", name, id, pcmk_strerror(rc)); name 121 tools/crm_node.c printf("Could not remove %s/%u from " XML_CIB_TAG_STATUS ": %s", name, id, pcmk_strerror(rc)); name 135 tools/crm_node.c char *name = NULL; name 171 tools/crm_node.c name = strdup(node); name 173 tools/crm_node.c name = get_node_name(n); name 176 tools/crm_node.c crm_trace("Removing %s aka. %s (%u) from the membership cache", name, node, n); name 185 tools/crm_node.c crm_xml_add(cmd, F_ATTRD_HOST, name); name 200 tools/crm_node.c crm_xml_add(cmd, XML_ATTR_UNAME, name); name 204 tools/crm_node.c crm_debug("%s peer cache cleanup for %s (%u): %d", target, name, n, rc); name 207 tools/crm_node.c rc = cib_remove_node(n, name); name 216 tools/crm_node.c free(name); name 566 tools/crm_node.c static bool valid_cman_name(const char *name, uint32_t nodeid) name 573 tools/crm_node.c if(crm_str_eq(fakename, name, TRUE)) { name 946 tools/crm_node.c const char *name = getenv("OCF_RESKEY_" CRM_META "_" XML_LRM_ATTR_TARGET); name 947 tools/crm_node.c if(name == NULL) { name 948 tools/crm_node.c name = get_local_node_name(); name 950 tools/crm_node.c fprintf(stdout, "%s\n", name); name 762 tools/crm_resource.c char *name = calloc(1, strlen(argv[optind])); name 764 tools/crm_resource.c int rc = sscanf(argv[optind], "%[^=]=%s", name, value); name 767 tools/crm_resource.c g_hash_table_replace(override_params, name, value); name 772 tools/crm_resource.c free(name); name 78 tools/crm_resource_print.c if (crm_str_eq((const char *)op->name, "op", TRUE)) { name 79 tools/crm_resource_print.c const char *name = crm_element_value(op, "name"); name 81 tools/crm_resource_print.c if (safe_str_neq(name, CRMD_ACTION_START)) { name 556 tools/crm_resource_runtime.c const char *name = (rsc->clone_name? rsc->clone_name : rsc->id); name 558 tools/crm_resource_runtime.c return is_set(rsc->flags, pe_rsc_unique)? strdup(name) : clone_strip(name); name 1552 tools/crm_resource_runtime.c char *name = NULL; name 1556 tools/crm_resource_runtime.c while (g_hash_table_iter_next(&iter, (gpointer *) & name, (gpointer *) & value)) { name 1558 tools/crm_resource_runtime.c rsc->id, name, value); name 1559 tools/crm_resource_runtime.c g_hash_table_replace(op->params, strdup(name), strdup(value)); name 228 tools/crm_simulate.c const char *name = action->rsc->clone_name; name 240 tools/crm_simulate.c key = generate_notify_key(name, n_type, n_task); name 243 tools/crm_simulate.c key = generate_op_key(name, task, interval); name 104 tools/crm_ticket.c const char *name = NULL; name 111 tools/crm_ticket.c while (g_hash_table_iter_next(&iter, (void **)&name, (void **)&value)) { name 115 tools/crm_ticket.c fprintf(stdout, "%s=", name); name 116 tools/crm_ticket.c if (crm_str_eq(name, "last-granted", TRUE) name 117 tools/crm_ticket.c || crm_str_eq(name, "expires", TRUE)) { name 550 tools/crmadmin.c if (crm_str_eq((const char *)node->name, XML_CIB_TAG_NODE, TRUE)) { name 63 tools/fake_transition.c inject_transient_attr(xmlNode * cib_node, const char *name, const char *value) name 72 tools/fake_transition.c name, value, node_path, ID(cib_node)); name 87 tools/fake_transition.c crm_create_nvpair_xml(instance_attrs, NULL, name, value); name 101 tools/fake_transition.c char *name = NULL; name 104 tools/fake_transition.c name = crm_failcount_name(resource, task, interval); name 105 tools/fake_transition.c inject_transient_attr(cib_node, name, "value++"); name 106 tools/fake_transition.c free(name); name 108 tools/fake_transition.c name = crm_lastfailure_name(resource, task, interval); name 109 tools/fake_transition.c inject_transient_attr(cib_node, name, now); name 110 tools/fake_transition.c free(name); name 74 tools/ipmiservicelogd.c static void con_usage(const char *name, const char *help, void *cb_data); name 251 tools/ipmiservicelogd.c con_usage(const char *name, const char *help, void *cb_data) name 253 tools/ipmiservicelogd.c printf("\n%s%s", name, help); name 271 tools/ipmiservicelogd.c struct utsname name; name 276 tools/ipmiservicelogd.c if (uname(&name) == -1) { name 312 tools/ipmiservicelogd.c sl_event.platform = name.machine; /* ppc64, etc */ name 315 tools/ipmiservicelogd.c sl_event.nodename = name.nodename; name 356 tools/ipmiservicelogd.c char name[IPMI_ENTITY_NAME_LEN]; name 371 tools/ipmiservicelogd.c ipmi_sensor_get_id(sensor, name, sizeof(name)); name 420 tools/ipmiservicelogd.c char name[IPMI_ENTITY_NAME_LEN]; name 435 tools/ipmiservicelogd.c ipmi_sensor_get_id(sensor, name, sizeof(name));