Lines Matching refs:m_fd

73 	int             m_fd;  member
235 m_fd (fd), in FileHandle_Impl()
283 OSL_FILE_TRACE("FileHandle_Impl::setPos(%d, %lld) => %lld", m_fd, getPos(), uPos); in setPos()
297 if (-1 == ftruncate (m_fd, nSize)) in setSize()
310 off_t const nCurPos = (off_t)lseek (m_fd, (off_t)0, SEEK_CUR); in setSize()
315 if (-1 == lseek (m_fd, (off_t)(nSize - 1), SEEK_SET)) in setSize()
318 if (-1 == write (m_fd, (char*)"", (size_t)1)) in setSize()
321 (void) lseek (m_fd, (off_t)(nCurPos), SEEK_SET); in setSize()
326 if (-1 == lseek (m_fd, (off_t)nCurPos, SEEK_SET)) in setSize()
330 OSL_FILE_TRACE("osl_setFileSize(%d, %lld) => %ld", m_fd, getSize(), nSize); in setSize()
351 ssize_t nBytes = ::pread (m_fd, pBuffer, nBytesRequested, nOffset); in readAt()
367 if (-1 == ::lseek (m_fd, nOffset, SEEK_SET)) in readAt()
372 ssize_t nBytes = ::read (m_fd, pBuffer, nBytesRequested); in readAt()
379 OSL_FILE_TRACE("FileHandle_Impl::readAt(%d, %lld, %ld)", m_fd, nOffset, nBytes); in readAt()
400 ssize_t nBytes = ::pwrite (m_fd, pBuffer, nBytesToWrite, nOffset); in writeAt()
408 if (-1 == ::lseek (m_fd, nOffset, SEEK_SET)) in writeAt()
413 ssize_t nBytes = ::write (m_fd, pBuffer, nBytesToWrite); in writeAt()
420 OSL_FILE_TRACE("FileHandle_Impl::writeAt(%d, %lld, %ld)", m_fd, nOffset, nBytes); in writeAt()
436 ssize_t nBytes = ::read (m_fd, pBuffer, nBytesRequested); in readFileAt()
489 OSL_FILE_TRACE("FileHandle_Impl::readFileAt(%d, %lld, %ld)", m_fd, nOffset, bytes); in readFileAt()
507 ssize_t nBytes = ::write (m_fd, pBuffer, nBytesToWrite); in writeFileAt()
556 OSL_FILE_TRACE("FileHandle_Impl::writeFileAt(%d, %lld, %ld)", m_fd, nOffset, bytes); in writeFileAt()
755 pImpl->m_fd, rtl_string_getStr(pImpl->m_strFilePath)); in osl_createFileHandleFromFD()
953 OSL_TRACE("osl_openFile(%d, %s) => %s", pImpl->m_fd, in osl_openFile()
969 if ((pImpl == 0) || (pImpl->m_fd < 0)) in osl_closeFile()
975 OSL_TRACE("osl_closeFile(%d) => %s", pImpl->m_fd, rtl_string_getStr(pImpl->m_strFilePath)); in osl_closeFile()
980 (void) close (pImpl->m_fd); in osl_closeFile()
982 else if (-1 == close (pImpl->m_fd)) in osl_closeFile()
1001 if ((0 == pImpl) || (-1 == pImpl->m_fd)) in osl_syncFile()
1006 OSL_TRACE("osl_syncFile(%d)", pImpl->m_fd); in osl_syncFile()
1010 if (-1 == fsync (pImpl->m_fd)) in osl_syncFile()
1030 if ((0 == pImpl) || (-1 == pImpl->m_fd) || (0 == ppAddr)) in osl_mapFile()
1044 void* p = mmap(NULL, nLength, PROT_READ, MAP_SHARED, pImpl->m_fd, nOffset); in osl_mapFile()
1133 if ((0 == pImpl) || (-1 == pImpl->m_fd) || (0 == ppSequence)) in osl_readLine()
1158 if ((0 == pImpl) || (-1 == pImpl->m_fd) || (0 == pBuffer) || (0 == pBytesRead)) in osl_readFile()
1187 if ((0 == pImpl) || (-1 == pImpl->m_fd) || (0 == pBuffer) || (0 == pBytesWritten)) in osl_writeFile()
1219 if ((0 == pImpl) || (-1 == pImpl->m_fd) || (0 == pBuffer) || (0 == pBytesRead)) in osl_readFileAt()
1252 if ((0 == pImpl) || (-1 == pImpl->m_fd) || (0 == pBuffer) || (0 == pBytesWritten)) in osl_writeFileAt()
1282 if ((0 == pImpl) || (-1 == pImpl->m_fd) || (0 == pIsEOF)) in osl_isEndOfFile()
1298 if ((0 == pImpl) || (-1 == pImpl->m_fd) || (0 == pPos)) in osl_getFilePos()
1314 if ((0 == pImpl) || (-1 == pImpl->m_fd)) in osl_setFilePos()
1361 if ((0 == pImpl) || (-1 == pImpl->m_fd) || (0 == pSize)) in osl_getFileSize()
1377 if ((0 == pImpl) || (-1 == pImpl->m_fd)) in osl_setFileSize()