Lines Matching defs:dup
728 struct name_entry *dup;
742 dup = (struct name_entry *)calloc(1, size);
743 if (dup == 0)
746 bzero(dup, size);
748 dup->forw = dup->back = dup;
749 dup->attributes = entry->attributes;
750 (void) memcpy(dup->name, entry->name, NETBIOS_NAME_SZ);
751 (void) strlcpy((char *)dup->scope, (char *)entry->scope,
753 dup->addr_list = entry->addr_list;
754 dup->addr_list.forw = dup->addr_list.back = &dup->addr_list;
757 return (dup);
760 dup_addr = (addr_entry_t *)((unsigned char *)dup +
766 QUEUE_INSERT_TAIL(&dup->addr_list, dup_addr);
771 return (dup);