2 * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
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
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
22 * @APPLE_LICENSE_HEADER_END@
24 /* $OpenBSD: yp.h,v 1.5 1997/07/25 20:12:31 mickey Exp $ */
27 * Please do not edit this file.
28 * It was generated using rpcgen.
36 #define YPMAXRECORD 1024
37 #define YPMAXDOMAIN 64
54 typedef enum ypstat ypstat
;
56 extern "C" bool_t
xdr_ypstat(XDR
*, ypstat
*);
57 #elif defined(__STDC__)
58 extern bool_t
xdr_ypstat(XDR
*, ypstat
*);
59 #else /* Old Style C */
61 #endif /* Old Style C */
82 typedef enum ypxfrstat ypxfrstat
;
84 extern "C" bool_t
xdr_ypxfrstat(XDR
*, ypxfrstat
*);
85 #elif defined(__STDC__)
86 extern bool_t
xdr_ypxfrstat(XDR
*, ypxfrstat
*);
87 #else /* Old Style C */
88 bool_t
xdr_ypxfrstat();
89 #endif /* Old Style C */
92 typedef char *domainname
;
94 extern "C" bool_t
xdr_domainname(XDR
*, domainname
*);
95 #elif defined(__STDC__)
96 extern bool_t
xdr_domainname(XDR
*, domainname
*);
97 #else /* Old Style C */
98 bool_t
xdr_domainname();
99 #endif /* Old Style C */
102 typedef char *mapname
;
104 extern "C" bool_t
xdr_mapname(XDR
*, mapname
*);
105 #elif defined(__STDC__)
106 extern bool_t
xdr_mapname(XDR
*, mapname
*);
107 #else /* Old Style C */
108 bool_t
xdr_mapname();
109 #endif /* Old Style C */
112 typedef char *peername
;
114 extern "C" bool_t
xdr_peername(XDR
*, peername
*);
115 #elif defined(__STDC__)
116 extern bool_t
xdr_peername(XDR
*, peername
*);
117 #else /* Old Style C */
118 bool_t
xdr_peername();
119 #endif /* Old Style C */
127 extern "C" bool_t
xdr_keydat(XDR
*, keydat
*);
128 #elif defined(__STDC__)
129 extern bool_t
xdr_keydat(XDR
*, keydat
*);
130 #else /* Old Style C */
132 #endif /* Old Style C */
140 extern "C" bool_t
xdr_valdat(XDR
*, valdat
*);
141 #elif defined(__STDC__)
142 extern bool_t
xdr_valdat(XDR
*, valdat
*);
143 #else /* Old Style C */
145 #endif /* Old Style C */
154 typedef struct ypmap_parms ypmap_parms
;
156 extern "C" bool_t
xdr_ypmap_parms(XDR
*, ypmap_parms
*);
157 #elif defined(__STDC__)
158 extern bool_t
xdr_ypmap_parms(XDR
*, ypmap_parms
*);
159 #else /* Old Style C */
160 bool_t
xdr_ypmap_parms();
161 #endif /* Old Style C */
169 typedef struct ypreq_key ypreq_key
;
171 extern "C" bool_t
xdr_ypreq_key(XDR
*, ypreq_key
*);
172 #elif defined(__STDC__)
173 extern bool_t
xdr_ypreq_key(XDR
*, ypreq_key
*);
174 #else /* Old Style C */
175 bool_t
xdr_ypreq_key();
176 #endif /* Old Style C */
183 typedef struct ypreq_nokey ypreq_nokey
;
185 extern "C" bool_t
xdr_ypreq_nokey(XDR
*, ypreq_nokey
*);
186 #elif defined(__STDC__)
187 extern bool_t
xdr_ypreq_nokey(XDR
*, ypreq_nokey
*);
188 #else /* Old Style C */
189 bool_t
xdr_ypreq_nokey();
190 #endif /* Old Style C */
194 ypmap_parms map_parms
;
199 typedef struct ypreq_xfr ypreq_xfr
;
201 extern "C" bool_t
xdr_ypreq_xfr(XDR
*, ypreq_xfr
*);
202 #elif defined(__STDC__)
203 extern bool_t
xdr_ypreq_xfr(XDR
*, ypreq_xfr
*);
204 #else /* Old Style C */
205 bool_t
xdr_ypreq_xfr();
206 #endif /* Old Style C */
213 typedef struct ypresp_val ypresp_val
;
215 extern "C" bool_t
xdr_ypresp_val(XDR
*, ypresp_val
*);
216 #elif defined(__STDC__)
217 extern bool_t
xdr_ypresp_val(XDR
*, ypresp_val
*);
218 #else /* Old Style C */
219 bool_t
xdr_ypresp_val();
220 #endif /* Old Style C */
223 struct ypresp_key_val
{
228 typedef struct ypresp_key_val ypresp_key_val
;
230 extern "C" bool_t
xdr_ypresp_key_val(XDR
*, ypresp_key_val
*);
231 #elif defined(__STDC__)
232 extern bool_t
xdr_ypresp_key_val(XDR
*, ypresp_key_val
*);
233 #else /* Old Style C */
234 bool_t
xdr_ypresp_key_val();
235 #endif /* Old Style C */
238 struct ypresp_master
{
242 typedef struct ypresp_master ypresp_master
;
244 extern "C" bool_t
xdr_ypresp_master(XDR
*, ypresp_master
*);
245 #elif defined(__STDC__)
246 extern bool_t
xdr_ypresp_master(XDR
*, ypresp_master
*);
247 #else /* Old Style C */
248 bool_t
xdr_ypresp_master();
249 #endif /* Old Style C */
252 struct ypresp_order
{
256 typedef struct ypresp_order ypresp_order
;
258 extern "C" bool_t
xdr_ypresp_order(XDR
*, ypresp_order
*);
259 #elif defined(__STDC__)
260 extern bool_t
xdr_ypresp_order(XDR
*, ypresp_order
*);
261 #else /* Old Style C */
262 bool_t
xdr_ypresp_order();
263 #endif /* Old Style C */
272 typedef struct ypresp_all ypresp_all
;
274 extern "C" bool_t
xdr_ypresp_all(XDR
*, ypresp_all
*);
275 #elif defined(__STDC__)
276 extern bool_t
xdr_ypresp_all(XDR
*, ypresp_all
*);
277 #else /* Old Style C */
278 bool_t
xdr_ypresp_all();
279 #endif /* Old Style C */
286 typedef struct ypresp_xfr ypresp_xfr
;
288 extern "C" bool_t
xdr_ypresp_xfr(XDR
*, ypresp_xfr
*);
289 #elif defined(__STDC__)
290 extern bool_t
xdr_ypresp_xfr(XDR
*, ypresp_xfr
*);
291 #else /* Old Style C */
292 bool_t
xdr_ypresp_xfr();
293 #endif /* Old Style C */
298 struct ypmaplist
*next
;
300 typedef struct ypmaplist ypmaplist
;
302 extern "C" bool_t
xdr_ypmaplist(XDR
*, ypmaplist
*);
303 #elif defined(__STDC__)
304 extern bool_t
xdr_ypmaplist(XDR
*, ypmaplist
*);
305 #else /* Old Style C */
306 bool_t
xdr_ypmaplist();
307 #endif /* Old Style C */
310 struct ypresp_maplist
{
314 typedef struct ypresp_maplist ypresp_maplist
;
316 extern "C" bool_t
xdr_ypresp_maplist(XDR
*, ypresp_maplist
*);
317 #elif defined(__STDC__)
318 extern bool_t
xdr_ypresp_maplist(XDR
*, ypresp_maplist
*);
319 #else /* Old Style C */
320 bool_t
xdr_ypresp_maplist();
321 #endif /* Old Style C */
340 YPPUSH_REFUSED
= -14,
342 typedef enum yppush_status yppush_status
;
344 extern "C" bool_t
xdr_yppush_status(XDR
*, yppush_status
*);
345 #elif defined(__STDC__)
346 extern bool_t
xdr_yppush_status(XDR
*, yppush_status
*);
347 #else /* Old Style C */
348 bool_t
xdr_yppush_status();
349 #endif /* Old Style C */
352 struct yppushresp_xfr
{
354 yppush_status status
;
356 typedef struct yppushresp_xfr yppushresp_xfr
;
358 extern "C" bool_t
xdr_yppushresp_xfr(XDR
*, yppushresp_xfr
*);
359 #elif defined(__STDC__)
360 extern bool_t
xdr_yppushresp_xfr(XDR
*, yppushresp_xfr
*);
361 #else /* Old Style C */
362 bool_t
xdr_yppushresp_xfr();
363 #endif /* Old Style C */
366 enum ypbind_resptype
{
370 typedef enum ypbind_resptype ypbind_resptype
;
372 extern "C" bool_t
xdr_ypbind_resptype(XDR
*, ypbind_resptype
*);
373 #elif defined(__STDC__)
374 extern bool_t
xdr_ypbind_resptype(XDR
*, ypbind_resptype
*);
375 #else /* Old Style C */
376 bool_t
xdr_ypbind_resptype();
377 #endif /* Old Style C */
380 struct ypbind_binding
{
381 char ypbind_binding_addr
[4];
382 char ypbind_binding_port
[2];
384 typedef struct ypbind_binding ypbind_binding
;
386 extern "C" bool_t
xdr_ypbind_binding(XDR
*, ypbind_binding
*);
387 #elif defined(__STDC__)
388 extern bool_t
xdr_ypbind_binding(XDR
*, ypbind_binding
*);
389 #else /* Old Style C */
390 bool_t
xdr_ypbind_binding();
391 #endif /* Old Style C */
395 ypbind_resptype ypbind_status
;
398 ypbind_binding ypbind_bindinfo
;
401 typedef struct ypbind_resp ypbind_resp
;
403 extern "C" bool_t
xdr_ypbind_resp(XDR
*, ypbind_resp
*);
404 #elif defined(__STDC__)
405 extern bool_t
xdr_ypbind_resp(XDR
*, ypbind_resp
*);
406 #else /* Old Style C */
407 bool_t
xdr_ypbind_resp();
408 #endif /* Old Style C */
410 #define YPBIND_ERR_ERR 1
411 #define YPBIND_ERR_NOSERV 2
412 #define YPBIND_ERR_RESC 3
414 struct ypbind_setdom
{
415 domainname ypsetdom_domain
;
416 ypbind_binding ypsetdom_binding
;
419 typedef struct ypbind_setdom ypbind_setdom
;
421 extern "C" bool_t
xdr_ypbind_setdom(XDR
*, ypbind_setdom
*);
422 #elif defined(__STDC__)
423 extern bool_t
xdr_ypbind_setdom(XDR
*, ypbind_setdom
*);
424 #else /* Old Style C */
425 bool_t
xdr_ypbind_setdom();
426 #endif /* Old Style C */
429 #define YPPROG ((u_long)100004)
430 #define YPVERS ((u_long)2)
433 #define YPPROC_NULL ((u_long)0)
434 extern "C" void * ypproc_null_2(void *, CLIENT
*);
435 extern "C" void * ypproc_null_2_svc(void *, struct svc_req
*);
436 #define YPPROC_DOMAIN ((u_long)1)
437 extern "C" bool_t
* ypproc_domain_2(domainname
*, CLIENT
*);
438 extern "C" bool_t
* ypproc_domain_2_svc(domainname
*, struct svc_req
*);
439 #define YPPROC_DOMAIN_NONACK ((u_long)2)
440 extern "C" bool_t
* ypproc_domain_nonack_2(domainname
*, CLIENT
*);
441 extern "C" bool_t
* ypproc_domain_nonack_2_svc(domainname
*, struct svc_req
*);
442 #define YPPROC_MATCH ((u_long)3)
443 extern "C" ypresp_val
* ypproc_match_2(ypreq_key
*, CLIENT
*);
444 extern "C" ypresp_val
* ypproc_match_2_svc(ypreq_key
*, struct svc_req
*);
445 #define YPPROC_FIRST ((u_long)4)
446 extern "C" ypresp_key_val
* ypproc_first_2(ypreq_nokey
*, CLIENT
*);
447 extern "C" ypresp_key_val
* ypproc_first_2_svc(ypreq_nokey
*, struct svc_req
*);
448 #define YPPROC_NEXT ((u_long)5)
449 extern "C" ypresp_key_val
* ypproc_next_2(ypreq_key
*, CLIENT
*);
450 extern "C" ypresp_key_val
* ypproc_next_2_svc(ypreq_key
*, struct svc_req
*);
451 #define YPPROC_XFR ((u_long)6)
452 extern "C" ypresp_xfr
* ypproc_xfr_2(ypreq_xfr
*, CLIENT
*);
453 extern "C" ypresp_xfr
* ypproc_xfr_2_svc(ypreq_xfr
*, struct svc_req
*);
454 #define YPPROC_CLEAR ((u_long)7)
455 extern "C" void * ypproc_clear_2(void *, CLIENT
*);
456 extern "C" void * ypproc_clear_2_svc(void *, struct svc_req
*);
457 #define YPPROC_ALL ((u_long)8)
458 extern "C" ypresp_all
* ypproc_all_2(ypreq_nokey
*, CLIENT
*);
459 extern "C" ypresp_all
* ypproc_all_2_svc(ypreq_nokey
*, struct svc_req
*);
460 #define YPPROC_MASTER ((u_long)9)
461 extern "C" ypresp_master
* ypproc_master_2(ypreq_nokey
*, CLIENT
*);
462 extern "C" ypresp_master
* ypproc_master_2_svc(ypreq_nokey
*, struct svc_req
*);
463 #define YPPROC_ORDER ((u_long)10)
464 extern "C" ypresp_order
* ypproc_order_2(ypreq_nokey
*, CLIENT
*);
465 extern "C" ypresp_order
* ypproc_order_2_svc(ypreq_nokey
*, struct svc_req
*);
466 #define YPPROC_MAPLIST ((u_long)11)
467 extern "C" ypresp_maplist
* ypproc_maplist_2(domainname
*, CLIENT
*);
468 extern "C" ypresp_maplist
* ypproc_maplist_2_svc(domainname
*, struct svc_req
*);
470 #elif defined(__STDC__)
471 #define YPPROC_NULL ((u_long)0)
472 extern void * ypproc_null_2(void *, CLIENT
*);
473 extern void * ypproc_null_2_svc(void *, struct svc_req
*);
474 #define YPPROC_DOMAIN ((u_long)1)
475 extern bool_t
* ypproc_domain_2(domainname
*, CLIENT
*);
476 extern bool_t
* ypproc_domain_2_svc(domainname
*, struct svc_req
*);
477 #define YPPROC_DOMAIN_NONACK ((u_long)2)
478 extern bool_t
* ypproc_domain_nonack_2(domainname
*, CLIENT
*);
479 extern bool_t
* ypproc_domain_nonack_2_svc(domainname
*, struct svc_req
*);
480 #define YPPROC_MATCH ((u_long)3)
481 extern ypresp_val
* ypproc_match_2(ypreq_key
*, CLIENT
*);
482 extern ypresp_val
* ypproc_match_2_svc(ypreq_key
*, struct svc_req
*);
483 #define YPPROC_FIRST ((u_long)4)
484 extern ypresp_key_val
* ypproc_first_2(ypreq_nokey
*, CLIENT
*);
485 extern ypresp_key_val
* ypproc_first_2_svc(ypreq_nokey
*, struct svc_req
*);
486 #define YPPROC_NEXT ((u_long)5)
487 extern ypresp_key_val
* ypproc_next_2(ypreq_key
*, CLIENT
*);
488 extern ypresp_key_val
* ypproc_next_2_svc(ypreq_key
*, struct svc_req
*);
489 #define YPPROC_XFR ((u_long)6)
490 extern ypresp_xfr
* ypproc_xfr_2(ypreq_xfr
*, CLIENT
*);
491 extern ypresp_xfr
* ypproc_xfr_2_svc(ypreq_xfr
*, struct svc_req
*);
492 #define YPPROC_CLEAR ((u_long)7)
493 extern void * ypproc_clear_2(void *, CLIENT
*);
494 extern void * ypproc_clear_2_svc(void *, struct svc_req
*);
495 #define YPPROC_ALL ((u_long)8)
496 extern ypresp_all
* ypproc_all_2(ypreq_nokey
*, CLIENT
*);
497 extern ypresp_all
* ypproc_all_2_svc(ypreq_nokey
*, struct svc_req
*);
498 #define YPPROC_MASTER ((u_long)9)
499 extern ypresp_master
* ypproc_master_2(ypreq_nokey
*, CLIENT
*);
500 extern ypresp_master
* ypproc_master_2_svc(ypreq_nokey
*, struct svc_req
*);
501 #define YPPROC_ORDER ((u_long)10)
502 extern ypresp_order
* ypproc_order_2(ypreq_nokey
*, CLIENT
*);
503 extern ypresp_order
* ypproc_order_2_svc(ypreq_nokey
*, struct svc_req
*);
504 #define YPPROC_MAPLIST ((u_long)11)
505 extern ypresp_maplist
* ypproc_maplist_2(domainname
*, CLIENT
*);
506 extern ypresp_maplist
* ypproc_maplist_2_svc(domainname
*, struct svc_req
*);
508 #else /* Old Style C */
509 #define YPPROC_NULL ((u_long)0)
510 extern void * ypproc_null_2();
511 extern void * ypproc_null_2_svc();
512 #define YPPROC_DOMAIN ((u_long)1)
513 extern bool_t
* ypproc_domain_2();
514 extern bool_t
* ypproc_domain_2_svc();
515 #define YPPROC_DOMAIN_NONACK ((u_long)2)
516 extern bool_t
* ypproc_domain_nonack_2();
517 extern bool_t
* ypproc_domain_nonack_2_svc();
518 #define YPPROC_MATCH ((u_long)3)
519 extern ypresp_val
* ypproc_match_2();
520 extern ypresp_val
* ypproc_match_2_svc();
521 #define YPPROC_FIRST ((u_long)4)
522 extern ypresp_key_val
* ypproc_first_2();
523 extern ypresp_key_val
* ypproc_first_2_svc();
524 #define YPPROC_NEXT ((u_long)5)
525 extern ypresp_key_val
* ypproc_next_2();
526 extern ypresp_key_val
* ypproc_next_2_svc();
527 #define YPPROC_XFR ((u_long)6)
528 extern ypresp_xfr
* ypproc_xfr_2();
529 extern ypresp_xfr
* ypproc_xfr_2_svc();
530 #define YPPROC_CLEAR ((u_long)7)
531 extern void * ypproc_clear_2();
532 extern void * ypproc_clear_2_svc();
533 #define YPPROC_ALL ((u_long)8)
534 extern ypresp_all
* ypproc_all_2();
535 extern ypresp_all
* ypproc_all_2_svc();
536 #define YPPROC_MASTER ((u_long)9)
537 extern ypresp_master
* ypproc_master_2();
538 extern ypresp_master
* ypproc_master_2_svc();
539 #define YPPROC_ORDER ((u_long)10)
540 extern ypresp_order
* ypproc_order_2();
541 extern ypresp_order
* ypproc_order_2_svc();
542 #define YPPROC_MAPLIST ((u_long)11)
543 extern ypresp_maplist
* ypproc_maplist_2();
544 extern ypresp_maplist
* ypproc_maplist_2_svc();
545 #endif /* Old Style C */
547 #define YPPUSH_XFRRESPPROG ((u_long)0x40000000)
548 #define YPPUSH_XFRRESPVERS ((u_long)1)
551 #define YPPUSHPROC_NULL ((u_long)0)
552 extern "C" void * yppushproc_null_1(void *, CLIENT
*);
553 extern "C" void * yppushproc_null_1_svc(void *, struct svc_req
*);
554 #define YPPUSHPROC_XFRRESP ((u_long)1)
555 extern "C" yppushresp_xfr
* yppushproc_xfrresp_1(void *, CLIENT
*);
556 extern "C" yppushresp_xfr
* yppushproc_xfrresp_1_svc(void *, struct svc_req
*);
558 #elif defined(__STDC__)
559 #define YPPUSHPROC_NULL ((u_long)0)
560 extern void * yppushproc_null_1(void *, CLIENT
*);
561 extern void * yppushproc_null_1_svc(void *, struct svc_req
*);
562 #define YPPUSHPROC_XFRRESP ((u_long)1)
563 extern yppushresp_xfr
* yppushproc_xfrresp_1(void *, CLIENT
*);
564 extern yppushresp_xfr
* yppushproc_xfrresp_1_svc(void *, struct svc_req
*);
566 #else /* Old Style C */
567 #define YPPUSHPROC_NULL ((u_long)0)
568 extern void * yppushproc_null_1();
569 extern void * yppushproc_null_1_svc();
570 #define YPPUSHPROC_XFRRESP ((u_long)1)
571 extern yppushresp_xfr
* yppushproc_xfrresp_1();
572 extern yppushresp_xfr
* yppushproc_xfrresp_1_svc();
573 #endif /* Old Style C */
575 #define YPBINDPROG ((u_long)100007)
576 #define YPBINDVERS ((u_long)2)
579 #define YPBINDPROC_NULL ((u_long)0)
580 extern "C" void * ypbindproc_null_2(void *, CLIENT
*);
581 extern "C" void * ypbindproc_null_2_svc(void *, struct svc_req
*);
582 #define YPBINDPROC_DOMAIN ((u_long)1)
583 extern "C" ypbind_resp
* ypbindproc_domain_2(domainname
*, CLIENT
*);
584 extern "C" ypbind_resp
* ypbindproc_domain_2_svc(domainname
*, struct svc_req
*);
585 #define YPBINDPROC_SETDOM ((u_long)2)
586 extern "C" void * ypbindproc_setdom_2(ypbind_setdom
*, CLIENT
*);
587 extern "C" void * ypbindproc_setdom_2_svc(ypbind_setdom
*, struct svc_req
*);
589 #elif defined(__STDC__)
590 #define YPBINDPROC_NULL ((u_long)0)
591 extern void * ypbindproc_null_2(void *, CLIENT
*);
592 extern void * ypbindproc_null_2_svc(void *, struct svc_req
*);
593 #define YPBINDPROC_DOMAIN ((u_long)1)
594 extern ypbind_resp
* ypbindproc_domain_2(domainname
*, CLIENT
*);
595 extern ypbind_resp
* ypbindproc_domain_2_svc(domainname
*, struct svc_req
*);
596 #define YPBINDPROC_SETDOM ((u_long)2)
597 extern void * ypbindproc_setdom_2(ypbind_setdom
*, CLIENT
*);
598 extern void * ypbindproc_setdom_2_svc(ypbind_setdom
*, struct svc_req
*);
600 #else /* Old Style C */
601 #define YPBINDPROC_NULL ((u_long)0)
602 extern void * ypbindproc_null_2();
603 extern void * ypbindproc_null_2_svc();
604 #define YPBINDPROC_DOMAIN ((u_long)1)
605 extern ypbind_resp
* ypbindproc_domain_2();
606 extern ypbind_resp
* ypbindproc_domain_2_svc();
607 #define YPBINDPROC_SETDOM ((u_long)2)
608 extern void * ypbindproc_setdom_2();
609 extern void * ypbindproc_setdom_2_svc();
610 #endif /* Old Style C */
612 #endif /* !_YP_H_RPCGEN */