1 /*
2  * Please do not edit this file.
3  * It was generated using rpcgen.
4  */
5 
6 #include "rwall.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 rwall.x */
36 
37 /*
38  * Remote write-all ONC service
39  */
40 
41 /*
42  *  Client side stub routines for the rwall program
43  */
44 
45 
46 /* Default timeout can be changed using clnt_control() */
47 static struct timeval TIMEOUT = { 25, 0 };
48 
49 enum clnt_stat
50 wallproc_wall_1(argp, clnt_res, clnt)
51 	wrapstring *argp;
52 	void *clnt_res;
53 	CLIENT *clnt;
54 {
55 	return (clnt_call(clnt, WALLPROC_WALL,
56 		(xdrproc_t)xdr_wrapstring, (caddr_t)argp,
57 		(xdrproc_t)xdr_void, (caddr_t)clnt_res,
58 		TIMEOUT));
59 }
60