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 strmFlushInternal(strm_t* pThis, int bFlushZip)
{
    DEFiRet;

    assert(pThis != NULL);
    DBGOPRINT((obj_t*)pThis,
              "strmFlushinternal: file %d(%s) flush, buflen %ld%s\n", pThis->fd,
              getFileDebugName(pThis), (long)pThis->iBufPtr,
              (pThis->iBufPtr == 0) ? " (no need to flush)" : "");

    if (pThis->tOperationsMode != STREAMMODE_READ && pThis->iBufPtr > 0)
    {
        iRet = strmSchedWrite(pThis, pThis->pIOBuf, pThis->iBufPtr, bFlushZip);
    }

    RETiRet;
}
/* flush stream output buffer to persistent storage. This can be called at any
 * time and is automatically called when the output buffer is full. rgerhards,
 * 2008-01-10
 */
flush stream output buffer to persistent storage. This can be called at any
time and is automatically called when the output buffer is full.
flush stream output buffer to persistent storage . This can be called at any time and is automatically called when the output buffer is full .
static rsRetVal strmFlushInternal(strm_t* pThis, int bFlushZip)
{
    DEFiRet;
    assert(pThis != NULL);
    DBGOPRINT((obj_t*)pThis,
              "strmFlushinternal: file %d(%s) flush, buflen %ld%s\n", pThis->fd,
              getFileDebugName(pThis), (long)pThis->iBufPtr,
              (pThis->iBufPtr == 0) ? " (no need to flush)" : "");
    if (pThis->tOperationsMode != STREAMMODE_READ && pThis->iBufPtr > 0)
    {
        iRet = strmSchedWrite(pThis, pThis->pIOBuf, pThis->iBufPtr, bFlushZip);
    }
    RETiRet;
}
static rsRetVal strmFlushInternal ( strm_t * pThis , int bFlushZip ) { DEFiRet ; assert ( pThis != NULL ) ; DBGOPRINT ( ( obj_t * ) pThis , " \n " , pThis -> fd , getFileDebugName ( pThis ) , ( long ) pThis -> iBufPtr , ( pThis -> iBufPtr == 0 ) ? " " : " " ) ; if ( pThis -> tOperationsMode != STREAMMODE_READ && pThis -> iBufPtr > 0 ) { iRet = strmSchedWrite ( pThis , pThis -> pIOBuf , pThis -> iBufPtr , bFlushZip ) ; } RETiRet ; }
flush stream output buffer to persistent storage.
flush stream output buffer to persistent storage .