Lines Matching refs:dirlist
81 static char **dirlist;
395 for (i = 0; dirlist[i]; i++)
396 free(dirlist[i]);
397 free(dirlist);
451 if (dirlist) {
455 for (i = 0; dirlist[i]; i++)
456 free(dirlist[i]);
457 free(dirlist);
459 dirlist = (char **)calloc(MALSIZ, sizeof (char *));
460 if (dirlist == NULL) {
477 for (i = 0; dirlist[i] != NULL; i++) {
478 if (strcmp(path, dirlist[i]) == 0) {
485 dirlist[i] = qstrdup(path);
487 dirlist = (char **)realloc(dirlist,
489 if (dirlist == NULL) {
494 dirlist[i] = (char *)NULL;
522 for (i = 0; dirlist[i]; i++) {
523 if (strcmp(path, dirlist[i]) != 0) {