Lines Matching refs:Path
0 /* Path conversion for Windows pathnames.
27 convert_vpath_to_windows32(char *Path, char to_delim)
29 char *etok; /* token separator for old Path */
35 for (etok = Path; etok && *etok; etok++)
39 return (convert_Path_to_windows32(Path, to_delim));
43 * Convert delimiter separated path to Canonical format.
46 convert_Path_to_windows32(char *Path, char to_delim)
48 char *etok; /* token separator for old Path */
49 char *p; /* points to element of old Path */
51 /* is this a multi-element Path ? */
52 for (p = Path, etok = strpbrk(p, ":;");
79 return Path;
118 * Convert delimiter separated pathnames (e.g. PATH) or single file pathname
120 * _NutPathToNutc() fails to convert, just return the path we were handed
126 convert_path_to_nutc(char *path)
128 int count; /* count of path elements */
129 char *nutc_path; /* new NutC path */
130 int nutc_path_len; /* length of buffer to allocate for new path */
132 char *etok; /* token separator for old path */
133 char *p; /* points to element of old path */
134 char sep; /* what flavor of separator used in old path */
137 /* is this a multi-element path ? */
138 for (p = path, etok = strpbrk(p, ":;"), count = 0;
163 nutc_path_len = strlen(path) + (count*2) + 1;
169 * Loop through PATH and convert one elemnt of the path at at
173 for (p = path, etok = strpbrk(p, ":;");
177 /* don't trip up on device specifiers or empty path slots */
189 /* terminate the current path element -- temporarily */
196 rval = savestring(path, strlen(path));
208 *pathp++ = ':'; /* use Unix style path separtor for new path */
211 /* restore path separator */
214 /* point p to first char of next path element */
219 nutc_path_len = strlen(path) + 3;
223 p = path;
227 * OK, here we handle the last element in PATH (e.g. c of a;b;c)
228 * or the path was a single filename and will be converted
237 rval = savestring(path, strlen(path));