ypv1_prot.h 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 1990 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* This contains symbol and structure definitions used in supporting the old
* "v1" protocol. They were previously defined in yp_prot.h.
*
* This file exists so that the NIS system can provide backward compatibility.
* Normal NIS client processes should not use this interface: the old
* protocol will not be supported in the next release.
*/
#define YPOLDPROC_NULL ((u_long)0)
struct yprequest {
enum ypreqtype yp_reqtype;
union {
struct ypreq_key yp_req_keytype;
struct ypreq_nokey yp_req_nokeytype;
struct ypmap_parms yp_req_map_parmstype;
};
#define YPMATCH_REQTYPE YPREQ_KEY
#define YPFIRST_REQTYPE YPREQ_NOKEY
#define YPNEXT_REQTYPE YPREQ_KEY
#define YPPUSH_REQTYPE YPREQ_NOKEY
#define YPPULL_REQTYPE YPREQ_NOKEY
#define YPPOLL_REQTYPE YPREQ_NOKEY
#define YPGET_REQTYPE YPREQ_MAP_PARMS
struct ypresponse {
enum ypresptype yp_resptype;
union {
struct ypresp_val yp_resp_valtype;
struct ypresp_key_val yp_resp_key_valtype;
struct ypmap_parms yp_resp_map_parmstype;
} yp_respbody;
};
#define YPMATCH_RESPTYPE YPRESP_VAL
#define YPFIRST_RESPTYPE YPRESP_KEY_VAL
#define YPNEXT_RESPTYPE YPRESP_KEY_VAL
#define YPPOLL_RESPTYPE YPRESP_MAP_PARMS
extern bool _xdr_yprequest();
extern bool _xdr_ypresponse();
struct ypbind_oldsetdom {
struct ypbind_binding ypoldsetdom_binding;
};
extern bool _xdr_ypbind_oldsetdom();