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

Line Branch Exec Source
1
/*
2
 * Please do not edit this file.
3
 * It was generated using rpcgen.
4
 */
5
6
#include "mount.h"
7
8
bool_t
9
xdr_fhandle(XDR *xdrs, fhandle objp)
10
{
11
12
	if (!xdr_opaque(xdrs, objp, FHSIZE))
13
		return (FALSE);
14
	return (TRUE);
15
}
16
17
bool_t
18
xdr_fhstatus(XDR *xdrs, fhstatus *objp)
19
{
20
21
	if (!xdr_u_int(xdrs, &objp->fhs_status))
22
		return (FALSE);
23
	switch (objp->fhs_status) {
24
	case 0:
25
		if (!xdr_fhandle(xdrs, objp->fhstatus_u.fhs_fhandle))
26
			return (FALSE);
27
		break;
28
	default:
29
		break;
30
	}
31
	return (TRUE);
32
}
33
34
bool_t
35
xdr_dirpath(XDR *xdrs, dirpath *objp)
36
{
37
38
	if (!xdr_string(xdrs, objp, MNTPATHLEN))
39
		return (FALSE);
40
	return (TRUE);
41
}
42
43
bool_t
44
xdr_name(XDR *xdrs, name *objp)
45
{
46
47
	if (!xdr_string(xdrs, objp, MNTNAMLEN))
48
		return (FALSE);
49
	return (TRUE);
50
}
51
52
bool_t
53
xdr_mountlist(XDR *xdrs, mountlist *objp)
54
{
55
56
	if (!xdr_pointer(xdrs, (char **)objp, sizeof(struct mountbody), (xdrproc_t)xdr_mountbody))
57
		return (FALSE);
58
	return (TRUE);
59
}
60
61
bool_t
62
xdr_mountbody(XDR *xdrs, mountbody *objp)
63
{
64
65
66
	if (!xdr_name(xdrs, &objp->ml_hostname))
67
		return (FALSE);
68
	if (!xdr_dirpath(xdrs, &objp->ml_directory))
69
		return (FALSE);
70
	if (!xdr_mountlist(xdrs, &objp->ml_next))
71
		return (FALSE);
72
	return (TRUE);
73
}
74
75
bool_t
76
xdr_groups(XDR *xdrs, groups *objp)
77
{
78
79
	if (!xdr_pointer(xdrs, (char **)objp, sizeof(struct groupnode), (xdrproc_t)xdr_groupnode))
80
		return (FALSE);
81
	return (TRUE);
82
}
83
84
bool_t
85
xdr_groupnode(XDR *xdrs, groupnode *objp)
86
{
87
88
89
	if (!xdr_name(xdrs, &objp->gr_name))
90
		return (FALSE);
91
	if (!xdr_groups(xdrs, &objp->gr_next))
92
		return (FALSE);
93
	return (TRUE);
94
}
95
96
bool_t
97
xdr_exports(XDR *xdrs, exports *objp)
98
{
99
100
	if (!xdr_pointer(xdrs, (char **)objp, sizeof(struct exportnode), (xdrproc_t)xdr_exportnode))
101
		return (FALSE);
102
	return (TRUE);
103
}
104
105
bool_t
106
xdr_exportnode(XDR *xdrs, exportnode *objp)
107
{
108
109
110
	if (!xdr_dirpath(xdrs, &objp->ex_dir))
111
		return (FALSE);
112
	if (!xdr_groups(xdrs, &objp->ex_groups))
113
		return (FALSE);
114
	if (!xdr_exports(xdrs, &objp->ex_next))
115
		return (FALSE);
116
	return (TRUE);
117
}