GCC Code Coverage Report
Directory: ./ Exec Total Coverage
File: lib/librpcsvc/nlm_prot.c Lines: 0 228 0.0 %
Date: 2017-11-13 Branches: 0 198 0.0 %

Line Branch Exec Source
1
/*
2
 * Please do not edit this file.
3
 * It was generated using rpcgen.
4
 */
5
6
#include "nlm_prot.h"
7
8
bool_t
9
xdr_nlm_stats(XDR *xdrs, nlm_stats *objp)
10
{
11
12
	if (!xdr_enum(xdrs, (enum_t *)objp))
13
		return (FALSE);
14
	return (TRUE);
15
}
16
17
bool_t
18
xdr_nlm_holder(XDR *xdrs, nlm_holder *objp)
19
{
20
21
22
	if (!xdr_bool(xdrs, &objp->exclusive))
23
		return (FALSE);
24
	if (!xdr_int(xdrs, &objp->svid))
25
		return (FALSE);
26
	if (!xdr_netobj(xdrs, &objp->oh))
27
		return (FALSE);
28
	if (!xdr_u_int(xdrs, &objp->l_offset))
29
		return (FALSE);
30
	if (!xdr_u_int(xdrs, &objp->l_len))
31
		return (FALSE);
32
	return (TRUE);
33
}
34
35
bool_t
36
xdr_nlm_testrply(XDR *xdrs, nlm_testrply *objp)
37
{
38
39
	if (!xdr_nlm_stats(xdrs, &objp->stat))
40
		return (FALSE);
41
	switch (objp->stat) {
42
	case nlm_denied:
43
		if (!xdr_nlm_holder(xdrs, &objp->nlm_testrply_u.holder))
44
			return (FALSE);
45
		break;
46
	default:
47
		break;
48
	}
49
	return (TRUE);
50
}
51
52
bool_t
53
xdr_nlm_stat(XDR *xdrs, nlm_stat *objp)
54
{
55
56
57
	if (!xdr_nlm_stats(xdrs, &objp->stat))
58
		return (FALSE);
59
	return (TRUE);
60
}
61
62
bool_t
63
xdr_nlm_res(XDR *xdrs, nlm_res *objp)
64
{
65
66
67
	if (!xdr_netobj(xdrs, &objp->cookie))
68
		return (FALSE);
69
	if (!xdr_nlm_stat(xdrs, &objp->stat))
70
		return (FALSE);
71
	return (TRUE);
72
}
73
74
bool_t
75
xdr_nlm_testres(XDR *xdrs, nlm_testres *objp)
76
{
77
78
79
	if (!xdr_netobj(xdrs, &objp->cookie))
80
		return (FALSE);
81
	if (!xdr_nlm_testrply(xdrs, &objp->stat))
82
		return (FALSE);
83
	return (TRUE);
84
}
85
86
bool_t
87
xdr_nlm_lock(XDR *xdrs, nlm_lock *objp)
88
{
89
90
91
	if (!xdr_string(xdrs, &objp->caller_name, LM_MAXSTRLEN))
92
		return (FALSE);
93
	if (!xdr_netobj(xdrs, &objp->fh))
94
		return (FALSE);
95
	if (!xdr_netobj(xdrs, &objp->oh))
96
		return (FALSE);
97
	if (!xdr_int(xdrs, &objp->svid))
98
		return (FALSE);
99
	if (!xdr_u_int(xdrs, &objp->l_offset))
100
		return (FALSE);
101
	if (!xdr_u_int(xdrs, &objp->l_len))
102
		return (FALSE);
103
	return (TRUE);
104
}
105
106
bool_t
107
xdr_nlm_lockargs(XDR *xdrs, nlm_lockargs *objp)
108
{
109
110
111
	if (!xdr_netobj(xdrs, &objp->cookie))
112
		return (FALSE);
113
	if (!xdr_bool(xdrs, &objp->block))
114
		return (FALSE);
115
	if (!xdr_bool(xdrs, &objp->exclusive))
116
		return (FALSE);
117
	if (!xdr_nlm_lock(xdrs, &objp->alock))
118
		return (FALSE);
119
	if (!xdr_bool(xdrs, &objp->reclaim))
120
		return (FALSE);
121
	if (!xdr_int(xdrs, &objp->state))
122
		return (FALSE);
123
	return (TRUE);
124
}
125
126
bool_t
127
xdr_nlm_cancargs(XDR *xdrs, nlm_cancargs *objp)
128
{
129
130
131
	if (!xdr_netobj(xdrs, &objp->cookie))
132
		return (FALSE);
133
	if (!xdr_bool(xdrs, &objp->block))
134
		return (FALSE);
135
	if (!xdr_bool(xdrs, &objp->exclusive))
136
		return (FALSE);
137
	if (!xdr_nlm_lock(xdrs, &objp->alock))
138
		return (FALSE);
139
	return (TRUE);
140
}
141
142
bool_t
143
xdr_nlm_testargs(XDR *xdrs, nlm_testargs *objp)
144
{
145
146
147
	if (!xdr_netobj(xdrs, &objp->cookie))
148
		return (FALSE);
149
	if (!xdr_bool(xdrs, &objp->exclusive))
150
		return (FALSE);
151
	if (!xdr_nlm_lock(xdrs, &objp->alock))
152
		return (FALSE);
153
	return (TRUE);
154
}
155
156
bool_t
157
xdr_nlm_unlockargs(XDR *xdrs, nlm_unlockargs *objp)
158
{
159
160
161
	if (!xdr_netobj(xdrs, &objp->cookie))
162
		return (FALSE);
163
	if (!xdr_nlm_lock(xdrs, &objp->alock))
164
		return (FALSE);
165
	return (TRUE);
166
}
167
168
bool_t
169
xdr_fsh_mode(XDR *xdrs, fsh_mode *objp)
170
{
171
172
	if (!xdr_enum(xdrs, (enum_t *)objp))
173
		return (FALSE);
174
	return (TRUE);
175
}
176
177
bool_t
178
xdr_fsh_access(XDR *xdrs, fsh_access *objp)
179
{
180
181
	if (!xdr_enum(xdrs, (enum_t *)objp))
182
		return (FALSE);
183
	return (TRUE);
184
}
185
186
bool_t
187
xdr_nlm_share(XDR *xdrs, nlm_share *objp)
188
{
189
190
191
	if (!xdr_string(xdrs, &objp->caller_name, LM_MAXSTRLEN))
192
		return (FALSE);
193
	if (!xdr_netobj(xdrs, &objp->fh))
194
		return (FALSE);
195
	if (!xdr_netobj(xdrs, &objp->oh))
196
		return (FALSE);
197
	if (!xdr_fsh_mode(xdrs, &objp->mode))
198
		return (FALSE);
199
	if (!xdr_fsh_access(xdrs, &objp->access))
200
		return (FALSE);
201
	return (TRUE);
202
}
203
204
bool_t
205
xdr_nlm_shareargs(XDR *xdrs, nlm_shareargs *objp)
206
{
207
208
209
	if (!xdr_netobj(xdrs, &objp->cookie))
210
		return (FALSE);
211
	if (!xdr_nlm_share(xdrs, &objp->share))
212
		return (FALSE);
213
	if (!xdr_bool(xdrs, &objp->reclaim))
214
		return (FALSE);
215
	return (TRUE);
216
}
217
218
bool_t
219
xdr_nlm_shareres(XDR *xdrs, nlm_shareres *objp)
220
{
221
222
223
	if (!xdr_netobj(xdrs, &objp->cookie))
224
		return (FALSE);
225
	if (!xdr_nlm_stats(xdrs, &objp->stat))
226
		return (FALSE);
227
	if (!xdr_int(xdrs, &objp->sequence))
228
		return (FALSE);
229
	return (TRUE);
230
}
231
232
bool_t
233
xdr_nlm_notify(XDR *xdrs, nlm_notify *objp)
234
{
235
236
237
	if (!xdr_string(xdrs, &objp->name, MAXNAMELEN))
238
		return (FALSE);
239
	if (!xdr_int(xdrs, &objp->state))
240
		return (FALSE);
241
	return (TRUE);
242
}
243
244
bool_t
245
xdr_nlm4_stats(XDR *xdrs, nlm4_stats *objp)
246
{
247
248
	if (!xdr_enum(xdrs, (enum_t *)objp))
249
		return (FALSE);
250
	return (TRUE);
251
}
252
253
bool_t
254
xdr_nlm4_stat(XDR *xdrs, nlm4_stat *objp)
255
{
256
257
258
	if (!xdr_nlm4_stats(xdrs, &objp->stat))
259
		return (FALSE);
260
	return (TRUE);
261
}
262
263
bool_t
264
xdr_nlm4_holder(XDR *xdrs, nlm4_holder *objp)
265
{
266
267
268
	if (!xdr_bool(xdrs, &objp->exclusive))
269
		return (FALSE);
270
	if (!xdr_u_int32_t(xdrs, &objp->svid))
271
		return (FALSE);
272
	if (!xdr_netobj(xdrs, &objp->oh))
273
		return (FALSE);
274
	if (!xdr_u_int64_t(xdrs, &objp->l_offset))
275
		return (FALSE);
276
	if (!xdr_u_int64_t(xdrs, &objp->l_len))
277
		return (FALSE);
278
	return (TRUE);
279
}
280
281
bool_t
282
xdr_nlm4_lock(XDR *xdrs, nlm4_lock *objp)
283
{
284
285
286
	if (!xdr_string(xdrs, &objp->caller_name, MAXNAMELEN))
287
		return (FALSE);
288
	if (!xdr_netobj(xdrs, &objp->fh))
289
		return (FALSE);
290
	if (!xdr_netobj(xdrs, &objp->oh))
291
		return (FALSE);
292
	if (!xdr_u_int32_t(xdrs, &objp->svid))
293
		return (FALSE);
294
	if (!xdr_u_int64_t(xdrs, &objp->l_offset))
295
		return (FALSE);
296
	if (!xdr_u_int64_t(xdrs, &objp->l_len))
297
		return (FALSE);
298
	return (TRUE);
299
}
300
301
bool_t
302
xdr_nlm4_share(XDR *xdrs, nlm4_share *objp)
303
{
304
305
306
	if (!xdr_string(xdrs, &objp->caller_name, MAXNAMELEN))
307
		return (FALSE);
308
	if (!xdr_netobj(xdrs, &objp->fh))
309
		return (FALSE);
310
	if (!xdr_netobj(xdrs, &objp->oh))
311
		return (FALSE);
312
	if (!xdr_fsh_mode(xdrs, &objp->mode))
313
		return (FALSE);
314
	if (!xdr_fsh_access(xdrs, &objp->access))
315
		return (FALSE);
316
	return (TRUE);
317
}
318
319
bool_t
320
xdr_nlm4_testrply(XDR *xdrs, nlm4_testrply *objp)
321
{
322
323
	if (!xdr_nlm4_stats(xdrs, &objp->stat))
324
		return (FALSE);
325
	switch (objp->stat) {
326
	case nlm_denied:
327
		if (!xdr_nlm4_holder(xdrs, &objp->nlm4_testrply_u.holder))
328
			return (FALSE);
329
		break;
330
	default:
331
		break;
332
	}
333
	return (TRUE);
334
}
335
336
bool_t
337
xdr_nlm4_testres(XDR *xdrs, nlm4_testres *objp)
338
{
339
340
341
	if (!xdr_netobj(xdrs, &objp->cookie))
342
		return (FALSE);
343
	if (!xdr_nlm4_testrply(xdrs, &objp->stat))
344
		return (FALSE);
345
	return (TRUE);
346
}
347
348
bool_t
349
xdr_nlm4_testargs(XDR *xdrs, nlm4_testargs *objp)
350
{
351
352
353
	if (!xdr_netobj(xdrs, &objp->cookie))
354
		return (FALSE);
355
	if (!xdr_bool(xdrs, &objp->exclusive))
356
		return (FALSE);
357
	if (!xdr_nlm4_lock(xdrs, &objp->alock))
358
		return (FALSE);
359
	return (TRUE);
360
}
361
362
bool_t
363
xdr_nlm4_res(XDR *xdrs, nlm4_res *objp)
364
{
365
366
367
	if (!xdr_netobj(xdrs, &objp->cookie))
368
		return (FALSE);
369
	if (!xdr_nlm4_stat(xdrs, &objp->stat))
370
		return (FALSE);
371
	return (TRUE);
372
}
373
374
bool_t
375
xdr_nlm4_lockargs(XDR *xdrs, nlm4_lockargs *objp)
376
{
377
378
379
	if (!xdr_netobj(xdrs, &objp->cookie))
380
		return (FALSE);
381
	if (!xdr_bool(xdrs, &objp->block))
382
		return (FALSE);
383
	if (!xdr_bool(xdrs, &objp->exclusive))
384
		return (FALSE);
385
	if (!xdr_nlm4_lock(xdrs, &objp->alock))
386
		return (FALSE);
387
	if (!xdr_bool(xdrs, &objp->reclaim))
388
		return (FALSE);
389
	if (!xdr_int(xdrs, &objp->state))
390
		return (FALSE);
391
	return (TRUE);
392
}
393
394
bool_t
395
xdr_nlm4_cancargs(XDR *xdrs, nlm4_cancargs *objp)
396
{
397
398
399
	if (!xdr_netobj(xdrs, &objp->cookie))
400
		return (FALSE);
401
	if (!xdr_bool(xdrs, &objp->block))
402
		return (FALSE);
403
	if (!xdr_bool(xdrs, &objp->exclusive))
404
		return (FALSE);
405
	if (!xdr_nlm4_lock(xdrs, &objp->alock))
406
		return (FALSE);
407
	return (TRUE);
408
}
409
410
bool_t
411
xdr_nlm4_unlockargs(XDR *xdrs, nlm4_unlockargs *objp)
412
{
413
414
415
	if (!xdr_netobj(xdrs, &objp->cookie))
416
		return (FALSE);
417
	if (!xdr_nlm4_lock(xdrs, &objp->alock))
418
		return (FALSE);
419
	return (TRUE);
420
}
421
422
bool_t
423
xdr_nlm4_shareargs(XDR *xdrs, nlm4_shareargs *objp)
424
{
425
426
427
	if (!xdr_netobj(xdrs, &objp->cookie))
428
		return (FALSE);
429
	if (!xdr_nlm4_share(xdrs, &objp->share))
430
		return (FALSE);
431
	if (!xdr_bool(xdrs, &objp->reclaim))
432
		return (FALSE);
433
	return (TRUE);
434
}
435
436
bool_t
437
xdr_nlm4_shareres(XDR *xdrs, nlm4_shareres *objp)
438
{
439
440
441
	if (!xdr_netobj(xdrs, &objp->cookie))
442
		return (FALSE);
443
	if (!xdr_nlm4_stats(xdrs, &objp->stat))
444
		return (FALSE);
445
	if (!xdr_int(xdrs, &objp->sequence))
446
		return (FALSE);
447
	return (TRUE);
448
}
449
450
bool_t
451
xdr_nlm_sm_status(XDR *xdrs, nlm_sm_status *objp)
452
{
453
454
455
	if (!xdr_string(xdrs, &objp->mon_name, LM_MAXSTRLEN))
456
		return (FALSE);
457
	if (!xdr_int(xdrs, &objp->state))
458
		return (FALSE);
459
	if (!xdr_opaque(xdrs, objp->priv, 16))
460
		return (FALSE);
461
	return (TRUE);
462
}