new                57 cib/io.c           char *new = crm_strdup_printf("%s/cib.auto.XXXXXX", cib_root);
new                59 cib/io.c           crm_err("Archiving unusable file %s as %s", old, new);
new                61 cib/io.c           if ((new_fd = mkstemp(new) < 0) || (rename(old, new) < 0)) {
new                62 cib/io.c               crm_perror(LOG_ERR, "Couldn't rename %s as %s", old, new);
new                69 cib/io.c           free(new);
new               194 fencing/standalone_config.c     int new = 0;
new               201 fencing/standalone_config.c         new = 1;
new               212 fencing/standalone_config.c     if (new) {
new               181 include/crm/common/xml.h gboolean apply_xml_diff(xmlNode * old, xmlNode * diff, xmlNode ** new);
new               382 include/crm/common/xml.h void xml_calculate_changes(xmlNode * old, xmlNode * new); /* For comparing two documents after the fact */
new               331 include/crm/compatibility.h apply_cib_diff(xmlNode * old, xmlNode * diff, xmlNode ** new)
new               333 include/crm/compatibility.h     *new = copy_xml(old);
new               334 include/crm/compatibility.h     return (xml_apply_patchset(*new, diff, TRUE) == pcmk_ok);
new               418 lib/cib/cib_utils.c         int new = 0;
new               420 lib/cib/cib_utils.c         crm_element_value_int(scratch, XML_ATTR_GENERATION_ADMIN, &new);
new               423 lib/cib/cib_utils.c         if (old > new) {
new               425 lib/cib/cib_utils.c                     XML_ATTR_GENERATION_ADMIN, old, new, call_options);
new               430 lib/cib/cib_utils.c         } else if (old == new) {
new               431 lib/cib/cib_utils.c             crm_element_value_int(scratch, XML_ATTR_GENERATION, &new);
new               433 lib/cib/cib_utils.c             if (old > new) {
new               435 lib/cib/cib_utils.c                         XML_ATTR_GENERATION, old, new, call_options);
new              3933 lib/common/xml.c apply_xml_diff(xmlNode * old, xmlNode * diff, xmlNode ** new)
new              3945 lib/common/xml.c     CRM_CHECK(new != NULL, return FALSE);
new              3957 lib/common/xml.c             *new = subtract_xml_object(NULL, old, child_diff, FALSE, NULL, NULL);
new              3963 lib/common/xml.c         *new = copy_xml(old);
new              3979 lib/common/xml.c                 add_xml_object(NULL, *new, child_diff, TRUE);
new              3992 lib/common/xml.c         purge_diff_markers(*new);       /* Purge now so the diff is ok */
new              3993 lib/common/xml.c         new_digest = calculate_xml_versioned_digest(*new, FALSE, TRUE, version);
new              4002 lib/common/xml.c                 save_xml_to_file(*new, "diff:new", NULL);
new              4011 lib/common/xml.c         purge_diff_markers(*new);       /* Purge now so the diff is ok */
new              4018 lib/common/xml.c __xml_diff_object(xmlNode * old, xmlNode * new)
new              4023 lib/common/xml.c     CRM_CHECK(new != NULL, return);
new              4025 lib/common/xml.c         crm_node_created(new);
new              4026 lib/common/xml.c         __xml_acl_post_process(new); /* Check creation is allowed */
new              4030 lib/common/xml.c         xml_private_t *p = new->_private;
new              4039 lib/common/xml.c     for (pIter = crm_first_attr(new); pIter != NULL; pIter = pIter->next) {
new              4051 lib/common/xml.c         xmlAttr *exists = xmlHasProp(new, pIter->name);
new              4055 lib/common/xml.c             p = new->doc->_private;
new              4059 lib/common/xml.c             exists = xmlSetProp(new, (const xmlChar *)name, (const xmlChar *)old_value);
new              4066 lib/common/xml.c             xml_remove_prop(new, name);
new              4071 lib/common/xml.c             const char *value = crm_element_value(new, name);
new              4080 lib/common/xml.c                 char *vcopy = crm_element_value_copy(new, name);
new              4083 lib/common/xml.c                 xmlSetProp(new, prop->name, (const xmlChar *)old_value);
new              4084 lib/common/xml.c                 crm_xml_add(new, name, vcopy);
new              4089 lib/common/xml.c                 __xml_node_dirty(new);
new              4104 lib/common/xml.c     for (pIter = crm_first_attr(new); pIter != NULL; ) {
new              4111 lib/common/xml.c             char *value = crm_element_value_copy(new, name);
new              4113 lib/common/xml.c             crm_trace("Created %s@%s=%s", new->name, name, value);
new              4115 lib/common/xml.c             if(__xml_acl_check(new, name, xpf_acl_write)) {
new              4118 lib/common/xml.c                 xmlUnsetProp(new, prop->name); /* Remove - change not allowed */
new              4128 lib/common/xml.c         xmlNode *new_child = find_element(new, cIter, TRUE);
new              4136 lib/common/xml.c             xmlNode *candidate = add_node_copy(new, old_child);
new              4144 lib/common/xml.c             if (find_element(new, old_child, TRUE) == NULL) {
new              4152 lib/common/xml.c     for (cIter = __xml_first_child(new); cIter != NULL; ) {
new              4172 lib/common/xml.c                 __xml_node_dirty(new);
new              4187 lib/common/xml.c xml_calculate_changes(xmlNode * old, xmlNode * new)
new              4189 lib/common/xml.c     CRM_CHECK(safe_str_eq(crm_element_name(old), crm_element_name(new)), return);
new              4190 lib/common/xml.c     CRM_CHECK(safe_str_eq(ID(old), ID(new)), return);
new              4192 lib/common/xml.c     if(xml_tracking_changes(new) == FALSE) {
new              4193 lib/common/xml.c         xml_track_changes(new, NULL, NULL, FALSE);
new              4196 lib/common/xml.c     __xml_diff_object(old, new);
new              4200 lib/common/xml.c diff_xml_object(xmlNode * old, xmlNode * new, gboolean suppress)
new              4209 lib/common/xml.c     tmp1 = subtract_xml_object(removed, old, new, FALSE, NULL, "removed:top");
new              4214 lib/common/xml.c     tmp1 = subtract_xml_object(added, new, old, TRUE, NULL, "added:top");
new                30 replace/strndup.c     char *new = (char *)malloc(len + 1);
new                32 replace/strndup.c     if (NULL == new) {
new                36 replace/strndup.c     new[n] = '\0';
new                37 replace/strndup.c     return (char *)memcpy(new, str, len);