copy 240 daemons/based/based_common.c xmlNode *copy = create_xml_node(NULL, "copy"); copy 242 daemons/based/based_common.c CRM_ASSERT(copy != NULL); copy 248 daemons/based/based_common.c crm_xml_add(copy, field, value); copy 255 daemons/based/based_common.c add_message_xml(copy, field, value_struct); copy 259 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 != NULL && strlen(buffer) > 0, free_xml(copy); copy 79 lib/common/digest.c free_xml(copy); copy 833 lib/common/xml.c xmlNode *copy = xmlDocCopyNode(src, doc, 1); copy 835 lib/common/xml.c xmlDocSetRootElement(doc, copy); copy 836 lib/common/xml.c xmlSetTreeDoc(copy, doc); copy 837 lib/common/xml.c return copy; copy 1347 lib/common/xml.c char *copy; copy 1369 lib/common/xml.c copy = strdup(text); copy 1370 lib/common/xml.c CRM_ASSERT(copy != NULL); copy 1372 lib/common/xml.c switch (copy[index]) { copy 1376 lib/common/xml.c copy = replace_text(copy, index, &length, "<"); copy 1379 lib/common/xml.c copy = replace_text(copy, index, &length, ">"); copy 1382 lib/common/xml.c copy = replace_text(copy, index, &length, """); copy 1385 lib/common/xml.c copy = replace_text(copy, index, &length, "'"); copy 1388 lib/common/xml.c copy = replace_text(copy, index, &length, "&"); copy 1392 lib/common/xml.c copy = replace_text(copy, index, &length, " "); copy 1395 lib/common/xml.c copy = replace_text(copy, index, &length, "\\n"); copy 1398 lib/common/xml.c copy = replace_text(copy, index, &length, "\\r"); copy 1402 lib/common/xml.c if(copy[index] < ' ' || copy[index] > '~') { copy 1403 lib/common/xml.c char *replace = crm_strdup_printf("\\%.3o", copy[index]); copy 1405 lib/common/xml.c copy = replace_text(copy, index, &length, replace); copy 1410 lib/common/xml.c return copy; copy 216 lib/lrmd/lrmd_client.c lrmd_event_data_t *copy = NULL; copy 218 lib/lrmd/lrmd_client.c copy = calloc(1, sizeof(lrmd_event_data_t)); copy 223 lib/lrmd/lrmd_client.c memcpy(copy, event, sizeof(lrmd_event_data_t)); copy 225 lib/lrmd/lrmd_client.c copy->rsc_id = event->rsc_id ? strdup(event->rsc_id) : NULL; copy 226 lib/lrmd/lrmd_client.c copy->op_type = event->op_type ? strdup(event->op_type) : NULL; copy 227 lib/lrmd/lrmd_client.c copy->user_data = event->user_data ? strdup(event->user_data) : NULL; copy 228 lib/lrmd/lrmd_client.c copy->output = event->output ? strdup(event->output) : NULL; copy 229 lib/lrmd/lrmd_client.c copy->exit_reason = event->exit_reason ? strdup(event->exit_reason) : NULL; copy 230 lib/lrmd/lrmd_client.c copy->remote_nodename = event->remote_nodename ? strdup(event->remote_nodename) : NULL; copy 231 lib/lrmd/lrmd_client.c copy->params = pcmk__str_table_dup(event->params); copy 233 lib/lrmd/lrmd_client.c return copy; copy 577 lib/pacemaker/pcmk_sched_location.c pe_node_t *copy = pe__copy_node(node); copy 579 lib/pacemaker/pcmk_sched_location.c copy->weight = node_weight; copy 580 lib/pacemaker/pcmk_sched_location.c new_con->node_list_rh = g_list_prepend(NULL, copy); copy 789 lib/pengine/bundle.c pe_node_t *copy = pe__copy_node(replica->node); copy 790 lib/pengine/bundle.c copy->weight = -INFINITY; copy 792 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;