Lines Matching defs:path

61   /* The full path used to find the file.  */
62 const char *path;
64 /* The full path of the pch file. */
67 /* The file's path with the basename stripped. NULL if it hasn't
80 /* The directory in the search path where FILE was found. Used for
126 without using a search path, such as absolute filenames and file
136 If a cache lookup fails because of e.g. an extra "./" in the path,
205 if (file->path[0] == '\0')
211 file->fd = open (file->path, O_RDONLY | O_NOCTTY | O_BINARY, 0666);
224 looking for may be elsewhere in the search path. */
248 const char *path = file->path;
258 flen = strlen (path);
261 memcpy (pchname, path, flen);
307 /* Try to open the path FILE->name appended to FILE->dir. This is
315 char *path;
317 if (CPP_OPTION (pfile, remap) && (path = remap_filename (pfile, file)))
321 path = file->dir->construct (file->name, file->dir);
323 path = append_file_to_dir (file->name, file->dir);
325 if (path)
327 hashval_t hv = htab_hash_string (path);
331 if (htab_find_with_hash (pfile->nonexistent_file_hash, path, hv) != NULL)
337 file->path = path;
350 /* We copy the path name onto an obstack partly so that we don't
353 copy = obstack_copy0 (&pfile->nonexistent_file_ob, path,
354 strlen (path));
355 free (path);
360 file->path = file->name;
365 file->path = NULL;
377 /* When the regular search path doesn't work, try context dependent
382 if ((file->path = func (pfile, header, &file->dir)) != NULL)
386 free ((void *)file->path);
388 file->path = file->name;
400 /* Given a filename FNAME search for such a file in the include path
440 /* Try each path in the include chain. */
555 cpp_error (pfile, CPP_DL_ERROR, "%s is a block device", file->path);
572 cpp_error (pfile, CPP_DL_ERROR, "%s is too large", file->path);
581 file->path);
587 file->path);
616 cpp_errno (pfile, CPP_DL_ERROR, file->path);
622 "%s is shorter than expected", file->path);
689 pfile->cb.read_pch (pfile, file->pchname, file->fd, file->path);
736 ref_file->path = f->path;
751 ref_file->path = 0;
785 deps_add_dep (pfile->deps, file->path);
804 _cpp_do_file_change (pfile, LC_ENTER, file->path, 1, sysp);
819 nothing left in the path, returns NULL. */
833 /* For #include_next, skip in the search path past the dir in which
835 path use the normal search logic. */
852 "no include path in which to search for %s", fname);
857 /* Strip the basename from the file's path. It ends with a slash if
865 size_t len = lbasename (file->path) - file->path;
868 memcpy (dir_name, file->path, len);
920 cpp_errno (pfile, CPP_DL_WARNING, file->path);
922 cpp_errno (pfile, CPP_DL_ERROR, file->path);
926 /* Search in the chain beginning at HEAD for a file whose search path
962 /* A hash of directory names. The directory names are the path names
1162 fputs (entry->u.file->path, stderr);
1265 /* Append the file name to the directory to create the path, but don't
1271 char *path;
1275 path = XNEWVEC (char, dlen + 1 + flen + 1);
1276 memcpy (path, dir->name, dlen);
1277 if (dlen && path[dlen - 1] != '/')
1278 path[dlen++] = '/';
1279 memcpy (&path[dlen], fname, flen + 1);
1281 return path;
1418 const char *saved_path = file->path;
1421 file->path = pchname;
1442 file->path = saved_path;
1446 /* Get the path associated with the _cpp_file F. The path includes
1448 found in via the search path. */
1453 return f->path;