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 strmSeekCurrOffs(strm_t* pThis)
{
    off64_t targetOffs;
    uchar c;
    DEFiRet;

    ISOBJ_TYPE_assert(pThis, strm);

    if (pThis->cryprov == NULL || pThis->tOperationsMode != STREAMMODE_READ)
    {
        iRet = strmSeek(pThis, pThis->iCurrOffs);
        FINALIZE;
    }

    /* As the cryprov may use CBC or similiar things, we need to read skip data
     */
    targetOffs = pThis->iCurrOffs;
    pThis->strtOffs = pThis->iCurrOffs = 0;
    DBGOPRINT((obj_t*)pThis, "encrypted, doing skip read of %lld bytes\n",
              (long long)targetOffs);
    while (targetOffs != pThis->iCurrOffs)
    {
        CHKiRet(strmReadChar(pThis, &c));
    }
finalize_it:
    RETiRet;
}
/* seek to current offset. This is primarily a helper to readjust the OS file
 * pointer after a strm object has been deserialized.
 */
seek to current offset. This is primarily a helper to readjust the OS file
pointer after a strm object has been deserialized.
seek to current offset . This is primarily a helper to readjust the OS file pointer after a strm object has been deserialized .
static rsRetVal strmSeekCurrOffs(strm_t* pThis)
{
    off64_t targetOffs;
    uchar c;
    DEFiRet;
    ISOBJ_TYPE_assert(pThis, strm);
    if (pThis->cryprov == NULL || pThis->tOperationsMode != STREAMMODE_READ)
    {
        iRet = strmSeek(pThis, pThis->iCurrOffs);
        FINALIZE;
    }
    targetOffs = pThis->iCurrOffs;
    pThis->strtOffs = pThis->iCurrOffs = 0;
    DBGOPRINT((obj_t*)pThis, "encrypted, doing skip read of %lld bytes\n",
              (long long)targetOffs);
    while (targetOffs != pThis->iCurrOffs)
    {
        CHKiRet(strmReadChar(pThis, &c));
    }
finalize_it:
    RETiRet;
}
static rsRetVal strmSeekCurrOffs ( strm_t * pThis ) { off64_t targetOffs ; uchar c ; DEFiRet ; ISOBJ_TYPE_assert ( pThis , strm ) ; if ( pThis -> cryprov == NULL || pThis -> tOperationsMode != STREAMMODE_READ ) { iRet = strmSeek ( pThis , pThis -> iCurrOffs ) ; FINALIZE ; } targetOffs = pThis -> iCurrOffs ; pThis -> strtOffs = pThis -> iCurrOffs = 0 ; DBGOPRINT ( ( obj_t * ) pThis , " \n " , ( long long ) targetOffs ) ; while ( targetOffs != pThis -> iCurrOffs ) { CHKiRet ( strmReadChar ( pThis , & c ) ) ; } finalize_it : RETiRet ; }
seek to current offset.
seek to current offset .
/* As the cryprov may use CBC or similiar things, we need to read skip data
     */