003 File Manager
Current Path:
/usr/src/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/translators
usr
/
src
/
cddl
/
contrib
/
opensolaris
/
cmd
/
dtrace
/
test
/
tst
/
common
/
translators
/
📁
..
📄
err.D_DECL_TYPERED.BadTransDecl.d
(1.49 KB)
📄
err.D_OP_INCOMPLETE.NonExistentInput1.d
(1.41 KB)
📄
err.D_SYNTAX.BadTransDecl1.d
(1.48 KB)
📄
err.D_SYNTAX.BadTransDecl3.d
(1.44 KB)
📄
err.D_SYNTAX.BadTransDecl4.d
(1.51 KB)
📄
err.D_TYPE_MEMBER.NonExistentInput2.d
(1.44 KB)
📄
err.D_XLATE_INCOMPAT.BadInputType1.d
(1.43 KB)
📄
err.D_XLATE_MEMB.NonExistentOutput2.d
(1.45 KB)
📄
err.D_XLATE_NONE.BadTransDecl6.d
(1.58 KB)
📄
err.D_XLATE_REDECL.RepeatTransDecl.d
(1.58 KB)
📄
err.D_XLATE_SOU.BadTransDecl8.d
(1.34 KB)
📄
err.D_XLATE_SOU.BadTransInt.d
(1.3 KB)
📄
err.D_XLATE_SOU.NonExistentOutput1.d
(1.4 KB)
📄
tst.CircularTransDecl.d
(2.23 KB)
📄
tst.EmptyTransDecl.d
(1.61 KB)
📄
tst.ForwardTag.d
(1.42 KB)
📄
tst.InputAliasTrans.d
(1.37 KB)
📄
tst.InputIntTrans.d
(1.5 KB)
📄
tst.OutputAliasTrans.d
(1.4 KB)
📄
tst.PartialDereferencing.d
(1.77 KB)
📄
tst.PartialOutputTransDefn.d
(1.44 KB)
📄
tst.ProcModelTrans.d
(1.31 KB)
📄
tst.RepeatDeclaration.d
(1.67 KB)
📄
tst.SimultaneousTranslators.d
(1.61 KB)
📄
tst.StructureAssignment.d
(1.75 KB)
📄
tst.TestTransStability1.ksh
(1.32 KB)
📄
tst.TestTransStability1.ksh.out
(283 B)
📄
tst.TestTransStability2.ksh
(1.27 KB)
📄
tst.TestTransStability2.ksh.out
(286 B)
📄
tst.TransNonPointer.d
(1.73 KB)
📄
tst.TransOutputPointer.d
(1.71 KB)
📄
tst.TransPointer.d
(1.42 KB)
📄
tst.TranslateSelf.d
(1.72 KB)
📄
tst.UnionInputTrans.d
(1.41 KB)
📄
tst.UnionOutputTrans.d
(1.42 KB)
Editing: tst.ForwardTag.d
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License (the "License"). * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. * See the License for the specific language governing permissions * and limitations under the License. * * When distributing Covered Code, include this CDDL HEADER in each * file and include the License file at usr/src/OPENSOLARIS.LICENSE. * If applicable, add the following below this CDDL HEADER, with the * fields enclosed by brackets "[]" replaced with your own identifying * information: Portions Copyright [yyyy] [name of copyright owner] * * CDDL HEADER END */ /* * Copyright 2006 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ #pragma ident "%Z%%M% %I% %E% SMI" /* * ASSERTION: * Test the declaration of a forward tag using a translator definition. * * SECTION: Translators/Translator Declarations * * */ #pragma D option quiet struct input_struct { int i; char c; } *uvar; struct output_struct { int myi; char myc; }; translator struct output_struct < struct callmewhatever *idontcare > { myi = ((struct input_struct *) uvar)->i; myc = ((struct input_struct *) uvar)->c; }; BEGIN { printf("This test defines a forward tag"); exit(0); }
Upload File
Create Folder