1 /*
2  * Please do not edit this file.
3  * It was generated using rpcgen.
4  */
5 
6 #include "smed.h"
7 #ifndef _KERNEL
8 #include <stdio.h>
9 #include <stdlib.h> /* getenv, exit */
10 #endif /* !_KERNEL */
11 /*
12  * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
13  * Use is subject to license terms.
14  *
15  * CDDL HEADER START
16  *
17  * The contents of this file are subject to the terms of the
18  * Common Development and Distribution License, Version 1.0 only
19  * (the "License").  You may not use this file except in compliance
20  * with the License.
21  *
22  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
23  * or http://www.opensolaris.org/os/licensing.
24  * See the License for the specific language governing permissions
25  * and limitations under the License.
26  *
27  * When distributing Covered Code, include this CDDL HEADER in each
28  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
29  * If applicable, add the following below this CDDL HEADER, with the
30  * fields enclosed by brackets "[]" replaced with your own identifying
31  * information: Portions Copyright [yyyy] [name of copyright owner]
32  *
33  * CDDL HEADER END
34  */
35 /* from smed.x */
36 
37 /* Default timeout can be changed using clnt_control() */
38 static struct timeval TIMEOUT = { 25, 0 };
39 
40 smserver_info *
41 smserverproc_get_serverinfo_1(argp, clnt)
42 	void *argp;
43 	CLIENT *clnt;
44 {
45 	static smserver_info clnt_res;
46 
47 	(void) memset(&clnt_res, 0, sizeof (clnt_res));
48 	if (clnt_call(clnt, SMSERVERPROC_GET_SERVERINFO,
49 		(xdrproc_t)xdr_void, (caddr_t)argp,
50 		(xdrproc_t)xdr_smserver_info, (caddr_t)&clnt_res,
51 		TIMEOUT) != RPC_SUCCESS) {
52 		return (NULL);
53 	}
54 	return (&clnt_res);
55 }
56