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