Lines Matching refs:tmpl
429 TEMPLATE * tmpl = NULL; in object_copy() local
441 tmpl = (TEMPLATE *)malloc(sizeof (TEMPLATE)); in object_copy()
444 if (! o || ! tmpl || ! new_tmpl) { in object_copy()
450 (void) memset(tmpl, 0x0, sizeof (TEMPLATE)); in object_copy()
455 rc = template_copy(tmpl, old_obj->template); in object_copy()
471 found = template_get_class(tmpl, &class, &subclass); in object_copy()
489 rc = template_merge(tmpl, &new_tmpl); in object_copy()
494 rc = template_check_required_attributes(tmpl, class, in object_copy()
499 o->template = tmpl; in object_copy()
504 if (tmpl) in object_copy()
505 (void) template_free(tmpl); in object_copy()
757 TEMPLATE * tmpl = NULL; in object_restore() local
785 rc = template_unflatten(&tmpl, data + offset, count); in object_restore()
789 obj->template = tmpl; in object_restore()
804 if (tmpl) in object_restore()
805 (void) template_free(tmpl); in object_restore()
820 TEMPLATE * tmpl = NULL; in object_create_skel() local
833 tmpl = (TEMPLATE *)malloc(sizeof (TEMPLATE)); in object_create_skel()
836 if (! o || ! tmpl || ! tmpl2) { in object_create_skel()
841 (void) memset(tmpl, 0x0, sizeof (TEMPLATE)); in object_create_skel()
845 rc = template_add_default_attributes(tmpl, class, subclass, mode); in object_create_skel()
872 rc = template_merge(tmpl, &tmpl2); in object_create_skel()
878 o->template = tmpl; in object_create_skel()
884 if (tmpl) in object_create_skel()
885 (void) template_free(tmpl); in object_create_skel()