Lines Matching refs:xdrs

68 xdr_datum(XDR *xdrs, datum *pdatum)  in xdr_datum()  argument
79 if (xdrs->x_op == XDR_ENCODE) { in xdr_datum()
84 res = (bool)xdr_bytes(xdrs, (char **)&(pdatum->dptr), &dsize, in xdr_datum()
86 if (xdrs->x_op == XDR_DECODE) { in xdr_datum()
99 xdr_ypdomain_wrap_string(XDR *xdrs, char **ppstring) in xdr_ypdomain_wrap_string() argument
101 return ((bool)xdr_string(xdrs, ppstring, YPMAXDOMAIN)); in xdr_ypdomain_wrap_string()
109 xdr_ypmap_wrap_string(XDR *xdrs, char **ppstring) in xdr_ypmap_wrap_string() argument
111 return ((bool)xdr_string(xdrs, ppstring, YPMAXMAP)); in xdr_ypmap_wrap_string()
118 xdr_ypreq_key(XDR *xdrs, struct ypreq_key *ps) in xdr_ypreq_key() argument
120 return ((bool)(xdr_ypdomain_wrap_string(xdrs, &ps->domain) && in xdr_ypreq_key()
121 xdr_ypmap_wrap_string(xdrs, &ps->map) && in xdr_ypreq_key()
122 xdr_datum(xdrs, &ps->keydat))); in xdr_ypreq_key()
129 xdr_ypreq_nokey(XDR *xdrs, struct ypreq_nokey *ps) in xdr_ypreq_nokey() argument
131 return ((bool)(xdr_ypdomain_wrap_string(xdrs, &ps->domain) && in xdr_ypreq_nokey()
132 xdr_ypmap_wrap_string(xdrs, &ps->map))); in xdr_ypreq_nokey()
139 xdr_ypresp_val(XDR *xdrs, struct ypresp_val *ps) in xdr_ypresp_val() argument
141 return ((bool)(xdr_u_int(xdrs, &ps->status) && in xdr_ypresp_val()
142 xdr_datum(xdrs, &ps->valdat))); in xdr_ypresp_val()
149 xdr_ypresp_key_val(XDR *xdrs, struct ypresp_key_val *ps) in xdr_ypresp_key_val() argument
151 return ((bool)(xdr_u_int(xdrs, &ps->status) && in xdr_ypresp_key_val()
152 xdr_datum(xdrs, &ps->valdat) && in xdr_ypresp_key_val()
153 xdr_datum(xdrs, &ps->keydat))); in xdr_ypresp_key_val()
160 xdr_ypowner_wrap_string(XDR *xdrs, char **ppstring) in xdr_ypowner_wrap_string() argument
162 return ((bool)xdr_string(xdrs, ppstring, YPMAXPEER)); in xdr_ypowner_wrap_string()
169 xdr_ypmap_parms(XDR *xdrs, struct ypmap_parms *ps) in xdr_ypmap_parms() argument
171 return ((bool)(xdr_ypdomain_wrap_string(xdrs, &ps->domain) && in xdr_ypmap_parms()
172 xdr_ypmap_wrap_string(xdrs, &ps->map) && in xdr_ypmap_parms()
173 xdr_u_int(xdrs, &ps->ordernum) && in xdr_ypmap_parms()
174 xdr_ypowner_wrap_string(xdrs, &ps->owner))); in xdr_ypmap_parms()
181 xdr_ypreq_newname_string(XDR *xdrs, char **ppstring) in xdr_ypreq_newname_string() argument
183 return ((bool)xdr_string(xdrs, ppstring, 256)); in xdr_ypreq_newname_string()
190 xdr_ypresp_master(XDR *xdrs, struct ypresp_master *ps) in xdr_ypresp_master() argument
192 return ((bool)(xdr_u_int(xdrs, &ps->status) && in xdr_ypresp_master()
193 xdr_ypowner_wrap_string(xdrs, &ps->master))); in xdr_ypresp_master()
200 xdr_ypresp_order(XDR *xdrs, struct ypresp_order *ps) in xdr_ypresp_order() argument
202 return ((bool)(xdr_u_int(xdrs, &ps->status) && in xdr_ypresp_order()
203 xdr_u_int(xdrs, &ps->ordernum))); in xdr_ypresp_order()
212 xdr_ypmaplist_wrap_string(XDR *xdrs, char *pstring) in xdr_ypmaplist_wrap_string() argument
217 return ((bool)xdr_string(xdrs, &s, YPMAXMAP)); in xdr_ypmaplist_wrap_string()
224 xdr_ypmaplist(XDR *xdrs, struct ypmaplist **lst) in xdr_ypmaplist() argument
227 int freeing = (xdrs->x_op == XDR_FREE); in xdr_ypmaplist()
233 if (!xdr_bool(xdrs, &more_elements)) in xdr_ypmaplist()
242 if (!xdr_reference(xdrs, (caddr_t *)lst, in xdr_ypmaplist()
256 xdr_ypresp_maplist(XDR *xdrs, struct ypresp_maplist *ps) in xdr_ypresp_maplist() argument
258 return ((bool)(xdr_u_int(xdrs, &ps->status) && in xdr_ypresp_maplist()
259 xdr_ypmaplist(xdrs, &ps->list))); in xdr_ypresp_maplist()
266 xdr_yppushresp_xfr(XDR *xdrs, struct yppushresp_xfr *ps) in xdr_yppushresp_xfr() argument
268 return ((bool)(xdr_u_int(xdrs, &ps->transid) && in xdr_yppushresp_xfr()
269 xdr_u_int(xdrs, &ps->status))); in xdr_yppushresp_xfr()
277 xdr_ypreq_newxfr(XDR *xdrs, struct ypreq_newxfr *ps) in xdr_ypreq_newxfr() argument
279 return ((bool)(xdr_ypmap_parms(xdrs, &ps->map_parms) && in xdr_ypreq_newxfr()
280 xdr_u_int(xdrs, &ps->transid) && in xdr_ypreq_newxfr()
281 xdr_u_int(xdrs, &ps->proto) && in xdr_ypreq_newxfr()
282 xdr_string(xdrs, &ps->name, 256))); in xdr_ypreq_newxfr()
289 xdr_ypreq_xfr(XDR *xdrs, struct ypreq_xfr *ps) in xdr_ypreq_xfr() argument
291 return ((bool)(xdr_ypmap_parms(xdrs, &ps->map_parms) && in xdr_ypreq_xfr()
292 xdr_u_int(xdrs, &ps->transid) && in xdr_ypreq_xfr()
293 xdr_u_int(xdrs, &ps->proto) && in xdr_ypreq_xfr()
294 xdr_u_short(xdrs, &ps->port))); in xdr_ypreq_xfr()
303 xdr_ypall(XDR *xdrs, struct ypall_callback *callback) in xdr_ypall() argument
310 if (xdrs->x_op == XDR_ENCODE) in xdr_ypall()
313 if (xdrs->x_op == XDR_FREE) in xdr_ypall()
322 if (!xdr_bool(xdrs, &more)) in xdr_ypall()
328 if (!xdr_ypresp_key_val(xdrs, &kv)) in xdr_ypall()
338 xdr_netconfig(XDR *xdrs, struct netconfig *objp) in xdr_netconfig() argument
340 if (!xdr_string(xdrs, &objp->nc_netid, ~0)) in xdr_netconfig()
342 if (!xdr_u_int(xdrs, &objp->nc_semantics)) in xdr_netconfig()
344 if (!xdr_u_int(xdrs, &objp->nc_flag)) in xdr_netconfig()
346 if (!xdr_string(xdrs, &objp->nc_protofmly, ~0)) in xdr_netconfig()
348 if (!xdr_string(xdrs, &objp->nc_proto, ~0)) in xdr_netconfig()
350 if (!xdr_string(xdrs, &objp->nc_device, ~0)) in xdr_netconfig()
352 if (!xdr_array(xdrs, (char **)&objp->nc_lookups, in xdr_netconfig()
356 return ((bool)xdr_vector(xdrs, (char *)objp->nc_unused, in xdr_netconfig()