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/msg.c
rsRetVal msgPropDescrFill(msgPropDescr_t * pProp, uchar * name, int nameLen)
    {
        propid_t id;
        int offs;
        DEFiRet;
        if (propNameToID(name, &id) != RS_RET_OK)
        {
            parser_errmsg("invalid property '%s'", name);
            /* now try to find some common error causes */
            if (!strcasecmp((char*)name, "myhostname"))
                parser_errmsg(
                    "did you mean '$myhostname' instead of '%s'? "
                    "See also: https://www.rsyslog.com/rsyslog-info-1/",
                    name);
            else if (!strcasecmp((char*)name, "bom"))
                parser_errmsg(
                    "did you mean '$bom' instead of '%s'?"
                    "See also: https://www.rsyslog.com/rsyslog-info-1/",
                    name);
            else if (!strcasecmp((char*)name, "now"))
                parser_errmsg(
                    "did you mean '$now' instead of '%s'?"
                    "See also: https://www.rsyslog.com/rsyslog-info-1/",
                    name);
            else if (!strcasecmp((char*)name, "year"))
                parser_errmsg(
                    "did you mean '$year' instead of '%s'?"
                    "See also: https://www.rsyslog.com/rsyslog-info-1/",
                    name);
            else if (!strcasecmp((char*)name, "month"))
                parser_errmsg(
                    "did you mean '$month' instead of '%s'?"
                    "See also: https://www.rsyslog.com/rsyslog-info-1/",
                    name);
            else if (!strcasecmp((char*)name, "day"))
                parser_errmsg(
                    "did you mean '$day' instead of '%s'?"
                    "See also: https://www.rsyslog.com/rsyslog-info-1/",
                    name);
            else if (!strcasecmp((char*)name, "hour"))
                parser_errmsg(
                    "did you mean '$hour' instead of '%s'?"
                    "See also: https://www.rsyslog.com/rsyslog-info-1/",
                    name);
            else if (!strcasecmp((char*)name, "hhour"))
                parser_errmsg(
                    "did you mean '$hhour' instead of '%s'?"
                    "See also: https://www.rsyslog.com/rsyslog-info-1/",
                    name);
            else if (!strcasecmp((char*)name, "qhour"))
                parser_errmsg(
                    "did you mean '$qhour' instead of '%s'?"
                    "See also: https://www.rsyslog.com/rsyslog-info-1/",
                    name);
            else if (!strcasecmp((char*)name, "minute"))
                parser_errmsg(
                    "did you mean '$minute' instead of '%s'?"
                    "See also: https://www.rsyslog.com/rsyslog-info-1/",
                    name);
            else if (!strcasecmp((char*)name, "now-utc"))
                parser_errmsg(
                    "did you mean '$now-utc' instead of '%s'?"
                    "See also: https://www.rsyslog.com/rsyslog-info-1/",
                    name);
            else if (!strcasecmp((char*)name, "year-utc"))
                parser_errmsg(
                    "did you mean '$year-utc' instead of '%s'?"
                    "See also: https://www.rsyslog.com/rsyslog-info-1/",
                    name);
            else if (!strcasecmp((char*)name, "month-utc"))
                parser_errmsg(
                    "did you mean '$month-utc' instead of '%s'?"
                    "See also: https://www.rsyslog.com/rsyslog-info-1/",
                    name);
            else if (!strcasecmp((char*)name, "day-utc"))
                parser_errmsg(
                    "did you mean '$day-utc' instead of '%s'?"
                    "See also: https://www.rsyslog.com/rsyslog-info-1/",
                    name);
            else if (!strcasecmp((char*)name, "hour-utc"))
                parser_errmsg(
                    "did you mean '$hour-utc' instead of '%s'?"
                    "See also: https://www.rsyslog.com/rsyslog-info-1/",
                    name);
            else if (!strcasecmp((char*)name, "hhour-utc"))
                parser_errmsg(
                    "did you mean '$hhour-utc' instead of '%s'?"
                    "See also: https://www.rsyslog.com/rsyslog-info-1/",
                    name);
            else if (!strcasecmp((char*)name, "qhour-utc"))
                parser_errmsg(
                    "did you mean '$qhour-utc' instead of '%s'?"
                    "See also: https://www.rsyslog.com/rsyslog-info-1/",
                    name);
            else if (!strcasecmp((char*)name, "minute-utc"))
                parser_errmsg(
                    "did you mean '$minute-utc' instead of '%s'?"
                    "See also: https://www.rsyslog.com/rsyslog-info-1/",
                    name);
            ABORT_FINALIZE(RS_RET_INVLD_PROP);
        }
        if (id == PROP_CEE || id == PROP_LOCAL_VAR || id == PROP_GLOBAL_VAR)
        {
            /* in these cases, we need the field name for later processing */
            /* normalize name: remove $ if present */
            offs = (name[0] == '$') ? 1 : 0;
            pProp->name = ustrdup(name + offs);
            pProp->nameLen = nameLen - offs;
            /* we patch the root name, so that support functions do not need to
             * check for different root chars. */
            pProp->name[0] = '!';
        }
        pProp->id = id;
    finalize_it:
        RETiRet;
    }
