Home
last modified time | relevance | path

Searched refs:file_t (Results 1 – 25 of 25) sorted by relevance

/llvm-project/llvm/include/llvm/Support/
H A DFileSystem.h53 using file_t = void *;
55 using file_t = int;
58 extern const file_t kInvalidFile;
641 std::error_code status(file_t FD, file_status &Result);
976 Expected<file_t> openNativeFile(const Twine &Name, CreationDisposition Disp,
983 file_t convertFDToNativeFile(int FD);
986 inline file_t convertFDToNativeFile(int FD) { return FD; }
991 file_t getStdinHandle();
995 file_t getStdoutHandle();
999 file_t getStderrHandl
57 using file_t = void *; global() variable
[all...]
H A DMemoryBuffer.h34 using file_t = void *; variable
36 using file_t = int;
112 getOpenFileSlice(sys::fs::file_t FD, const Twine &Filename, uint64_t MapSize,
126 getOpenFile(sys::fs::file_t FD, const Twine &Filename, uint64_t FileSize,
/llvm-project/llvm/lib/Support/
H A DMemoryBuffer.cpp223 MemoryBufferMMapFile(bool RequiresNullTerminator, sys::fs::file_t FD, uint64_t Len,
252 getMemoryBufferForStream(sys::fs::file_t FD, const Twine &BufferName) {
270 getOpenFileImpl(sys::fs::file_t FD, const Twine &Filename, uint64_t FileSize,
279 Expected<sys::fs::file_t> FDOrErr = sys::fs::openNativeFileForRead( in getFileAux()
283 sys::fs::file_t FD = *FDOrErr; in getFileAux()
357 static bool shouldUseMmap(sys::fs::file_t FD,
420 Expected<sys::fs::file_t> FDOrErr = sys::fs::openNativeFileForReadWrite( in getReadWriteFile()
424 sys::fs::file_t FD = *FDOrErr; in getReadWriteFile()
472 getOpenFileImpl(sys::fs::file_t FD, const Twine &Filename, uint64_t FileSize, in getOpenFileImpl()
550 MemoryBuffer::getOpenFile(sys::fs::file_t F in getOpenFileSlice()
[all...]
H A DCaching.cpp48 Expected<sys::fs::file_t> FDOrErr = sys::fs::openNativeFileForRead( in localCache()
H A DVirtualFileSystem.cpp56 using llvm::sys::fs::file_t;
193 file_t FD;
197 RealFile(file_t RawFD, StringRef NewName, StringRef NewRealPathName) in RealFile()
310 Expected<file_t> FDOrErr = sys::fs::openNativeFileForRead(
H A DPath.cpp1174 Error readNativeFileToEOF(file_t FileHandle, SmallVectorImpl<char> &Buffer,
/llvm-project/lldb/include/lldb/
H A Dlldb-types.h22 // lldb::file_t The type representing a file on the host
44 typedef void *file_t; // Host file type typedef
59 typedef int file_t; // Host file type
/llvm-project/llvm/lib/Support/Windows/
H A DPath.inc131 const file_t kInvalidFile = INVALID_HANDLE_VALUE;
812 std::error_code status(file_t FileHandle, file_status &Result) {
863 std::error_code mapped_file_region::init(sys::fs::file_t OrigFileHandle,
938 mapped_file_region::mapped_file_region(sys::fs::file_t fd, mapmode mode,
1183 file_t &ResultFile, DWORD Disp,
1215 Expected<file_t> openNativeFile(const Twine &Name, CreationDisposition Disp,
1229 file_t Result;
1253 Expected<file_t> Result = openNativeFile(Name, Disp, Access, Flags);
1262 file_t File;
1280 Expected<file_t> openNativeFileForRea
[all...]
/llvm-project/llvm/unittests/Support/
H A DMemoryBufferTest.cpp113 Expected<sys::fs::file_t> File = sys::fs::openNativeFileForRead(TestPath); in TEST_F()
122 Expected<sys::fs::file_t> File = sys::fs::openNativeFileForWrite( in TEST_F()
173 sys::fs::file_t pipes[2]; in TEST_F()
425 Expected<sys::fs::file_t> File = sys::fs::openNativeFileForRead(TestPath); in TEST_F()
H A DPath.cpp1766 Expected<fs::file_t> FD = fs::openNativeFileForRead(TestDirectory); in TEST_F()
1994 Expected<fs::file_t> FD = fs::openNativeFileForRead(NonExistantFile); in TEST_F()
2015 Expected<fs::file_t> FD = fs::openNativeFileForRead(NonExistantFile); in TEST_F()
2059 Expected<fs::file_t> FD = fs::openNativeFileForRead(NonExistantFile); in TEST_F()
/llvm-project/lldb/include/lldb/Host/windows/
H A DConnectionGenericFileWindows.h24 ConnectionGenericFile(lldb::file_t file, bool owns_file);
/llvm-project/llvm/lib/Analysis/
H A DInteractiveModelRunner.cpp54 sys::fs::file_t FDAsOSHandle = sys::fs::convertFDToNativeFile(Inbound); in ~InteractiveModelRunner()
/llvm-project/llvm/lib/XRay/
H A DInstrumentationMap.cpp223 loadYAML(sys::fs::file_t Fd, size_t FileSize, StringRef Filename, in loadYAML()
266 Expected<sys::fs::file_t> FdOrErr = in loadInstrumentationMap()
H A DTrace.cpp382 Expected<sys::fs::file_t> FdOrErr = sys::fs::openNativeFileForRead(Filename); in loadTraceFile()
H A DProfile.cpp263 Expected<sys::fs::file_t> FdOrErr = sys::fs::openNativeFileForRead(Filename); in loadProfile()
/llvm-project/llvm/lib/Support/Unix/
H A DPath.inc122 const file_t kInvalidFile = -1;
1167 Expected<file_t> openNativeFileForRead(const Twine &Name, OpenFlags Flags,
1169 file_t ResultFD;
1176 file_t getStdinHandle() { return 0; }
1177 file_t getStdoutHandle() { return 1; }
1178 file_t getStderrHandle() { return 2; }
1180 Expected<size_t> readNativeFile(file_t FD, MutableArrayRef<char> Buf) {
1201 Expected<size_t> readNativeFileSlice(file_t FD, MutableArrayRef<char> Buf,
1264 std::error_code closeFile(file_t &F) {
1265 file_t Tmp
[all...]
/llvm-project/llvm/lib/Debuginfod/
H A DHTTPServer.cpp38 Expected<sys::fs::file_t> FDOrErr = sys::fs::openNativeFileForRead(FilePath); in streamFile()
/llvm-project/lldb/source/Interpreter/
H A DScriptInterpreter.cpp225 lldb::file_t read_file = pipe.GetReadNativeHandle(); in ScriptInterpreterIORedirect()
/llvm-project/lldb/source/Host/windows/
H A DConnectionGenericFileWindows.cpp60 ConnectionGenericFile::ConnectionGenericFile(lldb::file_t file, bool owns_file) in ConnectionGenericFile()
/llvm-project/llvm/unittests/Analysis/
H A DMLModelRunnerTest.cpp286 sys::fs::file_t FromCompiler = in TEST()
/llvm-project/clang/unittests/DirectoryWatcher/
H A DDirectoryWatcherTest.cpp80 Expected<file_t> ft = openNativeFileForWrite(getPathInWatched(testFile), in addFile()
/llvm-project/llvm/lib/LTO/
H A DThinLTOCodeGenerator.cpp400 Expected<sys::fs::file_t> FDOrErr = sys::fs::openNativeFileForRead(
/llvm-project/llvm/lib/Object/
H A DArchiveWriter.cpp134 sys::fs::file_t FD = *FDOrErr; in getFile()
/llvm-project/flang/lib/Semantics/
H A Dmod-file.cpp1184 llvm::sys::fs::file_t native{llvm::sys::fs::convertFDToNativeFile(fd)}; in MkTemp()
/llvm-project/bolt/lib/Profile/
H A DDataAggregator.cpp328 Expected<sys::fs::file_t> FD = sys::fs::openNativeFileForRead(FileName); in checkPerfDataMagic()