Lines Matching refs:temp

172 	cd9660node *temp = ecalloc(1, sizeof(*temp));  in cd9660_allocate_cd9660node()  local
174 TAILQ_INIT(&temp->cn_children); in cd9660_allocate_cd9660node()
175 temp->parent = temp->dot_record = temp->dot_dot_record = NULL; in cd9660_allocate_cd9660node()
176 temp->ptnext = temp->ptprev = temp->ptlast = NULL; in cd9660_allocate_cd9660node()
177 temp->node = NULL; in cd9660_allocate_cd9660node()
178 temp->isoDirRecord = NULL; in cd9660_allocate_cd9660node()
179 temp->isoExtAttributes = NULL; in cd9660_allocate_cd9660node()
180 temp->rr_real_parent = temp->rr_relocated = NULL; in cd9660_allocate_cd9660node()
181 temp->su_tail_data = NULL; in cd9660_allocate_cd9660node()
182 return temp; in cd9660_allocate_cd9660node()
744 volume_descriptor *temp, *t; in cd9660_setup_volume_descriptors() local
747 temp = emalloc(sizeof(*temp)); in cd9660_setup_volume_descriptors()
748 temp->volumeDescriptorData = in cd9660_setup_volume_descriptors()
750 temp->volumeDescriptorData[0] = ISO_VOLUME_DESCRIPTOR_PVD; in cd9660_setup_volume_descriptors()
751 temp->volumeDescriptorData[6] = 1; in cd9660_setup_volume_descriptors()
752 temp->sector = sector; in cd9660_setup_volume_descriptors()
753 memcpy(temp->volumeDescriptorData + 1, in cd9660_setup_volume_descriptors()
755 diskStructure->firstVolumeDescriptor = temp; in cd9660_setup_volume_descriptors()
762 temp->next = t; in cd9660_setup_volume_descriptors()
763 temp = t; in cd9660_setup_volume_descriptors()
774 temp->next = t; in cd9660_setup_volume_descriptors()
803 char temp[ISO_FILENAME_MAXLENGTH_WITH_PADDING]; in cd9660_translate_node_common() local
806 memset(temp, 0, ISO_FILENAME_MAXLENGTH_WITH_PADDING); in cd9660_translate_node_common()
809 temp, !(S_ISDIR(newnode->node->type))); in cd9660_translate_node_common()
816 flag, strlen(temp), temp); in cd9660_translate_node_common()
1034 int numbts, digit, digits, temp, powers, count; in cd9660_rename_filename() local
1108 temp = i; in cd9660_rename_filename()
1110 digit = (int)(temp / powers); in cd9660_rename_filename()
1111 temp = temp - digit * powers; in cd9660_rename_filename()
1918 cd9660node *temp; in cd9660_create_virtual_entry() local
1923 temp = cd9660_allocate_cd9660node(); in cd9660_create_virtual_entry()
1924 if (temp == NULL) in cd9660_create_virtual_entry()
1929 temp->isoDirRecord = emalloc(sizeof(*temp->isoDirRecord)); in cd9660_create_virtual_entry()
1932 temp->isoDirRecord->name, file); in cd9660_create_virtual_entry()
1934 temp->node = tfsnode; in cd9660_create_virtual_entry()
1935 temp->parent = parent; in cd9660_create_virtual_entry()
1938 if (temp->parent != NULL) { in cd9660_create_virtual_entry()
1939 temp->level = temp->parent->level + 1; in cd9660_create_virtual_entry()
1940 if (!TAILQ_EMPTY(&temp->parent->cn_children)) in cd9660_create_virtual_entry()
1941 cd9660_sorted_child_insert(temp->parent, temp); in cd9660_create_virtual_entry()
1943 TAILQ_INSERT_HEAD(&temp->parent->cn_children, in cd9660_create_virtual_entry()
1944 temp, cn_next_child); in cd9660_create_virtual_entry()
1962 cd9660_copy_stat_info(parent, temp, file); in cd9660_create_virtual_entry()
1964 return temp; in cd9660_create_virtual_entry()
1971 cd9660node *temp; in cd9660_create_file() local
1973 temp = cd9660_create_virtual_entry(diskStructure, name, parent, 1, 1); in cd9660_create_file()
1974 if (temp == NULL) in cd9660_create_file()
1977 temp->fileDataLength = 0; in cd9660_create_file()
1979 temp->type = CD9660_TYPE_FILE | CD9660_TYPE_VIRTUAL; in cd9660_create_file()
1981 temp->node->inode = ecalloc(1, sizeof(*temp->node->inode)); in cd9660_create_file()
1982 *temp->node->inode = *me->node->inode; in cd9660_create_file()
1984 if (cd9660_translate_node_common(diskStructure, temp) == 0) in cd9660_create_file()
1986 return temp; in cd9660_create_file()
1999 cd9660node *temp; in cd9660_create_directory() local
2001 temp = cd9660_create_virtual_entry(diskStructure, name, parent, 0, 1); in cd9660_create_directory()
2002 if (temp == NULL) in cd9660_create_directory()
2004 temp->node->type |= S_IFDIR; in cd9660_create_directory()
2006 temp->type = CD9660_TYPE_DIR | CD9660_TYPE_VIRTUAL; in cd9660_create_directory()
2008 temp->node->inode = ecalloc(1, sizeof(*temp->node->inode)); in cd9660_create_directory()
2009 *temp->node->inode = *me->node->inode; in cd9660_create_directory()
2011 if (cd9660_translate_node_common(diskStructure, temp) == 0) in cd9660_create_directory()
2013 return temp; in cd9660_create_directory()
2020 cd9660node *temp, *first; in cd9660_create_special_directory() local
2033 if ((temp = cd9660_create_virtual_entry(diskStructure, na, parent, in cd9660_create_special_directory()
2037 temp->parent = parent; in cd9660_create_special_directory()
2038 temp->type = type; in cd9660_create_special_directory()
2039 temp->isoDirRecord->length[0] = 34; in cd9660_create_special_directory()
2042 parent->dot_record = temp; in cd9660_create_special_directory()
2043 TAILQ_INSERT_HEAD(&parent->cn_children, temp, cn_next_child); in cd9660_create_special_directory()
2046 parent->dot_dot_record = temp; in cd9660_create_special_directory()
2053 TAILQ_INSERT_HEAD(&parent->cn_children, temp, in cd9660_create_special_directory()
2056 TAILQ_INSERT_AFTER(&parent->cn_children, first, temp, in cd9660_create_special_directory()
2061 return temp; in cd9660_create_special_directory()