Lines Matching refs:temp

171 	cd9660node *temp = ecalloc(1, sizeof(*temp));  in cd9660_allocate_cd9660node()  local
173 TAILQ_INIT(&temp->cn_children); in cd9660_allocate_cd9660node()
174 temp->parent = temp->dot_record = temp->dot_dot_record = NULL; in cd9660_allocate_cd9660node()
175 temp->ptnext = temp->ptprev = temp->ptlast = NULL; in cd9660_allocate_cd9660node()
176 temp->node = NULL; in cd9660_allocate_cd9660node()
177 temp->isoDirRecord = NULL; in cd9660_allocate_cd9660node()
178 temp->isoExtAttributes = NULL; in cd9660_allocate_cd9660node()
179 temp->rr_real_parent = temp->rr_relocated = NULL; in cd9660_allocate_cd9660node()
180 temp->su_tail_data = NULL; in cd9660_allocate_cd9660node()
181 return temp; in cd9660_allocate_cd9660node()
740 volume_descriptor *temp, *t; in cd9660_setup_volume_descriptors() local
743 temp = emalloc(sizeof(*temp)); in cd9660_setup_volume_descriptors()
744 temp->volumeDescriptorData = in cd9660_setup_volume_descriptors()
746 temp->volumeDescriptorData[0] = ISO_VOLUME_DESCRIPTOR_PVD; in cd9660_setup_volume_descriptors()
747 temp->volumeDescriptorData[6] = 1; in cd9660_setup_volume_descriptors()
748 temp->sector = sector; in cd9660_setup_volume_descriptors()
749 memcpy(temp->volumeDescriptorData + 1, in cd9660_setup_volume_descriptors()
751 diskStructure->firstVolumeDescriptor = temp; in cd9660_setup_volume_descriptors()
758 temp->next = t; in cd9660_setup_volume_descriptors()
759 temp = t; in cd9660_setup_volume_descriptors()
770 temp->next = t; in cd9660_setup_volume_descriptors()
799 char temp[ISO_FILENAME_MAXLENGTH]; in cd9660_translate_node_common() local
802 memset(temp, 0, sizeof(temp)); in cd9660_translate_node_common()
805 temp, sizeof(temp), !(S_ISDIR(newnode->node->type))); in cd9660_translate_node_common()
812 flag, strlen(temp), temp); in cd9660_translate_node_common()
1030 int numbts, digit, digits, temp, powers, count; in cd9660_rename_filename() local
1104 temp = i; in cd9660_rename_filename()
1106 digit = (int)(temp / powers); in cd9660_rename_filename()
1107 temp = temp - digit * powers; in cd9660_rename_filename()
1903 cd9660node *temp; in cd9660_create_virtual_entry() local
1908 temp = cd9660_allocate_cd9660node(); in cd9660_create_virtual_entry()
1909 if (temp == NULL) in cd9660_create_virtual_entry()
1914 temp->isoDirRecord = emalloc(sizeof(*temp->isoDirRecord)); in cd9660_create_virtual_entry()
1917 temp->isoDirRecord->name, sizeof(temp->isoDirRecord->name), file); in cd9660_create_virtual_entry()
1919 temp->node = tfsnode; in cd9660_create_virtual_entry()
1920 temp->parent = parent; in cd9660_create_virtual_entry()
1923 if (temp->parent != NULL) { in cd9660_create_virtual_entry()
1924 temp->level = temp->parent->level + 1; in cd9660_create_virtual_entry()
1925 if (!TAILQ_EMPTY(&temp->parent->cn_children)) in cd9660_create_virtual_entry()
1926 cd9660_sorted_child_insert(temp->parent, temp); in cd9660_create_virtual_entry()
1928 TAILQ_INSERT_HEAD(&temp->parent->cn_children, in cd9660_create_virtual_entry()
1929 temp, cn_next_child); in cd9660_create_virtual_entry()
1947 cd9660_copy_stat_info(parent, temp, file); in cd9660_create_virtual_entry()
1949 return temp; in cd9660_create_virtual_entry()
1956 cd9660node *temp; in cd9660_create_file() local
1958 temp = cd9660_create_virtual_entry(diskStructure, name, parent, 1, 1); in cd9660_create_file()
1959 if (temp == NULL) in cd9660_create_file()
1962 temp->fileDataLength = 0; in cd9660_create_file()
1964 temp->type = CD9660_TYPE_FILE | CD9660_TYPE_VIRTUAL; in cd9660_create_file()
1966 temp->node->inode = ecalloc(1, sizeof(*temp->node->inode)); in cd9660_create_file()
1967 *temp->node->inode = *me->node->inode; in cd9660_create_file()
1969 if (cd9660_translate_node_common(diskStructure, temp) == 0) in cd9660_create_file()
1971 return temp; in cd9660_create_file()
1984 cd9660node *temp; in cd9660_create_directory() local
1986 temp = cd9660_create_virtual_entry(diskStructure, name, parent, 0, 1); in cd9660_create_directory()
1987 if (temp == NULL) in cd9660_create_directory()
1989 temp->node->type |= S_IFDIR; in cd9660_create_directory()
1991 temp->type = CD9660_TYPE_DIR | CD9660_TYPE_VIRTUAL; in cd9660_create_directory()
1993 temp->node->inode = ecalloc(1, sizeof(*temp->node->inode)); in cd9660_create_directory()
1994 *temp->node->inode = *me->node->inode; in cd9660_create_directory()
1996 if (cd9660_translate_node_common(diskStructure, temp) == 0) in cd9660_create_directory()
1998 return temp; in cd9660_create_directory()
2005 cd9660node *temp, *first; in cd9660_create_special_directory() local
2018 if ((temp = cd9660_create_virtual_entry(diskStructure, na, parent, in cd9660_create_special_directory()
2022 temp->parent = parent; in cd9660_create_special_directory()
2023 temp->type = type; in cd9660_create_special_directory()
2024 temp->isoDirRecord->length[0] = 34; in cd9660_create_special_directory()
2027 parent->dot_record = temp; in cd9660_create_special_directory()
2028 TAILQ_INSERT_HEAD(&parent->cn_children, temp, cn_next_child); in cd9660_create_special_directory()
2031 parent->dot_dot_record = temp; in cd9660_create_special_directory()
2038 TAILQ_INSERT_HEAD(&parent->cn_children, temp, in cd9660_create_special_directory()
2041 TAILQ_INSERT_AFTER(&parent->cn_children, first, temp, in cd9660_create_special_directory()
2046 return temp; in cd9660_create_special_directory()