2N/A#
2N/A# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
2N/A# Use is subject to license terms.
2N/A#
2N/A# CDDL HEADER START
2N/A#
2N/A# The contents of this file are subject to the terms of the
2N/A# Common Development and Distribution License, Version 1.0 only
2N/A# (the "License"). You may not use this file except in compliance
2N/A# with the License.
2N/A#
2N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2N/A# or http://www.opensolaris.org/os/licensing.
2N/A# See the License for the specific language governing permissions
2N/A# and limitations under the License.
2N/A#
2N/A# When distributing Covered Code, include this CDDL HEADER in each
2N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2N/A# If applicable, add the following below this CDDL HEADER, with the
2N/A# fields enclosed by brackets "[]" replaced with your own identifying
2N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2N/A#
2N/A# CDDL HEADER END
2N/A#
2N/A#pragma ident "%Z%%M% %I% %E% SMI"
2N/A#
2N/A#
2N/A# SAMPLE0 diagcode dictionary -- used by "make test" target only
2N/A#
2N/A# this sample dictionary tests code type 0, the smallest type,
2N/A# since the bits required to hold the value is less than 22.
2N/A#
2N/AFMDICT: name=SAMPLE0 idname=Hello version=1 maxkey=5
2N/A#
2N/A# here's a worked by hand example for key: "fault.one fault.two"
2N/A#
2N/A# Dictname: "SAMPLE0"
2N/A# Dictval: 5: below 2^21-1
2N/A# Format 0: DICT-XXXX-XX
2N/A# 2 bits code type
2N/A# 2 bits size
2N/A# 21 bits dictval
2N/A# 8 bits checksum
2N/A# Code type: 01
2N/A# Code size: 00
2N/A# Dictval: 000000000000000000101
2N/A# Checksum: 11100
2N/A# Converted:
2N/A# 01000 = 8
2N/A# 00000 = 0
2N/A# 00000 = 0
2N/A# 00000 = 0
2N/A# 00101 = 5
2N/A# 11100 = V
2N/A#SUNW-MSG-ID: SAMPLE0-8000-5V
2N/A#
2N/A# test of minor versioning: the string below should be ignored
2N/Afault.one fault.three fault.two=2 "this is all three faults"
2N/Afault.one fault.three=1
2N/Afault.one=7
2N/Afault.two=6
2N/Afault.one fault.two=5
2N/Afault.three=4
2N/Afault.three fault.two=3
2N/A#
2N/A#TEST:open:0
2N/A#TEST:codelen:0:32
2N/A#TEST:getprop:0:name:SAMPLE0
2N/A#TEST:getprop:0:version:1
2N/A#TEST:getprop:0:maxkey:5
2N/A#TEST:getprop:0:idname:Hello
2N/A#TEST:key2code:0:fault.two fault.one:SAMPLE0-8000-5V
2N/A#TEST:key2code:0:fault.one fault.two:SAMPLE0-8000-5V
2N/A#TEST:key2code:0:fault.one fault.two fault.one:SAMPLE0-8000-5V
2N/A#TEST:key2code:0:fault.one fault.two fault.one fault.one fault.two:SAMPLE0-8000-5V
2N/A#TEST:key2code:ENOMSG:fault.one fault.poop
2N/A#TEST:close
2N/A#TEST:open:0
2N/A#TEST:maxkey:0:6
2N/A#TEST:code2key:EINVAL:SAMPLE0-7000-5S:fault.one fault.two
2N/A#TEST:code2key:EINVAL:SAMPLE0-8010-5S:fault.one fault.two
2N/A#TEST:code2key:EINVAL:SAMPLE0-8000-5T:fault.one fault.two
2N/A#TEST:code2key:EINVAL:SAMPLE0-8000-S5:fault.one fault.two
2N/A#TEST:code2key:EINVAL:SAMPLE0-0800-5S:fault.one fault.two
2N/A#TEST:code2key:0:SAMPLE0-8000-5V:fault.one fault.two
2N/A#TEST:close
2N/A#