openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/rsyslog/8.1903.0-r0/rsyslog-8.1903.0/runtime/stream.c
static rsRetVal doWriteInternal(strm_t* pThis, uchar* pBuf, const size_t lenBuf,
                                const int bFlush)
{
    DEFiRet;

    DBGOPRINT((obj_t*)pThis, "file %d(%s) doWriteInternal: bFlush %d\n",
              pThis->fd, getFileDebugName(pThis), bFlush);

    if (pThis->iZipLevel)
    {
        CHKiRet(doZipWrite(pThis, pBuf, lenBuf, bFlush));
    }
    else
    {
        /* write without zipping */
        CHKiRet(strmPhysWrite(pThis, pBuf, lenBuf));
    }

finalize_it:
    RETiRet;
}
/* write memory buffer to a stream object.
 */
write memory buffer to a stream object.
write memory buffer to a stream object .
static rsRetVal doWriteInternal(strm_t* pThis, uchar* pBuf, const size_t lenBuf,
                                const int bFlush)
{
    DEFiRet;
    DBGOPRINT((obj_t*)pThis, "file %d(%s) doWriteInternal: bFlush %d\n",
              pThis->fd, getFileDebugName(pThis), bFlush);
    if (pThis->iZipLevel)
    {
        CHKiRet(doZipWrite(pThis, pBuf, lenBuf, bFlush));
    }
    else
    {
        CHKiRet(strmPhysWrite(pThis, pBuf, lenBuf));
    }
finalize_it:
    RETiRet;
}
static rsRetVal doWriteInternal ( strm_t * pThis , uchar * pBuf , const size_t lenBuf , const int bFlush ) { DEFiRet ; DBGOPRINT ( ( obj_t * ) pThis , " \n " , pThis -> fd , getFileDebugName ( pThis ) , bFlush ) ; if ( pThis -> iZipLevel ) { CHKiRet ( doZipWrite ( pThis , pBuf , lenBuf , bFlush ) ) ; } else { CHKiRet ( strmPhysWrite ( pThis , pBuf , lenBuf ) ) ; } finalize_it : RETiRet ; }
write memory buffer to a stream object.
write memory buffer to a stream object .
/* write without zipping */