当前位置: 首页>>代码示例>>C++>>正文


C++ xdr_nfs_fh3函数代码示例

本文整理汇总了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;
}
开发者ID:Byreddys,项目名称:glusterfs,代码行数:31,代码来源:xdr-nfs3.c

示例2: xdr_fsstat_args

bool_t
xdr_fsstat_args(XDR *xdrs, FSSTAT3args *objp)
{
	if (!xdr_nfs_fh3(xdrs, &objp->fsroot))
		return FALSE;
	return TRUE;
}
开发者ID:Abioy,项目名称:sheepdog,代码行数:7,代码来源:xdr.c

示例3: xdr_FSINFO3args

bool_t
xdr_FSINFO3args(register XDR *xdrs, FSINFO3args *objp)
{
	if (!xdr_nfs_fh3(xdrs, &objp->fsroot))
		return (FALSE);
	return (TRUE);
}
开发者ID:malooei,项目名称:yeejoin-workspace,代码行数:7,代码来源:nfs_xdr.c

示例4: xdr_GETATTR3args

bool_t
xdr_GETATTR3args(register XDR *xdrs, GETATTR3args *objp)
{
	if (!xdr_nfs_fh3(xdrs, &objp->object))
		return (FALSE);
	return (TRUE);
}
开发者ID:malooei,项目名称:yeejoin-workspace,代码行数:7,代码来源:nfs_xdr.c

示例5: xdr_PATHCONF3args

bool_t
xdr_PATHCONF3args(register XDR *xdrs, PATHCONF3args *objp)
{
	if (!xdr_nfs_fh3(xdrs, &objp->object))
		return (FALSE);
	return (TRUE);
}
开发者ID:malooei,项目名称:yeejoin-workspace,代码行数:7,代码来源:nfs_xdr.c

示例6: xdr_getattr3args

bool_t
xdr_getattr3args (XDR *xdrs, getattr3args *objp)
{
	 if (!xdr_nfs_fh3 (xdrs, &objp->object))
		 return FALSE;
	return TRUE;
}
开发者ID:Byreddys,项目名称:glusterfs,代码行数:7,代码来源:xdr-nfs3.c

示例7: xdr_pathconf3args

bool_t
xdr_pathconf3args (XDR *xdrs, pathconf3args *objp)
{
	 if (!xdr_nfs_fh3 (xdrs, &objp->object))
		 return FALSE;
	return TRUE;
}
开发者ID:Byreddys,项目名称:glusterfs,代码行数:7,代码来源:xdr-nfs3.c

示例8: xdr_readlink3args

bool_t
xdr_readlink3args (XDR *xdrs, readlink3args *objp)
{
	 if (!xdr_nfs_fh3 (xdrs, &objp->symlink))
		 return FALSE;
	return TRUE;
}
开发者ID:Byreddys,项目名称:glusterfs,代码行数:7,代码来源:xdr-nfs3.c

示例9: xdr_fsinfo3args

bool_t
xdr_fsinfo3args (XDR *xdrs, fsinfo3args *objp)
{
	 if (!xdr_nfs_fh3 (xdrs, &objp->fsroot))
		 return FALSE;
	return TRUE;
}
开发者ID:Byreddys,项目名称:glusterfs,代码行数:7,代码来源:xdr-nfs3.c

示例10: xdr_READLINK3args

bool_t
xdr_READLINK3args(register XDR *xdrs, READLINK3args *objp)
{
	if (!xdr_nfs_fh3(xdrs, &objp->symlink))
		return (FALSE);
	return (TRUE);
}
开发者ID:malooei,项目名称:yeejoin-workspace,代码行数:7,代码来源:nfs_xdr.c

示例11: xdr_FSSTAT3args

bool_t
xdr_FSSTAT3args(XDR *xdrs, FSSTAT3args *objp)
{

	if (!xdr_nfs_fh3(xdrs, &objp->fsroot))
		return (FALSE);
	return (TRUE);
}
开发者ID:fadingred,项目名称:kfs,代码行数:8,代码来源:nfs3xdr.c

示例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);
}
开发者ID:malooei,项目名称:yeejoin-workspace,代码行数:9,代码来源:nfs_xdr.c

示例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);
}
开发者ID:malooei,项目名称:yeejoin-workspace,代码行数:9,代码来源:nfs_xdr.c

示例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);
}
开发者ID:malooei,项目名称:yeejoin-workspace,代码行数:9,代码来源:nfs_xdr.c

示例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;
}
开发者ID:Byreddys,项目名称:glusterfs,代码行数:9,代码来源:xdr-nfs3.c


注:本文中的xdr_nfs_fh3函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。