本文整理汇总了C++中xdr_nfs_fh3函数的典型用法代码示例。如果您正苦于以下问题:C++ xdr_nfs_fh3函数的具体用法?C++ xdr_nfs_fh3怎么用?C++ xdr_nfs_fh3使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了xdr_nfs_fh3函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: xdr_write3args
bool_t
xdr_write3args (XDR *xdrs, write3args *objp)
{
if (!xdr_nfs_fh3 (xdrs, &objp->file))
return FALSE;
if (!xdr_offset3 (xdrs, &objp->offset))
return FALSE;
if (!xdr_count3 (xdrs, &objp->count))
return FALSE;
if (!xdr_stable_how (xdrs, &objp->stable))
return FALSE;
/* Added specifically to avoid copies from the xdr buffer into
* the write3args structure, which will also require an already
* allocated buffer. That is not optimal.
*/
if (!xdr_u_int (xdrs, (u_int *) &objp->data.data_len))
return FALSE;
/* The remaining bytes in the xdr buffer are the bytes that need to be
* written. See how these bytes are extracted in the xdr_to_write3args
* code path. Be careful, while using the write3args structure, since
* only the data.data_len has been filled. The actual data is
* extracted in xdr_to_write3args path.
*/
/* if (!xdr_bytes (xdrs, (char **)&objp->data.data_val, (u_int *) &objp->data.data_len, ~0))
return FALSE;
*/
return TRUE;
}
示例2: xdr_fsstat_args
bool_t
xdr_fsstat_args(XDR *xdrs, FSSTAT3args *objp)
{
if (!xdr_nfs_fh3(xdrs, &objp->fsroot))
return FALSE;
return TRUE;
}
示例3: xdr_FSINFO3args
bool_t
xdr_FSINFO3args(register XDR *xdrs, FSINFO3args *objp)
{
if (!xdr_nfs_fh3(xdrs, &objp->fsroot))
return (FALSE);
return (TRUE);
}
示例4: xdr_GETATTR3args
bool_t
xdr_GETATTR3args(register XDR *xdrs, GETATTR3args *objp)
{
if (!xdr_nfs_fh3(xdrs, &objp->object))
return (FALSE);
return (TRUE);
}
示例5: xdr_PATHCONF3args
bool_t
xdr_PATHCONF3args(register XDR *xdrs, PATHCONF3args *objp)
{
if (!xdr_nfs_fh3(xdrs, &objp->object))
return (FALSE);
return (TRUE);
}
示例6: xdr_getattr3args
bool_t
xdr_getattr3args (XDR *xdrs, getattr3args *objp)
{
if (!xdr_nfs_fh3 (xdrs, &objp->object))
return FALSE;
return TRUE;
}
示例7: xdr_pathconf3args
bool_t
xdr_pathconf3args (XDR *xdrs, pathconf3args *objp)
{
if (!xdr_nfs_fh3 (xdrs, &objp->object))
return FALSE;
return TRUE;
}
示例8: xdr_readlink3args
bool_t
xdr_readlink3args (XDR *xdrs, readlink3args *objp)
{
if (!xdr_nfs_fh3 (xdrs, &objp->symlink))
return FALSE;
return TRUE;
}
示例9: xdr_fsinfo3args
bool_t
xdr_fsinfo3args (XDR *xdrs, fsinfo3args *objp)
{
if (!xdr_nfs_fh3 (xdrs, &objp->fsroot))
return FALSE;
return TRUE;
}
示例10: xdr_READLINK3args
bool_t
xdr_READLINK3args(register XDR *xdrs, READLINK3args *objp)
{
if (!xdr_nfs_fh3(xdrs, &objp->symlink))
return (FALSE);
return (TRUE);
}
示例11: xdr_FSSTAT3args
bool_t
xdr_FSSTAT3args(XDR *xdrs, FSSTAT3args *objp)
{
if (!xdr_nfs_fh3(xdrs, &objp->fsroot))
return (FALSE);
return (TRUE);
}
示例12: xdr_diropargs3
bool_t
xdr_diropargs3(register XDR *xdrs, diropargs3 *objp)
{
if (!xdr_nfs_fh3(xdrs, &objp->dir))
return (FALSE);
if (!xdr_filename3(xdrs, &objp->name))
return (FALSE);
return (TRUE);
}
示例13: xdr_LINK3args
bool_t
xdr_LINK3args(register XDR *xdrs, LINK3args *objp)
{
if (!xdr_nfs_fh3(xdrs, &objp->file))
return (FALSE);
if (!xdr_diropargs3(xdrs, &objp->link))
return (FALSE);
return (TRUE);
}
示例14: xdr_ACCESS3args
bool_t
xdr_ACCESS3args(register XDR *xdrs, ACCESS3args *objp)
{
if (!xdr_nfs_fh3(xdrs, &objp->object))
return (FALSE);
if (!xdr_uint32(xdrs, &objp->access))
return (FALSE);
return (TRUE);
}
示例15: xdr_link3args
bool_t
xdr_link3args (XDR *xdrs, link3args *objp)
{
if (!xdr_nfs_fh3 (xdrs, &objp->file))
return FALSE;
if (!xdr_diropargs3 (xdrs, &objp->link))
return FALSE;
return TRUE;
}