Lines Matching refs:path

79   char *path;
96 free(u->path);
256 TRY to append this new path to the old URL
285 /* we have a relative path to append to the last slash if there's one
330 /* We got a new absolute path for this server */
878 * This function gets a null-terminated path with dot and dotdot sequences
897 /* the path always starts with a slash, and a slash has not dot */
935 "." is a complete path segment, then replace that prefix with "/" in
948 where ".." is a complete path segment, then replace that prefix with
981 /* E. move the first path segment in the input buffer to the end of
993 /* continue until end of path */
1002 const char *path;
1034 /* path has been allocated large enough to hold this */
1035 path = (char *)&url[5];
1047 * We allow omitted hostname (e.g. file:/<path>) -- valid according to
1050 if(path[0] == '/' && path[1] == '/') {
1052 const char *ptr = &path[2];
1087 path = strpbrk(ptr, "/\\:*?\"<>|");
1088 if(!path || *path != '/') {
1093 len = path - ptr;
1113 path = ptr;
1124 if(('/' == path[0] && STARTS_WITH_URL_DRIVE_PREFIX(&path[1])) ||
1125 STARTS_WITH_URL_DRIVE_PREFIX(path)) {
1131 /* If the path starts with a slash and a drive letter, ditch the slash */
1132 if('/' == path[0] && STARTS_WITH_URL_DRIVE_PREFIX(&path[1])) {
1134 path++;
1141 /* clear path */
1194 path = &hostp[hostlen];
1197 pathlen = urllen - (path - url);
1242 fragment = strchr(path, '#');
1244 fraglen = pathlen - (fragment - path);
1267 query = memchr(path, '?', pathlen);
1270 pathlen - (query - path);
1303 result = urlencode_str(&enc, path, pathlen, TRUE, FALSE);
1307 path = u->path = Curl_dyn_ptr(&enc);
1311 /* there is no path left or just the slash, unset */
1312 path = NULL;
1315 if(!u->path) {
1316 u->path = Curl_memdup0(path, pathlen);
1317 if(!u->path) {
1321 path = u->path;
1324 /* it might have encoded more than just the path so cut it */
1325 u->path[pathlen] = 0;
1330 int err = dedotdotify((char *)path, pathlen, &dedot);
1336 free(u->path);
1337 u->path = dedot;
1402 DUP(u, in, path);
1483 ptr = u->path;
1506 u->path,
1595 u->path ? u->path : "/",
1729 storep = &u->path;
1812 storep = &u->path;