Lines Matching defs:dir
172 char dir[MAXPATHLEN];
180 dir[0] = '.';
181 dir[1] = '\0';
185 dir[0] = '/';
186 dir[1] = '\0';
188 (void)strlcpy(dir, word, file - word + 1);
191 if (dir[0] == '~') {
194 if ((p = globulize(dir)) == NULL)
196 (void)strlcpy(dir, p, sizeof(dir));
200 if ((dd = opendir(dir)) == NULL)
231 (void)strlcpy(path, dir, sizeof(path));
286 char dir[MAXPATHLEN];
295 dummyargv[1] = dir;
298 dir[0] = '\0';
304 (void)strlcpy(dir, word, cp - word + 2);
309 strcmp(dir, lastdir) != 0) { /* dir not cached */
339 (void)strlcpy(lastdir, dir, sizeof(lastdir));