Searched refs:dirstruct (Results 1 – 1 of 1) sorted by relevance
147 static void free_cached_dir(struct dir_s *dirstruct) in free_cached_dir() argument151 pthread_mutex_destroy(&(dirstruct->lock)); in free_cached_dir()153 if (!dirstruct->dp) in free_cached_dir()156 for (i=0; i < dirstruct->num; i++) { in free_cached_dir()157 free(dirstruct->dp[i].d_name); in free_cached_dir()159 free(dirstruct->dp); in free_cached_dir()160 dirstruct->dp = 0; in free_cached_dir()161 dirstruct->max = dirstruct->num = 0; in free_cached_dir()191 struct dir_s *dirstruct; in alloc_dirstruct() local195 dirstruct = malloc(sizeof(struct dir_s)); in alloc_dirstruct()[all …]