yp_xdr.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* 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
*
* Copyright 1997 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/*
* Portions of this source code were derived from Berkeley
* under license from the Regents of the University of
* California.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* This contains ALL xdr routines used by the YP rpc interface.
*/
#define NULL 0
#include "yp_b.h"
#include <stdlib.h>
#include <limits.h>
static bool xdr_ypmaplist_wrap_string(XDR *, char *);
typedef struct xdr_discrim XDR_DISCRIM;
bool xdr_ypowner_wrap_string(XDR *, char **);
bool xdr_ypreq_newname_string(XDR *, char **);
/*
* Serializes/deserializes a dbm datum data structure.
*/
bool
{
bool dummy;
/*
* LP64 case :
* xdr_bytes() expects a uint_t for the 3rd argument. Since
* datum.dsize is a long, we need a new temporary to pass to
* xdr_bytes()
*/
trace1(TR_xdr_datum, 0);
return (FALSE);
}
}
return (dummy);
}
/*
* Serializes/deserializes a domain name string. This is a "wrapper" for
* xdr_string which knows about the maximum domain name size.
*/
bool
char **ppstring;
{
bool dummy;
return (dummy);
}
/*
* Serializes/deserializes a map name string. This is a "wrapper" for
* xdr_string which knows about the maximum map name size.
*/
bool
char **ppstring;
{
bool dummy;
return (dummy);
}
/*
* Serializes/deserializes a ypreq_key structure.
*/
bool
{
bool dummy;
trace1(TR_xdr_ypreq_key, 0);
return (dummy);
}
/*
* Serializes/deserializes a ypreq_nokey structure.
*/
bool
struct ypreq_nokey *ps;
{
bool dummy;
trace1(TR_xdr_ypreq_nokey, 0);
return (dummy);
}
/*
* Serializes/deserializes a ypresp_val structure.
*/
bool
struct ypresp_val *ps;
{
bool dummy;
trace1(TR_xdr_ypresp_val, 0);
return (dummy);
}
/*
* Serializes/deserializes a ypresp_key_val structure.
*/
bool
struct ypresp_key_val *ps;
{
bool dummy;
return (dummy);
}
/*
* Serializes/deserializes a peer server's node name
*/
bool
char **ppstring;
{
bool dummy;
return (dummy);
}
/*
* Serializes/deserializes a ypmap_parms structure.
*/
bool
struct ypmap_parms *ps;
{
bool dummy;
trace1(TR_xdr_ypmap_parms, 0);
return (dummy);
}
/*
* Serializes/deserializes a ypreq_newxfr name
*/
bool
char **ppstring;
{
bool dummy;
return (dummy);
}
/*
* Serializes/deserializes a ypresp_master structure.
*/
bool
struct ypresp_master *ps;
{
bool dummy;
return (dummy);
}
/*
* Serializes/deserializes a ypresp_order structure.
*/
bool
struct ypresp_order *ps;
{
bool dummy;
return (dummy);
}
/*
* This is like xdr_ypmap_wrap_string except that it serializes/deserializes
* an array, instead of a pointer, so xdr_reference can work on the structure
* containing the char array itself.
*/
static bool
char *pstring;
{
char *s;
bool dummy;
s = pstring;
return (dummy);
}
/*
* Serializes/deserializes a ypmaplist.
*/
static bool
{
trace1(TR_xdr_ypmaplist, 0);
for (;;) {
return (FALSE);
}
if (! more_elements) {
return (TRUE); /* All done */
}
if (freeing)
return (FALSE);
}
}
/*NOTREACHED*/
}
/*
* Serializes/deserializes a ypresp_maplist.
*/
bool
struct ypresp_maplist *ps;
{
bool dummy;
return (dummy);
}
/*
* Serializes/deserializes a yppushresp_xfr structure.
*/
bool
struct yppushresp_xfr *ps;
{
bool dummy;
return (dummy);
}
/*
* Serializes/deserializes a ypreq_xfr structure.
*/
bool
struct ypreq_newxfr *ps;
{
bool dummy;
return (dummy);
}
/*
* Serializes/deserializes a ypreq_xfr structure.
*/
bool
{
bool dummy;
trace1(TR_xdr_ypreq_xfr, 0);
return (dummy);
}
/*
* Serializes/deserializes a stream of struct ypresp_key_val's. This is used
* only by the client side of the batch enumerate operation.
*/
bool
struct ypall_callback *callback;
{
struct ypresp_key_val kv;
bool s;
char keybuf[YPMAXRECORD];
char valbuf[YPMAXRECORD];
trace1(TR_xdr_ypall, 0);
return (FALSE);
}
return (TRUE);
}
for (;;) {
return (FALSE);
}
if (! more) {
return (TRUE);
}
if (s) {
if (s) {
return (TRUE);
}
} else {
return (FALSE);
}
}
}
{
trace1(TR_xdr_netconfig, 0);
return (FALSE);
}
return (FALSE);
}
return (FALSE);
}
return (FALSE);
}
return (FALSE);
}
return (FALSE);
}
xdr_wrapstring)) {
return (FALSE);
}
return (FALSE);
}
return (TRUE);
}