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


C++ xdr_pointer函数代码示例

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


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

示例1: xdr_BensonTables

extern void xdr_BensonTables(XDR *stream, char **eleptrp)
{
     BensonTables *eleptr;
     eleptr = (BensonTables *) eleptrp;
     xdr_INT(stream,(char **) &(eleptr->ID));
     if(eleptr->ID == NO_STRUCTURE_CODE)
            {
             eleptr = 0;
             return;
            }
     xdr_NAME(stream,(char **) &(eleptr->Name));

     xdr_pointer(stream,
          (char **) &(eleptr->SecondOrder),
          BensonSecondOrderTableSize,
                 (xdrproc_t) xdr_BensonSecondOrderTable);
     xdr_pointer(stream,
          (char **) &(eleptr->BensonTree),
          BensonCalculationSize,
                 (xdrproc_t) xdr_BensonCalculation);
     xdr_pointer(stream,
          (char **) &(eleptr->Translation),
          SetOfBensonAtomTranslationPairsSize,
                 (xdrproc_t) xdr_SetOfBensonAtomTranslationPairs);
}
开发者ID:blurock,项目名称:REACT,代码行数:25,代码来源:thermo.c

示例2: xdr_amq_mount_tree

bool_t
xdr_amq_mount_tree(XDR *xdrs, amq_mount_tree *objp)
{

  if (!xdr_amq_string(xdrs, &objp->mt_mountinfo)) {
    return (FALSE);
  }

  if (!xdr_amq_string(xdrs, &objp->mt_directory)) {
    return (FALSE);
  }

  if (!xdr_amq_string(xdrs, &objp->mt_mountpoint)) {
    return (FALSE);
  }

  if (!xdr_amq_string(xdrs, &objp->mt_type)) {
    return (FALSE);
  }

  if (!xdr_time_type(xdrs, &objp->mt_mounttime)) {
    return (FALSE);
  }

  if (!xdr_u_short(xdrs, &objp->mt_mountuid)) {
    return (FALSE);
  }

  if (!xdr_int(xdrs, &objp->mt_getattr)) {
    return (FALSE);
  }

  if (!xdr_int(xdrs, &objp->mt_lookup)) {
    return (FALSE);
  }

  if (!xdr_int(xdrs, &objp->mt_readdir)) {
    return (FALSE);
  }

  if (!xdr_int(xdrs, &objp->mt_readlink)) {
    return (FALSE);
  }

  if (!xdr_int(xdrs, &objp->mt_statfs)) {
    return (FALSE);
  }

  if (!xdr_pointer(xdrs, (char **) &objp->mt_next, sizeof(amq_mount_tree), (XDRPROC_T_TYPE) xdr_amq_mount_tree)) {
    return (FALSE);
  }

  if (!xdr_pointer(xdrs, (char **) &objp->mt_child, sizeof(amq_mount_tree), (XDRPROC_T_TYPE) xdr_amq_mount_tree)) {
    return (FALSE);
  }

  return (TRUE);
}
开发者ID:B-Rich,项目名称:osf_db,代码行数:58,代码来源:614_1.c

示例3: xdr_cmd_log

bool_t
xdr_cmd_log (XDR *xdrs, cmd_log *objp)
{
	register int32_t *buf;

	 if (!xdr_pointer (xdrs, (char **)&objp->first, sizeof (cmd_log_entry), (xdrproc_t) xdr_cmd_log_entry))
		 return FALSE;
	 if (!xdr_pointer (xdrs, (char **)&objp->last, sizeof (cmd_log_entry), (xdrproc_t) xdr_cmd_log_entry))
		 return FALSE;
	return TRUE;
}
开发者ID:DaveSinclair,项目名称:DAF,代码行数:11,代码来源:daf_protocol_xdr.c

示例4: xdr_ypbind_binding

