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 doSizeLimitProcessing(strm_t* pThis)
{
    uchar* pszCurrFName = NULL;
    DEFiRet;

    ISOBJ_TYPE_assert(pThis, strm);
    assert(pThis->iSizeLimit != 0);
    assert(pThis->fd != -1);

    if (pThis->iCurrOffs >= pThis->iSizeLimit)
    {
        /* strmCloseFile() destroys the current file name, so we
         * need to preserve it.
         */
        CHKmalloc(pszCurrFName = ustrdup(pThis->pszCurrFName));
        CHKiRet(strmCloseFile(pThis));
        CHKiRet(resolveFileSizeLimit(pThis, pszCurrFName));
    }

finalize_it:
    free(pszCurrFName);
    RETiRet;
}
/* Check if the file has grown beyond the configured omfile iSizeLimit
 * and, if so, initiate processing.
 */
Check if the file has grown beyond the configured omfile iSizeLimit
and, if so, initiate processing.
Check if the file has grown beyond the configured omfile iSizeLimit and if so initiate processing .
static rsRetVal doSizeLimitProcessing(strm_t* pThis)
{
    uchar* pszCurrFName = NULL;
    DEFiRet;
    ISOBJ_TYPE_assert(pThis, strm);
    assert(pThis->iSizeLimit != 0);
    assert(pThis->fd != -1);
    if (pThis->iCurrOffs >= pThis->iSizeLimit)
    {
        CHKmalloc(pszCurrFName = ustrdup(pThis->pszCurrFName));
        CHKiRet(strmCloseFile(pThis));
        CHKiRet(resolveFileSizeLimit(pThis, pszCurrFName));
    }
finalize_it:
    free(pszCurrFName);
    RETiRet;
}
static rsRetVal doSizeLimitProcessing ( strm_t * pThis ) { uchar * pszCurrFName = NULL ; DEFiRet ; ISOBJ_TYPE_assert ( pThis , strm ) ; assert ( pThis -> iSizeLimit != 0 ) ; assert ( pThis -> fd != -1 ) ; if ( pThis -> iCurrOffs >= pThis -> iSizeLimit ) { CHKmalloc ( pszCurrFName = ustrdup ( pThis -> pszCurrFName ) ) ; CHKiRet ( strmCloseFile ( pThis ) ) ; CHKiRet ( resolveFileSizeLimit ( pThis , pszCurrFName ) ) ; } finalize_it : free ( pszCurrFName ) ; RETiRet ; }
Check if the file has grown beyond the configured omfile iSizeLimit
 and, if so, initiate processing.
Check if the file has grown beyond the configured omfile iSizeLimit and if so initiate processing .
/* strmCloseFile() destroys the current file name, so we
         * need to preserve it.
         */