Searched refs:new_struct (Results 1 – 1 of 1) sorted by relevance
51 struct_map_t *new_struct = (struct_map_t *)malloc(sizeof(struct_map_t)); in struct_map_create() local53 if (!new_struct) { in struct_map_create()60 new_struct->file = fopen(fpath, "wb+"); in struct_map_create()61 new_struct->map_file = fopen(map_file_name, "wb+"); in struct_map_create()62 new_struct->block_file = fopen(block_file_name, "wb+"); in struct_map_create()64 if (!new_struct->file || !new_struct->map_file || !new_struct->block_file) { in struct_map_create()69 new_struct->fpath = strdup(fpath); in struct_map_create()71 return new_struct; in struct_map_create()74 if (new_struct->file) in struct_map_create()75 fclose(new_struct->file); in struct_map_create()[all …]