Lines Matching refs:path
27 * return path to file a/b with access mode using : separated dirs
30 * if (mode&PATH_REGULAR) then path must not be a directory
31 * if (mode&PATH_ABSOLUTE) then path must be rooted
32 * path returned in path buffer
38 pathaccess(register char* path, register const char* dirs, const char* a, const char* b, register int mode)
46 dirs = pathcat(path, dirs, sep, a, b);
47 pathcanon(path, 0);
48 if ((!sib || *path == '/') && pathexists(path, mode))
50 if (*path == '/' || !(mode & PATH_ABSOLUTE))
51 return path;