1/* 2 * Copyright (c) 1999 Apple Computer, Inc. All rights reserved. 3 * 4 * @APPLE_LICENSE_HEADER_START@ 5 * 6 * "Portions Copyright (c) 1999 Apple Computer, Inc. All Rights 7 * Reserved. This file contains Original Code and/or Modifications of 8 * Original Code as defined in and that are subject to the Apple Public 9 * Source License Version 1.0 (the 'License'). You may not use this file 10 * except in compliance with the License. Please obtain a copy of the 11 * License at http://www.apple.com/publicsource and read it before using 12 * this file. 13 * 14 * The Original Code and all software distributed under the License are 15 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 16 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 17 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 18 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the 19 * License for the specific language governing rights and limitations 20 * under the License." 21 * 22 * @APPLE_LICENSE_HEADER_END@ 23 */ 24/* $OpenBSD: yp.h,v 1.5 1997/07/25 20:12:31 mickey Exp $ */ 25 26/* 27 * Please do not edit this file. 28 * It was generated using rpcgen. 29 */ 30 31#ifndef _YP_H_RPCGEN 32#define _YP_H_RPCGEN 33 34#include <rpc/rpc.h> 35 36#define YPMAXRECORD 1024 37#define YPMAXDOMAIN 64 38#define YPMAXMAP 64 39#define YPMAXPEER 64 40 41enum ypstat { 42 YP_TRUE = 1, 43 YP_NOMORE = 2, 44 YP_FALSE = 0, 45 YP_NOMAP = -1, 46 YP_NODOM = -2, 47 YP_NOKEY = -3, 48 YP_BADOP = -4, 49 YP_BADDB = -5, 50 YP_YPERR = -6, 51 YP_BADARGS = -7, 52 YP_VERS = -8, 53}; 54typedef enum ypstat ypstat; 55#ifdef __cplusplus 56extern "C" bool_t xdr_ypstat(XDR *, ypstat*); 57#elif defined(__STDC__) 58extern bool_t xdr_ypstat(XDR *, ypstat*); 59#else /* Old Style C */ 60bool_t xdr_ypstat(); 61#endif /* Old Style C */ 62 63 64enum ypxfrstat { 65 YPXFR_SUCC = 1, 66 YPXFR_AGE = 2, 67 YPXFR_NOMAP = -1, 68 YPXFR_NODOM = -2, 69 YPXFR_RSRC = -3, 70 YPXFR_RPC = -4, 71 YPXFR_MADDR = -5, 72 YPXFR_YPERR = -6, 73 YPXFR_BADARGS = -7, 74 YPXFR_DBM = -8, 75 YPXFR_FILE = -9, 76 YPXFR_SKEW = -10, 77 YPXFR_CLEAR = -11, 78 YPXFR_FORCE = -12, 79 YPXFR_XFRERR = -13, 80 YPXFR_REFUSED = -14, 81}; 82typedef enum ypxfrstat ypxfrstat; 83#ifdef __cplusplus 84extern "C" bool_t xdr_ypxfrstat(XDR *, ypxfrstat*); 85#elif defined(__STDC__) 86extern bool_t xdr_ypxfrstat(XDR *, ypxfrstat*); 87#else /* Old Style C */ 88bool_t xdr_ypxfrstat(); 89#endif /* Old Style C */ 90 91 92typedef char *domainname; 93#ifdef __cplusplus 94extern "C" bool_t xdr_domainname(XDR *, domainname*); 95#elif defined(__STDC__) 96extern bool_t xdr_domainname(XDR *, domainname*); 97#else /* Old Style C */ 98bool_t xdr_domainname(); 99#endif /* Old Style C */ 100 101 102typedef char *mapname; 103#ifdef __cplusplus 104extern "C" bool_t xdr_mapname(XDR *, mapname*); 105#elif defined(__STDC__) 106extern bool_t xdr_mapname(XDR *, mapname*); 107#else /* Old Style C */ 108bool_t xdr_mapname(); 109#endif /* Old Style C */ 110 111 112typedef char *peername; 113#ifdef __cplusplus 114extern "C" bool_t xdr_peername(XDR *, peername*); 115#elif defined(__STDC__) 116extern bool_t xdr_peername(XDR *, peername*); 117#else /* Old Style C */ 118bool_t xdr_peername(); 119#endif /* Old Style C */ 120 121 122typedef struct { 123 u_int keydat_len; 124 char *keydat_val; 125} keydat; 126#ifdef __cplusplus 127extern "C" bool_t xdr_keydat(XDR *, keydat*); 128#elif defined(__STDC__) 129extern bool_t xdr_keydat(XDR *, keydat*); 130#else /* Old Style C */ 131bool_t xdr_keydat(); 132#endif /* Old Style C */ 133 134 135typedef struct { 136 u_int valdat_len; 137 char *valdat_val; 138} valdat; 139#ifdef __cplusplus 140extern "C" bool_t xdr_valdat(XDR *, valdat*); 141#elif defined(__STDC__) 142extern bool_t xdr_valdat(XDR *, valdat*); 143#else /* Old Style C */ 144bool_t xdr_valdat(); 145#endif /* Old Style C */ 146 147 148struct ypmap_parms { 149 domainname domain; 150 mapname map; 151 u_int32_t ordernum; 152 peername peer; 153}; 154typedef struct ypmap_parms ypmap_parms; 155#ifdef __cplusplus 156extern "C" bool_t xdr_ypmap_parms(XDR *, ypmap_parms*); 157#elif defined(__STDC__) 158extern bool_t xdr_ypmap_parms(XDR *, ypmap_parms*); 159#else /* Old Style C */ 160bool_t xdr_ypmap_parms(); 161#endif /* Old Style C */ 162 163 164struct ypreq_key { 165 domainname domain; 166 mapname map; 167 keydat key; 168}; 169typedef struct ypreq_key ypreq_key; 170#ifdef __cplusplus 171extern "C" bool_t xdr_ypreq_key(XDR *, ypreq_key*); 172#elif defined(__STDC__) 173extern bool_t xdr_ypreq_key(XDR *, ypreq_key*); 174#else /* Old Style C */ 175bool_t xdr_ypreq_key(); 176#endif /* Old Style C */ 177 178 179struct ypreq_nokey { 180 domainname domain; 181 mapname map; 182}; 183typedef struct ypreq_nokey ypreq_nokey; 184#ifdef __cplusplus 185extern "C" bool_t xdr_ypreq_nokey(XDR *, ypreq_nokey*); 186#elif defined(__STDC__) 187extern bool_t xdr_ypreq_nokey(XDR *, ypreq_nokey*); 188#else /* Old Style C */ 189bool_t xdr_ypreq_nokey(); 190#endif /* Old Style C */ 191 192 193struct ypreq_xfr { 194 ypmap_parms map_parms; 195 u_int transid; 196 u_int prog; 197 u_int port; 198}; 199typedef struct ypreq_xfr ypreq_xfr; 200#ifdef __cplusplus 201extern "C" bool_t xdr_ypreq_xfr(XDR *, ypreq_xfr*); 202#elif defined(__STDC__) 203extern bool_t xdr_ypreq_xfr(XDR *, ypreq_xfr*); 204#else /* Old Style C */ 205bool_t xdr_ypreq_xfr(); 206#endif /* Old Style C */ 207 208 209struct ypresp_val { 210 ypstat stat; 211 valdat val; 212}; 213typedef struct ypresp_val ypresp_val; 214#ifdef __cplusplus 215extern "C" bool_t xdr_ypresp_val(XDR *, ypresp_val*); 216#elif defined(__STDC__) 217extern bool_t xdr_ypresp_val(XDR *, ypresp_val*); 218#else /* Old Style C */ 219bool_t xdr_ypresp_val(); 220#endif /* Old Style C */ 221 222 223struct ypresp_key_val { 224 ypstat stat; 225 keydat key; 226 valdat val; 227}; 228typedef struct ypresp_key_val ypresp_key_val; 229#ifdef __cplusplus 230extern "C" bool_t xdr_ypresp_key_val(XDR *, ypresp_key_val*); 231#elif defined(__STDC__) 232extern bool_t xdr_ypresp_key_val(XDR *, ypresp_key_val*); 233#else /* Old Style C */ 234bool_t xdr_ypresp_key_val(); 235#endif /* Old Style C */ 236 237 238struct ypresp_master { 239 ypstat stat; 240 peername peer; 241}; 242typedef struct ypresp_master ypresp_master; 243#ifdef __cplusplus 244extern "C" bool_t xdr_ypresp_master(XDR *, ypresp_master*); 245#elif defined(__STDC__) 246extern bool_t xdr_ypresp_master(XDR *, ypresp_master*); 247#else /* Old Style C */ 248bool_t xdr_ypresp_master(); 249#endif /* Old Style C */ 250 251 252struct ypresp_order { 253 ypstat stat; 254 u_int32_t ordernum; 255}; 256typedef struct ypresp_order ypresp_order; 257#ifdef __cplusplus 258extern "C" bool_t xdr_ypresp_order(XDR *, ypresp_order*); 259#elif defined(__STDC__) 260extern bool_t xdr_ypresp_order(XDR *, ypresp_order*); 261#else /* Old Style C */ 262bool_t xdr_ypresp_order(); 263#endif /* Old Style C */ 264 265 266struct ypresp_all { 267 bool_t more; 268 union { 269 ypresp_key_val val; 270 } ypresp_all_u; 271}; 272typedef struct ypresp_all ypresp_all; 273#ifdef __cplusplus 274extern "C" bool_t xdr_ypresp_all(XDR *, ypresp_all*); 275#elif defined(__STDC__) 276extern bool_t xdr_ypresp_all(XDR *, ypresp_all*); 277#else /* Old Style C */ 278bool_t xdr_ypresp_all(); 279#endif /* Old Style C */ 280 281 282struct ypresp_xfr { 283 u_int transid; 284 ypxfrstat xfrstat; 285}; 286typedef struct ypresp_xfr ypresp_xfr; 287#ifdef __cplusplus 288extern "C" bool_t xdr_ypresp_xfr(XDR *, ypresp_xfr*); 289#elif defined(__STDC__) 290extern bool_t xdr_ypresp_xfr(XDR *, ypresp_xfr*); 291#else /* Old Style C */ 292bool_t xdr_ypresp_xfr(); 293#endif /* Old Style C */ 294 295 296struct ypmaplist { 297 mapname map; 298 struct ypmaplist *next; 299}; 300typedef struct ypmaplist ypmaplist; 301#ifdef __cplusplus 302extern "C" bool_t xdr_ypmaplist(XDR *, ypmaplist*); 303#elif defined(__STDC__) 304extern bool_t xdr_ypmaplist(XDR *, ypmaplist*); 305#else /* Old Style C */ 306bool_t xdr_ypmaplist(); 307#endif /* Old Style C */ 308 309 310struct ypresp_maplist { 311 ypstat stat; 312 ypmaplist *maps; 313}; 314typedef struct ypresp_maplist ypresp_maplist; 315#ifdef __cplusplus 316extern "C" bool_t xdr_ypresp_maplist(XDR *, ypresp_maplist*); 317#elif defined(__STDC__) 318extern bool_t xdr_ypresp_maplist(XDR *, ypresp_maplist*); 319#else /* Old Style C */ 320bool_t xdr_ypresp_maplist(); 321#endif /* Old Style C */ 322 323 324enum yppush_status { 325 YPPUSH_SUCC = 1, 326 YPPUSH_AGE = 2, 327 YPPUSH_NOMAP = -1, 328 YPPUSH_NODOM = -2, 329 YPPUSH_RSRC = -3, 330 YPPUSH_RPC = -4, 331 YPPUSH_MADDR = -5, 332 YPPUSH_YPERR = -6, 333 YPPUSH_BADARGS = -7, 334 YPPUSH_DBM = -8, 335 YPPUSH_FILE = -9, 336 YPPUSH_SKEW = -10, 337 YPPUSH_CLEAR = -11, 338 YPPUSH_FORCE = -12, 339 YPPUSH_XFRERR = -13, 340 YPPUSH_REFUSED = -14, 341}; 342typedef enum yppush_status yppush_status; 343#ifdef __cplusplus 344extern "C" bool_t xdr_yppush_status(XDR *, yppush_status*); 345#elif defined(__STDC__) 346extern bool_t xdr_yppush_status(XDR *, yppush_status*); 347#else /* Old Style C */ 348bool_t xdr_yppush_status(); 349#endif /* Old Style C */ 350 351 352struct yppushresp_xfr { 353 u_int transid; 354 yppush_status status; 355}; 356typedef struct yppushresp_xfr yppushresp_xfr; 357#ifdef __cplusplus 358extern "C" bool_t xdr_yppushresp_xfr(XDR *, yppushresp_xfr*); 359#elif defined(__STDC__) 360extern bool_t xdr_yppushresp_xfr(XDR *, yppushresp_xfr*); 361#else /* Old Style C */ 362bool_t xdr_yppushresp_xfr(); 363#endif /* Old Style C */ 364 365 366enum ypbind_resptype { 367 YPBIND_SUCC_VAL = 1, 368 YPBIND_FAIL_VAL = 2, 369}; 370typedef enum ypbind_resptype ypbind_resptype; 371#ifdef __cplusplus 372extern "C" bool_t xdr_ypbind_resptype(XDR *, ypbind_resptype*); 373#elif defined(__STDC__) 374extern bool_t xdr_ypbind_resptype(XDR *, ypbind_resptype*); 375#else /* Old Style C */ 376bool_t xdr_ypbind_resptype(); 377#endif /* Old Style C */ 378 379 380struct ypbind_binding { 381 char ypbind_binding_addr[4]; 382 char ypbind_binding_port[2]; 383}; 384typedef struct ypbind_binding ypbind_binding; 385#ifdef __cplusplus 386extern "C" bool_t xdr_ypbind_binding(XDR *, ypbind_binding*); 387#elif defined(__STDC__) 388extern bool_t xdr_ypbind_binding(XDR *, ypbind_binding*); 389#else /* Old Style C */ 390bool_t xdr_ypbind_binding(); 391#endif /* Old Style C */ 392 393 394struct ypbind_resp { 395 ypbind_resptype ypbind_status; 396 union { 397 u_int ypbind_error; 398 ypbind_binding ypbind_bindinfo; 399 } ypbind_resp_u; 400}; 401typedef struct ypbind_resp ypbind_resp; 402#ifdef __cplusplus 403extern "C" bool_t xdr_ypbind_resp(XDR *, ypbind_resp*); 404#elif defined(__STDC__) 405extern bool_t xdr_ypbind_resp(XDR *, ypbind_resp*); 406#else /* Old Style C */ 407bool_t xdr_ypbind_resp(); 408#endif /* Old Style C */ 409 410#define YPBIND_ERR_ERR 1 411#define YPBIND_ERR_NOSERV 2 412#define YPBIND_ERR_RESC 3 413 414struct ypbind_setdom { 415 domainname ypsetdom_domain; 416 ypbind_binding ypsetdom_binding; 417 u_int ypsetdom_vers; 418}; 419typedef struct ypbind_setdom ypbind_setdom; 420#ifdef __cplusplus 421extern "C" bool_t xdr_ypbind_setdom(XDR *, ypbind_setdom*); 422#elif defined(__STDC__) 423extern bool_t xdr_ypbind_setdom(XDR *, ypbind_setdom*); 424#else /* Old Style C */ 425bool_t xdr_ypbind_setdom(); 426#endif /* Old Style C */ 427 428 429#define YPPROG ((u_long)100004) 430#define YPVERS ((u_long)2) 431 432#ifdef __cplusplus 433#define YPPROC_NULL ((u_long)0) 434extern "C" void * ypproc_null_2(void *, CLIENT *); 435extern "C" void * ypproc_null_2_svc(void *, struct svc_req *); 436#define YPPROC_DOMAIN ((u_long)1) 437extern "C" bool_t * ypproc_domain_2(domainname *, CLIENT *); 438extern "C" bool_t * ypproc_domain_2_svc(domainname *, struct svc_req *); 439#define YPPROC_DOMAIN_NONACK ((u_long)2) 440extern "C" bool_t * ypproc_domain_nonack_2(domainname *, CLIENT *); 441extern "C" bool_t * ypproc_domain_nonack_2_svc(domainname *, struct svc_req *); 442#define YPPROC_MATCH ((u_long)3) 443extern "C" ypresp_val * ypproc_match_2(ypreq_key *, CLIENT *); 444extern "C" ypresp_val * ypproc_match_2_svc(ypreq_key *, struct svc_req *); 445#define YPPROC_FIRST ((u_long)4) 446extern "C" ypresp_key_val * ypproc_first_2(ypreq_nokey *, CLIENT *); 447extern "C" ypresp_key_val * ypproc_first_2_svc(ypreq_nokey *, struct svc_req *); 448#define YPPROC_NEXT ((u_long)5) 449extern "C" ypresp_key_val * ypproc_next_2(ypreq_key *, CLIENT *); 450extern "C" ypresp_key_val * ypproc_next_2_svc(ypreq_key *, struct svc_req *); 451#define YPPROC_XFR ((u_long)6) 452extern "C" ypresp_xfr * ypproc_xfr_2(ypreq_xfr *, CLIENT *); 453extern "C" ypresp_xfr * ypproc_xfr_2_svc(ypreq_xfr *, struct svc_req *); 454#define YPPROC_CLEAR ((u_long)7) 455extern "C" void * ypproc_clear_2(void *, CLIENT *); 456extern "C" void * ypproc_clear_2_svc(void *, struct svc_req *); 457#define YPPROC_ALL ((u_long)8) 458extern "C" ypresp_all * ypproc_all_2(ypreq_nokey *, CLIENT *); 459extern "C" ypresp_all * ypproc_all_2_svc(ypreq_nokey *, struct svc_req *); 460#define YPPROC_MASTER ((u_long)9) 461extern "C" ypresp_master * ypproc_master_2(ypreq_nokey *, CLIENT *); 462extern "C" ypresp_master * ypproc_master_2_svc(ypreq_nokey *, struct svc_req *); 463#define YPPROC_ORDER ((u_long)10) 464extern "C" ypresp_order * ypproc_order_2(ypreq_nokey *, CLIENT *); 465extern "C" ypresp_order * ypproc_order_2_svc(ypreq_nokey *, struct svc_req *); 466#define YPPROC_MAPLIST ((u_long)11) 467extern "C" ypresp_maplist * ypproc_maplist_2(domainname *, CLIENT *); 468extern "C" ypresp_maplist * ypproc_maplist_2_svc(domainname *, struct svc_req *); 469 470#elif defined(__STDC__) 471#define YPPROC_NULL ((u_long)0) 472extern void * ypproc_null_2(void *, CLIENT *); 473extern void * ypproc_null_2_svc(void *, struct svc_req *); 474#define YPPROC_DOMAIN ((u_long)1) 475extern bool_t * ypproc_domain_2(domainname *, CLIENT *); 476extern bool_t * ypproc_domain_2_svc(domainname *, struct svc_req *); 477#define YPPROC_DOMAIN_NONACK ((u_long)2) 478extern bool_t * ypproc_domain_nonack_2(domainname *, CLIENT *); 479extern bool_t * ypproc_domain_nonack_2_svc(domainname *, struct svc_req *); 480#define YPPROC_MATCH ((u_long)3) 481extern ypresp_val * ypproc_match_2(ypreq_key *, CLIENT *); 482extern ypresp_val * ypproc_match_2_svc(ypreq_key *, struct svc_req *); 483#define YPPROC_FIRST ((u_long)4) 484extern ypresp_key_val * ypproc_first_2(ypreq_nokey *, CLIENT *); 485extern ypresp_key_val * ypproc_first_2_svc(ypreq_nokey *, struct svc_req *); 486#define YPPROC_NEXT ((u_long)5) 487extern ypresp_key_val * ypproc_next_2(ypreq_key *, CLIENT *); 488extern ypresp_key_val * ypproc_next_2_svc(ypreq_key *, struct svc_req *); 489#define YPPROC_XFR ((u_long)6) 490extern ypresp_xfr * ypproc_xfr_2(ypreq_xfr *, CLIENT *); 491extern ypresp_xfr * ypproc_xfr_2_svc(ypreq_xfr *, struct svc_req *); 492#define YPPROC_CLEAR ((u_long)7) 493extern void * ypproc_clear_2(void *, CLIENT *); 494extern void * ypproc_clear_2_svc(void *, struct svc_req *); 495#define YPPROC_ALL ((u_long)8) 496extern ypresp_all * ypproc_all_2(ypreq_nokey *, CLIENT *); 497extern ypresp_all * ypproc_all_2_svc(ypreq_nokey *, struct svc_req *); 498#define YPPROC_MASTER ((u_long)9) 499extern ypresp_master * ypproc_master_2(ypreq_nokey *, CLIENT *); 500extern ypresp_master * ypproc_master_2_svc(ypreq_nokey *, struct svc_req *); 501#define YPPROC_ORDER ((u_long)10) 502extern ypresp_order * ypproc_order_2(ypreq_nokey *, CLIENT *); 503extern ypresp_order * ypproc_order_2_svc(ypreq_nokey *, struct svc_req *); 504#define YPPROC_MAPLIST ((u_long)11) 505extern ypresp_maplist * ypproc_maplist_2(domainname *, CLIENT *); 506extern ypresp_maplist * ypproc_maplist_2_svc(domainname *, struct svc_req *); 507 508#else /* Old Style C */ 509#define YPPROC_NULL ((u_long)0) 510extern void * ypproc_null_2(); 511extern void * ypproc_null_2_svc(); 512#define YPPROC_DOMAIN ((u_long)1) 513extern bool_t * ypproc_domain_2(); 514extern bool_t * ypproc_domain_2_svc(); 515#define YPPROC_DOMAIN_NONACK ((u_long)2) 516extern bool_t * ypproc_domain_nonack_2(); 517extern bool_t * ypproc_domain_nonack_2_svc(); 518#define YPPROC_MATCH ((u_long)3) 519extern ypresp_val * ypproc_match_2(); 520extern ypresp_val * ypproc_match_2_svc(); 521#define YPPROC_FIRST ((u_long)4) 522extern ypresp_key_val * ypproc_first_2(); 523extern ypresp_key_val * ypproc_first_2_svc(); 524#define YPPROC_NEXT ((u_long)5) 525extern ypresp_key_val * ypproc_next_2(); 526extern ypresp_key_val * ypproc_next_2_svc(); 527#define YPPROC_XFR ((u_long)6) 528extern ypresp_xfr * ypproc_xfr_2(); 529extern ypresp_xfr * ypproc_xfr_2_svc(); 530#define YPPROC_CLEAR ((u_long)7) 531extern void * ypproc_clear_2(); 532extern void * ypproc_clear_2_svc(); 533#define YPPROC_ALL ((u_long)8) 534extern ypresp_all * ypproc_all_2(); 535extern ypresp_all * ypproc_all_2_svc(); 536#define YPPROC_MASTER ((u_long)9) 537extern ypresp_master * ypproc_master_2(); 538extern ypresp_master * ypproc_master_2_svc(); 539#define YPPROC_ORDER ((u_long)10) 540extern ypresp_order * ypproc_order_2(); 541extern ypresp_order * ypproc_order_2_svc(); 542#define YPPROC_MAPLIST ((u_long)11) 543extern ypresp_maplist * ypproc_maplist_2(); 544extern ypresp_maplist * ypproc_maplist_2_svc(); 545#endif /* Old Style C */ 546 547#define YPPUSH_XFRRESPPROG ((u_long)0x40000000) 548#define YPPUSH_XFRRESPVERS ((u_long)1) 549 550#ifdef __cplusplus 551#define YPPUSHPROC_NULL ((u_long)0) 552extern "C" void * yppushproc_null_1(void *, CLIENT *); 553extern "C" void * yppushproc_null_1_svc(void *, struct svc_req *); 554#define YPPUSHPROC_XFRRESP ((u_long)1) 555extern "C" yppushresp_xfr * yppushproc_xfrresp_1(void *, CLIENT *); 556extern "C" yppushresp_xfr * yppushproc_xfrresp_1_svc(void *, struct svc_req *); 557 558#elif defined(__STDC__) 559#define YPPUSHPROC_NULL ((u_long)0) 560extern void * yppushproc_null_1(void *, CLIENT *); 561extern void * yppushproc_null_1_svc(void *, struct svc_req *); 562#define YPPUSHPROC_XFRRESP ((u_long)1) 563extern yppushresp_xfr * yppushproc_xfrresp_1(void *, CLIENT *); 564extern yppushresp_xfr * yppushproc_xfrresp_1_svc(void *, struct svc_req *); 565 566#else /* Old Style C */ 567#define YPPUSHPROC_NULL ((u_long)0) 568extern void * yppushproc_null_1(); 569extern void * yppushproc_null_1_svc(); 570#define YPPUSHPROC_XFRRESP ((u_long)1) 571extern yppushresp_xfr * yppushproc_xfrresp_1(); 572extern yppushresp_xfr * yppushproc_xfrresp_1_svc(); 573#endif /* Old Style C */ 574 575#define YPBINDPROG ((u_long)100007) 576#define YPBINDVERS ((u_long)2) 577 578#ifdef __cplusplus 579#define YPBINDPROC_NULL ((u_long)0) 580extern "C" void * ypbindproc_null_2(void *, CLIENT *); 581extern "C" void * ypbindproc_null_2_svc(void *, struct svc_req *); 582#define YPBINDPROC_DOMAIN ((u_long)1) 583extern "C" ypbind_resp * ypbindproc_domain_2(domainname *, CLIENT *); 584extern "C" ypbind_resp * ypbindproc_domain_2_svc(domainname *, struct svc_req *); 585#define YPBINDPROC_SETDOM ((u_long)2) 586extern "C" void * ypbindproc_setdom_2(ypbind_setdom *, CLIENT *); 587extern "C" void * ypbindproc_setdom_2_svc(ypbind_setdom *, struct svc_req *); 588 589#elif defined(__STDC__) 590#define YPBINDPROC_NULL ((u_long)0) 591extern void * ypbindproc_null_2(void *, CLIENT *); 592extern void * ypbindproc_null_2_svc(void *, struct svc_req *); 593#define YPBINDPROC_DOMAIN ((u_long)1) 594extern ypbind_resp * ypbindproc_domain_2(domainname *, CLIENT *); 595extern ypbind_resp * ypbindproc_domain_2_svc(domainname *, struct svc_req *); 596#define YPBINDPROC_SETDOM ((u_long)2) 597extern void * ypbindproc_setdom_2(ypbind_setdom *, CLIENT *); 598extern void * ypbindproc_setdom_2_svc(ypbind_setdom *, struct svc_req *); 599 600#else /* Old Style C */ 601#define YPBINDPROC_NULL ((u_long)0) 602extern void * ypbindproc_null_2(); 603extern void * ypbindproc_null_2_svc(); 604#define YPBINDPROC_DOMAIN ((u_long)1) 605extern ypbind_resp * ypbindproc_domain_2(); 606extern ypbind_resp * ypbindproc_domain_2_svc(); 607#define YPBINDPROC_SETDOM ((u_long)2) 608extern void * ypbindproc_setdom_2(); 609extern void * ypbindproc_setdom_2_svc(); 610#endif /* Old Style C */ 611 612#endif /* !_YP_H_RPCGEN */ 613