Lines Matching refs:path
49 _is_cygdrive (path)
50 char *path;
56 /* If the path is the first part of a network path, treat it as
58 if (path[0] == '/' && path[1] == '/' && !strchr (path + 2, '/'))
69 return !strcasecmp (path, user) || !strcasecmp (path, system);
75 _path_isdir (path)
76 char *path;
83 l = stat (path, &sb) == 0 && S_ISDIR (sb.st_mode);
86 l = _is_cygdrive (path);
91 /* Canonicalize PATH, and return a new path. The new path differs from PATH
97 portions of the path. */
104 sh_canonpath (path, flags)
105 char *path;
113 result = (flags & PATH_NOALLOC) ? path : savestring (path);
117 if (rooted = ROOTEDPATH(path))
125 double_slash_path = DOUBLE_SLASH (path);
141 * base points to the portion of the path we want to modify
142 * p points at beginning of path element we're considering.
143 * q points just past the last path element we wrote (no slash).
165 path before we chop some of it off. */
190 else /* real path element */
203 path before we chop some of it off. */
222 /* If the result starts with `//', but the original path does not, we