7 * The contents of this file are subject to the terms of the
8 * Common Development and Distribution License (the "License").
9 * You may not use this file except in compliance with the License.
11 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
12 * or http://www.opensolaris.org/os/licensing.
13 * See the License for the specific language governing permissions
14 * and limitations under the License.
16 * When distributing Covered Code, include this CDDL HEADER in each
17 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
18 * If applicable, add the following below this CDDL HEADER, with the
19 * fields enclosed by brackets "[]" replaced with your own identifying
20 * information: Portions Copyright [yyyy] [name of copyright owner]
26 * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
27 * Use is subject to license terms.
30 #pragma ident "%Z%%M% %I% %E% SMI"
34 * Verify doc example 13-1
37 * DocExamples/specopen
43 self->spec = speculation();
44 speculate(self->spec);
46 printf("%s", stringof(copyinstr(arg0)));
52 speculate(self->spec);
56 syscall::open64:return
59 speculate(self->spec);
64 syscall::open64:return
65 /self->spec && errno != 0/
72 syscall::open64:return
73 /self->spec && errno == 0/