Lines Matching defs:path

42 #undef DEBUG_PATH        /* Define this to debug path code */
155 In the canonicalized form no path element may have dots at its end.
169 if (*p && (*p != '\\')) // path element does not end with a dot
172 return 1; // path element does end with a dot - prohibited
188 if (*p && (*p != L'\\')) // path element does not end with a dot
191 return 1; // path element does end with a dot - prohibited
199 successfully after copying the rest of the original path to the result path.
234 char path[1024]; /* Working copy of path */
247 if(!_fullpath(path, orig_path, sizeof(path))) {
253 if ((path[0] == '\\') && (path[1] == '\\')) {
254 char *p = path + strlen(path);
260 if (dots(path)) /* Check for prohibited combinations of dots */
263 src = path; /* Start scanning here */
267 /* Copy prefix, assuming path is absolute */
281 so reject this path as invalid if there is no share name */
291 /* Invalid path */
297 /* for root pathes like "E:\" . If the path has this form, we should */
299 if (strlen(path) == 3 && path[1] == ':' && path[2] == '\\') {
309 first byte of the remainder of the path. We now scan through the rest
310 of the path, looking up each prefix in order to find the true name of
312 the original path. */
318 h = FindFirstFile(path, &fd); /* Look up prefix */
411 WCHAR *path; /* Working copy of path */
420 if ((path = (WCHAR*)malloc(size * sizeof(WCHAR))) == NULL)
426 if(!_wfullpath(path, orig_path, size)) {
430 if (wdots(path)) /* Check for prohibited combinations of dots */
433 src = path; /* Start scanning here */
437 /* Copy prefix, assuming path is absolute */
454 so reject this path as invalid if there is no share name */
463 /* Invalid path */
469 first byte of the remainder of the path. We now scan through the rest
470 of the path, looking up each prefix in order to find the true name of
472 the original path. */
482 if ((pathlen = (int)wcslen(path)) > MAX_PATH - 1) {
483 pathbuf = getPrefixed(path, pathlen);
487 h = FindFirstFileW(path, &fd); /* Look up prefix */
516 free(path);
520 free(path);
585 /* copy \\?\ or \\?\UNC\ to the front of path*/
587 getPrefixed(const WCHAR* path, int pathlen) {
590 if (path[0] == L'\\' && path[1] == L'\\') {
591 if (path[2] == L'?' && path[3] == L'\\'){
593 wcscpy(pathbuf, path );
597 wcscat(pathbuf, path + 1);
601 wcscat(pathbuf, path );