set 35 daemons/attrd/attrd_attributes.c a->set = crm_element_value_copy(xml, PCMK__XA_ATTR_SET); set 121 daemons/attrd/attrd_attributes.c crm_xml_add(xml, PCMK__XA_ATTR_SET, a->set); set 127 daemons/attrd/attrd_cib.c const char *set = NULL; set 137 daemons/attrd/attrd_cib.c if (a->set) { set 138 daemons/attrd/attrd_cib.c crm_xml_set_id(xml_obj, "%s", a->set); set 142 daemons/attrd/attrd_cib.c set = ID(xml_obj); set 148 daemons/attrd/attrd_cib.c crm_xml_set_id(xml_obj, "%s-%s", set, a->id); set 313 daemons/attrd/attrd_cib.c a->id, pcmk__s(a->uuid, "n/a"), pcmk__s(a->set, "n/a")); set 324 daemons/attrd/attrd_cib.c a->id, pcmk__s(a->uuid, "n/a"), pcmk__s(a->set, "n/a")); set 263 daemons/attrd/attrd_utils.c free(a->set); set 117 daemons/attrd/pacemaker-attrd.h char *set; set 197 daemons/execd/remoted_pidone.c sigset_t set; set 232 daemons/execd/remoted_pidone.c sigfillset(&set); set 233 daemons/execd/remoted_pidone.c sigprocmask(SIG_BLOCK, &set, 0); set 238 daemons/execd/remoted_pidone.c sigprocmask(SIG_UNBLOCK, &set, NULL); set 290 daemons/execd/remoted_pidone.c sigwait(&set, &sig); set 161 include/crm/common/ipc_attrd_internal.h const char *value, const char *dampen, const char *set, set 188 include/crm/common/ipc_attrd_internal.h const char *dampen, const char *set, set 416 lib/common/ipc_attrd.c const char *dampen, const char *set, uint32_t options) set 429 lib/common/ipc_attrd.c crm_xml_add(op, PCMK__XA_ATTR_SET, set); set 438 lib/common/ipc_attrd.c const char *value, const char *dampen, const char *set, set 457 lib/common/ipc_attrd.c populate_update_op(request, node, name, value, dampen, set, options); set 485 lib/common/ipc_attrd.c const char *set, const char *user_name, set 543 lib/common/ipc_attrd.c set, options); set 546 lib/common/ipc_attrd.c dampen, set, user_name, options); set 880 lib/pacemaker/pcmk_graph_producer.c xmlNode *set = NULL; set 904 lib/pacemaker/pcmk_graph_producer.c set = create_xml_node(syn, "action_set"); set 907 lib/pacemaker/pcmk_graph_producer.c create_graph_action(set, action, false, data_set); set 317 lib/pacemaker/pcmk_sched_colocation.c unpack_colocation_set(xmlNode *set, int score, const char *coloc_id, set 323 lib/pacemaker/pcmk_sched_colocation.c const char *set_id = ID(set); set 324 lib/pacemaker/pcmk_sched_colocation.c const char *role = crm_element_value(set, "role"); set 325 lib/pacemaker/pcmk_sched_colocation.c const char *ordering = crm_element_value(set, "ordering"); set 329 lib/pacemaker/pcmk_sched_colocation.c const char *score_s = crm_element_value(set, XML_RULE_ATTR_SCORE); set 344 lib/pacemaker/pcmk_sched_colocation.c if (pcmk__xe_get_bool_attr(set, "sequential", &sequential) == pcmk_rc_ok && !sequential) { set 349 lib/pacemaker/pcmk_sched_colocation.c for (xml_rsc = first_named_child(set, XML_TAG_RESOURCE_REF); set 366 lib/pacemaker/pcmk_sched_colocation.c for (xml_rsc = first_named_child(set, XML_TAG_RESOURCE_REF); set 388 lib/pacemaker/pcmk_sched_colocation.c for (xml_rsc = first_named_child(set, XML_TAG_RESOURCE_REF); set 397 lib/pacemaker/pcmk_sched_colocation.c for (xml_rsc_with = first_named_child(set, XML_TAG_RESOURCE_REF); set 737 lib/pacemaker/pcmk_sched_colocation.c xmlNode *set = NULL; set 761 lib/pacemaker/pcmk_sched_colocation.c for (set = first_named_child(xml_obj, XML_CONS_TAG_RSC_SET); set != NULL; set 762 lib/pacemaker/pcmk_sched_colocation.c set = crm_next_same_xml(set)) { set 764 lib/pacemaker/pcmk_sched_colocation.c set = expand_idref(set, data_set->input); set 765 lib/pacemaker/pcmk_sched_colocation.c if (set == NULL) { // Configuration error, message already logged set 772 lib/pacemaker/pcmk_sched_colocation.c unpack_colocation_set(set, score_i, id, influence_s, data_set); set 775 lib/pacemaker/pcmk_sched_colocation.c colocate_rsc_sets(id, last, set, score_i, influence_s, data_set); set 777 lib/pacemaker/pcmk_sched_colocation.c last = set; set 226 lib/pacemaker/pcmk_sched_constraints.c for (xmlNode *set = first_named_child(new_xml, XML_CONS_TAG_RSC_SET); set 227 lib/pacemaker/pcmk_sched_constraints.c set != NULL; set = crm_next_same_xml(set)) { set 232 lib/pacemaker/pcmk_sched_constraints.c for (xmlNode *xml_rsc = first_named_child(set, XML_TAG_RESOURCE_REF); set 279 lib/pacemaker/pcmk_sched_constraints.c new_rsc_ref = xmlNewDocRawNode(getDocPtr(set), NULL, set 441 lib/pacemaker/pcmk_sched_location.c unpack_location_set(xmlNode *location, xmlNode *set, pe_working_set_t *data_set) set 449 lib/pacemaker/pcmk_sched_location.c CRM_CHECK(set != NULL, return EINVAL); set 451 lib/pacemaker/pcmk_sched_location.c set_id = ID(set); set 459 lib/pacemaker/pcmk_sched_location.c role = crm_element_value(set, "role"); set 460 lib/pacemaker/pcmk_sched_location.c local_score = crm_element_value(set, XML_RULE_ATTR_SCORE); set 462 lib/pacemaker/pcmk_sched_location.c for (xml_rsc = first_named_child(set, XML_TAG_RESOURCE_REF); set 483 lib/pacemaker/pcmk_sched_location.c xmlNode *set = NULL; set 498 lib/pacemaker/pcmk_sched_location.c for (set = first_named_child(xml_obj, XML_CONS_TAG_RSC_SET); set != NULL; set 499 lib/pacemaker/pcmk_sched_location.c set = crm_next_same_xml(set)) { set 502 lib/pacemaker/pcmk_sched_location.c set = expand_idref(set, data_set->input); set 503 lib/pacemaker/pcmk_sched_location.c if ((set == NULL) // Configuration error, message already logged set 504 lib/pacemaker/pcmk_sched_location.c || (unpack_location_set(xml_obj, set, data_set) != pcmk_rc_ok)) { set 590 lib/pacemaker/pcmk_sched_ordering.c unpack_order_set(xmlNode *set, enum pe_order_kind parent_kind, set 606 lib/pacemaker/pcmk_sched_ordering.c const char *id = ID(set); set 607 lib/pacemaker/pcmk_sched_ordering.c const char *action = crm_element_value(set, "action"); set 608 lib/pacemaker/pcmk_sched_ordering.c const char *sequential_s = crm_element_value(set, "sequential"); set 609 lib/pacemaker/pcmk_sched_ordering.c const char *kind_s = crm_element_value(set, XML_ORDER_ATTR_KIND); set 616 lib/pacemaker/pcmk_sched_ordering.c local_kind = get_ordering_type(set); set 624 lib/pacemaker/pcmk_sched_ordering.c symmetry = get_ordering_symmetry(set, parent_kind, parent_symmetrical_s); set 627 lib/pacemaker/pcmk_sched_ordering.c for (xml_rsc = first_named_child(set, XML_TAG_RESOURCE_REF); set 997 lib/pacemaker/pcmk_sched_ordering.c xmlNode *set = NULL; set 1020 lib/pacemaker/pcmk_sched_ordering.c for (set = first_named_child(xml_obj, XML_CONS_TAG_RSC_SET); set 1021 lib/pacemaker/pcmk_sched_ordering.c set != NULL; set = crm_next_same_xml(set)) { set 1023 lib/pacemaker/pcmk_sched_ordering.c set = expand_idref(set, data_set->input); set 1024 lib/pacemaker/pcmk_sched_ordering.c if ((set == NULL) // Configuration error, message already logged set 1025 lib/pacemaker/pcmk_sched_ordering.c || (unpack_order_set(set, kind, invert, data_set) != pcmk_rc_ok)) { set 1035 lib/pacemaker/pcmk_sched_ordering.c if (order_rsc_sets(id, last, set, kind, data_set, set 1044 lib/pacemaker/pcmk_sched_ordering.c && (order_rsc_sets(id, set, last, kind, data_set, set 1053 lib/pacemaker/pcmk_sched_ordering.c last = set; set 241 lib/pacemaker/pcmk_sched_tickets.c unpack_rsc_ticket_set(xmlNode *set, pe_ticket_t *ticket, set 247 lib/pacemaker/pcmk_sched_tickets.c CRM_CHECK(set != NULL, return EINVAL); set 250 lib/pacemaker/pcmk_sched_tickets.c set_id = ID(set); set 257 lib/pacemaker/pcmk_sched_tickets.c role = crm_element_value(set, "role"); set 259 lib/pacemaker/pcmk_sched_tickets.c for (xmlNode *xml_rsc = first_named_child(set, XML_TAG_RESOURCE_REF); set 437 lib/pacemaker/pcmk_sched_tickets.c xmlNode *set = NULL; set 485 lib/pacemaker/pcmk_sched_tickets.c for (set = first_named_child(xml_obj, XML_CONS_TAG_RSC_SET); set != NULL; set 486 lib/pacemaker/pcmk_sched_tickets.c set = crm_next_same_xml(set)) { set 489 lib/pacemaker/pcmk_sched_tickets.c set = expand_idref(set, data_set->input); set 490 lib/pacemaker/pcmk_sched_tickets.c if ((set == NULL) // Configuration error, message already logged set 491 lib/pacemaker/pcmk_sched_tickets.c || (unpack_rsc_ticket_set(set, ticket, loss_policy, set 118 maint/gnulib/lib/bitset/base.h void (*set) (bitset, bitset_bindex); set 188 maint/gnulib/lib/bitset/base.h #define BITSET_SET_(DST, BITNO) (DST)->b.vtable->set (DST, BITNO) set 35 maint/gnulib/lib/gl_anytree_oset.h struct gl_oset_impl *set = set 38 maint/gnulib/lib/gl_anytree_oset.h if (set == NULL) set 41 maint/gnulib/lib/gl_anytree_oset.h set->base.vtable = implementation; set 42 maint/gnulib/lib/gl_anytree_oset.h set->base.compar_fn = compar_fn; set 43 maint/gnulib/lib/gl_anytree_oset.h set->base.dispose_fn = dispose_fn; set 44 maint/gnulib/lib/gl_anytree_oset.h set->root = NULL; set 45 maint/gnulib/lib/gl_anytree_oset.h set->count = 0; set 47 maint/gnulib/lib/gl_anytree_oset.h return set; set 51 maint/gnulib/lib/gl_anytree_oset.h gl_tree_size (gl_oset_t set) set 53 maint/gnulib/lib/gl_anytree_oset.h return set->count; set 95 maint/gnulib/lib/gl_anytree_oset.h gl_tree_search (gl_oset_t set, const void *elt) set 97 maint/gnulib/lib/gl_anytree_oset.h gl_setelement_compar_fn compar = set->base.compar_fn; set 100 maint/gnulib/lib/gl_anytree_oset.h for (node = set->root; node != NULL; ) set 119 maint/gnulib/lib/gl_anytree_oset.h gl_tree_search_atleast (gl_oset_t set, set 126 maint/gnulib/lib/gl_anytree_oset.h for (node = set->root; node != NULL; ) set 154 maint/gnulib/lib/gl_anytree_oset.h gl_tree_search_node (gl_oset_t set, const void *elt) set 156 maint/gnulib/lib/gl_anytree_oset.h gl_setelement_compar_fn compar = set->base.compar_fn; set 159 maint/gnulib/lib/gl_anytree_oset.h for (node = set->root; node != NULL; ) set 178 maint/gnulib/lib/gl_anytree_oset.h gl_tree_nx_add (gl_oset_t set, const void *elt) set 181 maint/gnulib/lib/gl_anytree_oset.h gl_oset_node_t node = set->root; set 185 maint/gnulib/lib/gl_anytree_oset.h if (gl_tree_nx_add_first (set, elt) == NULL) set 190 maint/gnulib/lib/gl_anytree_oset.h compar = set->base.compar_fn; set 203 maint/gnulib/lib/gl_anytree_oset.h if (gl_tree_nx_add_after (set, node, elt) == NULL) set 213 maint/gnulib/lib/gl_anytree_oset.h if (gl_tree_nx_add_before (set, node, elt) == NULL) set 225 maint/gnulib/lib/gl_anytree_oset.h gl_tree_remove (gl_oset_t set, const void *elt) set 227 maint/gnulib/lib/gl_anytree_oset.h gl_oset_node_t node = gl_tree_search_node (set, elt); set 230 maint/gnulib/lib/gl_anytree_oset.h return gl_tree_remove_node (set, node); set 236 maint/gnulib/lib/gl_anytree_oset.h gl_tree_update (gl_oset_t set, const void *elt, set 243 maint/gnulib/lib/gl_anytree_oset.h gl_oset_node_t old_node = gl_tree_search_node (set, elt); set 249 maint/gnulib/lib/gl_anytree_oset.h if (set->count > 1) set 251 maint/gnulib/lib/gl_anytree_oset.h gl_setelement_compar_fn compar = set->base.compar_fn; set 265 maint/gnulib/lib/gl_anytree_oset.h gl_tree_remove_node_no_free (set, old_node); set 267 maint/gnulib/lib/gl_anytree_oset.h node = set->root; set 280 maint/gnulib/lib/gl_anytree_oset.h gl_tree_add_node_after (set, node, old_node); set 289 maint/gnulib/lib/gl_anytree_oset.h gl_tree_add_node_before (set, node, old_node); set 297 maint/gnulib/lib/gl_anytree_oset.h NODE_PAYLOAD_DISPOSE (set, old_node) set 309 maint/gnulib/lib/gl_anytree_oset.h gl_tree_oset_free (gl_oset_t set) set 312 maint/gnulib/lib/gl_anytree_oset.h gl_oset_node_t node = set->root; set 338 maint/gnulib/lib/gl_anytree_oset.h if (set->base.dispose_fn != NULL) set 339 maint/gnulib/lib/gl_anytree_oset.h set->base.dispose_fn (node->value); set 348 maint/gnulib/lib/gl_anytree_oset.h free (set); set 354 maint/gnulib/lib/gl_anytree_oset.h gl_tree_iterator (gl_oset_t set) set 359 maint/gnulib/lib/gl_anytree_oset.h result.vtable = set->base.vtable; set 360 maint/gnulib/lib/gl_anytree_oset.h result.set = set; set 362 maint/gnulib/lib/gl_anytree_oset.h node = set->root; set 379 maint/gnulib/lib/gl_anytree_oset.h gl_tree_iterator_atleast (gl_oset_t set, set 386 maint/gnulib/lib/gl_anytree_oset.h result.vtable = set->base.vtable; set 387 maint/gnulib/lib/gl_anytree_oset.h result.set = set; set 396 maint/gnulib/lib/gl_anytree_oset.h for (node = set->root; node != NULL; ) set 81 maint/gnulib/lib/gl_anytreehash_list1.h gl_oset_first (gl_oset_t set) set 83 maint/gnulib/lib/gl_anytreehash_list1.h gl_oset_iterator_t iter = gl_oset_iterator (set); set 46 maint/gnulib/lib/gl_array_oset.c struct gl_oset_impl *set = set 49 maint/gnulib/lib/gl_array_oset.c if (set == NULL) set 52 maint/gnulib/lib/gl_array_oset.c set->base.vtable = implementation; set 53 maint/gnulib/lib/gl_array_oset.c set->base.compar_fn = compar_fn; set 54 maint/gnulib/lib/gl_array_oset.c set->base.dispose_fn = dispose_fn; set 55 maint/gnulib/lib/gl_array_oset.c set->elements = NULL; set 56 maint/gnulib/lib/gl_array_oset.c set->count = 0; set 57 maint/gnulib/lib/gl_array_oset.c set->allocated = 0; set 59 maint/gnulib/lib/gl_array_oset.c return set; set 63 maint/gnulib/lib/gl_array_oset.c gl_array_size (gl_oset_t set) set 65 maint/gnulib/lib/gl_array_oset.c return set->count; set 69 maint/gnulib/lib/gl_array_oset.c gl_array_indexof (gl_oset_t set, const void *elt) set 71 maint/gnulib/lib/gl_array_oset.c size_t count = set->count; set 75 maint/gnulib/lib/gl_array_oset.c gl_setelement_compar_fn compar = set->base.compar_fn; set 87 maint/gnulib/lib/gl_array_oset.c ? compar (set->elements[mid], elt) set 88 maint/gnulib/lib/gl_array_oset.c : (set->elements[mid] > elt ? 1 : set 89 maint/gnulib/lib/gl_array_oset.c set->elements[mid] < elt ? -1 : 0)); set 105 maint/gnulib/lib/gl_array_oset.c gl_array_search (gl_oset_t set, const void *elt) set 107 maint/gnulib/lib/gl_array_oset.c return gl_array_indexof (set, elt) != (size_t)(-1); set 116 maint/gnulib/lib/gl_array_oset.c gl_array_indexof_atleast (gl_oset_t set, set 120 maint/gnulib/lib/gl_array_oset.c size_t count = set->count; set 135 maint/gnulib/lib/gl_array_oset.c if (! threshold_fn (set->elements[mid], threshold)) set 150 maint/gnulib/lib/gl_array_oset.c if (! threshold_fn (set->elements[mid2], threshold)) set 164 maint/gnulib/lib/gl_array_oset.c gl_array_search_atleast (gl_oset_t set, set 169 maint/gnulib/lib/gl_array_oset.c size_t index = gl_array_indexof_atleast (set, threshold_fn, threshold); set 171 maint/gnulib/lib/gl_array_oset.c if (index == set->count) set 175 maint/gnulib/lib/gl_array_oset.c *eltp = set->elements[index]; set 183 maint/gnulib/lib/gl_array_oset.c grow (gl_oset_t set) set 189 maint/gnulib/lib/gl_array_oset.c new_allocated = xtimes (set->allocated, 2); set 195 maint/gnulib/lib/gl_array_oset.c memory = (const void **) realloc (set->elements, memory_size); set 199 maint/gnulib/lib/gl_array_oset.c set->elements = memory; set 200 maint/gnulib/lib/gl_array_oset.c set->allocated = new_allocated; set 208 maint/gnulib/lib/gl_array_oset.c gl_array_nx_add_at (gl_oset_t set, size_t position, const void *elt) set 210 maint/gnulib/lib/gl_array_oset.c size_t count = set->count; set 214 maint/gnulib/lib/gl_array_oset.c if (count == set->allocated) set 215 maint/gnulib/lib/gl_array_oset.c if (grow (set) < 0) set 217 maint/gnulib/lib/gl_array_oset.c elements = set->elements; set 221 maint/gnulib/lib/gl_array_oset.c set->count = count + 1; set 228 maint/gnulib/lib/gl_array_oset.c gl_array_remove_at (gl_oset_t set, size_t position) set 230 maint/gnulib/lib/gl_array_oset.c size_t count = set->count; set 234 maint/gnulib/lib/gl_array_oset.c elements = set->elements; set 235 maint/gnulib/lib/gl_array_oset.c if (set->base.dispose_fn != NULL) set 236 maint/gnulib/lib/gl_array_oset.c set->base.dispose_fn (elements[position]); set 239 maint/gnulib/lib/gl_array_oset.c set->count = count - 1; set 243 maint/gnulib/lib/gl_array_oset.c gl_array_nx_add (gl_oset_t set, const void *elt) set 245 maint/gnulib/lib/gl_array_oset.c size_t count = set->count; set 250 maint/gnulib/lib/gl_array_oset.c gl_setelement_compar_fn compar = set->base.compar_fn; set 261 maint/gnulib/lib/gl_array_oset.c ? compar (set->elements[mid], elt) set 262 maint/gnulib/lib/gl_array_oset.c : (set->elements[mid] > elt ? 1 : set 263 maint/gnulib/lib/gl_array_oset.c set->elements[mid] < elt ? -1 : 0)); set 274 maint/gnulib/lib/gl_array_oset.c return gl_array_nx_add_at (set, low, elt); set 278 maint/gnulib/lib/gl_array_oset.c gl_array_remove (gl_oset_t set, const void *elt) set 280 maint/gnulib/lib/gl_array_oset.c size_t index = gl_array_indexof (set, elt); set 283 maint/gnulib/lib/gl_array_oset.c gl_array_remove_at (set, index); set 291 maint/gnulib/lib/gl_array_oset.c gl_array_update (gl_oset_t set, const void *elt, set 298 maint/gnulib/lib/gl_array_oset.c size_t old_index = gl_array_indexof (set, elt); set 304 maint/gnulib/lib/gl_array_oset.c size_t count = set->count; set 308 maint/gnulib/lib/gl_array_oset.c gl_setelement_compar_fn compar = set->base.compar_fn; set 316 maint/gnulib/lib/gl_array_oset.c ? compar (set->elements[mid], elt) set 317 maint/gnulib/lib/gl_array_oset.c : (set->elements[mid] > elt ? 1 : set 318 maint/gnulib/lib/gl_array_oset.c set->elements[mid] < elt ? -1 : 0)); set 332 maint/gnulib/lib/gl_array_oset.c gl_array_remove_at (set, old_index); set 350 maint/gnulib/lib/gl_array_oset.c ? compar (set->elements[mid], elt) set 351 maint/gnulib/lib/gl_array_oset.c : (set->elements[mid] > elt ? 1 : set 352 maint/gnulib/lib/gl_array_oset.c set->elements[mid] < elt ? -1 : 0)); set 361 maint/gnulib/lib/gl_array_oset.c gl_array_remove_at (set, old_index); set 370 maint/gnulib/lib/gl_array_oset.c const void **elements = set->elements; set 386 maint/gnulib/lib/gl_array_oset.c const void **elements = set->elements; set 401 maint/gnulib/lib/gl_array_oset.c gl_array_free (gl_oset_t set) set 403 maint/gnulib/lib/gl_array_oset.c if (set->elements != NULL) set 405 maint/gnulib/lib/gl_array_oset.c if (set->base.dispose_fn != NULL) set 407 maint/gnulib/lib/gl_array_oset.c size_t count = set->count; set 411 maint/gnulib/lib/gl_array_oset.c gl_setelement_dispose_fn dispose = set->base.dispose_fn; set 412 maint/gnulib/lib/gl_array_oset.c const void **elements = set->elements; set 419 maint/gnulib/lib/gl_array_oset.c free (set->elements); set 421 maint/gnulib/lib/gl_array_oset.c free (set); set 427 maint/gnulib/lib/gl_array_oset.c gl_array_iterator (gl_oset_t set) set 431 maint/gnulib/lib/gl_array_oset.c result.vtable = set->base.vtable; set 432 maint/gnulib/lib/gl_array_oset.c result.set = set; set 433 maint/gnulib/lib/gl_array_oset.c result.count = set->count; set 434 maint/gnulib/lib/gl_array_oset.c result.p = set->elements + 0; set 435 maint/gnulib/lib/gl_array_oset.c result.q = set->elements + set->count; set 445 maint/gnulib/lib/gl_array_oset.c gl_array_iterator_atleast (gl_oset_t set, set 449 maint/gnulib/lib/gl_array_oset.c size_t index = gl_array_indexof_atleast (set, threshold_fn, threshold); set 452 maint/gnulib/lib/gl_array_oset.c result.vtable = set->base.vtable; set 453 maint/gnulib/lib/gl_array_oset.c result.set = set; set 454 maint/gnulib/lib/gl_array_oset.c result.count = set->count; set 455 maint/gnulib/lib/gl_array_oset.c result.p = set->elements + index; set 456 maint/gnulib/lib/gl_array_oset.c result.q = set->elements + set->count; set 468 maint/gnulib/lib/gl_array_oset.c gl_oset_t set = iterator->set; set 469 maint/gnulib/lib/gl_array_oset.c if (iterator->count != set->count) set 471 maint/gnulib/lib/gl_array_oset.c if (iterator->count != set->count + 1) set 48 maint/gnulib/lib/gl_array_set.c struct gl_set_impl *set = set 51 maint/gnulib/lib/gl_array_set.c if (set == NULL) set 54 maint/gnulib/lib/gl_array_set.c set->base.vtable = implementation; set 55 maint/gnulib/lib/gl_array_set.c set->base.equals_fn = equals_fn; set 56 maint/gnulib/lib/gl_array_set.c set->base.dispose_fn = dispose_fn; set 57 maint/gnulib/lib/gl_array_set.c set->elements = NULL; set 58 maint/gnulib/lib/gl_array_set.c set->count = 0; set 59 maint/gnulib/lib/gl_array_set.c set->allocated = 0; set 61 maint/gnulib/lib/gl_array_set.c return set; set 65 maint/gnulib/lib/gl_array_set.c gl_array_size (gl_set_t set) set 67 maint/gnulib/lib/gl_array_set.c return set->count; set 71 maint/gnulib/lib/gl_array_set.c gl_array_search (gl_set_t set, const void *elt) set 73 maint/gnulib/lib/gl_array_set.c size_t count = set->count; set 77 maint/gnulib/lib/gl_array_set.c gl_setelement_equals_fn equals = set->base.equals_fn; set 78 maint/gnulib/lib/gl_array_set.c const void **elements = set->elements; set 102 maint/gnulib/lib/gl_array_set.c grow (gl_set_t set) set 108 maint/gnulib/lib/gl_array_set.c new_allocated = xtimes (set->allocated, 2); set 114 maint/gnulib/lib/gl_array_set.c memory = (const void **) realloc (set->elements, memory_size); set 118 maint/gnulib/lib/gl_array_set.c set->elements = memory; set 119 maint/gnulib/lib/gl_array_set.c set->allocated = new_allocated; set 124 maint/gnulib/lib/gl_array_set.c gl_array_nx_add (gl_set_t set, const void *elt) set 126 maint/gnulib/lib/gl_array_set.c if (gl_array_search (set, elt)) set 130 maint/gnulib/lib/gl_array_set.c size_t count = set->count; set 132 maint/gnulib/lib/gl_array_set.c if (count == set->allocated) set 133 maint/gnulib/lib/gl_array_set.c if (grow (set) < 0) set 135 maint/gnulib/lib/gl_array_set.c set->elements[count] = elt; set 136 maint/gnulib/lib/gl_array_set.c set->count = count + 1; set 144 maint/gnulib/lib/gl_array_set.c gl_array_remove_at (gl_set_t set, size_t position) set 146 maint/gnulib/lib/gl_array_set.c size_t count = set->count; set 147 maint/gnulib/lib/gl_array_set.c const void **elements = set->elements; set 150 maint/gnulib/lib/gl_array_set.c if (set->base.dispose_fn != NULL) set 151 maint/gnulib/lib/gl_array_set.c set->base.dispose_fn (elements[position]); set 154 maint/gnulib/lib/gl_array_set.c set->count = count - 1; set 158 maint/gnulib/lib/gl_array_set.c gl_array_remove (gl_set_t set, const void *elt) set 160 maint/gnulib/lib/gl_array_set.c size_t count = set->count; set 164 maint/gnulib/lib/gl_array_set.c gl_setelement_equals_fn equals = set->base.equals_fn; set 165 maint/gnulib/lib/gl_array_set.c const void **elements = set->elements; set 174 maint/gnulib/lib/gl_array_set.c gl_array_remove_at (set, i); set 185 maint/gnulib/lib/gl_array_set.c gl_array_remove_at (set, i); set 194 maint/gnulib/lib/gl_array_set.c gl_array_free (gl_set_t set) set 196 maint/gnulib/lib/gl_array_set.c if (set->elements != NULL) set 198 maint/gnulib/lib/gl_array_set.c if (set->base.dispose_fn != NULL) set 200 maint/gnulib/lib/gl_array_set.c size_t count = set->count; set 204 maint/gnulib/lib/gl_array_set.c gl_setelement_dispose_fn dispose = set->base.dispose_fn; set 205 maint/gnulib/lib/gl_array_set.c const void **elements = set->elements; set 212 maint/gnulib/lib/gl_array_set.c free (set->elements); set 214 maint/gnulib/lib/gl_array_set.c free (set); set 220 maint/gnulib/lib/gl_array_set.c gl_array_iterator (gl_set_t set) set 224 maint/gnulib/lib/gl_array_set.c result.vtable = set->base.vtable; set 225 maint/gnulib/lib/gl_array_set.c result.set = set; set 226 maint/gnulib/lib/gl_array_set.c result.count = set->count; set 227 maint/gnulib/lib/gl_array_set.c result.p = set->elements + 0; set 228 maint/gnulib/lib/gl_array_set.c result.q = set->elements + set->count; set 240 maint/gnulib/lib/gl_array_set.c gl_set_t set = iterator->set; set 241 maint/gnulib/lib/gl_array_set.c if (iterator->count != set->count) set 243 maint/gnulib/lib/gl_array_set.c if (iterator->count != set->count + 1) set 50 maint/gnulib/lib/gl_avltree_oset.c gl_avltree_oset_check_invariants (gl_oset_t set) set 53 maint/gnulib/lib/gl_avltree_oset.c if (set->root != NULL) set 54 maint/gnulib/lib/gl_avltree_oset.c check_invariants (set->root, NULL, &counter); set 55 maint/gnulib/lib/gl_avltree_oset.c if (!(set->count == counter)) set 53 maint/gnulib/lib/gl_hash_set.c #define CONTAINER_COUNT(set) (set)->count set 64 maint/gnulib/lib/gl_hash_set.c struct gl_set_impl *set = set 67 maint/gnulib/lib/gl_hash_set.c if (set == NULL) set 70 maint/gnulib/lib/gl_hash_set.c set->base.vtable = implementation; set 71 maint/gnulib/lib/gl_hash_set.c set->base.equals_fn = equals_fn; set 72 maint/gnulib/lib/gl_hash_set.c set->base.dispose_fn = dispose_fn; set 73 maint/gnulib/lib/gl_hash_set.c set->hashcode_fn = hashcode_fn; set 74 maint/gnulib/lib/gl_hash_set.c set->table_size = 11; set 75 maint/gnulib/lib/gl_hash_set.c set->table = set 76 maint/gnulib/lib/gl_hash_set.c (gl_hash_entry_t *) calloc (set->table_size, sizeof (gl_hash_entry_t)); set 77 maint/gnulib/lib/gl_hash_set.c if (set->table == NULL) set 79 maint/gnulib/lib/gl_hash_set.c set->count = 0; set 81 maint/gnulib/lib/gl_hash_set.c return set; set 84 maint/gnulib/lib/gl_hash_set.c free (set); set 89 maint/gnulib/lib/gl_hash_set.c gl_hash_size (gl_set_t set) set 91 maint/gnulib/lib/gl_hash_set.c return set->count; set 95 maint/gnulib/lib/gl_hash_set.c gl_hash_search (gl_set_t set, const void *elt) set 98 maint/gnulib/lib/gl_hash_set.c (set->hashcode_fn != NULL set 99 maint/gnulib/lib/gl_hash_set.c ? set->hashcode_fn (elt) set 101 maint/gnulib/lib/gl_hash_set.c size_t bucket = hashcode % set->table_size; set 102 maint/gnulib/lib/gl_hash_set.c gl_setelement_equals_fn equals = set->base.equals_fn; set 107 maint/gnulib/lib/gl_hash_set.c for (node = (gl_list_node_t) set->table[bucket]; set 119 maint/gnulib/lib/gl_hash_set.c gl_hash_nx_add (gl_set_t set, const void *elt) set 122 maint/gnulib/lib/gl_hash_set.c (set->hashcode_fn != NULL set 123 maint/gnulib/lib/gl_hash_set.c ? set->hashcode_fn (elt) set 125 maint/gnulib/lib/gl_hash_set.c size_t bucket = hashcode % set->table_size; set 126 maint/gnulib/lib/gl_hash_set.c gl_setelement_equals_fn equals = set->base.equals_fn; set 132 maint/gnulib/lib/gl_hash_set.c for (node = (gl_list_node_t) set->table[bucket]; set 153 maint/gnulib/lib/gl_hash_set.c node->h.hash_next = set->table[bucket]; set 154 maint/gnulib/lib/gl_hash_set.c set->table[bucket] = &node->h; set 157 maint/gnulib/lib/gl_hash_set.c set->count++; set 159 maint/gnulib/lib/gl_hash_set.c hash_resize_after_add (set); set 165 maint/gnulib/lib/gl_hash_set.c gl_hash_remove (gl_set_t set, const void *elt) set 168 maint/gnulib/lib/gl_hash_set.c (set->hashcode_fn != NULL set 169 maint/gnulib/lib/gl_hash_set.c ? set->hashcode_fn (elt) set 171 maint/gnulib/lib/gl_hash_set.c size_t bucket = hashcode % set->table_size; set 172 maint/gnulib/lib/gl_hash_set.c gl_setelement_equals_fn equals = set->base.equals_fn; set 177 maint/gnulib/lib/gl_hash_set.c for (nodep = (gl_list_node_t *) &set->table[bucket]; set 191 maint/gnulib/lib/gl_hash_set.c set->count--; set 193 maint/gnulib/lib/gl_hash_set.c if (set->base.dispose_fn != NULL) set 194 maint/gnulib/lib/gl_hash_set.c set->base.dispose_fn (node->value); set 204 maint/gnulib/lib/gl_hash_set.c gl_hash_free (gl_set_t set) set 206 maint/gnulib/lib/gl_hash_set.c if (set->count > 0) set 208 maint/gnulib/lib/gl_hash_set.c gl_setelement_dispose_fn dispose = set->base.dispose_fn; set 209 maint/gnulib/lib/gl_hash_set.c struct gl_hash_entry **table = set->table; set 212 maint/gnulib/lib/gl_hash_set.c for (i = set->table_size; i > 0; ) set 230 maint/gnulib/lib/gl_hash_set.c free (set->table); set 231 maint/gnulib/lib/gl_hash_set.c free (set); set 240 maint/gnulib/lib/gl_hash_set.c gl_hash_iterator (gl_set_t set) set 244 maint/gnulib/lib/gl_hash_set.c result.vtable = set->base.vtable; set 245 maint/gnulib/lib/gl_hash_set.c result.set = set; set 248 maint/gnulib/lib/gl_hash_set.c result.j = set->table_size; set 276 maint/gnulib/lib/gl_hash_set.c gl_hash_entry_t *table = iterator->set->table; set 59 maint/gnulib/lib/gl_linkedhash_set.c #define CONTAINER_COUNT(set) (set)->count set 87 maint/gnulib/lib/gl_linkedhash_set.c struct gl_set_impl *set = set 90 maint/gnulib/lib/gl_linkedhash_set.c if (set == NULL) set 93 maint/gnulib/lib/gl_linkedhash_set.c set->base.vtable = implementation; set 94 maint/gnulib/lib/gl_linkedhash_set.c set->base.equals_fn = equals_fn; set 95 maint/gnulib/lib/gl_linkedhash_set.c set->base.dispose_fn = dispose_fn; set 96 maint/gnulib/lib/gl_linkedhash_set.c set->hashcode_fn = hashcode_fn; set 97 maint/gnulib/lib/gl_linkedhash_set.c set->table_size = 11; set 98 maint/gnulib/lib/gl_linkedhash_set.c set->table = set 99 maint/gnulib/lib/gl_linkedhash_set.c (gl_hash_entry_t *) calloc (set->table_size, sizeof (gl_hash_entry_t)); set 100 maint/gnulib/lib/gl_linkedhash_set.c if (set->table == NULL) set 102 maint/gnulib/lib/gl_linkedhash_set.c set->root.next = &set->root; set 103 maint/gnulib/lib/gl_linkedhash_set.c set->root.prev = &set->root; set 104 maint/gnulib/lib/gl_linkedhash_set.c set->count = 0; set 106 maint/gnulib/lib/gl_linkedhash_set.c return set; set 109 maint/gnulib/lib/gl_linkedhash_set.c free (set); set 114 maint/gnulib/lib/gl_linkedhash_set.c gl_linkedhash_size (gl_set_t set) set 116 maint/gnulib/lib/gl_linkedhash_set.c return set->count; set 120 maint/gnulib/lib/gl_linkedhash_set.c gl_linkedhash_search (gl_set_t set, const void *elt) set 123 maint/gnulib/lib/gl_linkedhash_set.c (set->hashcode_fn != NULL set 124 maint/gnulib/lib/gl_linkedhash_set.c ? set->hashcode_fn (elt) set 126 maint/gnulib/lib/gl_linkedhash_set.c size_t bucket = hashcode % set->table_size; set 127 maint/gnulib/lib/gl_linkedhash_set.c gl_setelement_equals_fn equals = set->base.equals_fn; set 132 maint/gnulib/lib/gl_linkedhash_set.c for (node = (gl_list_node_t) set->table[bucket]; set 144 maint/gnulib/lib/gl_linkedhash_set.c gl_linkedhash_nx_add (gl_set_t set, const void *elt) set 147 maint/gnulib/lib/gl_linkedhash_set.c (set->hashcode_fn != NULL set 148 maint/gnulib/lib/gl_linkedhash_set.c ? set->hashcode_fn (elt) set 150 maint/gnulib/lib/gl_linkedhash_set.c size_t bucket = hashcode % set->table_size; set 151 maint/gnulib/lib/gl_linkedhash_set.c gl_setelement_equals_fn equals = set->base.equals_fn; set 157 maint/gnulib/lib/gl_linkedhash_set.c for (node = (gl_list_node_t) set->table[bucket]; set 178 maint/gnulib/lib/gl_linkedhash_set.c node->h.hash_next = set->table[bucket]; set 179 maint/gnulib/lib/gl_linkedhash_set.c set->table[bucket] = &node->h; set 182 maint/gnulib/lib/gl_linkedhash_set.c ASYNCSAFE(gl_list_node_t) node->next = &set->root; set 183 maint/gnulib/lib/gl_linkedhash_set.c node->prev = set->root.prev; set 185 maint/gnulib/lib/gl_linkedhash_set.c set->root.prev = node; set 186 maint/gnulib/lib/gl_linkedhash_set.c set->count++; set 188 maint/gnulib/lib/gl_linkedhash_set.c hash_resize_after_add (set); set 194 maint/gnulib/lib/gl_linkedhash_set.c gl_linkedhash_remove (gl_set_t set, const void *elt) set 197 maint/gnulib/lib/gl_linkedhash_set.c (set->hashcode_fn != NULL set 198 maint/gnulib/lib/gl_linkedhash_set.c ? set->hashcode_fn (elt) set 200 maint/gnulib/lib/gl_linkedhash_set.c size_t bucket = hashcode % set->table_size; set 201 maint/gnulib/lib/gl_linkedhash_set.c gl_setelement_equals_fn equals = set->base.equals_fn; set 206 maint/gnulib/lib/gl_linkedhash_set.c for (nodep = (gl_list_node_t *) &set->table[bucket]; set 227 maint/gnulib/lib/gl_linkedhash_set.c set->count--; set 229 maint/gnulib/lib/gl_linkedhash_set.c if (set->base.dispose_fn != NULL) set 230 maint/gnulib/lib/gl_linkedhash_set.c set->base.dispose_fn (node->value); set 240 maint/gnulib/lib/gl_linkedhash_set.c gl_linkedhash_free (gl_set_t set) set 242 maint/gnulib/lib/gl_linkedhash_set.c gl_setelement_dispose_fn dispose = set->base.dispose_fn; set 245 maint/gnulib/lib/gl_linkedhash_set.c for (node = set->root.next; node != &set->root; ) set 253 maint/gnulib/lib/gl_linkedhash_set.c free (set->table); set 254 maint/gnulib/lib/gl_linkedhash_set.c free (set); set 263 maint/gnulib/lib/gl_linkedhash_set.c gl_linkedhash_iterator (gl_set_t set) set 267 maint/gnulib/lib/gl_linkedhash_set.c result.vtable = set->base.vtable; set 268 maint/gnulib/lib/gl_linkedhash_set.c result.set = set; set 269 maint/gnulib/lib/gl_linkedhash_set.c result.p = set->root.next; set 270 maint/gnulib/lib/gl_linkedhash_set.c result.q = &set->root; set 120 maint/gnulib/lib/gl_oset.h extern size_t gl_oset_size (gl_oset_t set); set 124 maint/gnulib/lib/gl_oset.h extern bool gl_oset_search (gl_oset_t set, const void *elt); set 131 maint/gnulib/lib/gl_oset.h extern bool gl_oset_search_atleast (gl_oset_t set, set 139 maint/gnulib/lib/gl_oset.h extern bool gl_oset_add (gl_oset_t set, const void *elt); set 143 maint/gnulib/lib/gl_oset.h extern int gl_oset_nx_add (gl_oset_t set, const void *elt); set 147 maint/gnulib/lib/gl_oset.h extern bool gl_oset_remove (gl_oset_t set, const void *elt); set 157 maint/gnulib/lib/gl_oset.h extern int gl_oset_update (gl_oset_t set, const void *elt, set 164 maint/gnulib/lib/gl_oset.h extern void gl_oset_free (gl_oset_t set); set 180 maint/gnulib/lib/gl_oset.h gl_oset_t set; set 192 maint/gnulib/lib/gl_oset.h extern gl_oset_iterator_t gl_oset_iterator (gl_oset_t set); set 197 maint/gnulib/lib/gl_oset.h extern gl_oset_iterator_t gl_oset_iterator_atleast (gl_oset_t set, set 219 maint/gnulib/lib/gl_oset.h size_t (*size) (gl_oset_t set); set 220 maint/gnulib/lib/gl_oset.h bool (*search) (gl_oset_t set, const void *elt); set 221 maint/gnulib/lib/gl_oset.h bool (*search_atleast) (gl_oset_t set, set 224 maint/gnulib/lib/gl_oset.h int (*nx_add) (gl_oset_t set, const void *elt); set 225 maint/gnulib/lib/gl_oset.h bool (*remove_elt) (gl_oset_t set, const void *elt); set 226 maint/gnulib/lib/gl_oset.h int (*update) (gl_oset_t set, const void *elt, set 229 maint/gnulib/lib/gl_oset.h void (*oset_free) (gl_oset_t set); set 231 maint/gnulib/lib/gl_oset.h gl_oset_iterator_t (*iterator) (gl_oset_t set); set 232 maint/gnulib/lib/gl_oset.h gl_oset_iterator_t (*iterator_atleast) (gl_oset_t set, set 261 maint/gnulib/lib/gl_oset.h gl_oset_size (gl_oset_t set) set 263 maint/gnulib/lib/gl_oset.h return ((const struct gl_oset_impl_base *) set)->vtable->size (set); set 267 maint/gnulib/lib/gl_oset.h gl_oset_search (gl_oset_t set, const void *elt) set 269 maint/gnulib/lib/gl_oset.h return ((const struct gl_oset_impl_base *) set)->vtable->search (set, elt); set 273 maint/gnulib/lib/gl_oset.h gl_oset_search_atleast (gl_oset_t set, set 277 maint/gnulib/lib/gl_oset.h return ((const struct gl_oset_impl_base *) set)->vtable set 278 maint/gnulib/lib/gl_oset.h ->search_atleast (set, threshold_fn, threshold, eltp); set 282 maint/gnulib/lib/gl_oset.h gl_oset_nx_add (gl_oset_t set, const void *elt) set 284 maint/gnulib/lib/gl_oset.h return ((const struct gl_oset_impl_base *) set)->vtable->nx_add (set, elt); set 288 maint/gnulib/lib/gl_oset.h gl_oset_remove (gl_oset_t set, const void *elt) set 290 maint/gnulib/lib/gl_oset.h return ((const struct gl_oset_impl_base *) set)->vtable set 291 maint/gnulib/lib/gl_oset.h ->remove_elt (set, elt); set 295 maint/gnulib/lib/gl_oset.h gl_oset_update (gl_oset_t set, const void *elt, set 299 maint/gnulib/lib/gl_oset.h return ((const struct gl_oset_impl_base *) set)->vtable set 300 maint/gnulib/lib/gl_oset.h ->update (set, elt, action, action_data); set 304 maint/gnulib/lib/gl_oset.h gl_oset_free (gl_oset_t set) set 306 maint/gnulib/lib/gl_oset.h ((const struct gl_oset_impl_base *) set)->vtable->oset_free (set); set 310 maint/gnulib/lib/gl_oset.h gl_oset_iterator (gl_oset_t set) set 312 maint/gnulib/lib/gl_oset.h return ((const struct gl_oset_impl_base *) set)->vtable->iterator (set); set 316 maint/gnulib/lib/gl_oset.h gl_oset_iterator_atleast (gl_oset_t set, set 320 maint/gnulib/lib/gl_oset.h return ((const struct gl_oset_impl_base *) set)->vtable set 321 maint/gnulib/lib/gl_oset.h ->iterator_atleast (set, threshold_fn, threshold); set 50 maint/gnulib/lib/gl_rbtree_oset.c gl_rbtree_oset_check_invariants (gl_oset_t set) set 53 maint/gnulib/lib/gl_rbtree_oset.c if (set->root != NULL) set 54 maint/gnulib/lib/gl_rbtree_oset.c check_invariants (set->root, NULL, &counter); set 55 maint/gnulib/lib/gl_rbtree_oset.c if (!(set->count == counter)) set 120 maint/gnulib/lib/gl_set.h extern size_t gl_set_size (gl_set_t set); set 124 maint/gnulib/lib/gl_set.h extern bool gl_set_search (gl_set_t set, const void *elt); set 129 maint/gnulib/lib/gl_set.h extern bool gl_set_add (gl_set_t set, const void *elt); set 133 maint/gnulib/lib/gl_set.h extern int gl_set_nx_add (gl_set_t set, const void *elt); set 137 maint/gnulib/lib/gl_set.h extern bool gl_set_remove (gl_set_t set, const void *elt); set 142 maint/gnulib/lib/gl_set.h extern void gl_set_free (gl_set_t set); set 161 maint/gnulib/lib/gl_set.h gl_set_t set; set 173 maint/gnulib/lib/gl_set.h extern gl_set_iterator_t gl_set_iterator (gl_set_t set); set 194 maint/gnulib/lib/gl_set.h size_t (*size) (gl_set_t set); set 195 maint/gnulib/lib/gl_set.h bool (*search) (gl_set_t set, const void *elt); set 196 maint/gnulib/lib/gl_set.h int (*nx_add) (gl_set_t set, const void *elt); set 197 maint/gnulib/lib/gl_set.h bool (*remove_elt) (gl_set_t set, const void *elt); set 198 maint/gnulib/lib/gl_set.h void (*set_free) (gl_set_t set); set 200 maint/gnulib/lib/gl_set.h gl_set_iterator_t (*iterator) (gl_set_t set); set 228 maint/gnulib/lib/gl_set.h gl_set_size (gl_set_t set) set 230 maint/gnulib/lib/gl_set.h return ((const struct gl_set_impl_base *) set)->vtable->size (set); set 234 maint/gnulib/lib/gl_set.h gl_set_search (gl_set_t set, const void *elt) set 236 maint/gnulib/lib/gl_set.h return ((const struct gl_set_impl_base *) set)->vtable->search (set, elt); set 240 maint/gnulib/lib/gl_set.h gl_set_nx_add (gl_set_t set, const void *elt) set 242 maint/gnulib/lib/gl_set.h return ((const struct gl_set_impl_base *) set)->vtable->nx_add (set, elt); set 246 maint/gnulib/lib/gl_set.h gl_set_remove (gl_set_t set, const void *elt) set 248 maint/gnulib/lib/gl_set.h return ((const struct gl_set_impl_base *) set)->vtable->remove_elt (set, elt); set 252 maint/gnulib/lib/gl_set.h gl_set_free (gl_set_t set) set 254 maint/gnulib/lib/gl_set.h ((const struct gl_set_impl_base *) set)->vtable->set_free (set); set 258 maint/gnulib/lib/gl_set.h gl_set_iterator (gl_set_t set) set 260 maint/gnulib/lib/gl_set.h return ((const struct gl_set_impl_base *) set)->vtable->iterator (set); set 46 maint/gnulib/lib/gl_xoset.h extern bool gl_oset_add (gl_oset_t set, const void *elt); set 65 maint/gnulib/lib/gl_xoset.h gl_oset_add (gl_oset_t set, const void *elt) set 67 maint/gnulib/lib/gl_xoset.h int result = gl_oset_nx_add (set, elt); set 47 maint/gnulib/lib/gl_xset.h extern bool gl_set_add (gl_set_t set, const void *elt); set 67 maint/gnulib/lib/gl_xset.h gl_set_add (gl_set_t set, const void *elt) set 69 maint/gnulib/lib/gl_xset.h int result = gl_set_nx_add (set, elt); set 78 maint/gnulib/lib/nproc.c cpu_set_t set; set 80 maint/gnulib/lib/nproc.c if (pthread_getaffinity_np (pthread_self (), sizeof (set), &set) == 0) set 86 maint/gnulib/lib/nproc.c count = CPU_COUNT (&set); set 92 maint/gnulib/lib/nproc.c if (CPU_ISSET (i, &set)) set 101 maint/gnulib/lib/nproc.c cpuset_t *set; set 103 maint/gnulib/lib/nproc.c set = cpuset_create (); set 104 maint/gnulib/lib/nproc.c if (set != NULL) set 108 maint/gnulib/lib/nproc.c if (pthread_getaffinity_np (pthread_self (), cpuset_size (set), set) set 115 maint/gnulib/lib/nproc.c int ret = cpuset_isset (i, set); set 122 maint/gnulib/lib/nproc.c cpuset_destroy (set); set 129 maint/gnulib/lib/nproc.c cpu_set_t set; set 131 maint/gnulib/lib/nproc.c if (sched_getaffinity (0, sizeof (set), &set) == 0) set 137 maint/gnulib/lib/nproc.c count = CPU_COUNT (&set); set 143 maint/gnulib/lib/nproc.c if (CPU_ISSET (i, &set)) set 152 maint/gnulib/lib/nproc.c cpuset_t *set; set 154 maint/gnulib/lib/nproc.c set = cpuset_create (); set 155 maint/gnulib/lib/nproc.c if (set != NULL) set 159 maint/gnulib/lib/nproc.c if (sched_getaffinity_np (getpid (), cpuset_size (set), set) == 0) set 165 maint/gnulib/lib/nproc.c int ret = cpuset_isset (i, set); set 172 maint/gnulib/lib/nproc.c cpuset_destroy (set); set 935 maint/gnulib/lib/regex_internal.c re_node_set_alloc (re_node_set *set, Idx size) set 937 maint/gnulib/lib/regex_internal.c set->alloc = size; set 938 maint/gnulib/lib/regex_internal.c set->nelem = 0; set 939 maint/gnulib/lib/regex_internal.c set->elems = re_malloc (Idx, size); set 940 maint/gnulib/lib/regex_internal.c if (__glibc_unlikely (set->elems == NULL) set 948 maint/gnulib/lib/regex_internal.c re_node_set_init_1 (re_node_set *set, Idx elem) set 950 maint/gnulib/lib/regex_internal.c set->alloc = 1; set 951 maint/gnulib/lib/regex_internal.c set->nelem = 1; set 952 maint/gnulib/lib/regex_internal.c set->elems = re_malloc (Idx, 1); set 953 maint/gnulib/lib/regex_internal.c if (__glibc_unlikely (set->elems == NULL)) set 955 maint/gnulib/lib/regex_internal.c set->alloc = set->nelem = 0; set 958 maint/gnulib/lib/regex_internal.c set->elems[0] = elem; set 964 maint/gnulib/lib/regex_internal.c re_node_set_init_2 (re_node_set *set, Idx elem1, Idx elem2) set 966 maint/gnulib/lib/regex_internal.c set->alloc = 2; set 967 maint/gnulib/lib/regex_internal.c set->elems = re_malloc (Idx, 2); set 968 maint/gnulib/lib/regex_internal.c if (__glibc_unlikely (set->elems == NULL)) set 972 maint/gnulib/lib/regex_internal.c set->nelem = 1; set 973 maint/gnulib/lib/regex_internal.c set->elems[0] = elem1; set 977 maint/gnulib/lib/regex_internal.c set->nelem = 2; set 980 maint/gnulib/lib/regex_internal.c set->elems[0] = elem1; set 981 maint/gnulib/lib/regex_internal.c set->elems[1] = elem2; set 985 maint/gnulib/lib/regex_internal.c set->elems[0] = elem2; set 986 maint/gnulib/lib/regex_internal.c set->elems[1] = elem1; set 1250 maint/gnulib/lib/regex_internal.c re_node_set_insert (re_node_set *set, Idx elem) set 1254 maint/gnulib/lib/regex_internal.c if (set->alloc == 0) set 1255 maint/gnulib/lib/regex_internal.c return __glibc_likely (re_node_set_init_1 (set, elem) == REG_NOERROR); set 1257 maint/gnulib/lib/regex_internal.c if (__glibc_unlikely (set->nelem) == 0) set 1262 maint/gnulib/lib/regex_internal.c DEBUG_ASSERT (set->elems); set 1263 maint/gnulib/lib/regex_internal.c set->elems[0] = elem; set 1264 maint/gnulib/lib/regex_internal.c ++set->nelem; set 1269 maint/gnulib/lib/regex_internal.c if (set->alloc == set->nelem) set 1272 maint/gnulib/lib/regex_internal.c set->alloc = set->alloc * 2; set 1273 maint/gnulib/lib/regex_internal.c new_elems = re_realloc (set->elems, Idx, set->alloc); set 1276 maint/gnulib/lib/regex_internal.c set->elems = new_elems; set 1281 maint/gnulib/lib/regex_internal.c if (elem < set->elems[0]) set 1283 maint/gnulib/lib/regex_internal.c for (idx = set->nelem; idx > 0; idx--) set 1284 maint/gnulib/lib/regex_internal.c set->elems[idx] = set->elems[idx - 1]; set 1288 maint/gnulib/lib/regex_internal.c for (idx = set->nelem; set->elems[idx - 1] > elem; idx--) set 1289 maint/gnulib/lib/regex_internal.c set->elems[idx] = set->elems[idx - 1]; set 1290 maint/gnulib/lib/regex_internal.c DEBUG_ASSERT (set->elems[idx - 1] < elem); set 1294 maint/gnulib/lib/regex_internal.c set->elems[idx] = elem; set 1295 maint/gnulib/lib/regex_internal.c ++set->nelem; set 1305 maint/gnulib/lib/regex_internal.c re_node_set_insert_last (re_node_set *set, Idx elem) set 1308 maint/gnulib/lib/regex_internal.c if (set->alloc == set->nelem) set 1311 maint/gnulib/lib/regex_internal.c set->alloc = (set->alloc + 1) * 2; set 1312 maint/gnulib/lib/regex_internal.c new_elems = re_realloc (set->elems, Idx, set->alloc); set 1315 maint/gnulib/lib/regex_internal.c set->elems = new_elems; set 1319 maint/gnulib/lib/regex_internal.c set->elems[set->nelem++] = elem; set 1343 maint/gnulib/lib/regex_internal.c re_node_set_contains (const re_node_set *set, Idx elem) set 1346 maint/gnulib/lib/regex_internal.c if (set->nelem <= 0) set 1351 maint/gnulib/lib/regex_internal.c right = set->nelem - 1; set 1355 maint/gnulib/lib/regex_internal.c if (set->elems[mid] < elem) set 1360 maint/gnulib/lib/regex_internal.c return set->elems[idx] == elem ? idx + 1 : 0; set 1364 maint/gnulib/lib/regex_internal.c re_node_set_remove_at (re_node_set *set, Idx idx) set 1366 maint/gnulib/lib/regex_internal.c if (idx < 0 || idx >= set->nelem) set 1368 maint/gnulib/lib/regex_internal.c --set->nelem; set 1369 maint/gnulib/lib/regex_internal.c for (; idx < set->nelem; idx++) set 1370 maint/gnulib/lib/regex_internal.c set->elems[idx] = set->elems[idx + 1]; set 676 maint/gnulib/lib/regex_internal.h #define re_node_set_init_empty(set) memset (set, '\0', sizeof (re_node_set)) set 677 maint/gnulib/lib/regex_internal.h #define re_node_set_remove(set,id) \ set 678 maint/gnulib/lib/regex_internal.h (re_node_set_remove_at (set, re_node_set_contains (set, id) - 1)) set 680 maint/gnulib/lib/regex_internal.h #define re_node_set_free(set) re_free ((set)->elems) set 707 maint/gnulib/lib/regex_internal.h bitset_set (bitset_t set, Idx i) set 709 maint/gnulib/lib/regex_internal.h set[i / BITSET_WORD_BITS] |= (bitset_word_t) 1 << i % BITSET_WORD_BITS; set 713 maint/gnulib/lib/regex_internal.h bitset_clear (bitset_t set, Idx i) set 715 maint/gnulib/lib/regex_internal.h set[i / BITSET_WORD_BITS] &= ~ ((bitset_word_t) 1 << i % BITSET_WORD_BITS); set 719 maint/gnulib/lib/regex_internal.h bitset_contain (const bitset_t set, Idx i) set 721 maint/gnulib/lib/regex_internal.h return (set[i / BITSET_WORD_BITS] >> i % BITSET_WORD_BITS) & 1; set 725 maint/gnulib/lib/regex_internal.h bitset_empty (bitset_t set) set 727 maint/gnulib/lib/regex_internal.h memset (set, '\0', sizeof (bitset_t)); set 731 maint/gnulib/lib/regex_internal.h bitset_set_all (bitset_t set) set 733 maint/gnulib/lib/regex_internal.h memset (set, -1, sizeof (bitset_word_t) * (SBC_MAX / BITSET_WORD_BITS)); set 735 maint/gnulib/lib/regex_internal.h set[BITSET_WORDS - 1] = set 746 maint/gnulib/lib/regex_internal.h bitset_not (bitset_t set) set 750 maint/gnulib/lib/regex_internal.h set[bitset_i] = ~set[bitset_i]; set 752 maint/gnulib/lib/regex_internal.h set[BITSET_WORDS - 1] = set 754 maint/gnulib/lib/regex_internal.h & ~set[BITSET_WORDS - 1]); set 233 maint/gnulib/lib/signal.in.h _GL_FUNCDECL_SYS (sigismember, int, (const sigset_t *set, int sig) set 236 maint/gnulib/lib/signal.in.h _GL_CXXALIAS_SYS (sigismember, int, (const sigset_t *set, int sig)); set 246 maint/gnulib/lib/signal.in.h _GL_FUNCDECL_SYS (sigemptyset, int, (sigset_t *set) _GL_ARG_NONNULL ((1))); set 248 maint/gnulib/lib/signal.in.h _GL_CXXALIAS_SYS (sigemptyset, int, (sigset_t *set)); set 258 maint/gnulib/lib/signal.in.h _GL_FUNCDECL_SYS (sigaddset, int, (sigset_t *set, int sig) set 261 maint/gnulib/lib/signal.in.h _GL_CXXALIAS_SYS (sigaddset, int, (sigset_t *set, int sig)); set 271 maint/gnulib/lib/signal.in.h _GL_FUNCDECL_SYS (sigdelset, int, (sigset_t *set, int sig) set 274 maint/gnulib/lib/signal.in.h _GL_CXXALIAS_SYS (sigdelset, int, (sigset_t *set, int sig)); set 284 maint/gnulib/lib/signal.in.h _GL_FUNCDECL_SYS (sigfillset, int, (sigset_t *set) _GL_ARG_NONNULL ((1))); set 286 maint/gnulib/lib/signal.in.h _GL_CXXALIAS_SYS (sigfillset, int, (sigset_t *set)); set 291 maint/gnulib/lib/signal.in.h _GL_FUNCDECL_SYS (sigpending, int, (sigset_t *set) _GL_ARG_NONNULL ((1))); set 293 maint/gnulib/lib/signal.in.h _GL_CXXALIAS_SYS (sigpending, int, (sigset_t *set)); set 307 maint/gnulib/lib/signal.in.h const sigset_t *restrict set, set 312 maint/gnulib/lib/signal.in.h const sigset_t *restrict set, set 114 maint/gnulib/lib/sigprocmask.c sigismember (const sigset_t *set, int sig) set 123 maint/gnulib/lib/sigprocmask.c return (*set >> sig) & 1; set 130 maint/gnulib/lib/sigprocmask.c sigemptyset (sigset_t *set) set 132 maint/gnulib/lib/sigprocmask.c *set = 0; set 137 maint/gnulib/lib/sigprocmask.c sigaddset (sigset_t *set, int sig) set 146 maint/gnulib/lib/sigprocmask.c *set |= 1U << sig; set 157 maint/gnulib/lib/sigprocmask.c sigdelset (sigset_t *set, int sig) set 166 maint/gnulib/lib/sigprocmask.c *set &= ~(1U << sig); set 178 maint/gnulib/lib/sigprocmask.c sigfillset (sigset_t *set) set 180 maint/gnulib/lib/sigprocmask.c *set = ((2U << (NSIG - 1)) - 1) & ~ SIGABRT_COMPAT_MASK; set 205 maint/gnulib/lib/sigprocmask.c sigpending (sigset_t *set) set 213 maint/gnulib/lib/sigprocmask.c *set = pending; set 222 maint/gnulib/lib/sigprocmask.c sigprocmask (int operation, const sigset_t *set, sigset_t *old_set) set 227 maint/gnulib/lib/sigprocmask.c if (set != NULL) set 236 maint/gnulib/lib/sigprocmask.c new_blocked_set = blocked_set | *set; set 239 maint/gnulib/lib/sigprocmask.c new_blocked_set = *set; set 242 maint/gnulib/lib/sigprocmask.c new_blocked_set = blocked_set & ~*set; set 160 maint/gnulib/lib/sys_select.in.h rpl_fd_isset (SOCKET fd, fd_set * set) set 163 maint/gnulib/lib/sys_select.in.h if (set == NULL) set 166 maint/gnulib/lib/sys_select.in.h for (i = 0; i < set->fd_count; i++) set 167 maint/gnulib/lib/sys_select.in.h if (set->fd_array[i] == fd) set 177 maint/gnulib/lib/sys_select.in.h # define FD_ISSET(fd, set) rpl_fd_isset(fd, set) set 231 maint/gnulib/lib/sys_socket.in.h rpl_fd_isset (SOCKET fd, fd_set * set) set 234 maint/gnulib/lib/sys_socket.in.h if (set == NULL) set 237 maint/gnulib/lib/sys_socket.in.h for (i = 0; i < set->fd_count; i++) set 238 maint/gnulib/lib/sys_socket.in.h if (set->fd_array[i] == fd) set 248 maint/gnulib/lib/sys_socket.in.h # define FD_ISSET(fd, set) rpl_fd_isset(fd, set) set 78 maint/gnulib/tests/test-array_oset.c gl_sortedlist_indexof_atleast (gl_list_t set, set 83 maint/gnulib/tests/test-array_oset.c size_t count = gl_list_size (set); set 87 maint/gnulib/tests/test-array_oset.c if (threshold_fn (gl_list_get_at (set, index), threshold)) set 31 maint/gnulib/tests/test-asyncsafe-spin1.c sigset_t set; set 33 maint/gnulib/tests/test-asyncsafe-spin1.c sigemptyset (&set); set 34 maint/gnulib/tests/test-asyncsafe-spin1.c sigaddset (&set, SIGINT); set 39 maint/gnulib/tests/test-asyncsafe-spin1.c asyncsafe_spin_lock (&global_spin_lock, &set, &saved_set); set 53 maint/gnulib/tests/test-asyncsafe-spin1.c asyncsafe_spin_lock (&local_spin_lock, &set, &saved_set); set 28 maint/gnulib/tests/test-avltree_omap.c extern void gl_avltree_omap_check_invariants (gl_omap_t set); set 30 maint/gnulib/tests/test-avltree_oset.c extern void gl_avltree_oset_check_invariants (gl_oset_t set); set 36 maint/gnulib/tests/test-priv-set.c priv_set_t *set; set 38 maint/gnulib/tests/test-priv-set.c ASSERT (set = priv_allocset ()); set 39 maint/gnulib/tests/test-priv-set.c ASSERT (getppriv (PRIV_EFFECTIVE, set) == 0); set 40 maint/gnulib/tests/test-priv-set.c ASSERT (priv_ismember (set, PRIV_PROC_EXEC) == 1); set 45 maint/gnulib/tests/test-priv-set.c ASSERT (getppriv (PRIV_EFFECTIVE, set) == 0); set 46 maint/gnulib/tests/test-priv-set.c ASSERT (priv_ismember (set, PRIV_PROC_EXEC) == 1); set 50 maint/gnulib/tests/test-priv-set.c ASSERT (getppriv (PRIV_EFFECTIVE, set) == 0); set 51 maint/gnulib/tests/test-priv-set.c ASSERT (priv_ismember (set, PRIV_PROC_EXEC) == 1); set 54 maint/gnulib/tests/test-priv-set.c ASSERT (getppriv (PRIV_EFFECTIVE, set) == 0); set 55 maint/gnulib/tests/test-priv-set.c ASSERT (priv_ismember (set, PRIV_PROC_EXEC) == 0); set 59 maint/gnulib/tests/test-priv-set.c ASSERT (getppriv (PRIV_EFFECTIVE, set) == 0); set 60 maint/gnulib/tests/test-priv-set.c ASSERT (priv_ismember (set, PRIV_PROC_EXEC) == 0); set 63 maint/gnulib/tests/test-priv-set.c ASSERT (getppriv (PRIV_EFFECTIVE, set) == 0); set 64 maint/gnulib/tests/test-priv-set.c ASSERT (priv_ismember (set, PRIV_PROC_EXEC) == 1); set 68 maint/gnulib/tests/test-priv-set.c ASSERT (getppriv (PRIV_EFFECTIVE, set) == 0); set 69 maint/gnulib/tests/test-priv-set.c ASSERT (priv_ismember (set, PRIV_PROC_EXEC) == 1); set 72 maint/gnulib/tests/test-priv-set.c ASSERT (getppriv (PRIV_EFFECTIVE, set) == 0); set 73 maint/gnulib/tests/test-priv-set.c if (priv_ismember (set, PRIV_SYS_LINKDIR)) set 46 maint/gnulib/tests/test-pthread_sigmask1.c sigset_t set; set 52 maint/gnulib/tests/test-pthread_sigmask1.c sigemptyset (&set); set 53 maint/gnulib/tests/test-pthread_sigmask1.c sigaddset (&set, SIGINT); set 56 maint/gnulib/tests/test-pthread_sigmask1.c ASSERT (pthread_sigmask (1729, &set, NULL) == EINVAL); set 59 maint/gnulib/tests/test-pthread_sigmask1.c ASSERT (pthread_sigmask (SIG_BLOCK, &set, NULL) == 0); set 72 maint/gnulib/tests/test-pthread_sigmask1.c ASSERT (pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0); set 54 maint/gnulib/tests/test-pthread_sigmask2.c sigset_t set; set 58 maint/gnulib/tests/test-pthread_sigmask2.c sigemptyset (&set); set 59 maint/gnulib/tests/test-pthread_sigmask2.c sigaddset (&set, SIGINT); set 64 maint/gnulib/tests/test-pthread_sigmask2.c ASSERT (pthread_sigmask (1729, &set, NULL) == EINVAL); set 68 maint/gnulib/tests/test-pthread_sigmask2.c ASSERT (pthread_sigmask (SIG_BLOCK, &set, NULL) == 0); set 81 maint/gnulib/tests/test-pthread_sigmask2.c ASSERT (pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0); set 28 maint/gnulib/tests/test-rbtree_omap.c extern void gl_rbtree_omap_check_invariants (gl_omap_t set); set 30 maint/gnulib/tests/test-rbtree_oset.c extern void gl_rbtree_oset_check_invariants (gl_oset_t set); set 46 maint/gnulib/tests/test-sigprocmask.c sigset_t set; set 58 maint/gnulib/tests/test-sigprocmask.c sigemptyset (&set); set 59 maint/gnulib/tests/test-sigprocmask.c sigaddset (&set, SIGINT); set 62 maint/gnulib/tests/test-sigprocmask.c ASSERT (sigprocmask (1729, &set, NULL) == -1); set 66 maint/gnulib/tests/test-sigprocmask.c ASSERT (sigprocmask (SIG_BLOCK, &set, NULL) == 0); set 79 maint/gnulib/tests/test-sigprocmask.c ASSERT (sigprocmask (SIG_UNBLOCK, &set, NULL) == 0); set 32 maint/gnulib/tests/test-sigsegv-catch-segv2.c # define sigemptyset(set) set 33 maint/gnulib/tests/test-sigsegv-catch-segv2.c # define sigprocmask(how,set,oldset) set 32 maint/gnulib/tests/test-sigsegv-catch-stackoverflow1.c # define sigemptyset(set) set 33 maint/gnulib/tests/test-sigsegv-catch-stackoverflow1.c # define sigprocmask(how,set,oldset) set 33 maint/gnulib/tests/test-sigsegv-catch-stackoverflow2.c # define sigemptyset(set) set 34 maint/gnulib/tests/test-sigsegv-catch-stackoverflow2.c # define sigprocmask(how,set,oldset) set 30 maint/gnulib/tests/unicase/test-predicate-part1.h static const interval_t set[] = set 26 maint/gnulib/tests/unicase/test-predicate-part2.h for (i = 0; i < SIZEOF (set); i++) set 28 maint/gnulib/tests/unicase/test-predicate-part2.h for (; c < set[i].start; c++) set 30 maint/gnulib/tests/unicase/test-predicate-part2.h for (; c <= set[i].end; c++) set 30 maint/gnulib/tests/unictype/test-predicate-part1.h static const interval_t set[] = set 26 maint/gnulib/tests/unictype/test-predicate-part2.h for (i = 0; i < SIZEOF (set); i++) set 28 maint/gnulib/tests/unictype/test-predicate-part2.h for (; c < set[i].start; c++) set 30 maint/gnulib/tests/unictype/test-predicate-part2.h for (; c <= set[i].end; c++) set 28 maint/gnulib/tests/unigbrk/test-uc-gbrk-prop.c static const struct uc_gbrk_prop_range set[] = set 70 maint/gnulib/tests/unigbrk/test-uc-gbrk-prop.c for (r = set; r < set + SIZEOF (set); r++)