line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
/* |
2
|
|
|
|
|
|
|
* Please do not edit this file. |
3
|
|
|
|
|
|
|
* It was generated using rpcgen. |
4
|
|
|
|
|
|
|
*/ |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
/* |
7
|
|
|
|
|
|
|
* Added GCC pragma to ignore "-Wunused-variable". |
8
|
|
|
|
|
|
|
*/ |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
#include "vxi11.h" |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
#pragma GCC diagnostic ignored "-Wunused-variable" |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
bool_t |
16
|
0
|
|
|
|
|
|
xdr_Device_Link (XDR *xdrs, Device_Link *objp) |
17
|
|
|
|
|
|
|
{ |
18
|
|
|
|
|
|
|
register int32_t *buf; |
19
|
|
|
|
|
|
|
|
20
|
0
|
0
|
|
|
|
|
if (!xdr_long (xdrs, objp)) |
21
|
0
|
|
|
|
|
|
return FALSE; |
22
|
0
|
|
|
|
|
|
return TRUE; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
bool_t |
26
|
0
|
|
|
|
|
|
xdr_Device_AddrFamily (XDR *xdrs, Device_AddrFamily *objp) |
27
|
|
|
|
|
|
|
{ |
28
|
|
|
|
|
|
|
register int32_t *buf; |
29
|
|
|
|
|
|
|
|
30
|
0
|
0
|
|
|
|
|
if (!xdr_enum (xdrs, (enum_t *) objp)) |
31
|
0
|
|
|
|
|
|
return FALSE; |
32
|
0
|
|
|
|
|
|
return TRUE; |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
bool_t |
36
|
0
|
|
|
|
|
|
xdr_Device_Flags (XDR *xdrs, Device_Flags *objp) |
37
|
|
|
|
|
|
|
{ |
38
|
|
|
|
|
|
|
register int32_t *buf; |
39
|
|
|
|
|
|
|
|
40
|
0
|
0
|
|
|
|
|
if (!xdr_long (xdrs, objp)) |
41
|
0
|
|
|
|
|
|
return FALSE; |
42
|
0
|
|
|
|
|
|
return TRUE; |
43
|
|
|
|
|
|
|
} |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
bool_t |
46
|
0
|
|
|
|
|
|
xdr_Device_ErrorCode (XDR *xdrs, Device_ErrorCode *objp) |
47
|
|
|
|
|
|
|
{ |
48
|
|
|
|
|
|
|
register int32_t *buf; |
49
|
|
|
|
|
|
|
|
50
|
0
|
0
|
|
|
|
|
if (!xdr_long (xdrs, objp)) |
51
|
0
|
|
|
|
|
|
return FALSE; |
52
|
0
|
|
|
|
|
|
return TRUE; |
53
|
|
|
|
|
|
|
} |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
bool_t |
56
|
0
|
|
|
|
|
|
xdr_Device_Error (XDR *xdrs, Device_Error *objp) |
57
|
|
|
|
|
|
|
{ |
58
|
|
|
|
|
|
|
register int32_t *buf; |
59
|
|
|
|
|
|
|
|
60
|
0
|
0
|
|
|
|
|
if (!xdr_Device_ErrorCode (xdrs, &objp->error)) |
61
|
0
|
|
|
|
|
|
return FALSE; |
62
|
0
|
|
|
|
|
|
return TRUE; |
63
|
|
|
|
|
|
|
} |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
bool_t |
66
|
0
|
|
|
|
|
|
xdr_Create_LinkParms (XDR *xdrs, Create_LinkParms *objp) |
67
|
|
|
|
|
|
|
{ |
68
|
|
|
|
|
|
|
register int32_t *buf; |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
|
71
|
0
|
0
|
|
|
|
|
if (xdrs->x_op == XDR_ENCODE) { |
72
|
0
|
|
|
|
|
|
buf = XDR_INLINE (xdrs, 3 * BYTES_PER_XDR_UNIT); |
73
|
0
|
0
|
|
|
|
|
if (buf == NULL) { |
74
|
0
|
0
|
|
|
|
|
if (!xdr_long (xdrs, &objp->clientId)) |
75
|
0
|
|
|
|
|
|
return FALSE; |
76
|
0
|
0
|
|
|
|
|
if (!xdr_bool (xdrs, &objp->lockDevice)) |
77
|
0
|
|
|
|
|
|
return FALSE; |
78
|
0
|
0
|
|
|
|
|
if (!xdr_u_long (xdrs, &objp->lock_timeout)) |
79
|
0
|
|
|
|
|
|
return FALSE; |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
} else { |
82
|
0
|
|
|
|
|
|
IXDR_PUT_LONG(buf, objp->clientId); |
83
|
0
|
|
|
|
|
|
IXDR_PUT_BOOL(buf, objp->lockDevice); |
84
|
0
|
|
|
|
|
|
IXDR_PUT_U_LONG(buf, objp->lock_timeout); |
85
|
|
|
|
|
|
|
} |
86
|
0
|
0
|
|
|
|
|
if (!xdr_string (xdrs, &objp->device, ~0)) |
87
|
0
|
|
|
|
|
|
return FALSE; |
88
|
0
|
|
|
|
|
|
return TRUE; |
89
|
0
|
0
|
|
|
|
|
} else if (xdrs->x_op == XDR_DECODE) { |
90
|
0
|
|
|
|
|
|
buf = XDR_INLINE (xdrs, 3 * BYTES_PER_XDR_UNIT); |
91
|
0
|
0
|
|
|
|
|
if (buf == NULL) { |
92
|
0
|
0
|
|
|
|
|
if (!xdr_long (xdrs, &objp->clientId)) |
93
|
0
|
|
|
|
|
|
return FALSE; |
94
|
0
|
0
|
|
|
|
|
if (!xdr_bool (xdrs, &objp->lockDevice)) |
95
|
0
|
|
|
|
|
|
return FALSE; |
96
|
0
|
0
|
|
|
|
|
if (!xdr_u_long (xdrs, &objp->lock_timeout)) |
97
|
0
|
|
|
|
|
|
return FALSE; |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
} else { |
100
|
0
|
|
|
|
|
|
objp->clientId = IXDR_GET_LONG(buf); |
101
|
0
|
|
|
|
|
|
objp->lockDevice = IXDR_GET_BOOL(buf); |
102
|
0
|
|
|
|
|
|
objp->lock_timeout = IXDR_GET_U_LONG(buf); |
103
|
|
|
|
|
|
|
} |
104
|
0
|
0
|
|
|
|
|
if (!xdr_string (xdrs, &objp->device, ~0)) |
105
|
0
|
|
|
|
|
|
return FALSE; |
106
|
0
|
|
|
|
|
|
return TRUE; |
107
|
|
|
|
|
|
|
} |
108
|
|
|
|
|
|
|
|
109
|
0
|
0
|
|
|
|
|
if (!xdr_long (xdrs, &objp->clientId)) |
110
|
0
|
|
|
|
|
|
return FALSE; |
111
|
0
|
0
|
|
|
|
|
if (!xdr_bool (xdrs, &objp->lockDevice)) |
112
|
0
|
|
|
|
|
|
return FALSE; |
113
|
0
|
0
|
|
|
|
|
if (!xdr_u_long (xdrs, &objp->lock_timeout)) |
114
|
0
|
|
|
|
|
|
return FALSE; |
115
|
0
|
0
|
|
|
|
|
if (!xdr_string (xdrs, &objp->device, ~0)) |
116
|
0
|
|
|
|
|
|
return FALSE; |
117
|
0
|
|
|
|
|
|
return TRUE; |
118
|
|
|
|
|
|
|
} |
119
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
bool_t |
121
|
0
|
|
|
|
|
|
xdr_Create_LinkResp (XDR *xdrs, Create_LinkResp *objp) |
122
|
|
|
|
|
|
|
{ |
123
|
|
|
|
|
|
|
register int32_t *buf; |
124
|
|
|
|
|
|
|
|
125
|
0
|
0
|
|
|
|
|
if (!xdr_Device_ErrorCode (xdrs, &objp->error)) |
126
|
0
|
|
|
|
|
|
return FALSE; |
127
|
0
|
0
|
|
|
|
|
if (!xdr_Device_Link (xdrs, &objp->lid)) |
128
|
0
|
|
|
|
|
|
return FALSE; |
129
|
0
|
0
|
|
|
|
|
if (!xdr_u_short (xdrs, &objp->abortPort)) |
130
|
0
|
|
|
|
|
|
return FALSE; |
131
|
0
|
0
|
|
|
|
|
if (!xdr_u_long (xdrs, &objp->maxRecvSize)) |
132
|
0
|
|
|
|
|
|
return FALSE; |
133
|
0
|
|
|
|
|
|
return TRUE; |
134
|
|
|
|
|
|
|
} |
135
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
bool_t |
137
|
0
|
|
|
|
|
|
xdr_Device_WriteParms (XDR *xdrs, Device_WriteParms *objp) |
138
|
|
|
|
|
|
|
{ |
139
|
|
|
|
|
|
|
register int32_t *buf; |
140
|
|
|
|
|
|
|
|
141
|
0
|
0
|
|
|
|
|
if (!xdr_Device_Link (xdrs, &objp->lid)) |
142
|
0
|
|
|
|
|
|
return FALSE; |
143
|
0
|
0
|
|
|
|
|
if (!xdr_u_long (xdrs, &objp->io_timeout)) |
144
|
0
|
|
|
|
|
|
return FALSE; |
145
|
0
|
0
|
|
|
|
|
if (!xdr_u_long (xdrs, &objp->lock_timeout)) |
146
|
0
|
|
|
|
|
|
return FALSE; |
147
|
0
|
0
|
|
|
|
|
if (!xdr_Device_Flags (xdrs, &objp->flags)) |
148
|
0
|
|
|
|
|
|
return FALSE; |
149
|
0
|
0
|
|
|
|
|
if (!xdr_bytes (xdrs, (char **)&objp->data.data_val, (u_int *) &objp->data.data_len, ~0)) |
150
|
0
|
|
|
|
|
|
return FALSE; |
151
|
0
|
|
|
|
|
|
return TRUE; |
152
|
|
|
|
|
|
|
} |
153
|
|
|
|
|
|
|
|
154
|
|
|
|
|
|
|
bool_t |
155
|
0
|
|
|
|
|
|
xdr_Device_WriteResp (XDR *xdrs, Device_WriteResp *objp) |
156
|
|
|
|
|
|
|
{ |
157
|
|
|
|
|
|
|
register int32_t *buf; |
158
|
|
|
|
|
|
|
|
159
|
0
|
0
|
|
|
|
|
if (!xdr_Device_ErrorCode (xdrs, &objp->error)) |
160
|
0
|
|
|
|
|
|
return FALSE; |
161
|
0
|
0
|
|
|
|
|
if (!xdr_u_long (xdrs, &objp->size)) |
162
|
0
|
|
|
|
|
|
return FALSE; |
163
|
0
|
|
|
|
|
|
return TRUE; |
164
|
|
|
|
|
|
|
} |
165
|
|
|
|
|
|
|
|
166
|
|
|
|
|
|
|
bool_t |
167
|
0
|
|
|
|
|
|
xdr_Device_ReadParms (XDR *xdrs, Device_ReadParms *objp) |
168
|
|
|
|
|
|
|
{ |
169
|
|
|
|
|
|
|
register int32_t *buf; |
170
|
|
|
|
|
|
|
|
171
|
|
|
|
|
|
|
|
172
|
0
|
0
|
|
|
|
|
if (xdrs->x_op == XDR_ENCODE) { |
173
|
0
|
0
|
|
|
|
|
if (!xdr_Device_Link (xdrs, &objp->lid)) |
174
|
0
|
|
|
|
|
|
return FALSE; |
175
|
0
|
|
|
|
|
|
buf = XDR_INLINE (xdrs, 3 * BYTES_PER_XDR_UNIT); |
176
|
0
|
0
|
|
|
|
|
if (buf == NULL) { |
177
|
0
|
0
|
|
|
|
|
if (!xdr_u_long (xdrs, &objp->requestSize)) |
178
|
0
|
|
|
|
|
|
return FALSE; |
179
|
0
|
0
|
|
|
|
|
if (!xdr_u_long (xdrs, &objp->io_timeout)) |
180
|
0
|
|
|
|
|
|
return FALSE; |
181
|
0
|
0
|
|
|
|
|
if (!xdr_u_long (xdrs, &objp->lock_timeout)) |
182
|
0
|
|
|
|
|
|
return FALSE; |
183
|
|
|
|
|
|
|
|
184
|
|
|
|
|
|
|
} else { |
185
|
0
|
|
|
|
|
|
IXDR_PUT_U_LONG(buf, objp->requestSize); |
186
|
0
|
|
|
|
|
|
IXDR_PUT_U_LONG(buf, objp->io_timeout); |
187
|
0
|
|
|
|
|
|
IXDR_PUT_U_LONG(buf, objp->lock_timeout); |
188
|
|
|
|
|
|
|
} |
189
|
0
|
0
|
|
|
|
|
if (!xdr_Device_Flags (xdrs, &objp->flags)) |
190
|
0
|
|
|
|
|
|
return FALSE; |
191
|
0
|
0
|
|
|
|
|
if (!xdr_char (xdrs, &objp->termChar)) |
192
|
0
|
|
|
|
|
|
return FALSE; |
193
|
0
|
|
|
|
|
|
return TRUE; |
194
|
0
|
0
|
|
|
|
|
} else if (xdrs->x_op == XDR_DECODE) { |
195
|
0
|
0
|
|
|
|
|
if (!xdr_Device_Link (xdrs, &objp->lid)) |
196
|
0
|
|
|
|
|
|
return FALSE; |
197
|
0
|
|
|
|
|
|
buf = XDR_INLINE (xdrs, 3 * BYTES_PER_XDR_UNIT); |
198
|
0
|
0
|
|
|
|
|
if (buf == NULL) { |
199
|
0
|
0
|
|
|
|
|
if (!xdr_u_long (xdrs, &objp->requestSize)) |
200
|
0
|
|
|
|
|
|
return FALSE; |
201
|
0
|
0
|
|
|
|
|
if (!xdr_u_long (xdrs, &objp->io_timeout)) |
202
|
0
|
|
|
|
|
|
return FALSE; |
203
|
0
|
0
|
|
|
|
|
if (!xdr_u_long (xdrs, &objp->lock_timeout)) |
204
|
0
|
|
|
|
|
|
return FALSE; |
205
|
|
|
|
|
|
|
|
206
|
|
|
|
|
|
|
} else { |
207
|
0
|
|
|
|
|
|
objp->requestSize = IXDR_GET_U_LONG(buf); |
208
|
0
|
|
|
|
|
|
objp->io_timeout = IXDR_GET_U_LONG(buf); |
209
|
0
|
|
|
|
|
|
objp->lock_timeout = IXDR_GET_U_LONG(buf); |
210
|
|
|
|
|
|
|
} |
211
|
0
|
0
|
|
|
|
|
if (!xdr_Device_Flags (xdrs, &objp->flags)) |
212
|
0
|
|
|
|
|
|
return FALSE; |
213
|
0
|
0
|
|
|
|
|
if (!xdr_char (xdrs, &objp->termChar)) |
214
|
0
|
|
|
|
|
|
return FALSE; |
215
|
0
|
|
|
|
|
|
return TRUE; |
216
|
|
|
|
|
|
|
} |
217
|
|
|
|
|
|
|
|
218
|
0
|
0
|
|
|
|
|
if (!xdr_Device_Link (xdrs, &objp->lid)) |
219
|
0
|
|
|
|
|
|
return FALSE; |
220
|
0
|
0
|
|
|
|
|
if (!xdr_u_long (xdrs, &objp->requestSize)) |
221
|
0
|
|
|
|
|
|
return FALSE; |
222
|
0
|
0
|
|
|
|
|
if (!xdr_u_long (xdrs, &objp->io_timeout)) |
223
|
0
|
|
|
|
|
|
return FALSE; |
224
|
0
|
0
|
|
|
|
|
if (!xdr_u_long (xdrs, &objp->lock_timeout)) |
225
|
0
|
|
|
|
|
|
return FALSE; |
226
|
0
|
0
|
|
|
|
|
if (!xdr_Device_Flags (xdrs, &objp->flags)) |
227
|
0
|
|
|
|
|
|
return FALSE; |
228
|
0
|
0
|
|
|
|
|
if (!xdr_char (xdrs, &objp->termChar)) |
229
|
0
|
|
|
|
|
|
return FALSE; |
230
|
0
|
|
|
|
|
|
return TRUE; |
231
|
|
|
|
|
|
|
} |
232
|
|
|
|
|
|
|
|
233
|
|
|
|
|
|
|
bool_t |
234
|
0
|
|
|
|
|
|
xdr_Device_ReadResp (XDR *xdrs, Device_ReadResp *objp) |
235
|
|
|
|
|
|
|
{ |
236
|
|
|
|
|
|
|
register int32_t *buf; |
237
|
|
|
|
|
|
|
|
238
|
0
|
0
|
|
|
|
|
if (!xdr_Device_ErrorCode (xdrs, &objp->error)) |
239
|
0
|
|
|
|
|
|
return FALSE; |
240
|
0
|
0
|
|
|
|
|
if (!xdr_long (xdrs, &objp->reason)) |
241
|
0
|
|
|
|
|
|
return FALSE; |
242
|
0
|
0
|
|
|
|
|
if (!xdr_bytes (xdrs, (char **)&objp->data.data_val, (u_int *) &objp->data.data_len, ~0)) |
243
|
0
|
|
|
|
|
|
return FALSE; |
244
|
0
|
|
|
|
|
|
return TRUE; |
245
|
|
|
|
|
|
|
} |
246
|
|
|
|
|
|
|
|
247
|
|
|
|
|
|
|
bool_t |
248
|
0
|
|
|
|
|
|
xdr_Device_ReadStbResp (XDR *xdrs, Device_ReadStbResp *objp) |
249
|
|
|
|
|
|
|
{ |
250
|
|
|
|
|
|
|
register int32_t *buf; |
251
|
|
|
|
|
|
|
|
252
|
0
|
0
|
|
|
|
|
if (!xdr_Device_ErrorCode (xdrs, &objp->error)) |
253
|
0
|
|
|
|
|
|
return FALSE; |
254
|
0
|
0
|
|
|
|
|
if (!xdr_u_char (xdrs, &objp->stb)) |
255
|
0
|
|
|
|
|
|
return FALSE; |
256
|
0
|
|
|
|
|
|
return TRUE; |
257
|
|
|
|
|
|
|
} |
258
|
|
|
|
|
|
|
|
259
|
|
|
|
|
|
|
bool_t |
260
|
0
|
|
|
|
|
|
xdr_Device_GenericParms (XDR *xdrs, Device_GenericParms *objp) |
261
|
|
|
|
|
|
|
{ |
262
|
|
|
|
|
|
|
register int32_t *buf; |
263
|
|
|
|
|
|
|
|
264
|
0
|
0
|
|
|
|
|
if (!xdr_Device_Link (xdrs, &objp->lid)) |
265
|
0
|
|
|
|
|
|
return FALSE; |
266
|
0
|
0
|
|
|
|
|
if (!xdr_Device_Flags (xdrs, &objp->flags)) |
267
|
0
|
|
|
|
|
|
return FALSE; |
268
|
0
|
0
|
|
|
|
|
if (!xdr_u_long (xdrs, &objp->lock_timeout)) |
269
|
0
|
|
|
|
|
|
return FALSE; |
270
|
0
|
0
|
|
|
|
|
if (!xdr_u_long (xdrs, &objp->io_timeout)) |
271
|
0
|
|
|
|
|
|
return FALSE; |
272
|
0
|
|
|
|
|
|
return TRUE; |
273
|
|
|
|
|
|
|
} |
274
|
|
|
|
|
|
|
|
275
|
|
|
|
|
|
|
bool_t |
276
|
0
|
|
|
|
|
|
xdr_Device_RemoteFunc (XDR *xdrs, Device_RemoteFunc *objp) |
277
|
|
|
|
|
|
|
{ |
278
|
|
|
|
|
|
|
register int32_t *buf; |
279
|
|
|
|
|
|
|
|
280
|
|
|
|
|
|
|
|
281
|
0
|
0
|
|
|
|
|
if (xdrs->x_op == XDR_ENCODE) { |
282
|
0
|
|
|
|
|
|
buf = XDR_INLINE (xdrs, 4 * BYTES_PER_XDR_UNIT); |
283
|
0
|
0
|
|
|
|
|
if (buf == NULL) { |
284
|
0
|
0
|
|
|
|
|
if (!xdr_u_long (xdrs, &objp->hostAddr)) |
285
|
0
|
|
|
|
|
|
return FALSE; |
286
|
0
|
0
|
|
|
|
|
if (!xdr_u_short (xdrs, &objp->hostPort)) |
287
|
0
|
|
|
|
|
|
return FALSE; |
288
|
0
|
0
|
|
|
|
|
if (!xdr_u_long (xdrs, &objp->progNum)) |
289
|
0
|
|
|
|
|
|
return FALSE; |
290
|
0
|
0
|
|
|
|
|
if (!xdr_u_long (xdrs, &objp->progVers)) |
291
|
0
|
|
|
|
|
|
return FALSE; |
292
|
|
|
|
|
|
|
|
293
|
|
|
|
|
|
|
} else { |
294
|
0
|
|
|
|
|
|
IXDR_PUT_U_LONG(buf, objp->hostAddr); |
295
|
0
|
|
|
|
|
|
IXDR_PUT_U_SHORT(buf, objp->hostPort); |
296
|
0
|
|
|
|
|
|
IXDR_PUT_U_LONG(buf, objp->progNum); |
297
|
0
|
|
|
|
|
|
IXDR_PUT_U_LONG(buf, objp->progVers); |
298
|
|
|
|
|
|
|
} |
299
|
0
|
0
|
|
|
|
|
if (!xdr_Device_AddrFamily (xdrs, &objp->progFamily)) |
300
|
0
|
|
|
|
|
|
return FALSE; |
301
|
0
|
|
|
|
|
|
return TRUE; |
302
|
0
|
0
|
|
|
|
|
} else if (xdrs->x_op == XDR_DECODE) { |
303
|
0
|
|
|
|
|
|
buf = XDR_INLINE (xdrs, 4 * BYTES_PER_XDR_UNIT); |
304
|
0
|
0
|
|
|
|
|
if (buf == NULL) { |
305
|
0
|
0
|
|
|
|
|
if (!xdr_u_long (xdrs, &objp->hostAddr)) |
306
|
0
|
|
|
|
|
|
return FALSE; |
307
|
0
|
0
|
|
|
|
|
if (!xdr_u_short (xdrs, &objp->hostPort)) |
308
|
0
|
|
|
|
|
|
return FALSE; |
309
|
0
|
0
|
|
|
|
|
if (!xdr_u_long (xdrs, &objp->progNum)) |
310
|
0
|
|
|
|
|
|
return FALSE; |
311
|
0
|
0
|
|
|
|
|
if (!xdr_u_long (xdrs, &objp->progVers)) |
312
|
0
|
|
|
|
|
|
return FALSE; |
313
|
|
|
|
|
|
|
|
314
|
|
|
|
|
|
|
} else { |
315
|
0
|
|
|
|
|
|
objp->hostAddr = IXDR_GET_U_LONG(buf); |
316
|
0
|
|
|
|
|
|
objp->hostPort = IXDR_GET_U_SHORT(buf); |
317
|
0
|
|
|
|
|
|
objp->progNum = IXDR_GET_U_LONG(buf); |
318
|
0
|
|
|
|
|
|
objp->progVers = IXDR_GET_U_LONG(buf); |
319
|
|
|
|
|
|
|
} |
320
|
0
|
0
|
|
|
|
|
if (!xdr_Device_AddrFamily (xdrs, &objp->progFamily)) |
321
|
0
|
|
|
|
|
|
return FALSE; |
322
|
0
|
|
|
|
|
|
return TRUE; |
323
|
|
|
|
|
|
|
} |
324
|
|
|
|
|
|
|
|
325
|
0
|
0
|
|
|
|
|
if (!xdr_u_long (xdrs, &objp->hostAddr)) |
326
|
0
|
|
|
|
|
|
return FALSE; |
327
|
0
|
0
|
|
|
|
|
if (!xdr_u_short (xdrs, &objp->hostPort)) |
328
|
0
|
|
|
|
|
|
return FALSE; |
329
|
0
|
0
|
|
|
|
|
if (!xdr_u_long (xdrs, &objp->progNum)) |
330
|
0
|
|
|
|
|
|
return FALSE; |
331
|
0
|
0
|
|
|
|
|
if (!xdr_u_long (xdrs, &objp->progVers)) |
332
|
0
|
|
|
|
|
|
return FALSE; |
333
|
0
|
0
|
|
|
|
|
if (!xdr_Device_AddrFamily (xdrs, &objp->progFamily)) |
334
|
0
|
|
|
|
|
|
return FALSE; |
335
|
0
|
|
|
|
|
|
return TRUE; |
336
|
|
|
|
|
|
|
} |
337
|
|
|
|
|
|
|
|
338
|
|
|
|
|
|
|
bool_t |
339
|
0
|
|
|
|
|
|
xdr_Device_EnableSrqParms (XDR *xdrs, Device_EnableSrqParms *objp) |
340
|
|
|
|
|
|
|
{ |
341
|
|
|
|
|
|
|
register int32_t *buf; |
342
|
|
|
|
|
|
|
|
343
|
0
|
0
|
|
|
|
|
if (!xdr_Device_Link (xdrs, &objp->lid)) |
344
|
0
|
|
|
|
|
|
return FALSE; |
345
|
0
|
0
|
|
|
|
|
if (!xdr_bool (xdrs, &objp->enable)) |
346
|
0
|
|
|
|
|
|
return FALSE; |
347
|
0
|
0
|
|
|
|
|
if (!xdr_bytes (xdrs, (char **)&objp->handle.handle_val, (u_int *) &objp->handle.handle_len, 40)) |
348
|
0
|
|
|
|
|
|
return FALSE; |
349
|
0
|
|
|
|
|
|
return TRUE; |
350
|
|
|
|
|
|
|
} |
351
|
|
|
|
|
|
|
|
352
|
|
|
|
|
|
|
bool_t |
353
|
0
|
|
|
|
|
|
xdr_Device_LockParms (XDR *xdrs, Device_LockParms *objp) |
354
|
|
|
|
|
|
|
{ |
355
|
|
|
|
|
|
|
register int32_t *buf; |
356
|
|
|
|
|
|
|
|
357
|
0
|
0
|
|
|
|
|
if (!xdr_Device_Link (xdrs, &objp->lid)) |
358
|
0
|
|
|
|
|
|
return FALSE; |
359
|
0
|
0
|
|
|
|
|
if (!xdr_Device_Flags (xdrs, &objp->flags)) |
360
|
0
|
|
|
|
|
|
return FALSE; |
361
|
0
|
0
|
|
|
|
|
if (!xdr_u_long (xdrs, &objp->lock_timeout)) |
362
|
0
|
|
|
|
|
|
return FALSE; |
363
|
0
|
|
|
|
|
|
return TRUE; |
364
|
|
|
|
|
|
|
} |
365
|
|
|
|
|
|
|
|
366
|
|
|
|
|
|
|
bool_t |
367
|
0
|
|
|
|
|
|
xdr_Device_DocmdParms (XDR *xdrs, Device_DocmdParms *objp) |
368
|
|
|
|
|
|
|
{ |
369
|
|
|
|
|
|
|
register int32_t *buf; |
370
|
|
|
|
|
|
|
|
371
|
|
|
|
|
|
|
|
372
|
0
|
0
|
|
|
|
|
if (xdrs->x_op == XDR_ENCODE) { |
373
|
0
|
0
|
|
|
|
|
if (!xdr_Device_Link (xdrs, &objp->lid)) |
374
|
0
|
|
|
|
|
|
return FALSE; |
375
|
0
|
0
|
|
|
|
|
if (!xdr_Device_Flags (xdrs, &objp->flags)) |
376
|
0
|
|
|
|
|
|
return FALSE; |
377
|
0
|
|
|
|
|
|
buf = XDR_INLINE (xdrs, 5 * BYTES_PER_XDR_UNIT); |
378
|
0
|
0
|
|
|
|
|
if (buf == NULL) { |
379
|
0
|
0
|
|
|
|
|
if (!xdr_u_long (xdrs, &objp->io_timeout)) |
380
|
0
|
|
|
|
|
|
return FALSE; |
381
|
0
|
0
|
|
|
|
|
if (!xdr_u_long (xdrs, &objp->lock_timeout)) |
382
|
0
|
|
|
|
|
|
return FALSE; |
383
|
0
|
0
|
|
|
|
|
if (!xdr_long (xdrs, &objp->cmd)) |
384
|
0
|
|
|
|
|
|
return FALSE; |
385
|
0
|
0
|
|
|
|
|
if (!xdr_bool (xdrs, &objp->network_order)) |
386
|
0
|
|
|
|
|
|
return FALSE; |
387
|
0
|
0
|
|
|
|
|
if (!xdr_long (xdrs, &objp->datasize)) |
388
|
0
|
|
|
|
|
|
return FALSE; |
389
|
|
|
|
|
|
|
|
390
|
|
|
|
|
|
|
} else { |
391
|
0
|
|
|
|
|
|
IXDR_PUT_U_LONG(buf, objp->io_timeout); |
392
|
0
|
|
|
|
|
|
IXDR_PUT_U_LONG(buf, objp->lock_timeout); |
393
|
0
|
|
|
|
|
|
IXDR_PUT_LONG(buf, objp->cmd); |
394
|
0
|
|
|
|
|
|
IXDR_PUT_BOOL(buf, objp->network_order); |
395
|
0
|
|
|
|
|
|
IXDR_PUT_LONG(buf, objp->datasize); |
396
|
|
|
|
|
|
|
} |
397
|
0
|
0
|
|
|
|
|
if (!xdr_bytes (xdrs, (char **)&objp->data_in.data_in_val, (u_int *) &objp->data_in.data_in_len, ~0)) |
398
|
0
|
|
|
|
|
|
return FALSE; |
399
|
0
|
|
|
|
|
|
return TRUE; |
400
|
0
|
0
|
|
|
|
|
} else if (xdrs->x_op == XDR_DECODE) { |
401
|
0
|
0
|
|
|
|
|
if (!xdr_Device_Link (xdrs, &objp->lid)) |
402
|
0
|
|
|
|
|
|
return FALSE; |
403
|
0
|
0
|
|
|
|
|
if (!xdr_Device_Flags (xdrs, &objp->flags)) |
404
|
0
|
|
|
|
|
|
return FALSE; |
405
|
0
|
|
|
|
|
|
buf = XDR_INLINE (xdrs, 5 * BYTES_PER_XDR_UNIT); |
406
|
0
|
0
|
|
|
|
|
if (buf == NULL) { |
407
|
0
|
0
|
|
|
|
|
if (!xdr_u_long (xdrs, &objp->io_timeout)) |
408
|
0
|
|
|
|
|
|
return FALSE; |
409
|
0
|
0
|
|
|
|
|
if (!xdr_u_long (xdrs, &objp->lock_timeout)) |
410
|
0
|
|
|
|
|
|
return FALSE; |
411
|
0
|
0
|
|
|
|
|
if (!xdr_long (xdrs, &objp->cmd)) |
412
|
0
|
|
|
|
|
|
return FALSE; |
413
|
0
|
0
|
|
|
|
|
if (!xdr_bool (xdrs, &objp->network_order)) |
414
|
0
|
|
|
|
|
|
return FALSE; |
415
|
0
|
0
|
|
|
|
|
if (!xdr_long (xdrs, &objp->datasize)) |
416
|
0
|
|
|
|
|
|
return FALSE; |
417
|
|
|
|
|
|
|
|
418
|
|
|
|
|
|
|
} else { |
419
|
0
|
|
|
|
|
|
objp->io_timeout = IXDR_GET_U_LONG(buf); |
420
|
0
|
|
|
|
|
|
objp->lock_timeout = IXDR_GET_U_LONG(buf); |
421
|
0
|
|
|
|
|
|
objp->cmd = IXDR_GET_LONG(buf); |
422
|
0
|
|
|
|
|
|
objp->network_order = IXDR_GET_BOOL(buf); |
423
|
0
|
|
|
|
|
|
objp->datasize = IXDR_GET_LONG(buf); |
424
|
|
|
|
|
|
|
} |
425
|
0
|
0
|
|
|
|
|
if (!xdr_bytes (xdrs, (char **)&objp->data_in.data_in_val, (u_int *) &objp->data_in.data_in_len, ~0)) |
426
|
0
|
|
|
|
|
|
return FALSE; |
427
|
0
|
|
|
|
|
|
return TRUE; |
428
|
|
|
|
|
|
|
} |
429
|
|
|
|
|
|
|
|
430
|
0
|
0
|
|
|
|
|
if (!xdr_Device_Link (xdrs, &objp->lid)) |
431
|
0
|
|
|
|
|
|
return FALSE; |
432
|
0
|
0
|
|
|
|
|
if (!xdr_Device_Flags (xdrs, &objp->flags)) |
433
|
0
|
|
|
|
|
|
return FALSE; |
434
|
0
|
0
|
|
|
|
|
if (!xdr_u_long (xdrs, &objp->io_timeout)) |
435
|
0
|
|
|
|
|
|
return FALSE; |
436
|
0
|
0
|
|
|
|
|
if (!xdr_u_long (xdrs, &objp->lock_timeout)) |
437
|
0
|
|
|
|
|
|
return FALSE; |
438
|
0
|
0
|
|
|
|
|
if (!xdr_long (xdrs, &objp->cmd)) |
439
|
0
|
|
|
|
|
|
return FALSE; |
440
|
0
|
0
|
|
|
|
|
if (!xdr_bool (xdrs, &objp->network_order)) |
441
|
0
|
|
|
|
|
|
return FALSE; |
442
|
0
|
0
|
|
|
|
|
if (!xdr_long (xdrs, &objp->datasize)) |
443
|
0
|
|
|
|
|
|
return FALSE; |
444
|
0
|
0
|
|
|
|
|
if (!xdr_bytes (xdrs, (char **)&objp->data_in.data_in_val, (u_int *) &objp->data_in.data_in_len, ~0)) |
445
|
0
|
|
|
|
|
|
return FALSE; |
446
|
0
|
|
|
|
|
|
return TRUE; |
447
|
|
|
|
|
|
|
} |
448
|
|
|
|
|
|
|
|
449
|
|
|
|
|
|
|
bool_t |
450
|
0
|
|
|
|
|
|
xdr_Device_DocmdResp (XDR *xdrs, Device_DocmdResp *objp) |
451
|
|
|
|
|
|
|
{ |
452
|
|
|
|
|
|
|
register int32_t *buf; |
453
|
|
|
|
|
|
|
|
454
|
0
|
0
|
|
|
|
|
if (!xdr_Device_ErrorCode (xdrs, &objp->error)) |
455
|
0
|
|
|
|
|
|
return FALSE; |
456
|
0
|
0
|
|
|
|
|
if (!xdr_bytes (xdrs, (char **)&objp->data_out.data_out_val, (u_int *) &objp->data_out.data_out_len, ~0)) |
457
|
0
|
|
|
|
|
|
return FALSE; |
458
|
0
|
|
|
|
|
|
return TRUE; |
459
|
|
|
|
|
|
|
} |
460
|
|
|
|
|
|
|
|
461
|
|
|
|
|
|
|
bool_t |
462
|
0
|
|
|
|
|
|
xdr_Device_SrqParms (XDR *xdrs, Device_SrqParms *objp) |
463
|
|
|
|
|
|
|
{ |
464
|
|
|
|
|
|
|
register int32_t *buf; |
465
|
|
|
|
|
|
|
|
466
|
0
|
0
|
|
|
|
|
if (!xdr_bytes (xdrs, (char **)&objp->handle.handle_val, (u_int *) &objp->handle.handle_len, ~0)) |
467
|
0
|
|
|
|
|
|
return FALSE; |
468
|
0
|
|
|
|
|
|
return TRUE; |
469
|
|
|
|
|
|
|
} |