vxi11 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ext/vxi11/clnt_find_services.h +97 -0
- data/ext/vxi11/vxi11.h +5 -0
- data/ext/vxi11/vxi11_clnt_darwin.inc +234 -0
- data/ext/vxi11/vxi11_clnt_linux.inc +163 -0
- data/ext/vxi11/vxi11_darwin.inc +636 -0
- data/ext/vxi11/vxi11_linux.inc +343 -0
- data/ext/vxi11/vxi11_user.h +87 -0
- data/ext/vxi11/vxi11_xdr_darwin.inc +465 -0
- data/ext/vxi11/vxi11_xdr_linux.inc +462 -0
- metadata +11 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f82aade66c461ffe8bf7edebfac762b8f390cadd
|
4
|
+
data.tar.gz: 860027ea5f1bb45fa383563e087b821a87d587ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 00549ea8904e2ec2a8bc49fafbdc527b3d82bdfccf0901cd56e13d921039c11f7d6c196e74001a12ef0ae1853732532f86435ceb0cd47b34168d36c3cee4f35e
|
7
|
+
data.tar.gz: ad0efb6ae1b20aa7c41b33d9a4dcd79928b983c891ebe512ca8616a3091dc99a36f6243b9877fe34ad70a757b3ab224ed36bff1b5742f799c97afcaf91014520
|
@@ -0,0 +1,97 @@
|
|
1
|
+
/*
|
2
|
+
* This code contains modifications to clnt_broadcast available in the
|
3
|
+
* rpc.subproj/pmap_rmt.c. A summary of modifications:
|
4
|
+
*
|
5
|
+
* 1. Allow blocking time to be set by the user, the previous hard-coded
|
6
|
+
* times were not general enough.
|
7
|
+
* 2. Calls PORTMAP_GETPORT to determine if there's a service that satisfies
|
8
|
+
* the input specifications
|
9
|
+
* 3. The clnt_broadcast has been renamed to clnt_find_services.
|
10
|
+
*
|
11
|
+
* M. Marino November 2011
|
12
|
+
*
|
13
|
+
*/
|
14
|
+
/*
|
15
|
+
* Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
|
16
|
+
*
|
17
|
+
* @APPLE_LICENSE_HEADER_START@
|
18
|
+
*
|
19
|
+
* Portions Copyright (c) 1999 Apple Computer, Inc. All Rights
|
20
|
+
* Reserved. This file contains Original Code and/or Modifications of
|
21
|
+
* Original Code as defined in and that are subject to the Apple Public
|
22
|
+
* Source License Version 1.1 (the "License"). You may not use this file
|
23
|
+
* except in compliance with the License. Please obtain a copy of the
|
24
|
+
* License at http://www.apple.com/publicsource and read it before using
|
25
|
+
* this file.
|
26
|
+
*
|
27
|
+
* The Original Code and all software distributed under the License are
|
28
|
+
* distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
|
29
|
+
* EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
|
30
|
+
* INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
|
31
|
+
* FITNESS FOR A PARTICULAR PURPOSE OR NON- INFRINGEMENT. Please see the
|
32
|
+
* License for the specific language governing rights and limitations
|
33
|
+
* under the License.
|
34
|
+
*
|
35
|
+
* @APPLE_LICENSE_HEADER_END@
|
36
|
+
*/
|
37
|
+
/*
|
38
|
+
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
|
39
|
+
* unrestricted use provided that this legend is included on all tape
|
40
|
+
* media and as a part of the software program in whole or part. Users
|
41
|
+
* may copy or modify Sun RPC without charge, but are not authorized
|
42
|
+
* to license or distribute it to anyone else except as part of a product or
|
43
|
+
* program developed by the user.
|
44
|
+
*
|
45
|
+
* SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
|
46
|
+
* WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
|
47
|
+
* PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
|
48
|
+
*
|
49
|
+
* Sun RPC is provided with no support and without any obligation on the
|
50
|
+
* part of Sun Microsystems, Inc. to assist in its use, correction,
|
51
|
+
* modification or enhancement.
|
52
|
+
*
|
53
|
+
* SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
|
54
|
+
* INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
|
55
|
+
* OR ANY PART THEREOF.
|
56
|
+
*
|
57
|
+
* In no event will Sun Microsystems, Inc. be liable for any lost revenue
|
58
|
+
* or profits or other special, indirect and consequential damages, even if
|
59
|
+
* Sun has been advised of the possibility of such damages.
|
60
|
+
*
|
61
|
+
* Sun Microsystems, Inc.
|
62
|
+
* 2550 Garcia Avenue
|
63
|
+
* Mountain View, California 94043
|
64
|
+
*/
|
65
|
+
|
66
|
+
|
67
|
+
#ifndef _RPC_CLNT_FIND_SERVICES_H
|
68
|
+
#define _RPC_CLNT_FIND_SERVICES_H
|
69
|
+
#include <rpc/rpc.h>
|
70
|
+
|
71
|
+
#ifdef __cplusplus
|
72
|
+
extern "C" {
|
73
|
+
#endif
|
74
|
+
|
75
|
+
struct sockaddr_in;
|
76
|
+
typedef bool_t (*resultfoundproc_t)(struct sockaddr_in *);
|
77
|
+
|
78
|
+
/*
|
79
|
+
* The following is based on clnt_broadcast, with important differences that it
|
80
|
+
* is only searching for devices which have the requested services. There is
|
81
|
+
* also a timeout variable which doesn't normally exist in clnt_broadcast. If
|
82
|
+
* found_callback is non NULL, this function is called when a device is found
|
83
|
+
* with the requested service.
|
84
|
+
*/
|
85
|
+
enum clnt_stat
|
86
|
+
#if (defined __LP64__) && (defined __APPLE__)
|
87
|
+
clnt_find_services(uint32_t prog, uint32_t vers, uint32_t proc,
|
88
|
+
#else
|
89
|
+
clnt_find_services(u_long prog, u_long vers, u_long proc,
|
90
|
+
#endif
|
91
|
+
struct timeval *t, resultfoundproc_t found_callback);
|
92
|
+
|
93
|
+
#ifdef __cplusplus
|
94
|
+
}
|
95
|
+
#endif
|
96
|
+
|
97
|
+
#endif /* !_RPC_CLNT_FIND_SERVICES_H */
|
data/ext/vxi11/vxi11.h
ADDED
@@ -0,0 +1,234 @@
|
|
1
|
+
/*
|
2
|
+
* Please do not edit this file.
|
3
|
+
* It was generated using rpcgen.
|
4
|
+
*/
|
5
|
+
|
6
|
+
#include "vxi11.h"
|
7
|
+
#include <string.h>
|
8
|
+
#undef clnt_call
|
9
|
+
#define clnt_call(rh, proc, xargs, argsp, xres, resp, secs) \
|
10
|
+
((*(rh)->cl_ops->cl_call)(rh, proc, (xdrproc_t)xargs, argsp, (xdrproc_t)xres, resp, secs))
|
11
|
+
|
12
|
+
/* Default timeout can be changed using clnt_control() */
|
13
|
+
static struct timeval TIMEOUT = { 25, 0 };
|
14
|
+
|
15
|
+
Device_Error *
|
16
|
+
device_abort_1(argp, clnt)
|
17
|
+
Device_Link *argp;
|
18
|
+
CLIENT *clnt;
|
19
|
+
{
|
20
|
+
static Device_Error clnt_res;
|
21
|
+
|
22
|
+
memset((char *)&clnt_res, 0, sizeof(clnt_res));
|
23
|
+
if (clnt_call(clnt, device_abort, xdr_Device_Link, argp, xdr_Device_Error, &clnt_res, TIMEOUT) != RPC_SUCCESS)
|
24
|
+
return (NULL);
|
25
|
+
return (&clnt_res);
|
26
|
+
}
|
27
|
+
|
28
|
+
Create_LinkResp *
|
29
|
+
create_link_1(argp, clnt)
|
30
|
+
Create_LinkParms *argp;
|
31
|
+
CLIENT *clnt;
|
32
|
+
{
|
33
|
+
static Create_LinkResp clnt_res;
|
34
|
+
|
35
|
+
memset((char *)&clnt_res, 0, sizeof(clnt_res));
|
36
|
+
if (clnt_call(clnt, create_link, xdr_Create_LinkParms, argp, xdr_Create_LinkResp, &clnt_res, TIMEOUT) != RPC_SUCCESS)
|
37
|
+
return (NULL);
|
38
|
+
return (&clnt_res);
|
39
|
+
}
|
40
|
+
|
41
|
+
Device_WriteResp *
|
42
|
+
device_write_1(argp, clnt)
|
43
|
+
Device_WriteParms *argp;
|
44
|
+
CLIENT *clnt;
|
45
|
+
{
|
46
|
+
static Device_WriteResp clnt_res;
|
47
|
+
|
48
|
+
memset((char *)&clnt_res, 0, sizeof(clnt_res));
|
49
|
+
if (clnt_call(clnt, device_write, xdr_Device_WriteParms, argp, xdr_Device_WriteResp, &clnt_res, TIMEOUT) != RPC_SUCCESS)
|
50
|
+
return (NULL);
|
51
|
+
return (&clnt_res);
|
52
|
+
}
|
53
|
+
|
54
|
+
Device_ReadResp *
|
55
|
+
device_read_1(argp, clnt)
|
56
|
+
Device_ReadParms *argp;
|
57
|
+
CLIENT *clnt;
|
58
|
+
{
|
59
|
+
static Device_ReadResp clnt_res;
|
60
|
+
|
61
|
+
memset((char *)&clnt_res, 0, sizeof(clnt_res));
|
62
|
+
if (clnt_call(clnt, device_read, xdr_Device_ReadParms, argp, xdr_Device_ReadResp, &clnt_res, TIMEOUT) != RPC_SUCCESS)
|
63
|
+
return (NULL);
|
64
|
+
return (&clnt_res);
|
65
|
+
}
|
66
|
+
|
67
|
+
Device_ReadStbResp *
|
68
|
+
device_readstb_1(argp, clnt)
|
69
|
+
Device_GenericParms *argp;
|
70
|
+
CLIENT *clnt;
|
71
|
+
{
|
72
|
+
static Device_ReadStbResp clnt_res;
|
73
|
+
|
74
|
+
memset((char *)&clnt_res, 0, sizeof(clnt_res));
|
75
|
+
if (clnt_call(clnt, device_readstb, xdr_Device_GenericParms, argp, xdr_Device_ReadStbResp, &clnt_res, TIMEOUT) != RPC_SUCCESS)
|
76
|
+
return (NULL);
|
77
|
+
return (&clnt_res);
|
78
|
+
}
|
79
|
+
|
80
|
+
Device_Error *
|
81
|
+
device_trigger_1(argp, clnt)
|
82
|
+
Device_GenericParms *argp;
|
83
|
+
CLIENT *clnt;
|
84
|
+
{
|
85
|
+
static Device_Error clnt_res;
|
86
|
+
|
87
|
+
memset((char *)&clnt_res, 0, sizeof(clnt_res));
|
88
|
+
if (clnt_call(clnt, device_trigger, xdr_Device_GenericParms, argp, xdr_Device_Error, &clnt_res, TIMEOUT) != RPC_SUCCESS)
|
89
|
+
return (NULL);
|
90
|
+
return (&clnt_res);
|
91
|
+
}
|
92
|
+
|
93
|
+
Device_Error *
|
94
|
+
device_clear_1(argp, clnt)
|
95
|
+
Device_GenericParms *argp;
|
96
|
+
CLIENT *clnt;
|
97
|
+
{
|
98
|
+
static Device_Error clnt_res;
|
99
|
+
|
100
|
+
memset((char *)&clnt_res, 0, sizeof(clnt_res));
|
101
|
+
if (clnt_call(clnt, device_clear, xdr_Device_GenericParms, argp, xdr_Device_Error, &clnt_res, TIMEOUT) != RPC_SUCCESS)
|
102
|
+
return (NULL);
|
103
|
+
return (&clnt_res);
|
104
|
+
}
|
105
|
+
|
106
|
+
Device_Error *
|
107
|
+
device_remote_1(argp, clnt)
|
108
|
+
Device_GenericParms *argp;
|
109
|
+
CLIENT *clnt;
|
110
|
+
{
|
111
|
+
static Device_Error clnt_res;
|
112
|
+
|
113
|
+
memset((char *)&clnt_res, 0, sizeof(clnt_res));
|
114
|
+
if (clnt_call(clnt, device_remote, xdr_Device_GenericParms, argp, xdr_Device_Error, &clnt_res, TIMEOUT) != RPC_SUCCESS)
|
115
|
+
return (NULL);
|
116
|
+
return (&clnt_res);
|
117
|
+
}
|
118
|
+
|
119
|
+
Device_Error *
|
120
|
+
device_local_1(argp, clnt)
|
121
|
+
Device_GenericParms *argp;
|
122
|
+
CLIENT *clnt;
|
123
|
+
{
|
124
|
+
static Device_Error clnt_res;
|
125
|
+
|
126
|
+
memset((char *)&clnt_res, 0, sizeof(clnt_res));
|
127
|
+
if (clnt_call(clnt, device_local, xdr_Device_GenericParms, argp, xdr_Device_Error, &clnt_res, TIMEOUT) != RPC_SUCCESS)
|
128
|
+
return (NULL);
|
129
|
+
return (&clnt_res);
|
130
|
+
}
|
131
|
+
|
132
|
+
Device_Error *
|
133
|
+
device_lock_1(argp, clnt)
|
134
|
+
Device_LockParms *argp;
|
135
|
+
CLIENT *clnt;
|
136
|
+
{
|
137
|
+
static Device_Error clnt_res;
|
138
|
+
|
139
|
+
memset((char *)&clnt_res, 0, sizeof(clnt_res));
|
140
|
+
if (clnt_call(clnt, device_lock, xdr_Device_LockParms, argp, xdr_Device_Error, &clnt_res, TIMEOUT) != RPC_SUCCESS)
|
141
|
+
return (NULL);
|
142
|
+
return (&clnt_res);
|
143
|
+
}
|
144
|
+
|
145
|
+
Device_Error *
|
146
|
+
device_unlock_1(argp, clnt)
|
147
|
+
Device_Link *argp;
|
148
|
+
CLIENT *clnt;
|
149
|
+
{
|
150
|
+
static Device_Error clnt_res;
|
151
|
+
|
152
|
+
memset((char *)&clnt_res, 0, sizeof(clnt_res));
|
153
|
+
if (clnt_call(clnt, device_unlock, xdr_Device_Link, argp, xdr_Device_Error, &clnt_res, TIMEOUT) != RPC_SUCCESS)
|
154
|
+
return (NULL);
|
155
|
+
return (&clnt_res);
|
156
|
+
}
|
157
|
+
|
158
|
+
Device_Error *
|
159
|
+
device_enable_srq_1(argp, clnt)
|
160
|
+
Device_EnableSrqParms *argp;
|
161
|
+
CLIENT *clnt;
|
162
|
+
{
|
163
|
+
static Device_Error clnt_res;
|
164
|
+
|
165
|
+
memset((char *)&clnt_res, 0, sizeof(clnt_res));
|
166
|
+
if (clnt_call(clnt, device_enable_srq, xdr_Device_EnableSrqParms, argp, xdr_Device_Error, &clnt_res, TIMEOUT) != RPC_SUCCESS)
|
167
|
+
return (NULL);
|
168
|
+
return (&clnt_res);
|
169
|
+
}
|
170
|
+
|
171
|
+
Device_DocmdResp *
|
172
|
+
device_docmd_1(argp, clnt)
|
173
|
+
Device_DocmdParms *argp;
|
174
|
+
CLIENT *clnt;
|
175
|
+
{
|
176
|
+
static Device_DocmdResp clnt_res;
|
177
|
+
|
178
|
+
memset((char *)&clnt_res, 0, sizeof(clnt_res));
|
179
|
+
if (clnt_call(clnt, device_docmd, xdr_Device_DocmdParms, argp, xdr_Device_DocmdResp, &clnt_res, TIMEOUT) != RPC_SUCCESS)
|
180
|
+
return (NULL);
|
181
|
+
return (&clnt_res);
|
182
|
+
}
|
183
|
+
|
184
|
+
Device_Error *
|
185
|
+
destroy_link_1(argp, clnt)
|
186
|
+
Device_Link *argp;
|
187
|
+
CLIENT *clnt;
|
188
|
+
{
|
189
|
+
static Device_Error clnt_res;
|
190
|
+
|
191
|
+
memset((char *)&clnt_res, 0, sizeof(clnt_res));
|
192
|
+
if (clnt_call(clnt, destroy_link, xdr_Device_Link, argp, xdr_Device_Error, &clnt_res, TIMEOUT) != RPC_SUCCESS)
|
193
|
+
return (NULL);
|
194
|
+
return (&clnt_res);
|
195
|
+
}
|
196
|
+
|
197
|
+
Device_Error *
|
198
|
+
create_intr_chan_1(argp, clnt)
|
199
|
+
Device_RemoteFunc *argp;
|
200
|
+
CLIENT *clnt;
|
201
|
+
{
|
202
|
+
static Device_Error clnt_res;
|
203
|
+
|
204
|
+
memset((char *)&clnt_res, 0, sizeof(clnt_res));
|
205
|
+
if (clnt_call(clnt, create_intr_chan, xdr_Device_RemoteFunc, argp, xdr_Device_Error, &clnt_res, TIMEOUT) != RPC_SUCCESS)
|
206
|
+
return (NULL);
|
207
|
+
return (&clnt_res);
|
208
|
+
}
|
209
|
+
|
210
|
+
Device_Error *
|
211
|
+
destroy_intr_chan_1(argp, clnt)
|
212
|
+
void *argp;
|
213
|
+
CLIENT *clnt;
|
214
|
+
{
|
215
|
+
static Device_Error clnt_res;
|
216
|
+
|
217
|
+
memset((char *)&clnt_res, 0, sizeof(clnt_res));
|
218
|
+
if (clnt_call(clnt, destroy_intr_chan, xdr_void, argp, xdr_Device_Error, &clnt_res, TIMEOUT) != RPC_SUCCESS)
|
219
|
+
return (NULL);
|
220
|
+
return (&clnt_res);
|
221
|
+
}
|
222
|
+
|
223
|
+
void *
|
224
|
+
device_intr_srq_1(argp, clnt)
|
225
|
+
Device_SrqParms *argp;
|
226
|
+
CLIENT *clnt;
|
227
|
+
{
|
228
|
+
static char clnt_res;
|
229
|
+
|
230
|
+
memset((char *)&clnt_res, 0, sizeof(clnt_res));
|
231
|
+
if (clnt_call(clnt, device_intr_srq, xdr_Device_SrqParms, argp, xdr_void, &clnt_res, TIMEOUT) != RPC_SUCCESS)
|
232
|
+
return (NULL);
|
233
|
+
return ((void *)&clnt_res);
|
234
|
+
}
|
@@ -0,0 +1,163 @@
|
|
1
|
+
/*
|
2
|
+
* Please do not edit this file.
|
3
|
+
* It was generated using rpcgen.
|
4
|
+
*/
|
5
|
+
|
6
|
+
#include <memory.h> /* for memset */
|
7
|
+
#include "vxi11.h"
|
8
|
+
|
9
|
+
/* Default timeout can be changed using clnt_control() */
|
10
|
+
static struct timeval TIMEOUT = { 25, 0 };
|
11
|
+
|
12
|
+
enum clnt_stat
|
13
|
+
device_abort_1(Device_Link *argp, Device_Error *clnt_res, CLIENT *clnt)
|
14
|
+
{
|
15
|
+
return (clnt_call(clnt, device_abort,
|
16
|
+
(xdrproc_t) xdr_Device_Link, (caddr_t) argp,
|
17
|
+
(xdrproc_t) xdr_Device_Error, (caddr_t) clnt_res,
|
18
|
+
TIMEOUT));
|
19
|
+
}
|
20
|
+
|
21
|
+
enum clnt_stat
|
22
|
+
create_link_1(Create_LinkParms *argp, Create_LinkResp *clnt_res, CLIENT *clnt)
|
23
|
+
{
|
24
|
+
return (clnt_call(clnt, create_link,
|
25
|
+
(xdrproc_t) xdr_Create_LinkParms, (caddr_t) argp,
|
26
|
+
(xdrproc_t) xdr_Create_LinkResp, (caddr_t) clnt_res,
|
27
|
+
TIMEOUT));
|
28
|
+
}
|
29
|
+
|
30
|
+
enum clnt_stat
|
31
|
+
device_write_1(Device_WriteParms *argp, Device_WriteResp *clnt_res, CLIENT *clnt)
|
32
|
+
{
|
33
|
+
return (clnt_call(clnt, device_write,
|
34
|
+
(xdrproc_t) xdr_Device_WriteParms, (caddr_t) argp,
|
35
|
+
(xdrproc_t) xdr_Device_WriteResp, (caddr_t) clnt_res,
|
36
|
+
TIMEOUT));
|
37
|
+
}
|
38
|
+
|
39
|
+
enum clnt_stat
|
40
|
+
device_read_1(Device_ReadParms *argp, Device_ReadResp *clnt_res, CLIENT *clnt)
|
41
|
+
{
|
42
|
+
return (clnt_call(clnt, device_read,
|
43
|
+
(xdrproc_t) xdr_Device_ReadParms, (caddr_t) argp,
|
44
|
+
(xdrproc_t) xdr_Device_ReadResp, (caddr_t) clnt_res,
|
45
|
+
TIMEOUT));
|
46
|
+
}
|
47
|
+
|
48
|
+
enum clnt_stat
|
49
|
+
device_readstb_1(Device_GenericParms *argp, Device_ReadStbResp *clnt_res, CLIENT *clnt)
|
50
|
+
{
|
51
|
+
return (clnt_call(clnt, device_readstb,
|
52
|
+
(xdrproc_t) xdr_Device_GenericParms, (caddr_t) argp,
|
53
|
+
(xdrproc_t) xdr_Device_ReadStbResp, (caddr_t) clnt_res,
|
54
|
+
TIMEOUT));
|
55
|
+
}
|
56
|
+
|
57
|
+
enum clnt_stat
|
58
|
+
device_trigger_1(Device_GenericParms *argp, Device_Error *clnt_res, CLIENT *clnt)
|
59
|
+
{
|
60
|
+
return (clnt_call(clnt, device_trigger,
|
61
|
+
(xdrproc_t) xdr_Device_GenericParms, (caddr_t) argp,
|
62
|
+
(xdrproc_t) xdr_Device_Error, (caddr_t) clnt_res,
|
63
|
+
TIMEOUT));
|
64
|
+
}
|
65
|
+
|
66
|
+
enum clnt_stat
|
67
|
+
device_clear_1(Device_GenericParms *argp, Device_Error *clnt_res, CLIENT *clnt)
|
68
|
+
{
|
69
|
+
return (clnt_call(clnt, device_clear,
|
70
|
+
(xdrproc_t) xdr_Device_GenericParms, (caddr_t) argp,
|
71
|
+
(xdrproc_t) xdr_Device_Error, (caddr_t) clnt_res,
|
72
|
+
TIMEOUT));
|
73
|
+
}
|
74
|
+
|
75
|
+
enum clnt_stat
|
76
|
+
device_remote_1(Device_GenericParms *argp, Device_Error *clnt_res, CLIENT *clnt)
|
77
|
+
{
|
78
|
+
return (clnt_call(clnt, device_remote,
|
79
|
+
(xdrproc_t) xdr_Device_GenericParms, (caddr_t) argp,
|
80
|
+
(xdrproc_t) xdr_Device_Error, (caddr_t) clnt_res,
|
81
|
+
TIMEOUT));
|
82
|
+
}
|
83
|
+
|
84
|
+
enum clnt_stat
|
85
|
+
device_local_1(Device_GenericParms *argp, Device_Error *clnt_res, CLIENT *clnt)
|
86
|
+
{
|
87
|
+
return (clnt_call(clnt, device_local,
|
88
|
+
(xdrproc_t) xdr_Device_GenericParms, (caddr_t) argp,
|
89
|
+
(xdrproc_t) xdr_Device_Error, (caddr_t) clnt_res,
|
90
|
+
TIMEOUT));
|
91
|
+
}
|
92
|
+
|
93
|
+
enum clnt_stat
|
94
|
+
device_lock_1(Device_LockParms *argp, Device_Error *clnt_res, CLIENT *clnt)
|
95
|
+
{
|
96
|
+
return (clnt_call(clnt, device_lock,
|
97
|
+
(xdrproc_t) xdr_Device_LockParms, (caddr_t) argp,
|
98
|
+
(xdrproc_t) xdr_Device_Error, (caddr_t) clnt_res,
|
99
|
+
TIMEOUT));
|
100
|
+
}
|
101
|
+
|
102
|
+
enum clnt_stat
|
103
|
+
device_unlock_1(Device_Link *argp, Device_Error *clnt_res, CLIENT *clnt)
|
104
|
+
{
|
105
|
+
return (clnt_call(clnt, device_unlock,
|
106
|
+
(xdrproc_t) xdr_Device_Link, (caddr_t) argp,
|
107
|
+
(xdrproc_t) xdr_Device_Error, (caddr_t) clnt_res,
|
108
|
+
TIMEOUT));
|
109
|
+
}
|
110
|
+
|
111
|
+
enum clnt_stat
|
112
|
+
device_enable_srq_1(Device_EnableSrqParms *argp, Device_Error *clnt_res, CLIENT *clnt)
|
113
|
+
{
|
114
|
+
return (clnt_call(clnt, device_enable_srq,
|
115
|
+
(xdrproc_t) xdr_Device_EnableSrqParms, (caddr_t) argp,
|
116
|
+
(xdrproc_t) xdr_Device_Error, (caddr_t) clnt_res,
|
117
|
+
TIMEOUT));
|
118
|
+
}
|
119
|
+
|
120
|
+
enum clnt_stat
|
121
|
+
device_docmd_1(Device_DocmdParms *argp, Device_DocmdResp *clnt_res, CLIENT *clnt)
|
122
|
+
{
|
123
|
+
return (clnt_call(clnt, device_docmd,
|
124
|
+
(xdrproc_t) xdr_Device_DocmdParms, (caddr_t) argp,
|
125
|
+
(xdrproc_t) xdr_Device_DocmdResp, (caddr_t) clnt_res,
|
126
|
+
TIMEOUT));
|
127
|
+
}
|
128
|
+
|
129
|
+
enum clnt_stat
|
130
|
+
destroy_link_1(Device_Link *argp, Device_Error *clnt_res, CLIENT *clnt)
|
131
|
+
{
|
132
|
+
return (clnt_call(clnt, destroy_link,
|
133
|
+
(xdrproc_t) xdr_Device_Link, (caddr_t) argp,
|
134
|
+
(xdrproc_t) xdr_Device_Error, (caddr_t) clnt_res,
|
135
|
+
TIMEOUT));
|
136
|
+
}
|
137
|
+
|
138
|
+
enum clnt_stat
|
139
|
+
create_intr_chan_1(Device_RemoteFunc *argp, Device_Error *clnt_res, CLIENT *clnt)
|
140
|
+
{
|
141
|
+
return (clnt_call(clnt, create_intr_chan,
|
142
|
+
(xdrproc_t) xdr_Device_RemoteFunc, (caddr_t) argp,
|
143
|
+
(xdrproc_t) xdr_Device_Error, (caddr_t) clnt_res,
|
144
|
+
TIMEOUT));
|
145
|
+
}
|
146
|
+
|
147
|
+
enum clnt_stat
|
148
|
+
destroy_intr_chan_1(void *argp, Device_Error *clnt_res, CLIENT *clnt)
|
149
|
+
{
|
150
|
+
return (clnt_call(clnt, destroy_intr_chan,
|
151
|
+
(xdrproc_t) xdr_void, (caddr_t) argp,
|
152
|
+
(xdrproc_t) xdr_Device_Error, (caddr_t) clnt_res,
|
153
|
+
TIMEOUT));
|
154
|
+
}
|
155
|
+
|
156
|
+
enum clnt_stat
|
157
|
+
device_intr_srq_1(Device_SrqParms *argp, void *clnt_res, CLIENT *clnt)
|
158
|
+
{
|
159
|
+
return (clnt_call(clnt, device_intr_srq,
|
160
|
+
(xdrproc_t) xdr_Device_SrqParms, (caddr_t) argp,
|
161
|
+
(xdrproc_t) xdr_void, (caddr_t) clnt_res,
|
162
|
+
TIMEOUT));
|
163
|
+
}
|