003 File Manager
Current Path:
/usr/src/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/printf
usr
/
src
/
cddl
/
contrib
/
opensolaris
/
cmd
/
dtrace
/
test
/
tst
/
common
/
printf
/
📁
..
📄
err.D_PRINTF_AGG_CONV.aggfmt.d
(1.09 KB)
📄
err.D_PRINTF_ARG_EXTRA.toomany.d
(1.1 KB)
📄
err.D_PRINTF_ARG_EXTRA.widths.d
(1.16 KB)
📄
err.D_PRINTF_ARG_FMT.badfmt.d
(1.08 KB)
📄
err.D_PRINTF_ARG_PROTO.novalue.d
(1.08 KB)
📄
err.D_PRINTF_ARG_TYPE.aggarg.d
(1.11 KB)
📄
err.D_PRINTF_ARG_TYPE.recursive.d
(1.13 KB)
📄
err.D_PRINTF_DYN_PROTO.noprec.d
(1.1 KB)
📄
err.D_PRINTF_DYN_PROTO.nowidth.d
(1.1 KB)
📄
err.D_PRINTF_DYN_TYPE.badprec.d
(1.1 KB)
📄
err.D_PRINTF_DYN_TYPE.badwidth.d
(1.09 KB)
📄
err.D_PROTO_LEN.toofew.d
(1.07 KB)
📄
err.D_SYNTAX.badconv1.d
(1.09 KB)
📄
err.D_SYNTAX.badconv2.d
(1.07 KB)
📄
err.D_SYNTAX.badconv3.d
(1.07 KB)
📄
tst.basics.d
(1.99 KB)
📄
tst.basics.d.out
(222 B)
📄
tst.flags.d
(1.29 KB)
📄
tst.flags.d.out
(57 B)
📄
tst.hello.d
(1.09 KB)
📄
tst.hello.d.out
(6 B)
📄
tst.ints.d
(2.84 KB)
📄
tst.ints.d.out
(361 B)
📄
tst.precs.d
(1.49 KB)
📄
tst.precs.d.out
(54 B)
📄
tst.print-f.d
(1.17 KB)
📄
tst.print-f.d.out
(30 B)
📄
tst.printT.ksh
(1.36 KB)
📄
tst.printT.ksh.out
(90 B)
📄
tst.printY.ksh
(1.36 KB)
📄
tst.printY.ksh.out
(63 B)
📄
tst.printcont.d
(1.44 KB)
📄
tst.printcont.d.out
(226 B)
📄
tst.printeE.d
(1.22 KB)
📄
tst.printeE.d.out
(74 B)
📄
tst.printgG.d
(1.22 KB)
📄
tst.printgG.d.out
(30 B)
📄
tst.rawfmt.d
(1.15 KB)
📄
tst.rawfmt.d.out
(23 B)
📄
tst.signs.d
(724 B)
📄
tst.signs.d.out
(28 B)
📄
tst.str.d
(1.1 KB)
📄
tst.str.d.out
(18 B)
📄
tst.sym.d
(1.13 KB)
📄
tst.sym.d.out
(23 B)
📄
tst.uints.d
(1.25 KB)
📄
tst.uints.d.out
(18 B)
📄
tst.widths.d
(1.4 KB)
📄
tst.widths.d.out
(46 B)
📄
tst.widths1.d
(1.25 KB)
📄
tst.wp.d
(1.79 KB)
📄
tst.wp.d.out
(122 B)
Editing: tst.basics.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 basics of all the format conversions in the printf dictionary. * * SECTION: Output Formatting/printf() * * NOTES: * floats and wchar_t strings missing */ #pragma D option quiet BEGIN { i = (int)'a'; printf("\n"); printf("%%a = %a\n", &`malloc); printf("%%c = %c\n", i); printf("%%d = %d\n", i); printf("%%hd = %hd\n", (short)i); printf("%%hi = %hi\n", (short)i); printf("%%ho = %ho\n", (ushort_t)i); printf("%%hu = %hu\n", (ushort_t)i); printf("%%hx = %hx\n", (ushort_t)i); printf("%%hX = %hX\n", (ushort_t)i); printf("%%i = %i\n", i); printf("%%lc = %lc\n", i); printf("%%ld = %ld\n", (long)i); printf("%%li = %li\n", (long)i); printf("%%lo = %lo\n", (ulong_t)i); printf("%%lu = %lu\n", (ulong_t)i); printf("%%lx = %lx\n", (ulong_t)i); printf("%%lX = %lX\n", (ulong_t)i); printf("%%o = %o\n", (uint_t)i); printf("%%p = %p\n", (void *)i); printf("%%s = %s\n", "hello"); printf("%%u = %u\n", (uint_t)i); printf("%%wc = %wc\n", i); printf("%%x = %x\n", (uint_t)i); printf("%%X = %X\n", (uint_t)i); exit(0); }
Upload File
Create Folder