snmpinit.c

来自「wm PNE 3.3 source code, running at more 」· C语言 代码 · 共 67 行

C
67
字号
/* *  Copyright 2001-2005 Wind River Systems, Inc. *  All rights reserved.  Provided under license only. *  Distribution or other use of this software is only *  permitted pursuant to the terms of a license agreement *  from Wind River Systems (and is otherwise prohibited). *  Refer to that license agreement for terms of use. *//* [clearcase]modification history-------------------01d,22jun05,job  fix main()01c,19apr05,job  update copyright notices01b,19may04,job  code cleanup01a,08mar04,job  startup code for RTP*/#include "copyright_wrs.h"#include <vxWorks.h>#include <msgQLib.h>#include <semLib.h>#include <taskLib.h>#include <stdio.h>#include <wrn/wm/snmp/vxagent/snmpdLib.h>#include <wrn/wm/snmp/vxagent/snmpdInit.h>#include <wrn/wm/snmp/engine/vxcmpnts.h>#include <wrn/wm/snmp/vxagent/vxprotos.h>extern void testtable_add_tt_mib (void);unsigned int snmpdInstalledComponentsValue = 0;SEM_ID snmpdConfigMutex;void snmpdInitInstalledComponentsValue (void){      snmpdConfigMutex = semBCreate (SEM_Q_PRIORITY, SEM_FULL);     semTake (snmpdConfigMutex,WAIT_FOREVER);     snmpdInstalledComponentsValue = SNMPD_CORE_COMPONENT;     semGive (snmpdConfigMutex);}void initSnmpd(void){  envoy_dyncfg_init ();  snmpdInitInstalledComponentsValue ();} int main    (    int	   argc,	/* number of arguments */    char * argv[],	/* array of arguments */    char * envp[],	/* array of environment strings */    void * auxp		/* implementation specific auxiliary vector */    )    {    testtable_add_tt_mib ();    initSnmpd();    initAxSubagentComponent();    initStartSnmpd();    taskExit(0);    return 0;    }

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?