Lines Matching defs:candidate
115 /// a valid candidate. Can be relative to the given work directory.
194 // this core file candidate.
238 char* candidate = NULL;
242 // as the first candidate.
251 if (candidate == NULL && MAXCOMLEN > 0) {
253 candidate = try_core("%s/%s.core", directory,
258 if (candidate == NULL)
259 candidate = try_core("%s/%s.core", directory, name);
262 if (candidate == NULL)
263 candidate = try_core("%s/core.%d", directory, (int)dead_pid);
266 if (candidate == NULL)
267 candidate = try_core("/cores/core.%d", (int)dead_pid);
271 if (candidate == NULL)
272 candidate = try_core("%s/core", directory);
274 if (candidate != NULL) {
276 kyua_error_t error = kyua_fs_make_absolute(candidate, &abs_candidate);
279 return candidate; // Return possibly-relative path as a best guess.
281 free(candidate);
285 return candidate;