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

📄 readmib.sed

📁 wm PNE 3.3 source code, running at more than vxworks6.x version.
💻 SED
字号:
# $Header: /usr/cvsroot/target/src/wrn/wm/demo/snmptalk/readmib.sed,v 1.1.1.1 2001/11/05 17:49:12 tneale Exp $#################################################################################  *** Restricted Rights Legend ***##  The programs and information contained herein are licensed only#  pursuant to a license agreement that contains use, reverse#  engineering, disclosure, and other restrictions; accordingly, it#  is "Unpublished--all rights reserved under the applicable#  copyright laws".##  Use duplication, or disclosure by the Government is subject to#  restrictions as set forth in subparagraph (c)(1)(ii) of the Rights#  in Technical Data and Computer Licensed Programs clause of DFARS#  52.227 7013.##  Copyright 2000-2001 Wind River Systems, Inc.#  Copyright 1998 Integrated Systems, Inc.#  All rights reserved.##  *** Government Use ***##  The Licensed Programs and their documentation were developed at#  private expense and no part of them is in the public domain.##  The Licensed Programs are "Restricted Computer Software" as that#  term is defined in Clause 52.227-19 of the Federal Acquisition#  Regulations (FAR) and are "Commercial Computer Software" as that#  term is defined in Subpart 227.401 of the Department of Defense#  Federal Acquisition Regulation Supplement (DFARS).##  (i) If the licensed Programs are supplied to the Department of#      Defense (DoD), the Licensed Programs are classified as#      "Commercial Computer Software" and the Government is acquiring#      only "restricted rights" in the Licensed Programs and their#      documentation as that term is defined in Clause 52.227#      7013(c)(1) of the DFARS, and##  (ii) If the Licensed Programs are supplied to any unit or agency#      of the United States Government other than DoD, the#      Government's rights in the Licensed Programs and their#      documentation will be as defined in Clause 52.227-19(c)(2) of#      the FAR.################################################################################# sed script to post-process Emissary's -nametree output for snmptalk.# In an ideal world where we didn't have to worry about backwards compatability,# we'd just make these changes in the compiler, but it's not worth generating a# new release of Emissary just to support one demo program, so for now we just# post-process Emissary's output.## Ordinarily, snmptalk reads a file called mib.rt to get the MIB definitions.# This doesn't work so well on an embedded system where we may not have a# filesystem, so we fall back to the way snmptalk worked back in the dawn of# time, and just compile in all the MIB information.  This script just brings# the old static output format up to snmptalk's current expectations.## This script works on all the versions of sed where we've tried it.# Rumor has it that some versions of sed are so abysmally stupid that# they will only tolerate a single comment on the first line of a script.# If you get weird errors trying to use this script, try deleting all the# comments to see if that helps....# Fix the header boilerplate#/^struct nametree {$/,/^struct nametree mibt\[\] = {$/ c\#include <envoy/h/vbdefs.h>\#include "readmib.h"\\static struct nametree mib_[] = {# Fix symbol name conflict/&mibt/ s/mibt\[/mib_[/g# Fix the trailer boilerplate#/^int mibt_entries = sizeof(mibt)\/sizeof(struct nametree);$/,$ c\\nametree *mibt;\\int read_mib (char *ignored)\{\\ \ mibt = mib_;\\ \ return 1;\}

⌨️ 快捷键说明

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