Lines Matching refs:candidate
49 static int is_there(char *candidate);
65 is_there(char *candidate) in is_there() argument
70 if (access(candidate, X_OK) == 0 && in is_there()
71 stat(candidate, &fin) == 0 && in is_there()
76 fprintf(stderr, "#env matched:\t'%s'\n", candidate); in is_there()
99 char candidate[PATH_MAX]; in search_paths() local
117 if (snprintf(candidate, sizeof(candidate), "%s/%s", d, in search_paths()
118 filename) >= (int)sizeof(candidate)) in search_paths()
120 if (is_there(candidate)) { in search_paths()
121 fqname = candidate; in search_paths()
130 *argv = strdup(candidate); in search_paths()