Lines Matching defs:dir
67 static void getsrcfiles(char *vpdir, char *dir);
76 char *dir;
82 dir = strtok(dirlist, DIRSEPS);
83 while (dir != NULL) {
88 if (stat(compath(dir), &statstruct) == 0 &&
97 srcdirs[nsrcdirs++] = stralloc(dir);
99 dir = strtok((char *)NULL, DIRSEPS);
109 char *dir;
115 dir = strtok(dirlist, DIRSEPS);
116 while (dir != NULL) {
122 if (stat(compath(dir), &statstruct) == 0 &&
131 incdirs[nincdirs++] = stralloc(dir);
133 dir = strtok((char *)NULL, DIRSEPS);
144 char dir[PATHLEN + 1];
204 shellpath(dir,
205 sizeof (dir), s);
206 includedir(dir);
252 (void) sprintf(dir, "%s/%s", vpdirs[j], s);
255 if (stat(compath(dir), &statstruct) == 0 &&
257 getsrcfiles(dir, s);
267 getsrcfiles(char *vpdir, char *dir)
280 (void) sprintf(path, "%s/%s", dir, entry->d_name);