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
39 /// the virtual file system).
48 /// \brief Cached information about one file (either on disk
49 /// or in the virtual file system).
51 /// If the 'File' member is valid, then this FileEntry has an open file
52 /// descriptor for the file.
54 const char *Name; // Name of the file.
55 std::string RealPathName; // Real path to the file; could be empty.
56 off_t Size; // File size in bytes.
57 time_t ModTime; // Modification time of file.
58 const DirectoryEntry *Dir; // Directory file lives in.
59 unsigned UID; // A unique (small) ID for the file.
65 /// \brief The open file, if it is owned by the \p FileEntry.
66 mutable std::unique_ptr<vfs::File> File;
94 /// \brief Return the directory the file lives in.
99 /// \brief Check whether the file is a named pipe (and thus can't be opened by
104 File.reset(); // rely on destructor to close File
110 /// \brief Implements support for file system lookup, file system caching,
114 /// on "inode", so that a file with two names (e.g. symlinked) will be treated
115 /// as a single file.
129 /// For each virtual file (e.g. foo/bar/baz.cpp), we add all of its parent
145 /// \brief A cache that maps paths to file entries (either real or
169 std::unique_ptr<vfs::File> *F);
171 /// Add all ancestors of the given path (pointing to either a file
205 /// \param CacheFailure If true and the file does not exist, we'll cache
206 /// the failure to find this file.
210 /// \brief Lookup, cache, and verify the specified file (real or
213 /// This returns NULL if the file doesn't exist.
215 /// \param OpenFile if true and the file exists, it will be opened.
217 /// \param CacheFailure If true and the file does not exist, we'll cache
218 /// the failure to find this file.
222 /// \brief Returns the current file system options
230 /// \brief Retrieve a file entry for a "virtual" file that acts as
231 /// if there were a file with the given name on disk.
233 /// The file itself is not accessed.
237 /// \brief Open the specified file as a MemoryBuffer, returning a new
254 /// \brief Remove the real file \p Entry from the cache.
269 /// file to the corresponding FileEntry pointer.
275 static void modifyFileEntry(FileEntry *File, off_t Size,
281 /// and should only be used when the physical layout of the file system is