copy 403 daemons/based/based_messages.c xmlNode *copy = pcmk__xe_create(NULL, PCMK__XE_COPY); copy 410 daemons/based/based_messages.c crm_xml_add(copy, field, value); copy 414 daemons/based/based_messages.c return copy; copy 194 daemons/controld/controld_messages.c ha_msg_input_t *copy = pcmk__assert_alloc(1, sizeof(ha_msg_input_t)); copy 196 daemons/controld/controld_messages.c copy->msg = (orig != NULL)? pcmk__xml_copy(NULL, orig->msg) : NULL; copy 198 daemons/controld/controld_messages.c wrapper = pcmk__xe_first_child(copy->msg, PCMK__XE_CRM_XML, NULL, NULL); copy 199 daemons/controld/controld_messages.c copy->xml = pcmk__xe_first_child(wrapper, NULL, NULL, NULL); copy 200 daemons/controld/controld_messages.c return copy; copy 60 lib/common/digest.c xmlNode *copy = NULL; copy 64 lib/common/digest.c copy = sorted_xml(input, NULL, TRUE); copy 66 lib/common/digest.c input = copy; copy 70 lib/common/digest.c CRM_CHECK(buffer->len > 0, free_xml(copy); copy 78 lib/common/digest.c free_xml(copy); copy 26 lib/common/tests/strings/pcmk__str_table_dup_test.c GHashTable *copy = NULL; copy 28 lib/common/tests/strings/pcmk__str_table_dup_test.c copy = pcmk__str_table_dup(tbl); copy 29 lib/common/tests/strings/pcmk__str_table_dup_test.c assert_int_equal(g_hash_table_size(copy), 0); copy 32 lib/common/tests/strings/pcmk__str_table_dup_test.c g_hash_table_destroy(copy); copy 39 lib/common/tests/strings/pcmk__str_table_dup_test.c GHashTable *copy = NULL; copy 45 lib/common/tests/strings/pcmk__str_table_dup_test.c copy = pcmk__str_table_dup(tbl); copy 46 lib/common/tests/strings/pcmk__str_table_dup_test.c assert_int_equal(g_hash_table_size(copy), 3); copy 53 lib/common/tests/strings/pcmk__str_table_dup_test.c g_hash_table_destroy(copy); copy 976 lib/common/xml.c xmlNode *copy = NULL; copy 989 lib/common/xml.c copy = xmlDocCopyNode(src, doc, 1); copy 990 lib/common/xml.c pcmk__mem_assert(copy); copy 992 lib/common/xml.c xmlDocSetRootElement(doc, copy); copy 995 lib/common/xml.c copy = xmlDocCopyNode(src, parent->doc, 1); copy 996 lib/common/xml.c pcmk__mem_assert(copy); copy 998 lib/common/xml.c xmlAddChild(parent, copy); copy 1001 lib/common/xml.c pcmk__xml_new_private_data(copy); copy 1002 lib/common/xml.c return copy; copy 1201 lib/common/xml.c GString *copy = NULL; copy 1206 lib/common/xml.c copy = g_string_sized_new(strlen(text)); copy 1213 lib/common/xml.c g_string_append_len(copy, text, bytes); copy 1222 lib/common/xml.c g_string_append(copy, PCMK__XML_ENTITY_LT); copy 1225 lib/common/xml.c g_string_append(copy, PCMK__XML_ENTITY_GT); copy 1228 lib/common/xml.c g_string_append(copy, PCMK__XML_ENTITY_AMP); copy 1232 lib/common/xml.c g_string_append_c(copy, *text); copy 1236 lib/common/xml.c g_string_append_printf(copy, "&#x%.2X;", *text); copy 1238 lib/common/xml.c g_string_append_c(copy, *text); copy 1247 lib/common/xml.c g_string_append(copy, PCMK__XML_ENTITY_LT); copy 1250 lib/common/xml.c g_string_append(copy, PCMK__XML_ENTITY_GT); copy 1253 lib/common/xml.c g_string_append(copy, PCMK__XML_ENTITY_AMP); copy 1256 lib/common/xml.c g_string_append(copy, PCMK__XML_ENTITY_QUOT); copy 1260 lib/common/xml.c g_string_append_printf(copy, "&#x%.2X;", *text); copy 1262 lib/common/xml.c g_string_append_c(copy, *text); copy 1271 lib/common/xml.c g_string_append(copy, "\\\""); copy 1274 lib/common/xml.c g_string_append(copy, "\\n"); copy 1277 lib/common/xml.c g_string_append(copy, "\\r"); copy 1280 lib/common/xml.c g_string_append(copy, "\\t"); copy 1283 lib/common/xml.c g_string_append_c(copy, *text); copy 1295 lib/common/xml.c return g_string_free(copy, FALSE); copy 2423 lib/common/xml.c char *copy = NULL; copy 2430 lib/common/xml.c copy = pcmk__str_copy(text); copy 2432 lib/common/xml.c if(copy[index] & 0x80 && copy[index+1] & 0x80){ copy 2436 lib/common/xml.c switch (copy[index]) { copy 2441 lib/common/xml.c copy = replace_text(copy, &index, &length, "<"); copy 2444 lib/common/xml.c copy = replace_text(copy, &index, &length, ">"); copy 2447 lib/common/xml.c copy = replace_text(copy, &index, &length, """); copy 2450 lib/common/xml.c copy = replace_text(copy, &index, &length, "'"); copy 2453 lib/common/xml.c copy = replace_text(copy, &index, &length, "&"); copy 2457 lib/common/xml.c copy = replace_text(copy, &index, &length, " "); copy 2460 lib/common/xml.c copy = replace_text(copy, &index, &length, "\\n"); copy 2463 lib/common/xml.c copy = replace_text(copy, &index, &length, "\\r"); copy 2467 lib/common/xml.c if(copy[index] < ' ' || copy[index] > '~') { copy 2468 lib/common/xml.c char *replace = crm_strdup_printf("\\%.3o", copy[index]); copy 2470 lib/common/xml.c copy = replace_text(copy, &index, &length, replace); copy 2475 lib/common/xml.c return copy; copy 2482 lib/common/xml.c xmlNode *copy = NULL; copy 2484 lib/common/xml.c copy = xmlDocCopyNode(src, doc, 1); copy 2485 lib/common/xml.c pcmk__mem_assert(copy); copy 2487 lib/common/xml.c xmlDocSetRootElement(doc, copy); copy 2488 lib/common/xml.c pcmk__xml_new_private_data(copy); copy 2489 lib/common/xml.c return copy; copy 215 lib/lrmd/lrmd_client.c lrmd_event_data_t *copy = NULL; copy 217 lib/lrmd/lrmd_client.c copy = pcmk__assert_alloc(1, sizeof(lrmd_event_data_t)); copy 219 lib/lrmd/lrmd_client.c copy->type = event->type; copy 222 lib/lrmd/lrmd_client.c copy->rsc_id = pcmk__str_copy(event->rsc_id); copy 223 lib/lrmd/lrmd_client.c copy->op_type = pcmk__str_copy(event->op_type); copy 224 lib/lrmd/lrmd_client.c copy->user_data = pcmk__str_copy(event->user_data); copy 225 lib/lrmd/lrmd_client.c copy->output = pcmk__str_copy(event->output); copy 226 lib/lrmd/lrmd_client.c copy->remote_nodename = pcmk__str_copy(event->remote_nodename); copy 227 lib/lrmd/lrmd_client.c copy->exit_reason = pcmk__str_copy(event->exit_reason); copy 229 lib/lrmd/lrmd_client.c copy->call_id = event->call_id; copy 230 lib/lrmd/lrmd_client.c copy->timeout = event->timeout; copy 231 lib/lrmd/lrmd_client.c copy->interval_ms = event->interval_ms; copy 232 lib/lrmd/lrmd_client.c copy->start_delay = event->start_delay; copy 233 lib/lrmd/lrmd_client.c copy->rsc_deleted = event->rsc_deleted; copy 234 lib/lrmd/lrmd_client.c copy->rc = event->rc; copy 235 lib/lrmd/lrmd_client.c copy->op_status = event->op_status; copy 236 lib/lrmd/lrmd_client.c copy->t_run = event->t_run; copy 237 lib/lrmd/lrmd_client.c copy->t_rcchange = event->t_rcchange; copy 238 lib/lrmd/lrmd_client.c copy->exec_time = event->exec_time; copy 239 lib/lrmd/lrmd_client.c copy->queue_time = event->queue_time; copy 240 lib/lrmd/lrmd_client.c copy->connection_rc = event->connection_rc; copy 241 lib/lrmd/lrmd_client.c copy->params = pcmk__str_table_dup(event->params); copy 243 lib/lrmd/lrmd_client.c return copy; copy 1014 lib/pacemaker/libpacemaker_private.h void pcmk__copy_node_tables(const pcmk_resource_t *rsc, GHashTable **copy); copy 630 lib/pacemaker/pcmk_sched_location.c pcmk_node_t *copy = pe__copy_node(node); copy 632 lib/pacemaker/pcmk_sched_location.c copy->weight = node_score; copy 633 lib/pacemaker/pcmk_sched_location.c new_con->nodes = g_list_prepend(NULL, copy); copy 114 lib/pacemaker/pcmk_sched_nodes.c pcmk__copy_node_tables(const pcmk_resource_t *rsc, GHashTable **copy) copy 116 lib/pacemaker/pcmk_sched_nodes.c pcmk__assert((rsc != NULL) && (copy != NULL)); copy 118 lib/pacemaker/pcmk_sched_nodes.c if (*copy == NULL) { copy 119 lib/pacemaker/pcmk_sched_nodes.c *copy = pcmk__strkey_table(NULL, destroy_node_tables); copy 122 lib/pacemaker/pcmk_sched_nodes.c g_hash_table_insert(*copy, rsc->id, copy 126 lib/pacemaker/pcmk_sched_nodes.c pcmk__copy_node_tables((const pcmk_resource_t *) iter->data, copy); copy 778 lib/pengine/bundle.c pcmk_node_t *copy = pe__copy_node(replica->node); copy 779 lib/pengine/bundle.c copy->weight = -PCMK_SCORE_INFINITY; copy 781 lib/pengine/bundle.c (gpointer) replica->node->details->id, copy); copy 130 maint/gnulib/lib/bitset/base.h void (*copy) (bitset, bitset); copy 216 maint/gnulib/lib/bitset/base.h #define BITSET_COPY_(DST, SRC) (SRC)->b.vtable->copy (DST, SRC) copy 2119 maint/gnulib/lib/dfa.c copy (m, dst); copy 2159 maint/gnulib/lib/dfa.c copy (dst, tmp); copy 2236 maint/gnulib/lib/dfa.c copy (s, &d->states[i].elems); copy 3290 maint/gnulib/lib/dfa.c copy (&d->states[s1].mbps, &d->mb_follows); copy 99 maint/gnulib/lib/duplocale.c locale_t copy = newlocale (category_mask, name, base_copy); copy 100 maint/gnulib/lib/duplocale.c if (copy == NULL) copy 109 maint/gnulib/lib/duplocale.c base_copy = copy; copy 32 maint/gnulib/lib/malloc/scratch_buffer_dupfree.c void *copy = malloc (size); copy 33 maint/gnulib/lib/malloc/scratch_buffer_dupfree.c return copy != NULL ? memcpy (copy, data, size) : NULL; copy 37 maint/gnulib/lib/malloc/scratch_buffer_dupfree.c void *copy = realloc (data, size); copy 38 maint/gnulib/lib/malloc/scratch_buffer_dupfree.c return copy != NULL ? copy : data; copy 275 maint/gnulib/lib/string-buffer.c char *copy = (char *) malloc (buffer->length); copy 276 maint/gnulib/lib/string-buffer.c if (copy == NULL) copy 278 maint/gnulib/lib/string-buffer.c memcpy (copy, buffer->data, buffer->length); copy 279 maint/gnulib/lib/string-buffer.c return copy; copy 22 maint/gnulib/lib/wcsdup-impl.h wchar_t *copy = (wchar_t *) malloc (n * sizeof (wchar_t)); copy 23 maint/gnulib/lib/wcsdup-impl.h if (copy != NULL) copy 24 maint/gnulib/lib/wcsdup-impl.h return wmemcpy (copy, s, n); copy 68 maint/gnulib/tests/unistr/test-stpncpy.h UNIT *copy; copy 71 maint/gnulib/tests/unistr/test-stpncpy.h copy = (UNIT *) page_boundary - n_to_copy; copy 73 maint/gnulib/tests/unistr/test-stpncpy.h copy[i] = input[i]; copy 75 maint/gnulib/tests/unistr/test-stpncpy.h check_single (copy, length, n); copy 79 maint/gnulib/tests/unistr/test-strncat.h UNIT *copy; copy 82 maint/gnulib/tests/unistr/test-strncat.h copy = (UNIT *) page_boundary - n_to_copy; copy 84 maint/gnulib/tests/unistr/test-strncat.h copy[i] = input[i]; copy 86 maint/gnulib/tests/unistr/test-strncat.h check_single (copy, length, n); copy 68 maint/gnulib/tests/unistr/test-strncpy.h UNIT *copy; copy 71 maint/gnulib/tests/unistr/test-strncpy.h copy = (UNIT *) page_boundary - n_to_copy; copy 73 maint/gnulib/tests/unistr/test-strncpy.h copy[i] = input[i]; copy 75 maint/gnulib/tests/unistr/test-strncpy.h check_single (copy, length, n); copy 49 maint/gnulib/tests/unistr/test-strnlen.h UNIT *copy; copy 52 maint/gnulib/tests/unistr/test-strnlen.h copy = (UNIT *) page_boundary - n_to_copy; copy 54 maint/gnulib/tests/unistr/test-strnlen.h copy[i] = input[i]; copy 56 maint/gnulib/tests/unistr/test-strnlen.h check_single (copy, length, n);