a 53 daemons/attrd/attrd_commands.c void write_attribute(attribute_t *a, bool ignore_delay); a 54 daemons/attrd/attrd_commands.c void write_or_elect_attribute(attribute_t *a); a 73 daemons/attrd/attrd_commands.c attribute_t *a = data; a 74 daemons/attrd/attrd_commands.c crm_trace("Dampen interval expired for %s", a->id); a 75 daemons/attrd/attrd_commands.c write_or_elect_attribute(a); a 93 daemons/attrd/attrd_commands.c attribute_t *a = data; a 94 daemons/attrd/attrd_commands.c if(a) { a 95 daemons/attrd/attrd_commands.c free(a->id); a 96 daemons/attrd/attrd_commands.c free(a->set); a 97 daemons/attrd/attrd_commands.c free(a->uuid); a 98 daemons/attrd/attrd_commands.c free(a->user); a 100 daemons/attrd/attrd_commands.c mainloop_timer_del(a->timer); a 101 daemons/attrd/attrd_commands.c g_hash_table_destroy(a->values); a 103 daemons/attrd/attrd_commands.c free(a); a 141 daemons/attrd/attrd_commands.c add_attribute_value_xml(xmlNode *parent, attribute_t *a, attribute_value_t *v, a 146 daemons/attrd/attrd_commands.c crm_xml_add(xml, PCMK__XA_ATTR_NAME, a->id); a 147 daemons/attrd/attrd_commands.c crm_xml_add(xml, PCMK__XA_ATTR_SET, a->set); a 148 daemons/attrd/attrd_commands.c crm_xml_add(xml, PCMK__XA_ATTR_UUID, a->uuid); a 149 daemons/attrd/attrd_commands.c crm_xml_add(xml, PCMK__XA_ATTR_USER, a->user); a 158 daemons/attrd/attrd_commands.c crm_xml_add_int(xml, PCMK__XA_ATTR_DAMPENING, a->timeout_ms / 1000); a 159 daemons/attrd/attrd_commands.c crm_xml_add_int(xml, PCMK__XA_ATTR_IS_PRIVATE, a->is_private); a 170 daemons/attrd/attrd_commands.c attribute_t *a; a 174 daemons/attrd/attrd_commands.c while (g_hash_table_iter_next(&aIter, NULL, (gpointer *) & a)) { a 175 daemons/attrd/attrd_commands.c g_hash_table_iter_init(&vIter, a->values); a 178 daemons/attrd/attrd_commands.c crm_trace("Clear seen flag %s[%s] = %s.", a->id, v->nodename, v->current); a 188 daemons/attrd/attrd_commands.c attribute_t *a = calloc(1, sizeof(attribute_t)); a 190 daemons/attrd/attrd_commands.c a->id = crm_element_value_copy(xml, PCMK__XA_ATTR_NAME); a 191 daemons/attrd/attrd_commands.c a->set = crm_element_value_copy(xml, PCMK__XA_ATTR_SET); a 192 daemons/attrd/attrd_commands.c a->uuid = crm_element_value_copy(xml, PCMK__XA_ATTR_UUID); a 193 daemons/attrd/attrd_commands.c a->values = pcmk__strikey_table(NULL, free_attribute_value); a 195 daemons/attrd/attrd_commands.c crm_element_value_int(xml, PCMK__XA_ATTR_IS_PRIVATE, &a->is_private); a 197 daemons/attrd/attrd_commands.c a->user = crm_element_value_copy(xml, PCMK__XA_ATTR_USER); a 198 daemons/attrd/attrd_commands.c crm_trace("Performing all %s operations as user '%s'", a->id, a->user); a 202 daemons/attrd/attrd_commands.c crm_trace("Created attribute %s with delay %dms (%s)", a->id, dampen, value); a 204 daemons/attrd/attrd_commands.c crm_trace("Created attribute %s with no delay", a->id); a 208 daemons/attrd/attrd_commands.c a->timeout_ms = dampen; a 209 daemons/attrd/attrd_commands.c a->timer = mainloop_timer_add(a->id, a->timeout_ms, FALSE, attribute_timer_cb, a); a 211 daemons/attrd/attrd_commands.c crm_warn("Ignoring invalid delay %s for attribute %s", value, a->id); a 214 daemons/attrd/attrd_commands.c g_hash_table_replace(attributes, a->id, a); a 215 daemons/attrd/attrd_commands.c return a; a 276 daemons/attrd/attrd_commands.c attribute_t *a = NULL; a 322 daemons/attrd/attrd_commands.c a = g_hash_table_lookup(attributes, attr); a 330 daemons/attrd/attrd_commands.c if (a) { a 331 daemons/attrd/attrd_commands.c v = g_hash_table_lookup(a->values, host); a 439 daemons/attrd/attrd_commands.c attribute_t *a; a 448 daemons/attrd/attrd_commands.c a = g_hash_table_lookup(attributes, attr); a 449 daemons/attrd/attrd_commands.c if (a) { a 463 daemons/attrd/attrd_commands.c v = g_hash_table_lookup(a->values, host); a 477 daemons/attrd/attrd_commands.c g_hash_table_iter_init(&iter, a->values); a 701 daemons/attrd/attrd_commands.c attribute_t *a = NULL; a 708 daemons/attrd/attrd_commands.c while (g_hash_table_iter_next(&aIter, NULL, (gpointer *) & a)) { a 709 daemons/attrd/attrd_commands.c g_hash_table_iter_init(&vIter, a->values); a 711 daemons/attrd/attrd_commands.c crm_debug("Syncing %s[%s] = %s to %s", a->id, v->nodename, v->current, peer?peer->uname:"everyone"); a 712 daemons/attrd/attrd_commands.c add_attribute_value_xml(sync, a, v, false); a 732 daemons/attrd/attrd_commands.c attribute_t *a = NULL; a 739 daemons/attrd/attrd_commands.c while (g_hash_table_iter_next(&aIter, NULL, (gpointer *) & a)) { a 740 daemons/attrd/attrd_commands.c if(g_hash_table_remove(a->values, host)) { a 741 daemons/attrd/attrd_commands.c crm_debug("Removed %s[%s] for peer %s", a->id, host, source); a 790 daemons/attrd/attrd_commands.c attribute_t *a = NULL; a 795 daemons/attrd/attrd_commands.c while (g_hash_table_iter_next(&aIter, NULL, (gpointer *) & a)) { a 796 daemons/attrd/attrd_commands.c g_hash_table_iter_init(&vIter, a->values); a 804 daemons/attrd/attrd_commands.c add_attribute_value_xml(sync, a, v, a->timeout_ms && a->timer); a 829 daemons/attrd/attrd_commands.c broadcast_local_value(attribute_t *a) a 831 daemons/attrd/attrd_commands.c attribute_value_t *v = g_hash_table_lookup(a->values, attrd_cluster->uname); a 835 daemons/attrd/attrd_commands.c add_attribute_value_xml(sync, a, v, false); a 846 daemons/attrd/attrd_commands.c attribute_t *a; a 865 daemons/attrd/attrd_commands.c a = g_hash_table_lookup(attributes, attr); a 866 daemons/attrd/attrd_commands.c if (a == NULL) { a 868 daemons/attrd/attrd_commands.c a = create_attribute(xml); a 893 daemons/attrd/attrd_commands.c if (a->timeout_ms != dampen) { a 894 daemons/attrd/attrd_commands.c mainloop_timer_del(a->timer); a 895 daemons/attrd/attrd_commands.c a->timeout_ms = dampen; a 897 daemons/attrd/attrd_commands.c a->timer = mainloop_timer_add(attr, a->timeout_ms, FALSE, a 898 daemons/attrd/attrd_commands.c attribute_timer_cb, a); a 902 daemons/attrd/attrd_commands.c a->timer = NULL; a 909 daemons/attrd/attrd_commands.c write_or_elect_attribute(a); a 923 daemons/attrd/attrd_commands.c g_hash_table_iter_init(&vIter, a->values); a 932 daemons/attrd/attrd_commands.c v = attrd_lookup_or_create_value(a->values, host, xml); a 939 daemons/attrd/attrd_commands.c v = broadcast_local_value(a); a 946 daemons/attrd/attrd_commands.c a->changed = TRUE; a 960 daemons/attrd/attrd_commands.c if (a->timeout_ms && a->timer) { a 961 daemons/attrd/attrd_commands.c crm_trace("Delayed write out (%dms) for %s", a->timeout_ms, attr); a 962 daemons/attrd/attrd_commands.c mainloop_timer_start(a->timer); a 964 daemons/attrd/attrd_commands.c write_or_elect_attribute(a); a 968 daemons/attrd/attrd_commands.c if (is_force_write && a->timeout_ms && a->timer) { a 972 daemons/attrd/attrd_commands.c a->force_write = TRUE; a 997 daemons/attrd/attrd_commands.c write_or_elect_attribute(attribute_t *a) a 1000 daemons/attrd/attrd_commands.c write_attribute(a, FALSE); a 1081 daemons/attrd/attrd_commands.c attribute_t *a = g_hash_table_lookup(attributes, name); a 1083 daemons/attrd/attrd_commands.c if(a == NULL) { a 1088 daemons/attrd/attrd_commands.c a->update = 0; a 1097 daemons/attrd/attrd_commands.c if (a->timer && !a->timeout_ms) { a 1099 daemons/attrd/attrd_commands.c mainloop_timer_del(a->timer); a 1100 daemons/attrd/attrd_commands.c a->timer = NULL; a 1114 daemons/attrd/attrd_commands.c call_id, a->id, pcmk_strerror(rc), rc); a 1116 daemons/attrd/attrd_commands.c g_hash_table_iter_init(&iter, a->values); a 1118 daemons/attrd/attrd_commands.c do_crm_log(level, "* %s[%s]=%s", a->id, peer, v->requested); a 1122 daemons/attrd/attrd_commands.c a->changed = TRUE; /* Attempt write out again */ a 1126 daemons/attrd/attrd_commands.c if (a->changed && attrd_election_won()) { a 1131 daemons/attrd/attrd_commands.c write_attribute(a, FALSE); a 1142 daemons/attrd/attrd_commands.c } else if (a->timer) { a 1144 daemons/attrd/attrd_commands.c if (!mainloop_timer_running(a->timer)) { a 1146 daemons/attrd/attrd_commands.c a->timeout_ms, name); a 1147 daemons/attrd/attrd_commands.c mainloop_timer_start(a->timer); a 1154 daemons/attrd/attrd_commands.c a->timer = mainloop_timer_add(a->id, 2000, FALSE, a 1155 daemons/attrd/attrd_commands.c attribute_timer_cb, a); a 1156 daemons/attrd/attrd_commands.c mainloop_timer_start(a->timer); a 1165 daemons/attrd/attrd_commands.c attribute_t *a = NULL; a 1169 daemons/attrd/attrd_commands.c while (g_hash_table_iter_next(&iter, NULL, (gpointer *) & a)) { a 1170 daemons/attrd/attrd_commands.c if (!all && a->unknown_peer_uuids) { a 1172 daemons/attrd/attrd_commands.c a->changed = TRUE; a 1173 daemons/attrd/attrd_commands.c } else if (a->force_write) { a 1175 daemons/attrd/attrd_commands.c a->changed = TRUE; a 1178 daemons/attrd/attrd_commands.c if(all || a->changed) { a 1180 daemons/attrd/attrd_commands.c write_attribute(a, (a->force_write ? TRUE : ignore_delay)); a 1182 daemons/attrd/attrd_commands.c crm_trace("Skipping unchanged attribute %s", a->id); a 1188 daemons/attrd/attrd_commands.c build_update_element(xmlNode *parent, attribute_t *a, const char *nodeid, const char *value) a 1200 daemons/attrd/attrd_commands.c if (a->set) { a 1201 daemons/attrd/attrd_commands.c crm_xml_set_id(xml_obj, "%s", a->set); a 1208 daemons/attrd/attrd_commands.c if (a->uuid) { a 1209 daemons/attrd/attrd_commands.c crm_xml_set_id(xml_obj, "%s", a->uuid); a 1211 daemons/attrd/attrd_commands.c crm_xml_set_id(xml_obj, "%s-%s", set, a->id); a 1213 daemons/attrd/attrd_commands.c crm_xml_add(xml_obj, XML_NVPAIR_ATTR_NAME, a->id); a 1242 daemons/attrd/attrd_commands.c send_alert_attributes_value(attribute_t *a, GHashTable *t) a 1252 daemons/attrd/attrd_commands.c a->id, at->current); a 1254 daemons/attrd/attrd_commands.c a->id, at->nodename, at->current, at->nodeid, rc); a 1259 daemons/attrd/attrd_commands.c write_attribute(attribute_t *a, bool ignore_delay) a 1268 daemons/attrd/attrd_commands.c if (a == NULL) { a 1273 daemons/attrd/attrd_commands.c if (!a->is_private) { a 1277 daemons/attrd/attrd_commands.c if (a->update && (a->update < last_cib_op_done)) { a 1278 daemons/attrd/attrd_commands.c crm_info("Write out of '%s' continuing: update %d considered lost", a->id, a->update); a 1279 daemons/attrd/attrd_commands.c a->update = 0; // Don't log this message again a 1281 daemons/attrd/attrd_commands.c } else if (a->update) { a 1282 daemons/attrd/attrd_commands.c crm_info("Write out of '%s' delayed: update %d in progress", a->id, a->update); a 1285 daemons/attrd/attrd_commands.c } else if (mainloop_timer_running(a->timer)) { a 1290 daemons/attrd/attrd_commands.c mainloop_timer_stop(a->timer); a 1291 daemons/attrd/attrd_commands.c crm_debug("Write out of '%s': timer is running but ignore delay", a->id); a 1293 daemons/attrd/attrd_commands.c crm_info("Write out of '%s' delayed: timer is running", a->id); a 1303 daemons/attrd/attrd_commands.c a->changed = FALSE; a 1306 daemons/attrd/attrd_commands.c a->unknown_peer_uuids = FALSE; a 1309 daemons/attrd/attrd_commands.c a->force_write = FALSE; a 1315 daemons/attrd/attrd_commands.c g_hash_table_iter_init(&iter, a->values); a 1322 daemons/attrd/attrd_commands.c a->id, v->nodename, v->current); a 1333 daemons/attrd/attrd_commands.c if (a->is_private) { a 1340 daemons/attrd/attrd_commands.c a->unknown_peer_uuids = TRUE; a 1343 daemons/attrd/attrd_commands.c a->id, v->nodename, v->current); a 1349 daemons/attrd/attrd_commands.c a->id, v->nodename, v->current, a 1351 daemons/attrd/attrd_commands.c build_update_element(xml_top, a, peer->uuid, v->current); a 1373 daemons/attrd/attrd_commands.c a->id, (a->uuid? a->uuid : "n/a"), (a->set? a->set : "n/a")); a 1378 daemons/attrd/attrd_commands.c a->update = cib_internal_op(the_cib, CIB_OP_MODIFY, NULL, XML_CIB_TAG_STATUS, xml_top, NULL, a 1379 daemons/attrd/attrd_commands.c flags, a->user); a 1382 daemons/attrd/attrd_commands.c a->update, cib_updates, pcmk__plural_s(cib_updates), a 1383 daemons/attrd/attrd_commands.c a->id, (a->uuid? a->uuid : "n/a"), (a->set? a->set : "n/a")); a 1385 daemons/attrd/attrd_commands.c the_cib->cmds->register_callback_full(the_cib, a->update, a 1387 daemons/attrd/attrd_commands.c strdup(a->id), a 1391 daemons/attrd/attrd_commands.c send_alert_attributes_value(a, alert_attribute_value); a 101 daemons/based/based_io.c static int cib_archive_filter(const struct dirent * a) a 106 daemons/based/based_io.c char *a_path = crm_strdup_printf("%s/%s", cib_root, a->d_name); a 110 daemons/based/based_io.c crm_trace("%s - stat failed: %s (%d)", a->d_name, pcmk_strerror(rc), rc); a 116 daemons/based/based_io.c dtype = a->d_type; a 129 daemons/based/based_io.c crm_trace("%s - wrong type (%d)", a->d_name, dtype); a 131 daemons/based/based_io.c } else if(strstr(a->d_name, "cib-") != a->d_name) { a 132 daemons/based/based_io.c crm_trace("%s - wrong prefix", a->d_name); a 134 daemons/based/based_io.c } else if (pcmk__ends_with_ext(a->d_name, ".sig")) { a 135 daemons/based/based_io.c crm_trace("%s - wrong suffix", a->d_name); a 138 daemons/based/based_io.c crm_debug("%s - candidate", a->d_name); a 146 daemons/based/based_io.c static int cib_archive_sort(const struct dirent ** a, const struct dirent **b) a 155 daemons/based/based_io.c char *a_path = crm_strdup_printf("%s/%s", cib_root, a[0]->d_name); a 175 daemons/based/based_io.c a[0]->d_name, (unsigned long)a_age, a 2346 daemons/fenced/fenced_commands.c sort_device_priority(gconstpointer a, gconstpointer b) a 2348 daemons/fenced/fenced_commands.c const stonith_device_t *dev_a = a; a 140 daemons/fenced/fenced_history.c const remote_fencing_op_t **a = (const remote_fencing_op_t **) a_voidp; a 142 daemons/fenced/fenced_history.c gboolean a_pending = ((*a)->state != st_failed) && ((*a)->state != st_done); a 151 daemons/fenced/fenced_history.c } else if ((*b)->completed == (*a)->completed) { a 153 daemons/fenced/fenced_history.c } else if ((*b)->completed > (*a)->completed) { a 89 daemons/fenced/fenced_remote.c sort_strings(gconstpointer a, gconstpointer b) a 91 daemons/fenced/fenced_remote.c return strcmp(a, b); a 1697 daemons/fenced/fenced_remote.c sort_peers(gconstpointer a, gconstpointer b) a 1699 daemons/fenced/fenced_remote.c const st_query_result_t *peer_a = a; a 27 daemons/pacemakerd/pacemakerd.h #define SIZEOF(a) (sizeof(a) / sizeof(a[0])) a 27 devel/coccinelle/test/ref-passed-variables-inited.input.c int a = 1, b, c = 3; a 28 devel/coccinelle/test/ref-passed-variables-inited.input.c foo(&a); a 29 devel/coccinelle/test/ref-passed-variables-inited.input.c baz(a); a 38 include/crm/common/internal.h #define PCMK__NELEM(a) ((int) (sizeof(a)/sizeof(a[0])) ) a 51 include/crm/common/util_compat.h gboolean crm_str_eq(const char *a, const char *b, gboolean use_case); a 54 include/crm/common/util_compat.h gboolean safe_str_neq(const char *a, const char *b); a 57 include/crm/common/util_compat.h #define safe_str_eq(a, b) crm_str_eq(a, b, FALSE) a 88 include/crm/common/util_compat.h gboolean crm_strcase_equal(gconstpointer a, gconstpointer b); a 358 include/crm/pengine/internal.h extern gint sort_rsc_priority(gconstpointer a, gconstpointer b); a 359 include/crm/pengine/internal.h extern gint sort_rsc_index(gconstpointer a, gconstpointer b); a 432 include/crm/pengine/internal.h extern gint sort_op_by_callid(gconstpointer a, gconstpointer b); a 462 include/crm/pengine/internal.h gint sort_node_uname(gconstpointer a, gconstpointer b); a 39 lib/cib/cib_client.c gint ciblib_GCompareFunc(gconstpointer a, gconstpointer b); a 561 lib/cib/cib_client.c ciblib_GCompareFunc(gconstpointer a, gconstpointer b) a 564 lib/cib/cib_client.c const cib_notify_client_t *a_client = a; a 563 lib/cluster/cpg.c const struct cpg_address *const a = *((const struct cpg_address **) first), a 565 lib/cluster/cpg.c if (a->nodeid < b->nodeid) { a 567 lib/cluster/cpg.c } else if (a->nodeid > b->nodeid) { a 139 lib/common/crmcommon_private.h void pcmk__mark_xml_attr_dirty(xmlAttr *a); a 1387 lib/common/iso8601.c crm_time_compare(crm_time_t *a, crm_time_t *b) a 1390 lib/common/iso8601.c crm_time_t *t1 = crm_get_utc_time(a); a 363 lib/common/md5.c #define OP(a, b, c, d, s, T) \ a 366 lib/common/md5.c a += FF (b, c, d) + (*cwp++ = SWAP (*words)) + T; \ a 368 lib/common/md5.c CYCLIC (a, s); \ a 369 lib/common/md5.c a += b; \ a 409 lib/common/md5.c #define OP(f, a, b, c, d, k, s, T) \ a 412 lib/common/md5.c a += f (b, c, d) + correct_words[k] + T; \ a 413 lib/common/md5.c CYCLIC (a, s); \ a 414 lib/common/md5.c a += b; \ a 118 lib/common/nvpair.c pcmk__compare_nvpair(gconstpointer a, gconstpointer b) a 121 lib/common/nvpair.c const pcmk_nvpair_t *pair_a = a; a 124 lib/common/nvpair.c CRM_ASSERT(a != NULL); a 367 lib/common/operations.c should_filter_for_digest(xmlAttrPtr a, void *user_data) a 369 lib/common/operations.c if (strncmp((const char *) a->name, CRM_META "_", a 373 lib/common/operations.c return pcmk__str_any_of((const char *) a->name, a 282 lib/common/patchset.c for (xmlAttrPtr a = pcmk__xe_first_attr(next); a != NULL; a = a->next) { a 283 lib/common/patchset.c const char *p_value = crm_element_value(next, (const char *) a->name); a 285 lib/common/patchset.c xmlSetProp(cib, a->name, (pcmkXmlStr) p_value); a 1113 lib/common/patchset.c sort_change_obj_by_position(gconstpointer a, gconstpointer b) a 1115 lib/common/patchset.c const xml_change_obj_t *change_obj_a = a; a 129 lib/common/schemas.c schema_filter(const struct dirent *a) a 134 lib/common/schemas.c if (strstr(a->d_name, "pacemaker-") != a->d_name) { a 137 lib/common/schemas.c } else if (!pcmk__ends_with_ext(a->d_name, ".rng")) { a 140 lib/common/schemas.c } else if (!version_from_filename(a->d_name, &version)) { a 152 lib/common/schemas.c schema_sort(const struct dirent **a, const struct dirent **b) a 157 lib/common/schemas.c if (!version_from_filename(a[0]->d_name, &a_version) a 619 lib/common/strings.c pcmk__strcase_equal(gconstpointer a, gconstpointer b) a 621 lib/common/strings.c return pcmk__str_eq((const char *)a, (const char *)b, pcmk__str_casei); a 1193 lib/common/strings.c safe_str_neq(const char *a, const char *b) a 1195 lib/common/strings.c if (a == b) { a 1198 lib/common/strings.c } else if (a == NULL || b == NULL) { a 1201 lib/common/strings.c } else if (strcasecmp(a, b) == 0) { a 1208 lib/common/strings.c crm_str_eq(const char *a, const char *b, gboolean use_case) a 1211 lib/common/strings.c return g_strcmp0(a, b) == 0; a 1214 lib/common/strings.c } else if (a == b) { a 1217 lib/common/strings.c } else if (a == NULL || b == NULL) { a 1221 lib/common/strings.c } else if (strcasecmp(a, b) == 0) { a 1243 lib/common/strings.c crm_strcase_equal(gconstpointer a, gconstpointer b) a 1245 lib/common/strings.c return pcmk__strcase_equal(a, b); a 13 lib/common/tests/cmdline/pcmk__cmdline_preproc_test.c #define LISTS_EQ(a, b) { \ a 14 lib/common/tests/cmdline/pcmk__cmdline_preproc_test.c g_assert_cmpint(g_strv_length((gchar **) (a)), ==, g_strv_length((gchar **) (b))); \ a 15 lib/common/tests/cmdline/pcmk__cmdline_preproc_test.c for (int i = 0; i < g_strv_length((a)); i++) { \ a 16 lib/common/tests/cmdline/pcmk__cmdline_preproc_test.c g_assert_cmpstr((a)[i], ==, (b)[i]); \ a 174 lib/common/xml.c pcmk__mark_xml_attr_dirty(xmlAttr *a) a 176 lib/common/xml.c xmlNode *parent = a->parent; a 179 lib/common/xml.c p = a->_private; a 333 lib/common/xml.c marked_as_deleted(xmlAttrPtr a, void *user_data) a 335 lib/common/xml.c xml_private_t *p = a->_private; a 530 lib/common/xml.c for (xmlAttrPtr a = pcmk__xe_first_attr(src); a != NULL; a = a->next) { a 531 lib/common/xml.c const char *p_name = (const char *) a->name; a 532 lib/common/xml.c const char *p_value = pcmk__xml_attr_value(a); a 547 lib/common/xml.c for (xmlAttrPtr a = pcmk__xe_first_attr(target); a != NULL; a = a->next) { a 548 lib/common/xml.c const char *p_name = (const char *) a->name; a 549 lib/common/xml.c const char *p_value = pcmk__xml_attr_value(a); a 636 lib/common/xml.c for (xmlAttrPtr a = pcmk__xe_first_attr(element); a != NULL; a = next) { a 637 lib/common/xml.c next = a->next; // Grab now because attribute might get removed a 638 lib/common/xml.c if ((match == NULL) || match(a, user_data)) { a 642 lib/common/xml.c (const char *) a->name, (const char *) element->name); a 649 lib/common/xml.c pcmk__set_xml_flags((xml_private_t *) a->_private, xpf_deleted); a 651 lib/common/xml.c xmlRemoveProp(a); a 1472 lib/common/xml.c for (xmlAttrPtr a = pcmk__xe_first_attr(data); a != NULL; a 1473 lib/common/xml.c a = a->next) { a 1475 lib/common/xml.c xml_private_t *p = a->_private; a 1476 lib/common/xml.c const char *p_name = (const char *) a->name; a 1477 lib/common/xml.c const char *p_value = pcmk__xml_attr_value(a); a 1590 lib/common/xml.c for (xmlAttrPtr a = pcmk__xe_first_attr(data); a != NULL; a = a->next) { a 1591 lib/common/xml.c const char *aname = (const char*) a->name; a 1593 lib/common/xml.c p = a->_private; a 1708 lib/common/xml.c for (xmlAttrPtr a = pcmk__xe_first_attr(data); a != NULL; a = a->next) { a 1709 lib/common/xml.c if (!pcmk__xa_filterable((const char *) (a->name))) { a 1710 lib/common/xml.c dump_xml_attr(a, options, buffer, offset, max); a 1744 lib/common/xml.c for (xmlAttrPtr a = pcmk__xe_first_attr(data); a != NULL; a = a->next) { a 1745 lib/common/xml.c dump_xml_attr(a, options, buffer, offset, max); a 2399 lib/common/xml.c for (xmlAttrPtr a = pcmk__xe_first_attr(xml_node); a != NULL; a = a->next) { a 2400 lib/common/xml.c const char *p_name = (const char *) a->name; a 2577 lib/common/xml.c for (xmlAttrPtr a = pcmk__xe_first_attr(update); a != NULL; a 2578 lib/common/xml.c a = a->next) { a 2579 lib/common/xml.c const char *p_value = pcmk__xml_attr_value(a); a 2582 lib/common/xml.c xmlUnsetProp(target, a->name); a 2583 lib/common/xml.c xmlSetProp(target, a->name, (pcmkXmlStr) p_value); a 2698 lib/common/xml.c for (xmlAttrPtr a = pcmk__xe_first_attr(update); a != NULL; a 2699 lib/common/xml.c a = a->next) { a 2700 lib/common/xml.c const char *p_name = (const char *) a->name; a 2701 lib/common/xml.c const char *p_value = pcmk__xml_attr_value(a); a 1172 lib/fencing/st_client.c stonithlib_GCompareFunc(gconstpointer a, gconstpointer b) a 1175 lib/fencing/st_client.c const stonith_notify_client_t *a_client = a; a 363 lib/gnu/md5.c #define OP(a, b, c, d, s, T) \ a 366 lib/gnu/md5.c a += FF (b, c, d) + (*cwp++ = SWAP (*words)) + T; \ a 368 lib/gnu/md5.c CYCLIC (a, s); \ a 369 lib/gnu/md5.c a += b; \ a 409 lib/gnu/md5.c #define OP(f, a, b, c, d, k, s, T) \ a 412 lib/gnu/md5.c a += f (b, c, d) + correct_words[k] + T; \ a 413 lib/gnu/md5.c CYCLIC (a, s); \ a 414 lib/gnu/md5.c a += b; \ a 106 lib/gnu/stdalign.in.h # define _Alignas(a) alignas (a) a 113 lib/gnu/stdalign.in.h # define _Alignas(a) __attribute__ ((__aligned__ (a))) a 115 lib/gnu/stdalign.in.h # define _Alignas(a) __declspec (align (a)) a 1133 lib/pacemaker/pcmk_sched_allocate.c sort_rsc_process_order(gconstpointer a, gconstpointer b, gpointer data) a 1142 lib/pacemaker/pcmk_sched_allocate.c const pe_resource_t *resource1 = a; a 33 lib/pacemaker/pcmk_sched_bundle.c gint sort_clone_instance(gconstpointer a, gconstpointer b, gpointer data_set); a 18 lib/pacemaker/pcmk_sched_clone.c gint sort_clone_instance(gconstpointer a, gconstpointer b, gpointer data_set); a 22 lib/pacemaker/pcmk_sched_clone.c sort_rsc_id(gconstpointer a, gconstpointer b) a 24 lib/pacemaker/pcmk_sched_clone.c const pe_resource_t *resource1 = (const pe_resource_t *)a; a 251 lib/pacemaker/pcmk_sched_clone.c sort_clone_instance(gconstpointer a, gconstpointer b, gpointer data_set) a 264 lib/pacemaker/pcmk_sched_clone.c const pe_resource_t *resource1 = (const pe_resource_t *)a; a 1209 lib/pacemaker/pcmk_sched_constraints.c sort_cons_priority_lh(gconstpointer a, gconstpointer b) a 1211 lib/pacemaker/pcmk_sched_constraints.c const pcmk__colocation_t *rsc_constraint1 = (const pcmk__colocation_t *) a; a 1214 lib/pacemaker/pcmk_sched_constraints.c if (a == NULL) { a 1257 lib/pacemaker/pcmk_sched_constraints.c sort_cons_priority_rh(gconstpointer a, gconstpointer b) a 1259 lib/pacemaker/pcmk_sched_constraints.c const pcmk__colocation_t *rsc_constraint1 = (const pcmk__colocation_t *) a; a 1262 lib/pacemaker/pcmk_sched_constraints.c if (a == NULL) { a 1499 lib/pacemaker/pcmk_sched_graph.c sort_action_id(gconstpointer a, gconstpointer b) a 1501 lib/pacemaker/pcmk_sched_graph.c const pe_action_wrapper_t *action_wrapper2 = (const pe_action_wrapper_t *)a; a 1504 lib/pacemaker/pcmk_sched_graph.c if (a == NULL) { a 22 lib/pacemaker/pcmk_sched_notif.c sort_notify_entries(gconstpointer a, gconstpointer b) a 25 lib/pacemaker/pcmk_sched_notif.c const notify_entry_t *entry_a = a; a 18 lib/pacemaker/pcmk_sched_promotable.c extern gint sort_clone_instance(gconstpointer a, gconstpointer b, gpointer data_set); a 246 lib/pacemaker/pcmk_sched_promotable.c sort_promotable_instance(gconstpointer a, gconstpointer b, gpointer data_set) a 252 lib/pacemaker/pcmk_sched_promotable.c const pe_resource_t *resource1 = (const pe_resource_t *)a; a 261 lib/pacemaker/pcmk_sched_promotable.c rc = sort_rsc_index(a, b); a 276 lib/pacemaker/pcmk_sched_promotable.c return sort_clone_instance(a, b, data_set); a 153 lib/pacemaker/pcmk_sched_utils.c sort_node_weight(gconstpointer a, gconstpointer b, gpointer data) a 155 lib/pacemaker/pcmk_sched_utils.c const pe_node_t *node1 = (const pe_node_t *)a; a 164 lib/pacemaker/pcmk_sched_utils.c if (a == NULL) { a 146 lib/pacemaker/pcmk_trans_graph.c crm_action_t *a = (crm_action_t *) lpc->data; a 148 lib/pacemaker/pcmk_trans_graph.c if (a->type == action_type_pseudo) { a 156 lib/pacemaker/pcmk_trans_graph.c } else if(graph_fns->allowed && graph_fns->allowed(graph, a) == FALSE) { a 162 lib/pengine/complex.c for (xmlAttrPtr a = pcmk__xe_first_attr(rsc->xml); a != NULL; a = a->next) { a 163 lib/pengine/complex.c const char *prop_name = (const char *) a->name; a 53 lib/pengine/pe_digest.c attr_in_string(xmlAttrPtr a, void *user_data) a 56 lib/pengine/pe_digest.c char *name = crm_strdup_printf(" %s ", (const char *) a->name); a 60 lib/pengine/pe_digest.c (const char *) a->name, (const char *) user_data); a 69 lib/pengine/pe_digest.c attr_not_in_string(xmlAttrPtr a, void *user_data) a 72 lib/pengine/pe_digest.c char *name = crm_strdup_printf(" %s ", (const char *) a->name); a 76 lib/pengine/pe_digest.c (const char *) a->name, (const char *) user_data); a 24 lib/pengine/pe_output.c compare_attribute(gconstpointer a, gconstpointer b) a 28 lib/pengine/pe_output.c rc = strcmp((const char *)a, (const char *)b); a 327 lib/pengine/rules.c sort_pairs(gconstpointer a, gconstpointer b) a 329 lib/pengine/rules.c const sorted_set_t *pair_a = a; a 332 lib/pengine/rules.c if (a == NULL && b == NULL) { a 334 lib/pengine/rules.c } else if (a == NULL) { a 218 lib/pengine/utils.c sort_node_uname(gconstpointer a, gconstpointer b) a 220 lib/pengine/utils.c return pcmk__numeric_strcasecmp(((const pe_node_t *) a)->details->uname, a 335 lib/pengine/utils.c sort_rsc_index(gconstpointer a, gconstpointer b) a 337 lib/pengine/utils.c const pe_resource_t *resource1 = (const pe_resource_t *)a; a 340 lib/pengine/utils.c if (a == NULL && b == NULL) { a 343 lib/pengine/utils.c if (a == NULL) { a 362 lib/pengine/utils.c sort_rsc_priority(gconstpointer a, gconstpointer b) a 364 lib/pengine/utils.c const pe_resource_t *resource1 = (const pe_resource_t *)a; a 367 lib/pengine/utils.c if (a == NULL && b == NULL) { a 370 lib/pengine/utils.c if (a == NULL) { a 1638 lib/pengine/utils.c sort_op_by_callid(gconstpointer a, gconstpointer b) a 1646 lib/pengine/utils.c const xmlNode *xml_a = a; a 381 lib/services/systemd.c sort_str(gconstpointer a, gconstpointer b) a 383 lib/services/systemd.c if (!a && !b) { a 385 lib/services/systemd.c } else if (!a) { a 390 lib/services/systemd.c return strcasecmp(a, b); a 158 libltdl/libltdl/lt_system.h # define LT__CONC(a, b) a##b a 159 libltdl/libltdl/lt_system.h # define LT_CONC(a, b) LT__CONC(a, b) a 162 libltdl/libltdl/lt_system.h # define LT__CONC3(a, b, c) a##b##c a 163 libltdl/libltdl/lt_system.h # define LT_CONC3(a, b, c) LT__CONC3(a, b, c) a 135 tools/crm_node.c sort_node(gconstpointer a, gconstpointer b) a 137 tools/crm_node.c const pcmk_controld_api_node_t *node_a = a; a 308 tools/crm_resource.c compare_id(gconstpointer a, gconstpointer b) a 310 tools/crm_resource.c return strcmp((const char *)a, (const char *)b); a 1562 tools/crm_resource_runtime.c pe_action_t *a = (pe_action_t *)action->data; a 1563 tools/crm_resource_runtime.c if (action_is_pending(a)) { a 1564 tools/crm_resource_runtime.c crm_notice("Waiting for %s (flags=0x%.8x)", a->uuid, a->flags); a 1578 tools/crm_resource_runtime.c pe_action_t *a = (pe_action_t *) action->data; a 1580 tools/crm_resource_runtime.c if (!action_is_pending(a)) { a 1584 tools/crm_resource_runtime.c if (a->node) { a 1585 tools/crm_resource_runtime.c out->info(out, "\tAction %d: %s\ton %s", a->id, a->uuid, a->node->details->uname); a 1587 tools/crm_resource_runtime.c out->info(out, "\tAction %d: %s", a->id, a->uuid);