/* Fill a message propert description. Space must already be alloced
     * by the caller. This is for efficiency, as we expect this to happen
     * as part of a larger structure alloc.
     * Note that CEE/LOCAL_VAR properties can come in either as
     * "$!xx"/"$.xx" or "!xx"/".xx" - we will unify them here.
     */
Fill a message propert description. Space must already be alloced
by the caller. This is for efficiency, as we expect this to happen
as part of a larger structure alloc.
Fill a message propert description . Space must already be alloced by the caller . This is for efficiency as we expect this to happen as part of a larger structure alloc .
rsRetVal msgPropDescrFill(msgPropDescr_t * pProp, uchar * name, int nameLen)
    {
        propid_t id;
        int offs;
        DEFiRet;
        if (propNameToID(name, &id) != RS_RET_OK)
        {
            parser_errmsg("invalid property '%s'", name);
            if (!strcasecmp((char*)name, "myhostname"))
                parser_errmsg(
                    "did you mean '$myhostname' instead of '%s'? "
                    "See also: https://www.rsyslog.com/rsyslog-info-1/",
                    name);
            else if (!strcasecmp((char*)name, "bom"))
                parser_errmsg(
                    "did you mean '$bom' instead of '%s'?"
                    "See also: https://www.rsyslog.com/rsyslog-info-1/",
                    name);
            else if (!strcasecmp((char*)name, "now"))
                parser_errmsg(
                    "did you mean '$now' instead of '%s'?"
                    "See also: https://www.rsyslog.com/rsyslog-info-1/",
                    name);
            else if (!strcasecmp((char*)name, "year"))
                parser_errmsg(
                    "did you mean '$year' instead of '%s'?"
                    "See also: https://www.rsyslog.com/rsyslog-info-1/",
                    name);
            else if (!strcasecmp((char*)name, "month"))
                parser_errmsg(
                    "did you mean '$month' instead of '%s'?"
                    "See also: https://www.rsyslog.com/rsyslog-info-1/",
                    name);
            else if (!strcasecmp((char*)name, "day"))
                parser_errmsg(
                    "did you mean '$day' instead of '%s'?"
                    "See also: https://www.rsyslog.com/rsyslog-info-1/",
                    name);
            else if (!strcasecmp((char*)name, "hour"))
                parser_errmsg(
                    "did you mean '$hour' instead of '%s'?"
                    "See also: https://www.rsyslog.com/rsyslog-info-1/",
                    name);
            else if (!strcasecmp((char*)name, "hhour"))
                parser_errmsg(
                    "did you mean '$hhour' instead of '%s'?"
                    "See also: https://www.rsyslog.com/rsyslog-info-1/",
                    name);
            else if (!strcasecmp((char*)name, "qhour"))
                parser_errmsg(
                    "did you mean '$qhour' instead of '%s'?"
                    "See also: https://www.rsyslog.com/rsyslog-info-1/",
                    name);
            else if (!strcasecmp((char*)name, "minute"))
                parser_errmsg(
                    "did you mean '$minute' instead of '%s'?"
                    "See also: https://www.rsyslog.com/rsyslog-info-1/",
                    name);
            else if (!strcasecmp((char*)name, "now-utc"))
                parser_errmsg(
                    "did you mean '$now-utc' instead of '%s'?"
                    "See also: https://www.rsyslog.com/rsyslog-info-1/",
                    name);
            else if (!strcasecmp((char*)name, "year-utc"))
                parser_errmsg(
                    "did you mean '$year-utc' instead of '%s'?"
                    "See also: https://www.rsyslog.com/rsyslog-info-1/",
                    name);
            else if (!strcasecmp((char*)name, "month-utc"))
                parser_errmsg(
                    "did you mean '$month-utc' instead of '%s'?"
                    "See also: https://www.rsyslog.com/rsyslog-info-1/",
                    name);
            else if (!strcasecmp((char*)name, "day-utc"))
                parser_errmsg(
                    "did you mean '$day-utc' instead of '%s'?"
                    "See also: https://www.rsyslog.com/rsyslog-info-1/",
                    name);
            else if (!strcasecmp((char*)name, "hour-utc"))
                parser_errmsg(
                    "did you mean '$hour-utc' instead of '%s'?"
                    "See also: https://www.rsyslog.com/rsyslog-info-1/",
                    name);
            else if (!strcasecmp((char*)name, "hhour-utc"))
                parser_errmsg(
                    "did you mean '$hhour-utc' instead of '%s'?"
                    "See also: https://www.rsyslog.com/rsyslog-info-1/",
                    name);
            else if (!strcasecmp((char*)name, "qhour-utc"))
                parser_errmsg(
                    "did you mean '$qhour-utc' instead of '%s'?"
                    "See also: https://www.rsyslog.com/rsyslog-info-1/",
                    name);
            else if (!strcasecmp((char*)name, "minute-utc"))
                parser_errmsg(
                    "did you mean '$minute-utc' instead of '%s'?"
                    "See also: https://www.rsyslog.com/rsyslog-info-1/",
                    name);
            ABORT_FINALIZE(RS_RET_INVLD_PROP);
        }
        if (id == PROP_CEE || id == PROP_LOCAL_VAR || id == PROP_GLOBAL_VAR)
        {
            offs = (name[0] == '$') ? 1 : 0;
            pProp->name = ustrdup(name + offs);
            pProp->nameLen = nameLen - offs;
            pProp->name[0] = '!';
        }
        pProp->id = id;
    finalize_it:
        RETiRet;
    }
