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.wp.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 a variety of fixed and dynamic format widths combined with precisions. * * SECTION: Output Formatting/printf() */ #pragma D option quiet BEGIN { printf("\n"); x = 0; printf("%0.0s\n", "hello"); printf("%1.1s\n", "hello"); printf("%2.2s\n", "hello"); printf("%3.3s\n", "hello"); printf("%4.4s\n", "hello"); printf("%5.5s\n", "hello"); printf("%6.6s\n", "hello"); printf("%7.7s\n", "hello"); printf("%8.8s\n", "hello"); printf("%9.9s\n", "hello"); printf("%*.*s\n", x, x++, "hello"); printf("%*.*s\n", x, x++, "hello"); printf("%*.*s\n", x, x++, "hello"); printf("%*.*s\n", x, x++, "hello"); printf("%*.*s\n", x, x++, "hello"); printf("%*.*s\n", x, x++, "hello"); printf("%*.*s\n", x, x++, "hello"); printf("%*.*s\n", x, x++, "hello"); printf("%*.*s\n", x, x++, "hello"); printf("%*.*s\n", x, x++, "hello"); exit(0); }
Upload File
Create Folder