Lines Matching defs:temp
173 cd9660node *temp = ecalloc(1, sizeof(*temp));
174 TAILQ_INIT(&temp->cn_children);
175 temp->parent = temp->dot_record = temp->dot_dot_record = NULL;
176 temp->ptnext = temp->ptprev = temp->ptlast = NULL;
177 temp->node = NULL;
178 temp->isoDirRecord = NULL;
179 temp->isoExtAttributes = NULL;
180 temp->rr_real_parent = temp->rr_relocated = NULL;
181 temp->su_tail_data = NULL;
182 return temp;
634 volume_descriptor *temp, *t;
637 temp = emalloc(sizeof(*temp));
638 temp->volumeDescriptorData =
640 temp->volumeDescriptorData[0] = ISO_VOLUME_DESCRIPTOR_PVD;
641 temp->volumeDescriptorData[6] = 1;
642 temp->sector = sector;
643 memcpy(temp->volumeDescriptorData + 1,
645 diskStructure->firstVolumeDescriptor = temp;
652 temp->next = t;
653 temp = t;
662 temp->next = t;
692 char temp[ISO_FILENAME_MAXLENGTH_WITH_PADDING];
695 memset(temp, 0, ISO_FILENAME_MAXLENGTH_WITH_PADDING);
698 temp, sizeof temp, !(S_ISDIR(newnode->node->type)));
705 flag, strlen(temp), temp);
927 int numbts, dot, semi, digit, digits, temp, powers, multiplier, count;
1008 temp = i;
1010 digit = (int)(temp / powers);
1011 temp = temp - digit * powers;
1817 cd9660node *temp;
1822 temp = cd9660_allocate_cd9660node();
1823 if (temp == NULL)
1828 temp->isoDirRecord = emalloc(sizeof(*temp->isoDirRecord));
1831 temp->isoDirRecord->name, sizeof temp->isoDirRecord->name, file);
1833 temp->node = tfsnode;
1834 temp->parent = parent;
1837 if (temp->parent != NULL) {
1838 temp->level = temp->parent->level + 1;
1839 if (!TAILQ_EMPTY(&temp->parent->cn_children))
1840 cd9660_sorted_child_insert(temp->parent, temp);
1842 TAILQ_INSERT_HEAD(&temp->parent->cn_children,
1843 temp, cn_next_child);
1861 cd9660_copy_stat_info(parent, temp, file);
1863 return temp;
1870 cd9660node *temp;
1872 temp = cd9660_create_virtual_entry(diskStructure, name, parent, 1, 1);
1873 if (temp == NULL)
1876 temp->fileDataLength = 0;
1878 temp->type = CD9660_TYPE_FILE | CD9660_TYPE_VIRTUAL;
1880 temp->node->inode = ecalloc(1, sizeof(*temp->node->inode));
1881 *temp->node->inode = *me->node->inode;
1883 if (cd9660_translate_node_common(diskStructure, temp) == 0)
1885 return temp;
1898 cd9660node *temp;
1900 temp = cd9660_create_virtual_entry(diskStructure, name, parent, 0, 1);
1901 if (temp == NULL)
1903 temp->node->type |= S_IFDIR;
1905 temp->type = CD9660_TYPE_DIR | CD9660_TYPE_VIRTUAL;
1907 temp->node->inode = ecalloc(1, sizeof(*temp->node->inode));
1908 *temp->node->inode = *me->node->inode;
1910 if (cd9660_translate_node_common(diskStructure, temp) == 0)
1912 return temp;
1919 cd9660node *temp, *first;
1932 if ((temp = cd9660_create_virtual_entry(diskStructure, na, parent,
1936 temp->parent = parent;
1937 temp->type = type;
1938 temp->isoDirRecord->length[0] = 34;
1941 parent->dot_record = temp;
1942 TAILQ_INSERT_HEAD(&parent->cn_children, temp, cn_next_child);
1945 parent->dot_dot_record = temp;
1952 TAILQ_INSERT_HEAD(&parent->cn_children, temp,
1955 TAILQ_INSERT_AFTER(&parent->cn_children, first, temp,
1960 return temp;