Lines Matching defs:xdrs
36 xdr_xpol_enum(XDR *xdrs, xpol_enum *objp)
38 if (!xdr_enum(xdrs, (enum_t *)objp))
44 xdr_xpol_uids(XDR *xdrs, xpol_uids *objp)
46 if (!xdr_uid_t(xdrs, &objp->umin))
48 if (!xdr_uid_t(xdrs, &objp->umax))
54 xdr_xpol_ports(XDR *xdrs, xpol_ports *objp)
56 if (!xdr_int(xdrs, &objp->proto))
58 if (!xdr_uint16_t(xdrs, &objp->pmin))
60 if (!xdr_uint16_t(xdrs, &objp->pmax))
66 xdr_xpol_args(XDR *xdrs, xpol_args *objp)
68 if (!xdr_xpol_enum(xdrs, &objp->xa_args_type))
72 if (!xdr_string(xdrs, &objp->xpol_args_u.xa_path, MAXPATHLEN))
76 if (!xdr_xpol_uids(xdrs, &objp->xpol_args_u.xa_uids))
80 if (!xdr_xpol_ports(xdrs, &objp->xpol_args_u.xa_ports))
99 xdr_xpol_rule(XDR *xdrs, xpol_rule_t *objp)
109 if (xdrs->x_op == XDR_DECODE) {
113 if (!xdr_u_int(xdrs, &objp->xr_privs_len))
118 if (!xdr_opaque(xdrs, (char *)objp->xr_privs,
122 if (!xdr_xpol_args(xdrs, &objp->xr_args))
124 if (!xdr_bool(xdrs, &more_data))
142 } else if (xdrs->x_op == XDR_ENCODE) {
149 if (!xdr_u_int(xdrs, &slen))
152 if (!xdr_opaque(xdrs, (char *)objp->xr_privs, slen))
155 if (!xdr_xpol_args(xdrs, &objp->xr_args))
160 if (!xdr_bool(xdrs, &more_data))
167 if (!xdr_u_int(xdrs, &objp->xr_privs_len))
170 if (!xdr_opaque(xdrs, (char *)objp->xr_privs,
176 if (!xdr_xpol_args(xdrs, &objp->xr_args))