reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

include/llvm/Support/FileSystem.h
   63 extern const file_t kInvalidFile;
  969 Expected<file_t> openNativeFile(const Twine &Name, CreationDisposition Disp,
  976 file_t convertFDToNativeFile(int FD);
  979 inline file_t convertFDToNativeFile(int FD) { return FD; }
  984 file_t getStdinHandle();
  988 file_t getStdoutHandle();
  992 file_t getStderrHandle();
 1001 Expected<size_t> readNativeFile(file_t FileHandle, MutableArrayRef<char> Buf);
 1012 Expected<size_t> readNativeFileSlice(file_t FileHandle,
 1051 inline Expected<file_t> openNativeFileForWrite(const Twine &Name,
 1093 inline Expected<file_t> openNativeFileForReadWrite(const Twine &Name,
 1130 Expected<file_t>
 1143 std::error_code closeFile(file_t &F);
 1177   std::error_code init(sys::fs::file_t FD, uint64_t Offset, mapmode Mode);
 1185   mapped_file_region(sys::fs::file_t fd, mapmode mode, size_t length, uint64_t offset,
include/llvm/Support/MemoryBuffer.h
   93   getOpenFileSlice(sys::fs::file_t FD, const Twine &Filename, uint64_t MapSize,
  103   getOpenFile(sys::fs::file_t FD, const Twine &Filename, uint64_t FileSize,
lib/LTO/Caching.cpp
   42     Expected<sys::fs::file_t> FDOrErr = sys::fs::openNativeFileForRead(
lib/LTO/ThinLTOCodeGenerator.cpp
  357     Expected<sys::fs::file_t> FDOrErr = sys::fs::openNativeFileForRead(
lib/Object/ArchiveWriter.cpp
   82   sys::fs::file_t FD = *FDOrErr;
lib/Support/MemoryBuffer.cpp
  185   MemoryBufferMMapFile(bool RequiresNullTerminator, sys::fs::file_t FD, uint64_t Len,
  211 getMemoryBufferForStream(sys::fs::file_t FD, const Twine &BufferName) {
  239 getOpenFileImpl(sys::fs::file_t FD, const Twine &Filename, uint64_t FileSize,
  247   Expected<sys::fs::file_t> FDOrErr =
  251   sys::fs::file_t FD = *FDOrErr;
  308 static bool shouldUseMmap(sys::fs::file_t FD,
  366   Expected<sys::fs::file_t> FDOrErr = sys::fs::openNativeFileForReadWrite(
  370   sys::fs::file_t FD = *FDOrErr;
  418 getOpenFileImpl(sys::fs::file_t FD, const Twine &Filename, uint64_t FileSize,
  482 MemoryBuffer::getOpenFile(sys::fs::file_t FD, const Twine &Filename, uint64_t FileSize,
  489 MemoryBuffer::getOpenFileSlice(sys::fs::file_t FD, const Twine &Filename, uint64_t MapSize,
  508   Expected<sys::fs::file_t> FDOrErr =
  512   sys::fs::file_t FD = *FDOrErr;
lib/Support/Unix/Path.inc
  108 const file_t kInvalidFile = -1;
  989 Expected<file_t> openNativeFileForRead(const Twine &Name, OpenFlags Flags,
  991   file_t ResultFD;
  998 file_t getStdinHandle() { return 0; }
  999 file_t getStdoutHandle() { return 1; }
 1000 file_t getStderrHandle() { return 2; }
 1002 Expected<size_t> readNativeFile(file_t FD, MutableArrayRef<char> Buf) {
 1010 Expected<size_t> readNativeFileSlice(file_t FD, MutableArrayRef<char> Buf,
 1026 std::error_code closeFile(file_t &F) {
 1027   file_t TmpF = F;
lib/Support/VirtualFileSystem.cpp
  175   file_t FD;
  179   RealFile(file_t RawFD, StringRef NewName, StringRef NewRealPathName)
  299   Expected<file_t> FDOrErr = sys::fs::openNativeFileForRead(
lib/XRay/InstrumentationMap.cpp
  176 loadYAML(sys::fs::file_t Fd, size_t FileSize, StringRef Filename,
  219     Expected<sys::fs::file_t> FdOrErr = sys::fs::openNativeFileForRead(Filename);
lib/XRay/Profile.cpp
  263   Expected<sys::fs::file_t> FdOrErr = sys::fs::openNativeFileForRead(Filename);
lib/XRay/Trace.cpp
  381   Expected<sys::fs::file_t> FdOrErr = sys::fs::openNativeFileForRead(Filename);
tools/clang/unittests/DirectoryWatcher/DirectoryWatcherTest.cpp
   68     Expected<file_t> ft = openNativeFileForWrite(getPathInWatched(testFile),
unittests/Support/MemoryBufferTest.cpp
  110     Expected<sys::fs::file_t> File = sys::fs::openNativeFileForRead(TestPath);
  119     Expected<sys::fs::file_t> File = sys::fs::openNativeFileForWrite(
  166   sys::fs::file_t pipes[2];
unittests/Support/Path.cpp
 1523     Expected<fs::file_t> FD = fs::openNativeFileForRead(NonExistantFile);
 1541   Expected<fs::file_t> FD = fs::openNativeFileForRead(NonExistantFile);