Lines Matching defs:CachedDir
80 * Dir_InitCur Set the cur CachedDir.
82 * Dir_InitDot Set the dot CachedDir.
138 * A search path is a list of CachedDir structures. A CachedDir has in it the
165 * 3) record the mtime of the directory in the CachedDir structure and
202 struct CachedDir {
251 static CachedDir *dot = NULL;
253 static CachedDir *cur = NULL;
255 static CachedDir *dotLast = NULL;
273 static CachedDir *
276 CachedDir *dir = bmake_malloc(sizeof *dir);
284 DEBUG2(DIR, "CachedDir %p new for \"%s\"\n", dir, dir->name);
290 static CachedDir *
291 CachedDir_Ref(CachedDir *dir)
296 DEBUG3(DIR, "CachedDir %p ++ %d for \"%s\"\n",
304 CachedDir_Unref(CachedDir *dir)
309 DEBUG3(DIR, "CachedDir %p -- %d for \"%s\"\n",
317 DEBUG2(DIR, "CachedDir %p free for \"%s\"\n", dir, dir->name);
329 CachedDir_Assign(CachedDir **var, CachedDir *dir)
331 CachedDir *prev;
357 CachedDir *dir = ln->datum;
368 static CachedDir *
376 OpenDirs_Add(OpenDirs *odirs, CachedDir *cdir)
468 CachedDir *dir;
491 CachedDir *dir;
543 CachedDir *dir = ln->datum;
558 CachedDir *dir = ln->datum;
585 CachedDir *dir = ln->datum;
644 DirMatchFiles(const char *pattern, CachedDir *dir, StringList *expansions)
818 CachedDir *dir = ln->datum;
954 DirLookup(CachedDir *dir, const char *base)
976 DirLookupSubdir(CachedDir *dir, const char *name)
999 DirLookupAbs(CachedDir *dir, const char *name, const char *base)
1076 CachedDir *dir = ln->datum;
1130 CachedDir *dir = ln->datum;
1181 CachedDir *dir = path->dirs.first->datum;
1213 CachedDir *dir = ln->datum;
1447 static CachedDir *
1450 CachedDir *dir = NULL;
1500 * returned CachedDir has a reference count of 0. It
1505 CachedDir *
1514 CachedDir *pathDir = ln->datum;
1524 CachedDir *dir = OpenDirs_Find(&openDirs, name);
1545 CachedDir *dir = ln->datum;
1567 CachedDir *dir = ln->datum;
1584 CachedDir *dir = ln->datum;
1599 CachedDir *dir = Lst_Dequeue(&path->dirs);
1615 CachedDir *dir = ln->datum;
1640 CachedDir *dir = ln->datum;
1652 const CachedDir *dir = ln->datum;