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


C++ xdr_netobj函数代码示例

本文整理汇总了C++中xdr_netobj函数的典型用法代码示例。如果您正苦于以下问题:C++ xdr_netobj函数的具体用法?C++ xdr_netobj怎么用?C++ xdr_netobj使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了xdr_netobj函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: xdr_nlm4_share

bool_t
xdr_nlm4_share (XDR *xdrs, nlm4_share *objp)
{
    if (!xdr_string (xdrs, &objp->caller_name, MAXNAMELEN))
        return FALSE;
    if (!xdr_netobj (xdrs, &objp->fh))
        return FALSE;
    if (!xdr_netobj (xdrs, &objp->oh))
        return FALSE;
    if (!xdr_fsh_mode (xdrs, &objp->mode))
        return FALSE;
    if (!xdr_fsh_access (xdrs, &objp->access))
        return FALSE;
    return TRUE;
}
开发者ID:rsevero,项目名称:glusterfs,代码行数:15,代码来源:nlm4-xdr.c

示例2: xdr_nlm4_share

bool_t xdr_nlm4_share(XDR * xdrs, nlm4_share * objp)
{
  register int32_t *buf;

  if(!xdr_string(xdrs, &objp->caller_name, LM_MAXSTRLEN))
    return FALSE;
  if(!xdr_netobj(xdrs, &objp->fh))
    return FALSE;
  if(!xdr_netobj(xdrs, &objp->oh))
    return FALSE;
  if(!xdr_fsh4_mode(xdrs, &objp->mode))
    return FALSE;
  if(!xdr_fsh4_access(xdrs, &objp->access))
    return FALSE;
  return TRUE;
}
开发者ID:alangenfeld,项目名称:cloud-nfs,代码行数:16,代码来源:xdr_nlm4.c

示例3: _xdr_nis_result

bool_t
_xdr_nis_result (XDR *xdrs, nis_result *objp)
{
  bool_t res = xdr_nis_error (xdrs, &objp->status);
  if (__builtin_expect (res, TRUE))
    {
      res = xdr_array (xdrs, (void *) &objp->objects.objects_val,
		       &objp->objects.objects_len, ~0,
		       sizeof (nis_object), (xdrproc_t) _xdr_nis_object);
      if (__builtin_expect (res, TRUE))
	{
	  res = xdr_netobj (xdrs, &objp->cookie);
	  if (__builtin_expect (res, TRUE))
	    {
	      res = xdr_uint32_t (xdrs, &objp->zticks);
	      if (__builtin_expect (res, TRUE))
		{
		  res = xdr_uint32_t (xdrs, &objp->dticks);
		  if (__builtin_expect (res, TRUE))
		    {
		      res = xdr_uint32_t (xdrs, &objp->aticks);
		      if (__builtin_expect (res, TRUE))
			res = xdr_uint32_t (xdrs, &objp->cticks);
		    }
		}
	    }
	}
    }
  return res;
}
开发者ID:siddhesh,项目名称:glibc,代码行数:30,代码来源:nis_xdr.c

示例4: xdr_nlm4_lock

bool_t
xdr_nlm4_lock (XDR *xdrs, nlm4_lock *objp)
{
    if (!xdr_string (xdrs, &objp->caller_name, MAXNAMELEN))
        return FALSE;
    if (!xdr_netobj (xdrs, &objp->fh))
        return FALSE;
    if (!xdr_netobj (xdrs, &objp->oh))
        return FALSE;
    if (!xdr_uint32_t (xdrs, &objp->svid))
        return FALSE;
    if (!xdr_uint64_t (xdrs, &objp->l_offset))
        return FALSE;
    if (!xdr_uint64_t (xdrs, &objp->l_len))
        return FALSE;
    return TRUE;
}
开发者ID:rsevero,项目名称:glusterfs,代码行数:17,代码来源:nlm4-xdr.c

示例5: xdr_nlm4_res

bool_t
xdr_nlm4_res (XDR *xdrs, nlm4_res *objp)
{
    if (!xdr_netobj (xdrs, &objp->cookie))
        return FALSE;
    if (!xdr_nlm4_stat (xdrs, &objp->stat))
        return FALSE;
    return TRUE;
}
开发者ID:rsevero,项目名称:glusterfs,代码行数:9,代码来源:nlm4-xdr.c

示例6: xdr_nlm4_lock

bool_t xdr_nlm4_lock(XDR * xdrs, nlm4_lock * objp)
{
  register int32_t *buf;

  if(!xdr_string(xdrs, &objp->caller_name, LM_MAXSTRLEN))
    return FALSE;
  if(!xdr_netobj(xdrs, &objp->fh))
    return FALSE;
  if(!xdr_netobj(xdrs, &objp->oh))
    return FALSE;
  if(!xdr_int32_t(xdrs, &objp->svid))
    return FALSE;
  if(!xdr_uint64_t(xdrs, &objp->l_offset))
    return FALSE;
  if(!xdr_uint64_t(xdrs, &objp->l_len))
    return FALSE;
  return TRUE;
}
开发者ID:alangenfeld,项目名称:cloud-nfs,代码行数:18,代码来源:xdr_nlm4.c

