Lines Matching refs:dir
99 direxists (const char *dir) in direxists() argument
102 return __stat64_time64 (dir, &buf) == 0 && S_ISDIR (buf.st_mode); in direxists()
112 __path_search (char *tmpl, size_t tmpl_len, const char *dir, const char *pfx, in __path_search() argument
134 dir = d; in __path_search()
135 else if (dir != NULL && direxists (dir)) in __path_search()
138 dir = NULL; in __path_search()
140 if (dir == NULL) in __path_search()
143 dir = P_tmpdir; in __path_search()
145 dir = "/tmp"; in __path_search()
153 dlen = strlen (dir); in __path_search()
154 while (dlen > 1 && dir[dlen - 1] == '/') in __path_search()
164 sprintf (tmpl, "%.*s/%.*sXXXXXX", (int) dlen, dir, (int) plen, pfx); in __path_search()