/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* This is a non-recursive version of XDR routine used for db_index_entry
* type.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <stdio.h>
#include <memory.h>
#include "db_index_entry_c.h"
#include "db_table_c.h"
{
for (;;) {
return (FALSE);
return (FALSE);
return (FALSE);
return (FALSE);
/*
* The following code replaces the call to
* xdr_pointer(
* xdrs,
* (char **)&ep->next,
* sizeof (db_index_entry),
* (xdrproc_t) xdr_db_index_entry))
*
* It's a modified version of xdr_refer.c from the rpc library:
* @(#)xdr_refer.c 1.8 92/07/20 SMI
*/
/*
* the following assignment to more_data is only useful when
* encoding and freeing. When decoding, more_data will be
* filled by the xdr_bool() routine.
*/
return (FALSE);
if (! more_data) {
break;
}
case XDR_DECODE:
mem_alloc(sizeof (db_index_entry));
"xdr_db_index_entry: mem_alloc failed");
return (FALSE);
}
}
break;
case XDR_FREE:
} else
break;
}
break;
} /* for loop */
}
return (TRUE);
}
{
return (FALSE);
return (TRUE);
}
{
for (;;) {
return (FALSE);
/*
* The following code replaces the call to
* xdr_pointer(
* xdrs,
* (char **)&ep->next,
* sizeof (db_free_entry),
* (xdrproc_t) xdr_db_free_entry))
*
* It's a modified version of xdr_refer.c from the rpc library:
* @(#)xdr_refer.c 1.8 92/07/20 SMI
*/
/*
* the following assignment to more_data is only useful when
* encoding and freeing. When decoding, more_data will be
* filled by the xdr_bool() routine.
*/
return (FALSE);
if (! more_data) {
break;
}
case XDR_DECODE:
mem_alloc(sizeof (db_free_entry));
"db_free_entry: mem_alloc failed");
return (FALSE);
}
}
break;
case XDR_FREE:
} else
break;
}
break;
} /* for loop */
}
return (TRUE);
}