Lines Matching refs:temp

170 	cd9660node *temp = ecalloc(1, sizeof(*temp));  in cd9660_allocate_cd9660node()  local
172 TAILQ_INIT(&temp->cn_children); in cd9660_allocate_cd9660node()
173 temp->parent = temp->dot_record = temp->dot_dot_record = NULL; in cd9660_allocate_cd9660node()
174 temp->ptnext = temp->ptprev = temp->ptlast = NULL; in cd9660_allocate_cd9660node()
175 temp->node = NULL; in cd9660_allocate_cd9660node()
176 temp->isoDirRecord = NULL; in cd9660_allocate_cd9660node()
177 temp->isoExtAttributes = NULL; in cd9660_allocate_cd9660node()
178 temp->rr_real_parent = temp->rr_relocated = NULL; in cd9660_allocate_cd9660node()
179 temp->su_tail_data = NULL; in cd9660_allocate_cd9660node()
180 return temp; in cd9660_allocate_cd9660node()
735 volume_descriptor *temp, *t; in cd9660_setup_volume_descriptors() local
738 temp = emalloc(sizeof(*temp)); in cd9660_setup_volume_descriptors()
739 temp->volumeDescriptorData = in cd9660_setup_volume_descriptors()
741 temp->volumeDescriptorData[0] = ISO_VOLUME_DESCRIPTOR_PVD; in cd9660_setup_volume_descriptors()
742 temp->volumeDescriptorData[6] = 1; in cd9660_setup_volume_descriptors()
743 temp->sector = sector; in cd9660_setup_volume_descriptors()
744 memcpy(temp->volumeDescriptorData + 1, in cd9660_setup_volume_descriptors()
746 diskStructure->firstVolumeDescriptor = temp; in cd9660_setup_volume_descriptors()
753 temp->next = t; in cd9660_setup_volume_descriptors()
754 temp = t; in cd9660_setup_volume_descriptors()
765 temp->next = t; in cd9660_setup_volume_descriptors()
794 char temp[ISO_FILENAME_MAXLENGTH_WITH_PADDING]; in cd9660_translate_node_common() local
797 memset(temp, 0, ISO_FILENAME_MAXLENGTH_WITH_PADDING); in cd9660_translate_node_common()
800 temp, !(S_ISDIR(newnode->node->type))); in cd9660_translate_node_common()
807 flag, strlen(temp), temp); in cd9660_translate_node_common()
1025 int numbts, digit, digits, temp, powers, count; in cd9660_rename_filename() local
1099 temp = i; in cd9660_rename_filename()
1101 digit = (int)(temp / powers); in cd9660_rename_filename()
1102 temp = temp - digit * powers; in cd9660_rename_filename()
1899 cd9660node *temp; in cd9660_create_virtual_entry() local
1904 temp = cd9660_allocate_cd9660node(); in cd9660_create_virtual_entry()
1905 if (temp == NULL) in cd9660_create_virtual_entry()
1910 temp->isoDirRecord = emalloc(sizeof(*temp->isoDirRecord)); in cd9660_create_virtual_entry()
1913 temp->isoDirRecord->name, file); in cd9660_create_virtual_entry()
1915 temp->node = tfsnode; in cd9660_create_virtual_entry()
1916 temp->parent = parent; in cd9660_create_virtual_entry()
1919 if (temp->parent != NULL) { in cd9660_create_virtual_entry()
1920 temp->level = temp->parent->level + 1; in cd9660_create_virtual_entry()
1921 if (!TAILQ_EMPTY(&temp->parent->cn_children)) in cd9660_create_virtual_entry()
1922 cd9660_sorted_child_insert(temp->parent, temp); in cd9660_create_virtual_entry()
1924 TAILQ_INSERT_HEAD(&temp->parent->cn_children, in cd9660_create_virtual_entry()
1925 temp, cn_next_child); in cd9660_create_virtual_entry()
1943 cd9660_copy_stat_info(parent, temp, file); in cd9660_create_virtual_entry()
1945 return temp; in cd9660_create_virtual_entry()
1952 cd9660node *temp; in cd9660_create_file() local
1954 temp = cd9660_create_virtual_entry(diskStructure, name, parent, 1, 1); in cd9660_create_file()
1955 if (temp == NULL) in cd9660_create_file()
1958 temp->fileDataLength = 0; in cd9660_create_file()
1960 temp->type = CD9660_TYPE_FILE | CD9660_TYPE_VIRTUAL; in cd9660_create_file()
1962 temp->node->inode = ecalloc(1, sizeof(*temp->node->inode)); in cd9660_create_file()
1963 *temp->node->inode = *me->node->inode; in cd9660_create_file()
1965 if (cd9660_translate_node_common(diskStructure, temp) == 0) in cd9660_create_file()
1967 return temp; in cd9660_create_file()
1980 cd9660node *temp; in cd9660_create_directory() local
1982 temp = cd9660_create_virtual_entry(diskStructure, name, parent, 0, 1); in cd9660_create_directory()
1983 if (temp == NULL) in cd9660_create_directory()
1985 temp->node->type |= S_IFDIR; in cd9660_create_directory()
1987 temp->type = CD9660_TYPE_DIR | CD9660_TYPE_VIRTUAL; in cd9660_create_directory()
1989 temp->node->inode = ecalloc(1, sizeof(*temp->node->inode)); in cd9660_create_directory()
1990 *temp->node->inode = *me->node->inode; in cd9660_create_directory()
1992 if (cd9660_translate_node_common(diskStructure, temp) == 0) in cd9660_create_directory()
1994 return temp; in cd9660_create_directory()
2001 cd9660node *temp, *first; in cd9660_create_special_directory() local
2014 if ((temp = cd9660_create_virtual_entry(diskStructure, na, parent, in cd9660_create_special_directory()
2018 temp->parent = parent; in cd9660_create_special_directory()
2019 temp->type = type; in cd9660_create_special_directory()
2020 temp->isoDirRecord->length[0] = 34; in cd9660_create_special_directory()
2023 parent->dot_record = temp; in cd9660_create_special_directory()
2024 TAILQ_INSERT_HEAD(&parent->cn_children, temp, cn_next_child); in cd9660_create_special_directory()
2027 parent->dot_dot_record = temp; in cd9660_create_special_directory()
2034 TAILQ_INSERT_HEAD(&parent->cn_children, temp, in cd9660_create_special_directory()
2037 TAILQ_INSERT_AFTER(&parent->cn_children, first, temp, in cd9660_create_special_directory()
2042 return temp; in cd9660_create_special_directory()