Lines Matching defs:dir
37 /* Try to open [DIR/][SUBDIR/]DEBUGLINK, return file descriptor or -1.
41 const char *dir, const char *subdir, const char *debuglink,
45 if (dir == NULL && subdir == NULL)
51 else if ((subdir == NULL ? asprintf (&fname, "%s/%s", dir, debuglink)
52 : dir == NULL ? asprintf (&fname, "%s/%s", subdir, debuglink)
53 : asprintf (&fname, "%s/%s/%s", dir, subdir, debuglink)) < 0)
234 const char *dir, *subdir, *file;
239 dir = file_dirname;
247 it means to look for the basename file in that dir or the
252 dir = p;
275 dir = file_dirname;
282 int fd = try_open (&main_stat, dir, subdir, file, &fname);
292 fd = try_open (&main_stat, dir, ".dwz",