⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 snmpinit.c

📁 wm PNE 3.3 source code, running at more than vxworks6.x version.
💻 C
字号:
/* *  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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -