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
static rsRetVal cfsysline(uchar* p)
{
    DEFiRet;
    uchar szCmd[64];

    assert(p != NULL);
    errno = 0;
    if (getSubString(&p, (char*)szCmd, sizeof(szCmd), ' ') != 0)
    {
        LogError(0, RS_RET_NOT_FOUND,
                 "Invalid $-configline "
                 "- could not extract command - line ignored\n");
        ABORT_FINALIZE(RS_RET_NOT_FOUND);
    }

    /* we now try and see if we can find the command in the registered
     * list of cfsysline handlers. -- rgerhards, 2007-07-31
     */
    CHKiRet(processCfSysLineCommand(szCmd, &p));

    /* now check if we have some extra characters left on the line - that
     * should not be the case. Whitespace is OK, but everything else should
     * trigger a warning (that may be an indication of undesired behaviour).
     * An exception, of course, are comments (starting with '#').
     * rgerhards, 2007-07-04
     */
    skipWhiteSpace(&p);

    if (*p && *p != '#')
    { /* we have a non-whitespace, so let's complain */
        LogError(0, NO_ERRCODE,
                 "error: extra characters in config line ignored: '%s'", p);
    }

finalize_it:
    RETiRet;
}
/* Parse and interpret a system-directive in the config line
 * A system directive is one that starts with a "$" sign. It offers
 * extended configuration parameters.
 * 2004-11-17 rgerhards
 */
Parse and interpret a system-directive in the config line
A system directive is one that starts with a "$" sign. It offers
extended configuration parameters.
Parse and interpret a system - directive in the config line A system directive is one that starts with a " $ " sign . It offers extended configuration parameters .
static rsRetVal cfsysline(uchar* p)
{
    DEFiRet;
    uchar szCmd[64];
    assert(p != NULL);
    errno = 0;
    if (getSubString(&p, (char*)szCmd, sizeof(szCmd), ' ') != 0)
    {
        LogError(0, RS_RET_NOT_FOUND,
                 "Invalid $-configline "
                 "- could not extract command - line ignored\n");
        ABORT_FINALIZE(RS_RET_NOT_FOUND);
    }
    CHKiRet(processCfSysLineCommand(szCmd, &p));
    skipWhiteSpace(&p);
    if (*p && *p != '#')
    { 
        LogError(0, NO_ERRCODE,
                 "error: extra characters in config line ignored: '%s'", p);
    }
finalize_it:
    RETiRet;
}
static rsRetVal cfsysline ( uchar * p ) { DEFiRet ; uchar szCmd [ 64 ] ; assert ( p != NULL ) ; errno = 0 ; if ( getSubString ( & p , ( char * ) szCmd , sizeof ( szCmd ) , ' ' ) != 0 ) { LogError ( 0 , RS_RET_NOT_FOUND , " " " \n " ) ; ABORT_FINALIZE ( RS_RET_NOT_FOUND ) ; } CHKiRet ( processCfSysLineCommand ( szCmd , & p ) ) ; skipWhiteSpace ( & p ) ; if ( * p && * p != ' ' ) { LogError ( 0 , NO_ERRCODE , " " , p ) ; } finalize_it : RETiRet ; }
Parse and interpret a system-directive in the config line
 A system directive is one that starts with a "$" sign.
Parse and interpret a system - directive in the config line A system directive is one that starts with a " $ " sign .
/* we now try and see if we can find the command in the registered
     * list of cfsysline handlers. -- rgerhards, 2007-07-31
     */ /* now check if we have some extra characters left on the line - that
     * should not be the case. Whitespace is OK, but everything else should
     * trigger a warning (that may be an indication of undesired behaviour).
     * An exception, of course, are comments (starting with '#').
     * rgerhards, 2007-07-04
     */ /* we have a non-whitespace, so let's complain */