예제 #1
0
bool_t
xdr_symlinkargs (XDR *xdrs, symlinkargs *objp)
{
	 if (!xdr_diropargs (xdrs, &objp->from))
		 return FALSE;
	 if (!xdr_nfspath (xdrs, &objp->to))
		 return FALSE;
	 if (!xdr_sattr (xdrs, &objp->attributes))
		 return FALSE;
	return TRUE;
}
예제 #2
0
bool_t
xdr_readlinkres(XDR *xdrs, readlinkres *objp)
{

	if (!xdr_int(xdrs, &objp->status))
		return (FALSE);
	switch (objp->status) {
	case NFS_OK:
		if (!xdr_nfspath(xdrs, &objp->readlinkres_u.data))
			return (FALSE);
		break;
	}
	return (TRUE);
}
예제 #3
0
bool_t
xdr_readlinkres (XDR *xdrs, readlinkres *objp)
{
	 if (!xdr_nfsstat (xdrs, &objp->status))
		 return FALSE;
	switch (objp->status) {
	case NFS_OK:
		 if (!xdr_nfspath (xdrs, &objp->readlinkres_u.data))
			 return FALSE;
		break;
	default:
		break;
	}
	return TRUE;
}
예제 #4
0
bool_t
xdr_symlinkargs(XDR *xdrs, nfssymlinkargs *objp)
{
  if (amuDebug(D_XDRTRACE))
    plog(XLOG_DEBUG, "xdr_symlinkargs:");

  if (!xdr_diropargs(xdrs, &objp->sla_from)) {
    return (FALSE);
  }
  if (!xdr_nfspath(xdrs, &objp->sla_to)) {
    return (FALSE);
  }
  if (!xdr_sattr(xdrs, &objp->sla_attributes)) {
    return (FALSE);
  }
  return (TRUE);
}
예제 #5
0
bool_t
xdr_symlinkargs(XDR *xdrs, symlinkargs *objp)
{

	 register long *buf;

	 if (!xdr_diropargs(xdrs, &objp->from)) {
		 return (FALSE);
	 }
	 if (!xdr_nfspath(xdrs, &objp->to)) {
		 return (FALSE);
	 }
	 if (!xdr_sattr(xdrs, &objp->attributes)) {
		 return (FALSE);
	 }
	return (TRUE);
}
예제 #6
0
bool_t
xdr_readlinkres(XDR *xdrs, nfsreadlinkres *objp)
{
  if (amuDebug(D_XDRTRACE))
    plog(XLOG_DEBUG, "xdr_readlinkres:");

  if (!xdr_nfsstat(xdrs, &objp->rlr_status)) {
    return (FALSE);
  }
  switch (objp->rlr_status) {
  case NFS_OK:
    if (!xdr_nfspath(xdrs, &objp->rlr_u.rlr_data_u)) {
      return (FALSE);
    }
    break;
  default:
    break;
  }
  return (TRUE);
}
예제 #7
0
bool_t
xdr_readlinkres(XDR *xdrs, readlinkres *objp)
{

	 register long *buf;

	 if (!xdr_nfsstat(xdrs, &objp->status)) {
		 return (FALSE);
	 }
	switch (objp->status) {
	case NFS_OK:
		 if (!xdr_nfspath(xdrs, &objp->readlinkres_u.data)) {
			 return (FALSE);
		 }
		break;
	default:
		break;
	}
	return (TRUE);
}