xref: /onnv-gate/usr/src/cmd/dtrace/test/tst/common/sdt/tst.sdtargs.c (revision 6878:360e73ea6b0c)
1*6878Sbrendan /*
2*6878Sbrendan  * CDDL HEADER START
3*6878Sbrendan  *
4*6878Sbrendan  * The contents of this file are subject to the terms of the
5*6878Sbrendan  * Common Development and Distribution License (the "License").
6*6878Sbrendan  * You may not use this file except in compliance with the License.
7*6878Sbrendan  *
8*6878Sbrendan  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*6878Sbrendan  * or http://www.opensolaris.org/os/licensing.
10*6878Sbrendan  * See the License for the specific language governing permissions
11*6878Sbrendan  * and limitations under the License.
12*6878Sbrendan  *
13*6878Sbrendan  * When distributing Covered Code, include this CDDL HEADER in each
14*6878Sbrendan  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*6878Sbrendan  * If applicable, add the following below this CDDL HEADER, with the
16*6878Sbrendan  * fields enclosed by brackets "[]" replaced with your own identifying
17*6878Sbrendan  * information: Portions Copyright [yyyy] [name of copyright owner]
18*6878Sbrendan  *
19*6878Sbrendan  * CDDL HEADER END
20*6878Sbrendan  */
21*6878Sbrendan 
22*6878Sbrendan /*
23*6878Sbrendan  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
24*6878Sbrendan  * Use is subject to license terms.
25*6878Sbrendan  */
26*6878Sbrendan 
27*6878Sbrendan #pragma ident	"%Z%%M%	%I%	%E% SMI"
28*6878Sbrendan 
29*6878Sbrendan #include <unistd.h>
30*6878Sbrendan #include <sys/uadmin.h>
31*6878Sbrendan 
32*6878Sbrendan int
main(int argc,char ** argv)33*6878Sbrendan main(int argc, char **argv)
34*6878Sbrendan {
35*6878Sbrendan 	while (1) {
36*6878Sbrendan 		if (uadmin(A_SDTTEST, 0, 0) < 0) {
37*6878Sbrendan 			perror("uadmin");
38*6878Sbrendan 			return (1);
39*6878Sbrendan 		}
40*6878Sbrendan 
41*6878Sbrendan 		sleep(1);
42*6878Sbrendan 	}
43*6878Sbrendan 
44*6878Sbrendan 	return (0);
45*6878Sbrendan }
46