示例7: xdr_nlm4_unlockargs

bool_t
xdr_nlm4_unlockargs (XDR *xdrs, nlm4_unlockargs *objp)
{
    if (!xdr_netobj (xdrs, &objp->cookie))
        return FALSE;
    if (!xdr_nlm4_lock (xdrs, &objp->alock))
        return FALSE;
    return TRUE;
}
开发者ID:rsevero,项目名称:glusterfs,代码行数:9,代码来源:nlm4-xdr.c

示例8: xdr_cryptkeyarg2

bool_t
xdr_cryptkeyarg2(XDR *xdrs, cryptkeyarg2 *objp)
{
	if (!xdr_netnamestr(xdrs, &objp->remotename))
		return (FALSE);
	if (!xdr_netobj(xdrs, &objp->remotekey))
		return (FALSE);
	return (xdr_des_block(xdrs, &objp->deskey));
}
开发者ID:BjoKaSH,项目名称:mac-zfs,代码行数:9,代码来源:key_prot.c

示例9: xdr_nlm4_testres

bool_t xdr_nlm4_testres(XDR * xdrs, nlm4_testres * objp)
{
  register int32_t *buf;

  if(!xdr_netobj(xdrs, &objp->cookie))
    return FALSE;
  if(!xdr_nlm4_testrply(xdrs, &objp->test_stat))
    return FALSE;
  return TRUE;
}
开发者ID:alangenfeld,项目名称:cloud-nfs,代码行数:10,代码来源:xdr_nlm4.c

示例10: xdr_nlm4_shareres

bool_t
xdr_nlm4_shareres (XDR *xdrs, nlm4_shareres *objp)
{
    if (!xdr_netobj (xdrs, &objp->cookie))
        return FALSE;
    if (!xdr_nlm4_stats (xdrs, &objp->stat))
        return FALSE;
    if (!xdr_int (xdrs, &objp->sequence))
        return FALSE;
    return TRUE;
}
开发者ID:rsevero,项目名称:glusterfs,代码行数:11,代码来源:nlm4-xdr.c

示例11: xdr_nlm4_shareargs

bool_t
xdr_nlm4_shareargs (XDR *xdrs, nlm4_shareargs *objp)
{
    if (!xdr_netobj (xdrs, &objp->cookie))
        return FALSE;
    if (!xdr_nlm4_share (xdrs, &objp->share))
        return FALSE;
    if (!xdr_bool (xdrs, &objp->reclaim))
        return FALSE;
    return TRUE;
}
开发者ID:rsevero,项目名称:glusterfs,代码行数:11,代码来源:nlm4-xdr.c

示例12: xdr_cryptkeyarg2

bool
xdr_cryptkeyarg2(XDR *xdrs, cryptkeyarg2 *objp)
{
	if (!xdr_netnamestr(xdrs, &objp->remotename))
		return (false);
	if (!xdr_netobj(xdrs, &objp->remotekey))
		return (false);
	if (!xdr_des_block(xdrs, &objp->deskey))
		return (false);
	return (true);
}
开发者ID:hkoehler,项目名称:ntirpc,代码行数:11,代码来源:key_prot_xdr.c

示例13: xdr_nlm4_testargs

bool_t
xdr_nlm4_testargs (XDR *xdrs, nlm4_testargs *objp)
{
    if (!xdr_netobj (xdrs, &objp->cookie))
        return FALSE;
    if (!xdr_bool (xdrs, &objp->exclusive))
        return FALSE;
    if (!xdr_nlm4_lock (xdrs, &objp->alock))
        return FALSE;
    return TRUE;
}
开发者ID:rsevero,项目名称:glusterfs,代码行数:11,代码来源:nlm4-xdr.c

示例14: xdr_nlm_unlockargs

bool_t
xdr_nlm_unlockargs (XDR *xdrs, nlm_unlockargs *objp)
{
	register int32_t *buf;

	 if (!xdr_netobj (xdrs, &objp->cookie))
		 return FALSE;
	 if (!xdr_nlm_lock (xdrs, &objp->alock))
		 return FALSE;
	return TRUE;
}
开发者ID:ArmstrongJ,项目名称:MiNTLib,代码行数:11,代码来源:xnlm_prot.c

示例15: xdr_nlm_shareres

bool_t
xdr_nlm_shareres (XDR *xdrs, nlm_shareres *objp)
{
	register int32_t *buf;

	 if (!xdr_netobj (xdrs, &objp->cookie))
		 return FALSE;
	 if (!xdr_nlm_stats (xdrs, &objp->stat))
		 return FALSE;
	 if (!xdr_int (xdrs, &objp->sequence))
		 return FALSE;
	return TRUE;
}
开发者ID:ArmstrongJ,项目名称:MiNTLib,代码行数:13,代码来源:xnlm_prot.c


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