Ejemplo n.º 1
0
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);
}
Ejemplo n.º 2
0
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);
}
Ejemplo n.º 3
0
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;
}
Ejemplo n.º 4
0
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));
}
Ejemplo n.º 5
0
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;
}
Ejemplo n.º 6
0
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);
}
Ejemplo n.º 7
0
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);
}
Ejemplo n.º 8
0
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;
}
Ejemplo n.º 9
0
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);
}
Ejemplo n.º 10
0
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);
}
Ejemplo n.º 11
0
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;
}
Ejemplo n.º 12
0
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);
}
Ejemplo n.º 13
0
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);
}
Ejemplo n.º 14
0
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);
}
Ejemplo n.º 15
0
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);
}
Ejemplo n.º 16
0
bool_t xdr_req2(XDR *xdrs,req2_t *obj){
    if(!xdr_string(xdrs,&obj->target,~0)) return(FALSE);
    if(!xdr_int(xdrs,&obj->args.tag)) return(FALSE);
    if(!xdr_pointer(xdrs,(char**)&obj->args.args_u.appt,sizeof(appt_t),
        xdr_appt)) return(FALSE);
    if(!xdr_int(xdrs,&obj->pid)) return(FALSE);
    return(TRUE);
}
Ejemplo n.º 17
0
bool_t
xdr_ypbind_setdom(XDR *xdrs, ypbind_setdom *objp)
{
	if (!xdr_string(xdrs, &objp->ypsetdom_domain, YPMAXDOMAIN))
		return (FALSE);
	return (xdr_pointer(xdrs, (char **)&objp->ypsetdom_bindinfo,
		sizeof (ypbind_binding), xdr_ypbind_binding));
}
Ejemplo n.º 18
0
bool_t
xdr_ypmaplist (XDR *xdrs, ypmaplist *objp)
{
  if (!xdr_mapname (xdrs, &objp->map))
    return FALSE;
  return xdr_pointer (xdrs, (char **) &objp->next, sizeof (ypmaplist),
		      (xdrproc_t) xdr_ypmaplist);
}
Ejemplo n.º 19
0
bool_t
xdr_mountlist(register XDR *xdrs, mountlist *objp)
{

	if (!xdr_pointer(xdrs, (char **)objp, sizeof (struct mountbody), (xdrproc_t) xdr_mountbody))
		return (FALSE);
	return (TRUE);
}
Ejemplo n.º 20
0
bool_t
xdr_exportlist (XDR *xdrs, exportlist *objp)
{
	 register long *buf;

	 if (!xdr_pointer (xdrs, (char **)objp, sizeof (struct exportnode), (xdrproc_t) xdr_exportnode))
		 return FALSE;
	return TRUE;
}
Ejemplo n.º 21
0
bool_t
xdr_dirlistp3 (XDR *xdrs, dirlistp3 *objp)
{
	 if (!xdr_pointer (xdrs, (char **)&objp->entries, sizeof (entryp3), (xdrproc_t) xdr_entryp3))
		 return FALSE;
	 if (!xdr_bool (xdrs, &objp->eof))
		 return FALSE;
	return TRUE;
}
Ejemplo n.º 22
0
bool_t
xdr_dirlistplus3(register XDR *xdrs, dirlistplus3 *objp)
{
	if (!xdr_pointer(xdrs, (char **)&objp->entries, sizeof (entryplus3), (xdrproc_t) xdr_entryplus3))
		return (FALSE);
	if (!xdr_bool(xdrs, &objp->eof))
		return (FALSE);
	return (TRUE);
}
Ejemplo n.º 23
0
bool_t
xdr_namelist (XDR *xdrs, namelist *objp)
{
	register int32_t *buf;

	 if (!xdr_pointer (xdrs, (char **)objp, sizeof (struct namenode), (xdrproc_t) xdr_namenode))
		 return FALSE;
	return TRUE;
}
Ejemplo n.º 24
0
bool_t
xdr_ypresp_maplist (XDR *xdrs, ypresp_maplist *objp)
{
    if (!xdr_ypstat (xdrs, &objp->stat))
        return FALSE;
    /* Prevent gcc warning about alias violation.  */
    char **tp = (void *) &objp->maps;
    return xdr_pointer (xdrs, tp, sizeof (ypmaplist), (xdrproc_t) xdr_ypmaplist);
}
Ejemplo n.º 25
0
bool_t
xdr_filelist (XDR *xdrs, filelist *objp)
{
	register int32_t *buf;

	 if (!xdr_pointer (xdrs, (char **)&objp->entries, sizeof (entry), (xdrproc_t) xdr_entry))
		 return FALSE;
	return TRUE;
}
Ejemplo n.º 26
0
static bool_t
xdr_b_dirlist(XDR *xdrs, dirlist *objp)
{
	if (!xdr_pointer(xdrs, (char **)&objp->entries, sizeof (entry),
	    (xdrproc_t)xdr_b_entry)) {
		return (FALSE);
	}
	return (xdr_bool(xdrs, &objp->eof));
}
Ejemplo n.º 27
0
bool_t
xdr_stringlist (XDR *xdrs, stringlist *objp)
{
	register int32_t *buf;

	 if (!xdr_pointer (xdrs, (char **)objp, sizeof (stringentry), (xdrproc_t) xdr_stringentry))
		 return FALSE;
	return TRUE;
}
Ejemplo n.º 28
0
bool_t
xdr_nodeptr (XDR *xdrs, nodeptr *objp)
{
	register int32_t *buf;

	 if (!xdr_pointer (xdrs, (char **)&objp->ptr, sizeof (node), (xdrproc_t) xdr_node))
		 return FALSE;
	return TRUE;
}
Ejemplo n.º 29
0
bool_t
xdr_rpcbs_rmtcalllist_ptr(XDR *xdrs, rpcbs_rmtcalllist_ptr *objp)
{
	if (!xdr_pointer(xdrs, (char **)objp, sizeof (rpcbs_rmtcalllist),
			(xdrproc_t)xdr_rpcbs_rmtcalllist)) {
		return (FALSE);
	}
	return (TRUE);
}
Ejemplo n.º 30
0
bool_t xdr_ls_verify_data(XDR *xdrs, ls_verify_data *objp)
{
  if (!xdr_int(xdrs, &objp->who)) {
    return (FALSE);
  }
  if (!xdr_pointer(xdrs, (char **)&objp->data, sizeof(ls_hqn_state), xdr_ls_hqn_state)) {
    return (FALSE);
  }
  return (TRUE);
}