示例#1
0
bool_t
xdr_write3res (XDR *xdrs, write3res *objp)
{
	 if (!xdr_nfsstat3 (xdrs, &objp->status))
		 return FALSE;
	switch (objp->status) {
	case NFS3_OK:
		 if (!xdr_write3resok (xdrs, &objp->write3res_u.resok))
			 return FALSE;
		break;
	default:
		 if (!xdr_write3resfail (xdrs, &objp->write3res_u.resfail))
			 return FALSE;
		break;
	}
	return TRUE;
}
示例#2
0
文件: nfs3_prot.c 项目: bougyman/sfs
bool_t
xdr_write3res(XDR *xdrs, write3res *objp)
{

	 register int32_t *buf;

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