bool_t xdr_exportnode (XDR *xdrs, exportnode *objp) { if (!xdr_dirpath (xdrs, &objp->ex_dir)) return FALSE; if (!xdr_groups (xdrs, &objp->ex_groups)) return FALSE; if (!xdr_exports (xdrs, &objp->ex_next)) return FALSE; return TRUE; }
bool_t xdr_exportnode(register XDR *xdrs, exportnode *objp) { if (!xdr_dirpath(xdrs, &objp->ex_dir)) return (FALSE); if (!xdr_groups(xdrs, &objp->ex_groups)) return (FALSE); if (!xdr_exports(xdrs, &objp->ex_next)) return (FALSE); return (TRUE); }
bool_t xdr_exportnode(XDR *xdrs, exportnode *objp) { if (amuDebug(D_XDRTRACE)) plog(XLOG_DEBUG, "xdr_exportnode:"); if (!xdr_dirpath(xdrs, &objp->ex_dir)) { return (FALSE); } if (!xdr_groups(xdrs, &objp->ex_groups)) { return (FALSE); } if (!xdr_exports(xdrs, &objp->ex_next)) { return (FALSE); } return (TRUE); }
ssize_t xdr_serialize_exports (struct iovec outmsg, exports *elist) { XDR xdr; ssize_t ret = -1; if ((!outmsg.iov_base) || (!elist)) return -1; xdrmem_create (&xdr, outmsg.iov_base, (unsigned int)outmsg.iov_len, XDR_ENCODE); if (!xdr_exports (&xdr, elist)) goto ret; ret = xdr_decoded_length (xdr); ret: return ret; }