copy 298 daemons/based/based_common.c xmlNode *copy = create_xml_node(NULL, "copy"); copy 300 daemons/based/based_common.c CRM_ASSERT(copy != NULL); copy 306 daemons/based/based_common.c crm_xml_add(copy, field, value); copy 313 daemons/based/based_common.c add_message_xml(copy, field, value_struct); copy 317 daemons/based/based_common.c return copy; copy 193 daemons/controld/controld_messages.c ha_msg_input_t *copy = calloc(1, sizeof(ha_msg_input_t)); copy 195 daemons/controld/controld_messages.c CRM_ASSERT(copy != NULL); copy 196 daemons/controld/controld_messages.c copy->msg = (orig && orig->msg)? copy_xml(orig->msg) : NULL; copy 197 daemons/controld/controld_messages.c copy->xml = get_message_xml(copy->msg, F_CRM_DATA); copy 198 daemons/controld/controld_messages.c return copy; copy 61 lib/common/digest.c xmlNode *copy = NULL; copy 65 lib/common/digest.c copy = sorted_xml(input, NULL, TRUE); copy 67 lib/common/digest.c input = copy; copy 71 lib/common/digest.c CRM_CHECK(buffer->len > 0, free_xml(copy); copy 79 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 894 lib/common/xml.c xmlNode *copy = xmlDocCopyNode(src, doc, 1); copy 896 lib/common/xml.c xmlDocSetRootElement(doc, copy); copy 897 lib/common/xml.c xmlSetTreeDoc(copy, doc); copy 898 lib/common/xml.c return copy; copy 1409 lib/common/xml.c char *copy; copy 1431 lib/common/xml.c copy = strdup(text); copy 1432 lib/common/xml.c CRM_ASSERT(copy != NULL); copy 1434 lib/common/xml.c if(copy[index] & 0x80 && copy[index+1] & 0x80){ copy 1438 lib/common/xml.c switch (copy[index]) { copy 1442 lib/common/xml.c copy = replace_text(copy, index, &length, "<"); copy 1445 lib/common/xml.c copy = replace_text(copy, index, &length, ">"); copy 1448 lib/common/xml.c copy = replace_text(copy, index, &length, """); copy 1451 lib/common/xml.c copy = replace_text(copy, index, &length, "'"); copy 1454 lib/common/xml.c copy = replace_text(copy, index, &length, "&"); copy 1458 lib/common/xml.c copy = replace_text(copy, index, &length, " "); copy 1461 lib/common/xml.c copy = replace_text(copy, index, &length, "\\n"); copy 1464 lib/common/xml.c copy = replace_text(copy, index, &length, "\\r"); copy 1468 lib/common/xml.c if(copy[index] < ' ' || copy[index] > '~') { copy 1469 lib/common/xml.c char *replace = crm_strdup_printf("\\%.3o", copy[index]); copy 1471 lib/common/xml.c copy = replace_text(copy, index, &length, replace); copy 1476 lib/common/xml.c return copy; copy 209 lib/lrmd/lrmd_client.c lrmd_event_data_t *copy = NULL; copy 211 lib/lrmd/lrmd_client.c copy = calloc(1, sizeof(lrmd_event_data_t)); copy 213 lib/lrmd/lrmd_client.c copy->type = event->type; copy 214 lib/lrmd/lrmd_client.c pcmk__str_update((char **) ©->rsc_id, event->rsc_id); copy 215 lib/lrmd/lrmd_client.c pcmk__str_update((char **) ©->op_type, event->op_type); copy 216 lib/lrmd/lrmd_client.c pcmk__str_update((char **) ©->user_data, event->user_data); copy 217 lib/lrmd/lrmd_client.c copy->call_id = event->call_id; copy 218 lib/lrmd/lrmd_client.c copy->timeout = event->timeout; copy 219 lib/lrmd/lrmd_client.c copy->interval_ms = event->interval_ms; copy 220 lib/lrmd/lrmd_client.c copy->start_delay = event->start_delay; copy 221 lib/lrmd/lrmd_client.c copy->rsc_deleted = event->rsc_deleted; copy 222 lib/lrmd/lrmd_client.c copy->rc = event->rc; copy 223 lib/lrmd/lrmd_client.c copy->op_status = event->op_status; copy 224 lib/lrmd/lrmd_client.c pcmk__str_update((char **) ©->output, event->output); copy 225 lib/lrmd/lrmd_client.c copy->t_run = event->t_run; copy 226 lib/lrmd/lrmd_client.c copy->t_rcchange = event->t_rcchange; copy 227 lib/lrmd/lrmd_client.c copy->exec_time = event->exec_time; copy 228 lib/lrmd/lrmd_client.c copy->queue_time = event->queue_time; copy 229 lib/lrmd/lrmd_client.c copy->connection_rc = event->connection_rc; copy 230 lib/lrmd/lrmd_client.c copy->params = pcmk__str_table_dup(event->params); copy 231 lib/lrmd/lrmd_client.c pcmk__str_update((char **) ©->remote_nodename, event->remote_nodename); copy 232 lib/lrmd/lrmd_client.c pcmk__str_update((char **) ©->exit_reason, event->exit_reason); copy 234 lib/lrmd/lrmd_client.c return copy; copy 581 lib/pacemaker/pcmk_sched_location.c pe_node_t *copy = pe__copy_node(node); copy 583 lib/pacemaker/pcmk_sched_location.c copy->weight = node_weight; copy 584 lib/pacemaker/pcmk_sched_location.c new_con->node_list_rh = g_list_prepend(NULL, copy); copy 549 lib/pengine/bundle.c pe_node_t *copy = pe__copy_node(replica->node); copy 550 lib/pengine/bundle.c copy->weight = -INFINITY; copy 552 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); copy 149 replace/scandir.c struct dirent *copy; copy 195 replace/scandir.c if ((copy = (struct dirent *)malloc(sizeof(struct dirent) + extra)) == NULL) { copy 200 replace/scandir.c copy->d_ino = entry->d_ino; copy 201 replace/scandir.c copy->d_reclen = entry->d_reclen; copy 202 replace/scandir.c strcpy(copy->d_name, entry->d_name); copy 213 replace/scandir.c free(copy); copy 217 replace/scandir.c array[counter++] = copy;