Exemplo n.º 1
0
bool_t
xdr_fattr3 (XDR *xdrs, fattr3 *objp)
{
	 if (!xdr_ftype3 (xdrs, &objp->type))
		 return FALSE;
	 if (!xdr_mode3 (xdrs, &objp->mode))
		 return FALSE;
	 if (!xdr_uint32 (xdrs, &objp->nlink))
		 return FALSE;
	 if (!xdr_uid3 (xdrs, &objp->uid))
		 return FALSE;
	 if (!xdr_gid3 (xdrs, &objp->gid))
		 return FALSE;
	 if (!xdr_size3 (xdrs, &objp->size))
		 return FALSE;
	 if (!xdr_size3 (xdrs, &objp->used))
		 return FALSE;
	 if (!xdr_specdata3 (xdrs, &objp->rdev))
		 return FALSE;
	 if (!xdr_uint64 (xdrs, &objp->fsid))
		 return FALSE;
	 if (!xdr_fileid3 (xdrs, &objp->fileid))
		 return FALSE;
	 if (!xdr_nfstime3 (xdrs, &objp->atime))
		 return FALSE;
	 if (!xdr_nfstime3 (xdrs, &objp->mtime))
		 return FALSE;
	 if (!xdr_nfstime3 (xdrs, &objp->ctime))
		 return FALSE;
	return TRUE;
}
Exemplo n.º 2
0
bool_t
xdr_devicedata3 (XDR *xdrs, devicedata3 *objp)
{
	 if (!xdr_sattr3 (xdrs, &objp->dev_attributes))
		 return FALSE;
	 if (!xdr_specdata3 (xdrs, &objp->spec))
		 return FALSE;
	return TRUE;
}
Exemplo n.º 3
0
bool_t
xdr_devicedata3(register XDR *xdrs, devicedata3 *objp)
{
	if (!xdr_sattr3(xdrs, &objp->dev_attributes))
		return (FALSE);
	if (!xdr_specdata3(xdrs, &objp->spec))
		return (FALSE);
	return (TRUE);
}
Exemplo n.º 4
0
bool_t
xdr_ex_fattr3(XDR *xdrs, ex_fattr3 *objp)
{

	 register int32_t *buf;

	 if (!xdr_ftype3(xdrs, &objp->type)) {
		 return (FALSE);
	 }
	 if (!xdr_uint32(xdrs, &objp->mode)) {
		 return (FALSE);
	 }
	 if (!xdr_uint32(xdrs, &objp->nlink)) {
		 return (FALSE);
	 }
	 if (!xdr_uint32(xdrs, &objp->uid)) {
		 return (FALSE);
	 }
	 if (!xdr_uint32(xdrs, &objp->gid)) {
		 return (FALSE);
	 }
	 if (!xdr_uint64(xdrs, &objp->size)) {
		 return (FALSE);
	 }
	 if (!xdr_uint64(xdrs, &objp->used)) {
		 return (FALSE);
	 }
	 if (!xdr_specdata3(xdrs, &objp->rdev)) {
		 return (FALSE);
	 }
	 if (!xdr_uint64(xdrs, &objp->fsid)) {
		 return (FALSE);
	 }
	 if (!xdr_uint64(xdrs, &objp->fileid)) {
		 return (FALSE);
	 }
	 if (!xdr_nfstime3(xdrs, &objp->atime)) {
		 return (FALSE);
	 }
	 if (!xdr_nfstime3(xdrs, &objp->mtime)) {
		 return (FALSE);
	 }
	 if (!xdr_nfstime3(xdrs, &objp->ctime)) {
		 return (FALSE);
	 }
	 if (!xdr_uint32(xdrs, &objp->expire)) {
		 return (FALSE);
	 }
	return (TRUE);
}
Exemplo n.º 5
0
bool_t
xdr_devicedata3(XDR *xdrs, devicedata3 *objp)
{

	 register int32_t *buf;

	 if (!xdr_sattr3(xdrs, &objp->dev_attributes)) {
		 return (FALSE);
	 }
	 if (!xdr_specdata3(xdrs, &objp->spec)) {
		 return (FALSE);
	 }
	return (TRUE);
}