Lines Matching refs:m_fd
168 int m_fd; member
301 m_fd (fd), in FileHandle_Impl()
360 if (-1 == ftruncate (m_fd, nSize)) in setSize()
373 off_t const nCurPos = (off_t)lseek (m_fd, (off_t)0, SEEK_CUR); in setSize()
378 if (-1 == lseek (m_fd, (off_t)(nSize - 1), SEEK_SET)) in setSize()
381 if (-1 == write (m_fd, (char*)"", (size_t)1)) in setSize()
384 (void) lseek (m_fd, (off_t)(nCurPos), SEEK_SET); in setSize()
389 if (-1 == lseek (m_fd, (off_t)nCurPos, SEEK_SET)) in setSize()
393 OSL_FILE_TRACE("osl_setFileSize(%d, %lld) => %ld", m_fd, getSize(), nSize); in setSize()
414 if (-1 == ::lseek (m_fd, nOffset, SEEK_SET)) in readAt()
419 ssize_t nBytes = ::read (m_fd, pBuffer, nBytesRequested); in readAt()
424 OSL_FILE_TRACE("FileHandle_Impl::readAt(%d, %lld, %ld)", m_fd, nOffset, nBytes); in readAt()
445 if (-1 == ::lseek (m_fd, nOffset, SEEK_SET)) in writeAt()
450 ssize_t nBytes = ::write (m_fd, pBuffer, nBytesToWrite); in writeAt()
455 OSL_FILE_TRACE("FileHandle_Impl::writeAt(%d, %lld, %ld)", m_fd, nOffset, nBytes); in writeAt()
471 ssize_t nBytes = ::read (m_fd, pBuffer, nBytesRequested); in readFileAt()
523 OSL_FILE_TRACE("FileHandle_Impl::readFileAt(%d, %lld, %ld)", m_fd, nOffset, bytes); in readFileAt()
541 ssize_t nBytes = ::write (m_fd, pBuffer, nBytesToWrite); in writeFileAt()
589 OSL_FILE_TRACE("FileHandle_Impl::writeFileAt(%d, %lld, %ld)", m_fd, nOffset, bytes); in writeFileAt()
1297 pImpl->m_fd, rtl_string_getStr(pImpl->m_strFilePath)); in osl_createFileHandleFromFD()
1495 OSL_TRACE("osl_openFile(%d, %s) => %s", pImpl->m_fd, in osl_openFile()
1511 if ((pImpl == 0) || (pImpl->m_fd < 0)) in osl_closeFile()
1515 OSL_TRACE("osl_closeFile(%d) => %s", pImpl->m_fd, rtl_string_getStr(pImpl->m_strFilePath)); in osl_closeFile()
1520 (void) close (pImpl->m_fd); in osl_closeFile()
1522 else if (-1 == close (pImpl->m_fd)) in osl_closeFile()
1540 if ((0 == pImpl) || (-1 == pImpl->m_fd)) in osl_syncFile()
1543 OSL_FILE_TRACE("osl_syncFile(%d)", pImpl->m_fd); in osl_syncFile()
1547 if (-1 == fsync (pImpl->m_fd)) in osl_syncFile()
1567 if ((0 == pImpl) || (-1 == pImpl->m_fd) || (0 == ppAddr)) in osl_mapFile()
1582 void* p = mmap(NULL, nLength, PROT_READ, MAP_PRIVATE, pImpl->m_fd, nOffset); in osl_mapFile()
1584 void* p = mmap(NULL, nLength, PROT_READ, MAP_SHARED, pImpl->m_fd, nOffset); in osl_mapFile()
1651 if ((0 == pImpl) || (-1 == pImpl->m_fd) || (0 == ppSequence)) in osl_readLine()
1675 if ((0 == pImpl) || (-1 == pImpl->m_fd) || (0 == pBuffer) || (0 == pBytesRead)) in osl_readFile()
1703 if ((0 == pImpl) || (-1 == pImpl->m_fd) || (0 == pBuffer) || (0 == pBytesWritten)) in osl_writeFile()
1734 if ((0 == pImpl) || (-1 == pImpl->m_fd) || (0 == pBuffer) || (0 == pBytesRead)) in osl_readFileAt()
1766 if ((0 == pImpl) || (-1 == pImpl->m_fd) || (0 == pBuffer) || (0 == pBytesWritten)) in osl_writeFileAt()
1795 if ((0 == pImpl) || (-1 == pImpl->m_fd) || (0 == pIsEOF)) in osl_isEndOfFile()
1810 if ((0 == pImpl) || (-1 == pImpl->m_fd) || (0 == pPos)) in osl_getFilePos()
1825 if ((0 == pImpl) || (-1 == pImpl->m_fd)) in osl_setFilePos()
1871 if ((0 == pImpl) || (-1 == pImpl->m_fd) || (0 == pSize)) in osl_getFileSize()
1886 if ((0 == pImpl) || (-1 == pImpl->m_fd)) in osl_setFileSize()