Lines Matching refs:m_fd
73 int m_fd; member
237 m_fd (fd), in FileHandle_Impl()
285 OSL_FILE_TRACE("FileHandle_Impl::setPos(%d, %lld) => %lld", m_fd, getPos(), uPos); in setPos()
299 if (-1 == ftruncate (m_fd, nSize)) in setSize()
312 off_t const nCurPos = (off_t)lseek (m_fd, (off_t)0, SEEK_CUR); in setSize()
317 if (-1 == lseek (m_fd, (off_t)(nSize - 1), SEEK_SET)) in setSize()
320 if (-1 == write (m_fd, (char*)"", (size_t)1)) in setSize()
323 (void) lseek (m_fd, (off_t)(nCurPos), SEEK_SET); in setSize()
328 if (-1 == lseek (m_fd, (off_t)nCurPos, SEEK_SET)) in setSize()
332 OSL_FILE_TRACE("osl_setFileSize(%d, %lld) => %ld", m_fd, getSize(), nSize); in setSize()
353 ssize_t nBytes = ::pread (m_fd, pBuffer, nBytesRequested, nOffset); in readAt()
369 if (-1 == ::lseek (m_fd, nOffset, SEEK_SET)) in readAt()
374 ssize_t nBytes = ::read (m_fd, pBuffer, nBytesRequested); in readAt()
381 OSL_FILE_TRACE("FileHandle_Impl::readAt(%d, %lld, %ld)", m_fd, nOffset, nBytes); in readAt()
402 ssize_t nBytes = ::pwrite (m_fd, pBuffer, nBytesToWrite, nOffset); in writeAt()
410 if (-1 == ::lseek (m_fd, nOffset, SEEK_SET)) in writeAt()
415 ssize_t nBytes = ::write (m_fd, pBuffer, nBytesToWrite); in writeAt()
422 OSL_FILE_TRACE("FileHandle_Impl::writeAt(%d, %lld, %ld)", m_fd, nOffset, nBytes); in writeAt()
438 ssize_t nBytes = ::read (m_fd, pBuffer, nBytesRequested); in readFileAt()
491 OSL_FILE_TRACE("FileHandle_Impl::readFileAt(%d, %lld, %ld)", m_fd, nOffset, bytes); in readFileAt()
509 ssize_t nBytes = ::write (m_fd, pBuffer, nBytesToWrite); in writeFileAt()
558 OSL_FILE_TRACE("FileHandle_Impl::writeFileAt(%d, %lld, %ld)", m_fd, nOffset, bytes); in writeFileAt()
757 pImpl->m_fd, rtl_string_getStr(pImpl->m_strFilePath)); in osl_createFileHandleFromFD()
955 OSL_TRACE("osl_openFile(%d, %s) => %s", pImpl->m_fd, in osl_openFile()
971 if ((pImpl == 0) || (pImpl->m_fd < 0)) in osl_closeFile()
977 OSL_TRACE("osl_closeFile(%d) => %s", pImpl->m_fd, rtl_string_getStr(pImpl->m_strFilePath)); in osl_closeFile()
982 (void) close (pImpl->m_fd); in osl_closeFile()
984 else if (-1 == close (pImpl->m_fd)) in osl_closeFile()
1003 if ((0 == pImpl) || (-1 == pImpl->m_fd)) in osl_syncFile()
1008 OSL_TRACE("osl_syncFile(%d)", pImpl->m_fd); in osl_syncFile()
1012 if (-1 == fsync (pImpl->m_fd)) in osl_syncFile()
1032 if ((0 == pImpl) || (-1 == pImpl->m_fd) || (0 == ppAddr)) in osl_mapFile()
1046 void* p = mmap(NULL, nLength, PROT_READ, MAP_SHARED, pImpl->m_fd, nOffset); in osl_mapFile()
1135 if ((0 == pImpl) || (-1 == pImpl->m_fd) || (0 == ppSequence)) in osl_readLine()
1160 if ((0 == pImpl) || (-1 == pImpl->m_fd) || (0 == pBuffer) || (0 == pBytesRead)) in osl_readFile()
1189 if ((0 == pImpl) || (-1 == pImpl->m_fd) || (0 == pBuffer) || (0 == pBytesWritten)) in osl_writeFile()
1221 if ((0 == pImpl) || (-1 == pImpl->m_fd) || (0 == pBuffer) || (0 == pBytesRead)) in osl_readFileAt()
1254 if ((0 == pImpl) || (-1 == pImpl->m_fd) || (0 == pBuffer) || (0 == pBytesWritten)) in osl_writeFileAt()
1284 if ((0 == pImpl) || (-1 == pImpl->m_fd) || (0 == pIsEOF)) in osl_isEndOfFile()
1300 if ((0 == pImpl) || (-1 == pImpl->m_fd) || (0 == pPos)) in osl_getFilePos()
1316 if ((0 == pImpl) || (-1 == pImpl->m_fd)) in osl_setFilePos()
1363 if ((0 == pImpl) || (-1 == pImpl->m_fd) || (0 == pSize)) in osl_getFileSize()
1379 if ((0 == pImpl) || (-1 == pImpl->m_fd)) in osl_setFileSize()