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/conf.c
rsRetVal cflineParseFileName(uchar* p, uchar* pFileName,
                             omodStringRequest_t* pOMSR, int iEntry,
                             int iTplOpts, uchar* pszTpl)
{
    register uchar* pName;
    int i;
    DEFiRet;

    assert(pOMSR != NULL);

    pName = pFileName;
    i = 1; /* we start at 1 so that we reseve space for the '\0'! */
    while (*p && *p != ';' && *p != ' ' && i < MAXFNAME)
    {
        *pName++ = *p++;
        ++i;
    }
    *pName = '\0';

    iRet = cflineParseTemplateName(&p, pOMSR, iEntry, iTplOpts, pszTpl);

    RETiRet;
}
/* Helper to cfline(). Parses a file name up until the first
 * comma and then looks for the template specifier. Tries
 * to find that template.
 * rgerhards 2004-11-18
 * parameter pFileName must point to a buffer large enough
 * to hold the largest possible filename.
 * rgerhards, 2007-07-25
 * updated to include OMSR pointer -- rgerhards, 2007-07-27
 * updated to include template name -- rgerhards, 2008-03-28
 * rgerhards, 2010-01-19: file names end at the first space
 */
Helper to cfline(). Parses a file name up until the first
comma and then looks for the template specifier. Tries
to find that template.
rgerhards 2004-11-18
parameter pFileName must point to a buffer large enough
to hold the largest possible filename.
Helper to cfline () . Parses a file name up until the first comma and then looks for the template specifier . Tries to find that template . rgerhards 2004 - 11 - 18 parameter pFileName must point to a buffer large enough to hold the largest possible filename .
rsRetVal cflineParseFileName(uchar* p, uchar* pFileName,
                             omodStringRequest_t* pOMSR, int iEntry,
                             int iTplOpts, uchar* pszTpl)
{
    register uchar* pName;
    int i;
    DEFiRet;
    assert(pOMSR != NULL);
    pName = pFileName;
    i = 1; 
    while (*p && *p != ';' && *p != ' ' && i < MAXFNAME)
    {
        *pName++ = *p++;
        ++i;
    }
    *pName = '\0';
    iRet = cflineParseTemplateName(&p, pOMSR, iEntry, iTplOpts, pszTpl);
    RETiRet;
}
rsRetVal cflineParseFileName ( uchar * p , uchar * pFileName , omodStringRequest_t * pOMSR , int iEntry , int iTplOpts , uchar * pszTpl ) { register uchar * pName ; int i ; DEFiRet ; assert ( pOMSR != NULL ) ; pName = pFileName ; i = 1 ; while ( * p && * p != ' ' && * p != ' ' && i < MAXFNAME ) { * pName ++ = * p ++ ; ++ i ; } * pName = ' \0 ' ; iRet = cflineParseTemplateName ( & p , pOMSR , iEntry , iTplOpts , pszTpl ) ; RETiRet ; }
Helper to cfline().
Helper to cfline () .
/* we start at 1 so that we reseve space for the '\0'! */