bool_t
xdr_ypbind_binding(XDR *xdrs, ypbind_binding *objp)
{
	if (!xdr_pointer(xdrs, (char **)&objp->ypbind_nconf,
			sizeof (struct netconfig), xdr_netconfig))
		return (FALSE);
	if (!xdr_pointer(xdrs, (char **)&objp->ypbind_svcaddr,
			sizeof (struct netbuf), xdr_netbuf))
		return (FALSE);
	if (!xdr_string(xdrs, &objp->ypbind_servername, ~0))
		return (FALSE);
	if (!xdr_rpcvers(xdrs, &objp->ypbind_hi_vers))
		return (FALSE);
	return (xdr_rpcvers(xdrs, &objp->ypbind_lo_vers));
}
开发者ID:apprisi,项目名称:illumos-gate,代码行数:15,代码来源:yp_b_xdr.c

示例5: xdr_exports

bool_t
xdr_exports (XDR *xdrs, exports *objp)
{
	 if (!xdr_pointer (xdrs, (char **)objp, sizeof (struct exportnode), (xdrproc_t) xdr_exportnode))
		 return FALSE;
	return TRUE;
}
开发者ID:Distrotech,项目名称:gnome-vfs,代码行数:7,代码来源:nfs-method_mount_xdr.c

示例6: smb_posix_grps_helper_xdr

static bool_t
smb_posix_grps_helper_xdr(XDR *xdrs, char **identity)
{
	uint32_t pos, len;
	uint32_t cnt;
	bool_t rc;

	if (xdrs->x_op == XDR_DECODE) {
		pos = xdr_getpos(xdrs);

		if (!xdr_bool(xdrs, &rc))
			return (FALSE);

		if (!xdr_uint32_t(xdrs, &cnt))
			return (FALSE);

		rc = xdr_setpos(xdrs, pos);
		if (rc == FALSE)
			return (FALSE);
	} else {
		if (*identity == NULL)
			return (FALSE);
		cnt = ((smb_posix_grps_t *)(uintptr_t)*identity)->pg_ngrps;
	}

	len = SMB_POSIX_GRPS_SIZE(cnt);

	if (!xdr_pointer(xdrs, identity, len, (xdrproc_t)smb_posix_grps_xdr))
		return (FALSE);
	return (TRUE);
}
开发者ID:mikess,项目名称:illumos-gate,代码行数:31,代码来源:smb_token_xdr.c

示例7: smb_token_xdr

bool_t
smb_token_xdr(XDR *xdrs, smb_token_t *objp)
{
	if (!smb_id_xdr(xdrs, &objp->tkn_user))
		return (FALSE);
	if (!smb_id_xdr(xdrs, &objp->tkn_owner))
		return (FALSE);
	if (!smb_id_xdr(xdrs, &objp->tkn_primary_grp))
		return (FALSE);
	if (!smb_ids_xdr(xdrs, &objp->tkn_win_grps))
		return (FALSE);
	if (!smb_privset_helper_xdr(xdrs, (char **)&objp->tkn_privileges))
		return (FALSE);
	if (!xdr_string(xdrs, &objp->tkn_account_name, ~0))
		return (FALSE);
	if (!xdr_string(xdrs, &objp->tkn_domain_name, ~0))
		return (FALSE);
	if (!xdr_uint32_t(xdrs, &objp->tkn_flags))
		return (FALSE);
	if (!xdr_uint32_t(xdrs, &objp->tkn_audit_sid))
		return (FALSE);
	if (!xdr_pointer(xdrs, (char **)&objp->tkn_session_key,
	    sizeof (smb_session_key_t), (xdrproc_t)smb_session_key_xdr))
		return (FALSE);
	if (!smb_posix_grps_helper_xdr(xdrs, (char **)&objp->tkn_posix_grps))
		return (FALSE);
	return (TRUE);
}
开发者ID:mikess,项目名称:illumos-gate,代码行数:28,代码来源:smb_token_xdr.c

示例8: xdr_groups

bool_t
xdr_groups (XDR *xdrs, groups *objp)
{
	 if (!xdr_pointer (xdrs, (char **)objp, sizeof (struct groupnode), (xdrproc_t) xdr_groupnode))
		 return FALSE;
	return TRUE;
}
开发者ID:Distrotech,项目名称:gnome-vfs,代码行数:7,代码来源:nfs-method_mount_xdr.c

示例9: xdr_rpcbs_addrlist

