Home | History | Annotate | Download | only in Support

Lines Matching refs:FD

206   MemoryBufferMMapFile(bool RequiresNullTerminator, int FD, uint64_t Len,
208 : MFR(FD, sys::fs::mapped_file_region::readonly,
228 getMemoryBufferForStream(int FD, const Twine &BufferName) {
235 ReadBytes = read(FD, Buffer.end(), ChunkSize);
255 getOpenFileImpl(int FD, const Twine &Filename, uint64_t FileSize,
262 int FD;
263 std::error_code EC = sys::fs::openFileForRead(Filename, FD);
268 getOpenFileImpl(FD, Filename, FileSize, MapSize, Offset,
270 close(FD);
274 static bool shouldUseMmap(int FD,
302 if (sys::fs::status(FD, Status))
331 getOpenFileImpl(int FD, const Twine &Filename, uint64_t FileSize,
342 std::error_code EC = sys::fs::status(FD, Status);
352 return getMemoryBufferForStream(FD, Filename);
359 if (shouldUseMmap(FD, FileSize, MapSize, Offset, RequiresNullTerminator,
364 MemoryBufferMMapFile(RequiresNullTerminator, FD, MapSize, Offset, EC));
381 if (lseek(FD, Offset, SEEK_SET) == -1)
387 ssize_t NumRead = ::pread(FD, BufPtr, BytesLeft, MapSize-BytesLeft+Offset);
389 ssize_t NumRead = ::read(FD, BufPtr, BytesLeft);
409 MemoryBuffer::getOpenFile(int FD, const Twine &Filename, uint64_t FileSize,
411 return getOpenFileImpl(FD, Filename, FileSize, FileSize, 0,
416 MemoryBuffer::getOpenFileSlice(int FD, const Twine &Filename, uint64_t MapSize,
419 return getOpenFileImpl(FD, Filename, -1, MapSize, Offset, false,