Lines Matching defs:dirs
54 static dir_info_t *dirs;
57 /* Try to ensure dirs has enough room for a slot at index fd; free any
64 free (dirs[fd].name);
74 (dirs != NULL
75 ? (dir_info_t *) realloc (dirs, new_allocated * sizeof *dirs)
76 : (dir_info_t *) malloc (new_allocated * sizeof *dirs));
80 (new_allocated - dirs_allocated) * sizeof *dirs);
81 dirs = new_dirs;
118 free (dirs[fd].name);
119 dirs[fd].name = NULL;
138 || (dirs[fd].name = get_name (filename)) == NULL)
158 if (oldfd < dirs_allocated && dirs[oldfd].name)
162 || (dirs[newfd].name = strdup (dirs[oldfd].name)) == NULL)
173 free (dirs[newfd].name);
174 dirs[newfd].name = NULL;
184 if (0 <= fd && fd < dirs_allocated && dirs[fd].name != NULL)
185 return dirs[fd].name;