Lines Matching refs:path
151 * make canonical path out of path passed as argument.
155 * Dispose of references to .. in the path names.
156 * In relative path names, this means that .. or a/../..
161 * 0 -> path is now in canonical form
162 * FAIL -> relative path contained illegal .. reference
166 canPath(path)
167 register char *path; /* path is modified in place */
171 to = fr = path;
187 if (((to - 1) == path) && (*path == '/')) continue;
189 if (to <= path) return (FAIL);
191 while ((--to > path) && (to[-1] != '/'));
203 /* null path is . */
204 if (to == path) *to++ = '.';