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/plugins/imuxsock/imuxsock.c
static rsRetVal createInstance(instanceConf_t** pinst)
{
    instanceConf_t* inst;
    DEFiRet;
    CHKmalloc(inst = malloc(sizeof(instanceConf_t)));
    inst->sockName = NULL;
    inst->pLogHostName = NULL;
    inst->pszBindRuleset = NULL;
    inst->pBindRuleset = NULL;
    inst->ratelimitInterval = DFLT_ratelimitInterval;
    inst->ratelimitBurst = DFLT_ratelimitBurst;
    inst->ratelimitSeverity = DFLT_ratelimitSeverity;
    inst->bUseFlowCtl = 0;
    inst->bUseSpecialParser = 1;
    inst->bParseHost = UNSET;
    inst->bIgnoreTimestamp = 1;
    inst->bCreatePath = DFLT_bCreatePath;
    inst->bUseSysTimeStamp = 1;
    inst->bWritePid = 0;
    inst->bAnnotate = 0;
    inst->bParseTrusted = 0;
    inst->bDiscardOwnMsgs = bProcessInternalMessages;
    inst->bUnlink = 1;
    inst->next = NULL;

    /* node created, let's add to config */
    if (loadModConf->tail == NULL)
    {
        loadModConf->tail = loadModConf->root = inst;
    }
    else
    {
        loadModConf->tail->next = inst;
        loadModConf->tail = inst;
    }

    *pinst = inst;
finalize_it:
    RETiRet;
}
/* create input instance, set default parameters, and
 * add it to the list of instances.
 */
create input instance, set default parameters, and
add it to the list of instances.
create input instance set default parameters and add it to the list of instances .
static rsRetVal createInstance(instanceConf_t** pinst)
{
    instanceConf_t* inst;
    DEFiRet;
    CHKmalloc(inst = malloc(sizeof(instanceConf_t)));
    inst->sockName = NULL;
    inst->pLogHostName = NULL;
    inst->pszBindRuleset = NULL;
    inst->pBindRuleset = NULL;
    inst->ratelimitInterval = DFLT_ratelimitInterval;
    inst->ratelimitBurst = DFLT_ratelimitBurst;
    inst->ratelimitSeverity = DFLT_ratelimitSeverity;
    inst->bUseFlowCtl = 0;
    inst->bUseSpecialParser = 1;
    inst->bParseHost = UNSET;
    inst->bIgnoreTimestamp = 1;
    inst->bCreatePath = DFLT_bCreatePath;
    inst->bUseSysTimeStamp = 1;
    inst->bWritePid = 0;
    inst->bAnnotate = 0;
    inst->bParseTrusted = 0;
    inst->bDiscardOwnMsgs = bProcessInternalMessages;
    inst->bUnlink = 1;
    inst->next = NULL;
    if (loadModConf->tail == NULL)
    {
        loadModConf->tail = loadModConf->root = inst;
    }
    else
    {
        loadModConf->tail->next = inst;
        loadModConf->tail = inst;
    }
    *pinst = inst;
finalize_it:
    RETiRet;
}
static rsRetVal createInstance ( instanceConf_t * * pinst ) { instanceConf_t * inst ; DEFiRet ; CHKmalloc ( inst = malloc ( sizeof ( instanceConf_t ) ) ) ; inst -> sockName = NULL ; inst -> pLogHostName = NULL ; inst -> pszBindRuleset = NULL ; inst -> pBindRuleset = NULL ; inst -> ratelimitInterval = DFLT_ratelimitInterval ; inst -> ratelimitBurst = DFLT_ratelimitBurst ; inst -> ratelimitSeverity = DFLT_ratelimitSeverity ; inst -> bUseFlowCtl = 0 ; inst -> bUseSpecialParser = 1 ; inst -> bParseHost = UNSET ; inst -> bIgnoreTimestamp = 1 ; inst -> bCreatePath = DFLT_bCreatePath ; inst -> bUseSysTimeStamp = 1 ; inst -> bWritePid = 0 ; inst -> bAnnotate = 0 ; inst -> bParseTrusted = 0 ; inst -> bDiscardOwnMsgs = bProcessInternalMessages ; inst -> bUnlink = 1 ; inst -> next = NULL ; if ( loadModConf -> tail == NULL ) { loadModConf -> tail = loadModConf -> root = inst ; } else { loadModConf -> tail -> next = inst ; loadModConf -> tail = inst ; } * pinst = inst ; finalize_it : RETiRet ; }
create input instance, set default parameters, and
 add it to the list of instances.
create input instance set default parameters and add it to the list of instances .
/* node created, let's add to config */