bool_t
xdr_rpcbs_addrlist(XDR *xdrs, rpcbs_addrlist *objp)
{
	struct rpcbs_addrlist **pnext;

	    if (!xdr_u_int32_t(xdrs, &objp->prog)) {
		return (FALSE);
	    }
	    if (!xdr_u_int32_t(xdrs, &objp->vers)) {
		return (FALSE);
	    }
	    if (!xdr_int(xdrs, &objp->success)) {
		return (FALSE);
	    }
	    if (!xdr_int(xdrs, &objp->failure)) {
		return (FALSE);
	    }
	    if (!xdr_string(xdrs, &objp->netid, (u_int)~0)) {
		return (FALSE);
	    }

	    pnext = &objp->next;

	    if (!xdr_pointer(xdrs, (char **) pnext,
			sizeof (rpcbs_addrlist),
			(xdrproc_t)xdr_rpcbs_addrlist)) {
		return (FALSE);
	    }

	return (TRUE);
}
开发者ID:hmatyschok,项目名称:MeshBSD,代码行数:31,代码来源:rpcb_st_xdr.c

示例10: xdr_ex_entryplus3

bool_t
xdr_ex_entryplus3(XDR *xdrs, ex_entryplus3 *objp)
{

	 register int32_t *buf;

	 if (!xdr_uint64(xdrs, &objp->fileid)) {
		 return (FALSE);
	 }
	 if (!xdr_filename3(xdrs, &objp->name)) {
		 return (FALSE);
	 }
	 if (!xdr_uint64(xdrs, &objp->cookie)) {
		 return (FALSE);
	 }
	 if (!xdr_ex_post_op_attr(xdrs, &objp->name_attributes)) {
		 return (FALSE);
	 }
	 if (!xdr_post_op_fh3(xdrs, &objp->name_handle)) {
		 return (FALSE);
	 }
	 if (!xdr_pointer(xdrs, (char **)&objp->nextentry, sizeof(ex_entryplus3), (xdrproc_t)xdr_ex_entryplus3)) {
		 return (FALSE);
	 }
	return (TRUE);
}
开发者ID:bougyman,项目名称:sfs,代码行数:26,代码来源:nfs3exp_prot.c

示例11: xdr_mountlist

bool_t
xdr_mountlist (XDR *xdrs, mountlist *objp)
{
	 if (!xdr_pointer (xdrs, (char **)objp, sizeof (struct mountbody), (xdrproc_t) xdr_mountbody))
		 return FALSE;
	return TRUE;
}
开发者ID:Distrotech,项目名称:gnome-vfs,代码行数:7,代码来源:nfs-method_mount_xdr.c

示例12: xdr_amq_mount_tree_p

bool_t
xdr_amq_mount_tree_p(XDR *xdrs, amq_mount_tree_p *objp)
{
  if (!xdr_pointer(xdrs, (char **) objp, sizeof(amq_mount_tree), (XDRPROC_T_TYPE) xdr_amq_mount_tree)) {
    return (FALSE);
  }
  return (TRUE);
}
开发者ID:B-Rich,项目名称:osf_db,代码行数:8,代码来源:614_1.c

示例13: xdr_exports

bool_t
xdr_exports(register XDR *xdrs, exports *objp)
{

	if (!xdr_pointer(xdrs, (char **)objp, sizeof (struct exportnode), (xdrproc_t) xdr_exportnode))
		return (FALSE);
	return (TRUE);
}
开发者ID:qyqx,项目名称:scotty,代码行数:8,代码来源:mount_xdr.c

示例14: xdr_ypresp_maplist

bool_t
xdr_ypresp_maplist (XDR *xdrs, ypresp_maplist *objp)
{
  if (!xdr_ypstat (xdrs, &objp->stat))
    return FALSE;
  return xdr_pointer (xdrs, (char **) &objp->maps, sizeof (ypmaplist),
		      (xdrproc_t) xdr_ypmaplist);
}
开发者ID:jameshilliard,项目名称:20-4-4,代码行数:8,代码来源:yp_xdr.c

示例15: xdr_groups

bool_t
xdr_groups(register XDR *xdrs, groups *objp)
{

	if (!xdr_pointer(xdrs, (char **)objp, sizeof (struct groupnode), (xdrproc_t) xdr_groupnode))
		return (FALSE);
	return (TRUE);
}
开发者ID:qyqx,项目名称:scotty,代码行数:8,代码来源:mount_xdr.c


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