Home | History | Annotate | Download | only in Basic

Lines Matching defs:File

1 //===--- FileManager.h - File System Probing and Caching --------*- C++ -*-===//
5 // This file is distributed under the University of Illinois Open Source
10 /// \file
44 /// the virtual file system).
54 /// \brief Cached information about one file (either on disk
55 /// or in the virtual file system).
57 /// If the 'File' member is valid, then this FileEntry has an open file
58 /// descriptor for the file.
62 StringRef Name; // Name of the file.
63 std::string RealPathName; // Real path to the file; could be empty.
64 off_t Size; // File size in bytes.
65 time_t ModTime; // Modification time of file.
66 const DirectoryEntry *Dir; // Directory file lives in.
67 unsigned UID; // A unique (small) ID for the file.
73 /// \brief The open file, if it is owned by the \p FileEntry.
74 mutable std::unique_ptr<vfs::File> File;
93 /// \brief Return the directory the file lives in.
98 /// \brief Check whether the file is a named pipe (and thus can't be opened by
103 File.reset(); // rely on destructor to close File
109 /// \brief Implements support for file system lookup, file system caching,
113 /// on "inode", so that a file with two names (e.g. symlinked) will be treated
114 /// as a single file.
128 /// For each virtual file (e.g. foo/bar/baz.cpp), we add all of its parent
144 /// \brief A cache that maps paths to file entries (either real or
168 std::unique_ptr<vfs::File> *F);
170 /// Add all ancestors of the given path (pointing to either a file
204 /// \param CacheFailure If true and the file does not exist, we'll cache
205 /// the failure to find this file.
209 /// \brief Lookup, cache, and verify the specified file (real or
212 /// This returns NULL if the file doesn't exist.
214 /// \param OpenFile if true and the file exists, it will be opened.
216 /// \param CacheFailure If true and the file does not exist, we'll cache
217 /// the failure to find this file.
221 /// \brief Returns the current file system options
229 /// \brief Retrieve a file entry for a "virtual" file that acts as
230 /// if there were a file with the given name on disk.
232 /// The file itself is not accessed.
236 /// \brief Open the specified file as a MemoryBuffer, returning a new
253 /// \brief Remove the real file \p Entry from the cache.
268 /// file to the corresponding FileEntry pointer.
274 static void modifyFileEntry(FileEntry *File, off_t Size,
280 /// and should only be used when the physical layout of the file system is