rsRetVal msgPropDescrFill ( msgPropDescr_t * pProp , uchar * name , int nameLen ) { propid_t id ; int offs ; DEFiRet ; if ( propNameToID ( name , & id ) != RS_RET_OK ) { parser_errmsg ( " " , name ) ; if ( ! strcasecmp ( ( char * ) name , " " ) ) parser_errmsg ( " " " " , name ) ; else if ( ! strcasecmp ( ( char * ) name , " " ) ) parser_errmsg ( " " " " , name ) ; else if ( ! strcasecmp ( ( char * ) name , " " ) ) parser_errmsg ( " " " " , name ) ; else if ( ! strcasecmp ( ( char * ) name , " " ) ) parser_errmsg ( " " " " , name ) ; else if ( ! strcasecmp ( ( char * ) name , " " ) ) parser_errmsg ( " " " " , name ) ; else if ( ! strcasecmp ( ( char * ) name , " " ) ) parser_errmsg ( " " " " , name ) ; else if ( ! strcasecmp ( ( char * ) name , " " ) ) parser_errmsg ( " " " " , name ) ; else if ( ! strcasecmp ( ( char * ) name , " " ) ) parser_errmsg ( " " " " , name ) ; else if ( ! strcasecmp ( ( char * ) name , " " ) ) parser_errmsg ( " " " " , name ) ; else if ( ! strcasecmp ( ( char * ) name , " " ) ) parser_errmsg ( " " " " , name ) ; else if ( ! strcasecmp ( ( char * ) name , " " ) ) parser_errmsg ( " " " " , name ) ; else if ( ! strcasecmp ( ( char * ) name , " " ) ) parser_errmsg ( " " " " , name ) ; else if ( ! strcasecmp ( ( char * ) name , " " ) ) parser_errmsg ( " " " " , name ) ; else if ( ! strcasecmp ( ( char * ) name , " " ) ) parser_errmsg ( " " " " , name ) ; else if ( ! strcasecmp ( ( char * ) name , " " ) ) parser_errmsg ( " " " " , name ) ; else if ( ! strcasecmp ( ( char * ) name , " " ) ) parser_errmsg ( " " " " , name ) ; else if ( ! strcasecmp ( ( char * ) name , " " ) ) parser_errmsg ( " " " " , name ) ; else if ( ! strcasecmp ( ( char * ) name , " " ) ) parser_errmsg ( " " " " , name ) ; ABORT_FINALIZE ( RS_RET_INVLD_PROP ) ; } if ( id == PROP_CEE || id == PROP_LOCAL_VAR || id == PROP_GLOBAL_VAR ) { offs = ( name [ 0 ] == ' ' ) ? 1 : 0 ; pProp -> name = ustrdup ( name + offs ) ; pProp -> nameLen = nameLen - offs ; pProp -> name [ 0 ] = ' ' ; } pProp -> id = id ; finalize_it : RETiRet ; }
Fill a message propert description.
Fill a message propert description .
/* now try to find some common error causes */ /* in these cases, we need the field name for later processing */ /* normalize name: remove $ if present */ /* we patch the root name, so that support functions do not need to
             * check for different root chars. */