Example #1
0
bool_t
xdr_commit3res (XDR *xdrs, commit3res *objp)
{
	 if (!xdr_nfsstat3 (xdrs, &objp->status))
		 return FALSE;
	switch (objp->status) {
	case NFS3_OK:
		 if (!xdr_commit3resok (xdrs, &objp->commit3res_u.resok))
			 return FALSE;
		break;
	default:
		 if (!xdr_commit3resfail (xdrs, &objp->commit3res_u.resfail))
			 return FALSE;
		break;
	}
	return TRUE;
}
Example #2
0
bool_t
xdr_commit3res(XDR *xdrs, commit3res *objp)
{

	 register int32_t *buf;

	 if (!xdr_nfsstat3(xdrs, &objp->status)) {
		 return (FALSE);
	 }
	switch (objp->status) {
	case NFS3_OK:
		 if (!xdr_commit3resok(xdrs, &objp->RPC_UNION_NAME(commit3res).resok)) {
			 return (FALSE);
		 }
		break;
	default:
		 if (!xdr_wcc_data(xdrs, &objp->RPC_UNION_NAME(commit3res).resfail)) {
			 return (FALSE);
		 }
		break;
	}
	return (TRUE);
}