1# 2# Copyright 2005 Sun Microsystems, Inc. All rights reserved. 3# Use is subject to license terms. 4# 5# CDDL HEADER START 6# 7# The contents of this file are subject to the terms of the 8# Common Development and Distribution License, Version 1.0 only 9# (the "License"). You may not use this file except in compliance 10# with the License. 11# 12# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 13# or http://www.opensolaris.org/os/licensing. 14# See the License for the specific language governing permissions 15# and limitations under the License. 16# 17# When distributing Covered Code, include this CDDL HEADER in each 18# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 19# If applicable, add the following below this CDDL HEADER, with the 20# fields enclosed by brackets "[]" replaced with your own identifying 21# information: Portions Copyright [yyyy] [name of copyright owner] 22# 23# CDDL HEADER END 24# 25#pragma ident "%Z%%M% %I% %E% SMI" 26# 27# 28# SAMPLE0 diagcode dictionary -- used by "make test" target only 29# 30# this sample dictionary tests code type 0, the smallest type, 31# since the bits required to hold the value is less than 22. 32# 33FMDICT: name=SAMPLE0 idname=Hello version=1 maxkey=5 34# 35# here's a worked by hand example for key: "fault.one fault.two" 36# 37# Dictname: "SAMPLE0" 38# Dictval: 5: below 2^21-1 39# Format 0: DICT-XXXX-XX 40# 2 bits code type 41# 2 bits size 42# 21 bits dictval 43# 8 bits checksum 44# Code type: 01 45# Code size: 00 46# Dictval: 000000000000000000101 47# Checksum: 11100 48# Converted: 49# 01000 = 8 50# 00000 = 0 51# 00000 = 0 52# 00000 = 0 53# 00101 = 5 54# 11100 = V 55#SUNW-MSG-ID: SAMPLE0-8000-5V 56# 57# test of minor versioning: the string below should be ignored 58fault.one fault.three fault.two=2 "this is all three faults" 59fault.one fault.three=1 60fault.one=7 61fault.two=6 62fault.one fault.two=5 63fault.three=4 64fault.three fault.two=3 65# 66#TEST:open:0 67#TEST:codelen:0:32 68#TEST:getprop:0:name:SAMPLE0 69#TEST:getprop:0:version:1 70#TEST:getprop:0:maxkey:5 71#TEST:getprop:0:idname:Hello 72#TEST:key2code:0:fault.two fault.one:SAMPLE0-8000-5V 73#TEST:key2code:0:fault.one fault.two:SAMPLE0-8000-5V 74#TEST:key2code:0:fault.one fault.two fault.one:SAMPLE0-8000-5V 75#TEST:key2code:0:fault.one fault.two fault.one fault.one fault.two:SAMPLE0-8000-5V 76#TEST:key2code:ENOMSG:fault.one fault.poop 77#TEST:close 78#TEST:open:0 79#TEST:maxkey:0:6 80#TEST:code2key:EINVAL:SAMPLE0-7000-5S:fault.one fault.two 81#TEST:code2key:EINVAL:SAMPLE0-8010-5S:fault.one fault.two 82#TEST:code2key:EINVAL:SAMPLE0-8000-5T:fault.one fault.two 83#TEST:code2key:EINVAL:SAMPLE0-8000-S5:fault.one fault.two 84#TEST:code2key:EINVAL:SAMPLE0-0800-5S:fault.one fault.two 85#TEST:code2key:0:SAMPLE0-8000-5V:fault.one fault.two 86#TEST:close 87# 88