/*
* 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
*/
/*
* yp.x
*
* Copyright (c) 1988-1992 Sun Microsystems Inc
* All Rights Reserved.
*/
%#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Protocol description file for the Network Information Services
*/
const YPMAXRECORD = 1024;
const YPMAXDOMAIN = 256;
const YPMAXMAP = 64;
const YPMAXPEER = 64;
enum ypstat {
YP_TRUE = 1,
YP_NOMORE = 2,
YP_FALSE = 0,
YP_NOMAP = -1,
YP_NODOM = -2,
YP_NOKEY = -3,
YP_BADOP = -4,
YP_BADDB = -5,
YP_YPERR = -6,
YP_BADARGS = -7,
YP_VERS = -8
};
enum ypxfrstat {
YPXFR_SUCC = 1,
YPXFR_AGE = 2,
YPXFR_NOMAP = -1,
YPXFR_NODOM = -2,
YPXFR_RSRC = -3,
YPXFR_RPC = -4,
YPXFR_MADDR = -5,
YPXFR_YPERR = -6,
YPXFR_BADARGS = -7,
YPXFR_DBM = -8,
YPXFR_FILE = -9,
YPXFR_SKEW = -10,
YPXFR_CLEAR = -11,
YPXFR_FORCE = -12,
YPXFR_XFRERR = -13,
YPXFR_REFUSED = -14
};
struct ypmap_parms {
unsigned int ordernum;
};
struct ypreq_key {
};
struct ypreq_nokey {
};
struct ypreq_xfr {
unsigned int transid;
unsigned int prog;
unsigned int port;
};
struct ypresp_val {
};
struct ypresp_key_val {
};
struct ypresp_master {
};
struct ypresp_order {
unsigned int ordernum;
};
union ypresp_all switch (bool more) {
case TRUE:
case FALSE:
void;
};
struct ypresp_xfr {
unsigned int transid;
};
struct ypmaplist {
};
struct ypresp_maplist {
};
enum yppush_status {
};
struct yppushresp_xfr {
unsigned transid;
};
/*
* Response structure and overall result status codes. Success and failure
* represent two separate response message types.
*/
enum ypbind_resptype {
YPBIND_SUCC_VAL = 1,
YPBIND_FAIL_VAL = 2
};
struct ypbind_binding {
};
case YPBIND_FAIL_VAL:
unsigned ypbind_error;
case YPBIND_SUCC_VAL:
};
/* Detailed failure reason codes for response field ypbind_error*/
/*
* Request data structure for ypbind "Set domain" procedure.
*/
struct ypbind_setdom {
unsigned ypsetdom_vers;
};
/*
* NIS access protocol
*/
void
YPPROC_NULL(void) = 0;
bool
bool
void
YPPROC_CLEAR(void) = 7;
} = 2;
} = 100004;
/*
* YPPUSHPROC_XFRRESP is the callback routine for result of YPPROC_XFR
*/
void
YPPUSHPROC_NULL(void) = 0;
YPPUSHPROC_XFRRESP(void) = 1;
} = 1;
} = 0x40000000; /* transient: could be anything up to 0x5fffffff */
/*
* NIS binding protocol
*/
void
YPBINDPROC_NULL(void) = 0;
void
} = 2;
} = 100007;