2 * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
8 * This file contains Original Code and/or Modifications of Original Code
9 * as defined in and that are subject to the Apple Public Source License
10 * Version 2.0 (the 'License'). You may not use this file except in
11 * compliance with the License. Please obtain a copy of the License at
12 * http://www.opensource.apple.com/apsl/ and read it before using this
15 * The Original Code and all software distributed under the License are
16 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
17 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
18 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
20 * Please see the License for the specific language governing rights and
21 * limitations under the License.
23 * @APPLE_LICENSE_HEADER_END@
25 /* $OpenBSD: yp.h,v 1.5 1997/07/25 20:12:31 mickey Exp $ */
28 * Please do not edit this file.
29 * It was generated using rpcgen.
37 #define YPMAXRECORD 1024
38 #define YPMAXDOMAIN 64
55 typedef enum ypstat ypstat
;
57 extern "C" bool_t
xdr_ypstat(XDR
*, ypstat
*);
58 #elif defined(__STDC__)
59 extern bool_t
xdr_ypstat(XDR
*, ypstat
*);
60 #else /* Old Style C */
62 #endif /* Old Style C */
83 typedef enum ypxfrstat ypxfrstat
;
85 extern "C" bool_t
xdr_ypxfrstat(XDR
*, ypxfrstat
*);
86 #elif defined(__STDC__)
87 extern bool_t
xdr_ypxfrstat(XDR
*, ypxfrstat
*);
88 #else /* Old Style C */
89 bool_t
xdr_ypxfrstat();
90 #endif /* Old Style C */
93 typedef char *domainname
;
95 extern "C" bool_t
xdr_domainname(XDR
*, domainname
*);
96 #elif defined(__STDC__)
97 extern bool_t
xdr_domainname(XDR
*, domainname
*);
98 #else /* Old Style C */
99 bool_t
xdr_domainname();
100 #endif /* Old Style C */
103 typedef char *mapname
;
105 extern "C" bool_t
xdr_mapname(XDR
*, mapname
*);
106 #elif defined(__STDC__)
107 extern bool_t
xdr_mapname(XDR
*, mapname
*);
108 #else /* Old Style C */
109 bool_t
xdr_mapname();
110 #endif /* Old Style C */
113 typedef char *peername
;
115 extern "C" bool_t
xdr_peername(XDR
*, peername
*);
116 #elif defined(__STDC__)
117 extern bool_t
xdr_peername(XDR
*, peername
*);
118 #else /* Old Style C */
119 bool_t
xdr_peername();
120 #endif /* Old Style C */
128 extern "C" bool_t
xdr_keydat(XDR
*, keydat
*);
129 #elif defined(__STDC__)
130 extern bool_t
xdr_keydat(XDR
*, keydat
*);
131 #else /* Old Style C */
133 #endif /* Old Style C */
141 extern "C" bool_t
xdr_valdat(XDR
*, valdat
*);
142 #elif defined(__STDC__)
143 extern bool_t
xdr_valdat(XDR
*, valdat
*);
144 #else /* Old Style C */
146 #endif /* Old Style C */
155 typedef struct ypmap_parms ypmap_parms
;
157 extern "C" bool_t
xdr_ypmap_parms(XDR
*, ypmap_parms
*);
158 #elif defined(__STDC__)
159 extern bool_t
xdr_ypmap_parms(XDR
*, ypmap_parms
*);
160 #else /* Old Style C */
161 bool_t
xdr_ypmap_parms();
162 #endif /* Old Style C */
170 typedef struct ypreq_key ypreq_key
;
172 extern "C" bool_t
xdr_ypreq_key(XDR
*, ypreq_key
*);
173 #elif defined(__STDC__)
174 extern bool_t
xdr_ypreq_key(XDR
*, ypreq_key
*);
175 #else /* Old Style C */
176 bool_t
xdr_ypreq_key();
177 #endif /* Old Style C */
184 typedef struct ypreq_nokey ypreq_nokey
;
186 extern "C" bool_t
xdr_ypreq_nokey(XDR
*, ypreq_nokey
*);
187 #elif defined(__STDC__)
188 extern bool_t
xdr_ypreq_nokey(XDR
*, ypreq_nokey
*);
189 #else /* Old Style C */
190 bool_t
xdr_ypreq_nokey();
191 #endif /* Old Style C */
195 ypmap_parms map_parms
;
200 typedef struct ypreq_xfr ypreq_xfr
;
202 extern "C" bool_t
xdr_ypreq_xfr(XDR
*, ypreq_xfr
*);
203 #elif defined(__STDC__)
204 extern bool_t
xdr_ypreq_xfr(XDR
*, ypreq_xfr
*);
205 #else /* Old Style C */
206 bool_t
xdr_ypreq_xfr();
207 #endif /* Old Style C */
214 typedef struct ypresp_val ypresp_val
;
216 extern "C" bool_t
xdr_ypresp_val(XDR
*, ypresp_val
*);
217 #elif defined(__STDC__)
218 extern bool_t
xdr_ypresp_val(XDR
*, ypresp_val
*);
219 #else /* Old Style C */
220 bool_t
xdr_ypresp_val();
221 #endif /* Old Style C */
224 struct ypresp_key_val
{
229 typedef struct ypresp_key_val ypresp_key_val
;
231 extern "C" bool_t
xdr_ypresp_key_val(XDR
*, ypresp_key_val
*);
232 #elif defined(__STDC__)
233 extern bool_t
xdr_ypresp_key_val(XDR
*, ypresp_key_val
*);
234 #else /* Old Style C */
235 bool_t
xdr_ypresp_key_val();
236 #endif /* Old Style C */
239 struct ypresp_master
{
243 typedef struct ypresp_master ypresp_master
;
245 extern "C" bool_t
xdr_ypresp_master(XDR
*, ypresp_master
*);
246 #elif defined(__STDC__)
247 extern bool_t
xdr_ypresp_master(XDR
*, ypresp_master
*);
248 #else /* Old Style C */
249 bool_t
xdr_ypresp_master();
250 #endif /* Old Style C */
253 struct ypresp_order
{
257 typedef struct ypresp_order ypresp_order
;
259 extern "C" bool_t
xdr_ypresp_order(XDR
*, ypresp_order
*);
260 #elif defined(__STDC__)
261 extern bool_t
xdr_ypresp_order(XDR
*, ypresp_order
*);
262 #else /* Old Style C */
263 bool_t
xdr_ypresp_order();
264 #endif /* Old Style C */
273 typedef struct ypresp_all ypresp_all
;
275 extern "C" bool_t
xdr_ypresp_all(XDR
*, ypresp_all
*);
276 #elif defined(__STDC__)
277 extern bool_t
xdr_ypresp_all(XDR
*, ypresp_all
*);
278 #else /* Old Style C */
279 bool_t
xdr_ypresp_all();
280 #endif /* Old Style C */
287 typedef struct ypresp_xfr ypresp_xfr
;
289 extern "C" bool_t
xdr_ypresp_xfr(XDR
*, ypresp_xfr
*);
290 #elif defined(__STDC__)
291 extern bool_t
xdr_ypresp_xfr(XDR
*, ypresp_xfr
*);
292 #else /* Old Style C */
293 bool_t
xdr_ypresp_xfr();
294 #endif /* Old Style C */
299 struct ypmaplist
*next
;
301 typedef struct ypmaplist ypmaplist
;
303 extern "C" bool_t
xdr_ypmaplist(XDR
*, ypmaplist
*);
304 #elif defined(__STDC__)
305 extern bool_t
xdr_ypmaplist(XDR
*, ypmaplist
*);
306 #else /* Old Style C */
307 bool_t
xdr_ypmaplist();
308 #endif /* Old Style C */
311 struct ypresp_maplist
{
315 typedef struct ypresp_maplist ypresp_maplist
;
317 extern "C" bool_t
xdr_ypresp_maplist(XDR
*, ypresp_maplist
*);
318 #elif defined(__STDC__)
319 extern bool_t
xdr_ypresp_maplist(XDR
*, ypresp_maplist
*);
320 #else /* Old Style C */
321 bool_t
xdr_ypresp_maplist();
322 #endif /* Old Style C */
341 YPPUSH_REFUSED
= -14,
343 typedef enum yppush_status yppush_status
;
345 extern "C" bool_t
xdr_yppush_status(XDR
*, yppush_status
*);
346 #elif defined(__STDC__)
347 extern bool_t
xdr_yppush_status(XDR
*, yppush_status
*);
348 #else /* Old Style C */
349 bool_t
xdr_yppush_status();
350 #endif /* Old Style C */
353 struct yppushresp_xfr
{
355 yppush_status status
;
357 typedef struct yppushresp_xfr yppushresp_xfr
;
359 extern "C" bool_t
xdr_yppushresp_xfr(XDR
*, yppushresp_xfr
*);
360 #elif defined(__STDC__)
361 extern bool_t
xdr_yppushresp_xfr(XDR
*, yppushresp_xfr
*);
362 #else /* Old Style C */
363 bool_t
xdr_yppushresp_xfr();
364 #endif /* Old Style C */
367 enum ypbind_resptype
{
371 typedef enum ypbind_resptype ypbind_resptype
;
373 extern "C" bool_t
xdr_ypbind_resptype(XDR
*, ypbind_resptype
*);
374 #elif defined(__STDC__)
375 extern bool_t
xdr_ypbind_resptype(XDR
*, ypbind_resptype
*);
376 #else /* Old Style C */
377 bool_t
xdr_ypbind_resptype();
378 #endif /* Old Style C */
381 struct ypbind_binding
{
382 char ypbind_binding_addr
[4];
383 char ypbind_binding_port
[2];
385 typedef struct ypbind_binding ypbind_binding
;
387 extern "C" bool_t
xdr_ypbind_binding(XDR
*, ypbind_binding
*);
388 #elif defined(__STDC__)
389 extern bool_t
xdr_ypbind_binding(XDR
*, ypbind_binding
*);
390 #else /* Old Style C */
391 bool_t
xdr_ypbind_binding();
392 #endif /* Old Style C */
396 ypbind_resptype ypbind_status
;
399 ypbind_binding ypbind_bindinfo
;
402 typedef struct ypbind_resp ypbind_resp
;
404 extern "C" bool_t
xdr_ypbind_resp(XDR
*, ypbind_resp
*);
405 #elif defined(__STDC__)
406 extern bool_t
xdr_ypbind_resp(XDR
*, ypbind_resp
*);
407 #else /* Old Style C */
408 bool_t
xdr_ypbind_resp();
409 #endif /* Old Style C */
411 #define YPBIND_ERR_ERR 1
412 #define YPBIND_ERR_NOSERV 2
413 #define YPBIND_ERR_RESC 3
415 struct ypbind_setdom
{
416 domainname ypsetdom_domain
;
417 ypbind_binding ypsetdom_binding
;
420 typedef struct ypbind_setdom ypbind_setdom
;
422 extern "C" bool_t
xdr_ypbind_setdom(XDR
*, ypbind_setdom
*);
423 #elif defined(__STDC__)
424 extern bool_t
xdr_ypbind_setdom(XDR
*, ypbind_setdom
*);
425 #else /* Old Style C */
426 bool_t
xdr_ypbind_setdom();
427 #endif /* Old Style C */
430 #define YPPROG ((u_long)100004)
431 #define YPVERS ((u_long)2)
434 #define YPPROC_NULL ((u_long)0)
435 extern "C" void * ypproc_null_2(void *, CLIENT
*);
436 extern "C" void * ypproc_null_2_svc(void *, struct svc_req
*);
437 #define YPPROC_DOMAIN ((u_long)1)
438 extern "C" bool_t
* ypproc_domain_2(domainname
*, CLIENT
*);
439 extern "C" bool_t
* ypproc_domain_2_svc(domainname
*, struct svc_req
*);
440 #define YPPROC_DOMAIN_NONACK ((u_long)2)
441 extern "C" bool_t
* ypproc_domain_nonack_2(domainname
*, CLIENT
*);
442 extern "C" bool_t
* ypproc_domain_nonack_2_svc(domainname
*, struct svc_req
*);
443 #define YPPROC_MATCH ((u_long)3)
444 extern "C" ypresp_val
* ypproc_match_2(ypreq_key
*, CLIENT
*);
445 extern "C" ypresp_val
* ypproc_match_2_svc(ypreq_key
*, struct svc_req
*);
446 #define YPPROC_FIRST ((u_long)4)
447 extern "C" ypresp_key_val
* ypproc_first_2(ypreq_nokey
*, CLIENT
*);
448 extern "C" ypresp_key_val
* ypproc_first_2_svc(ypreq_nokey
*, struct svc_req
*);
449 #define YPPROC_NEXT ((u_long)5)
450 extern "C" ypresp_key_val
* ypproc_next_2(ypreq_key
*, CLIENT
*);
451 extern "C" ypresp_key_val
* ypproc_next_2_svc(ypreq_key
*, struct svc_req
*);
452 #define YPPROC_XFR ((u_long)6)
453 extern "C" ypresp_xfr
* ypproc_xfr_2(ypreq_xfr
*, CLIENT
*);
454 extern "C" ypresp_xfr
* ypproc_xfr_2_svc(ypreq_xfr
*, struct svc_req
*);
455 #define YPPROC_CLEAR ((u_long)7)
456 extern "C" void * ypproc_clear_2(void *, CLIENT
*);
457 extern "C" void * ypproc_clear_2_svc(void *, struct svc_req
*);
458 #define YPPROC_ALL ((u_long)8)
459 extern "C" ypresp_all
* ypproc_all_2(ypreq_nokey
*, CLIENT
*);
460 extern "C" ypresp_all
* ypproc_all_2_svc(ypreq_nokey
*, struct svc_req
*);
461 #define YPPROC_MASTER ((u_long)9)
462 extern "C" ypresp_master
* ypproc_master_2(ypreq_nokey
*, CLIENT
*);
463 extern "C" ypresp_master
* ypproc_master_2_svc(ypreq_nokey
*, struct svc_req
*);
464 #define YPPROC_ORDER ((u_long)10)
465 extern "C" ypresp_order
* ypproc_order_2(ypreq_nokey
*, CLIENT
*);
466 extern "C" ypresp_order
* ypproc_order_2_svc(ypreq_nokey
*, struct svc_req
*);
467 #define YPPROC_MAPLIST ((u_long)11)
468 extern "C" ypresp_maplist
* ypproc_maplist_2(domainname
*, CLIENT
*);
469 extern "C" ypresp_maplist
* ypproc_maplist_2_svc(domainname
*, struct svc_req
*);
471 #elif defined(__STDC__)
472 #define YPPROC_NULL ((u_long)0)
473 extern void * ypproc_null_2(void *, CLIENT
*);
474 extern void * ypproc_null_2_svc(void *, struct svc_req
*);
475 #define YPPROC_DOMAIN ((u_long)1)
476 extern bool_t
* ypproc_domain_2(domainname
*, CLIENT
*);
477 extern bool_t
* ypproc_domain_2_svc(domainname
*, struct svc_req
*);
478 #define YPPROC_DOMAIN_NONACK ((u_long)2)
479 extern bool_t
* ypproc_domain_nonack_2(domainname
*, CLIENT
*);
480 extern bool_t
* ypproc_domain_nonack_2_svc(domainname
*, struct svc_req
*);
481 #define YPPROC_MATCH ((u_long)3)
482 extern ypresp_val
* ypproc_match_2(ypreq_key
*, CLIENT
*);
483 extern ypresp_val
* ypproc_match_2_svc(ypreq_key
*, struct svc_req
*);
484 #define YPPROC_FIRST ((u_long)4)
485 extern ypresp_key_val
* ypproc_first_2(ypreq_nokey
*, CLIENT
*);
486 extern ypresp_key_val
* ypproc_first_2_svc(ypreq_nokey
*, struct svc_req
*);
487 #define YPPROC_NEXT ((u_long)5)
488 extern ypresp_key_val
* ypproc_next_2(ypreq_key
*, CLIENT
*);
489 extern ypresp_key_val
* ypproc_next_2_svc(ypreq_key
*, struct svc_req
*);
490 #define YPPROC_XFR ((u_long)6)
491 extern ypresp_xfr
* ypproc_xfr_2(ypreq_xfr
*, CLIENT
*);
492 extern ypresp_xfr
* ypproc_xfr_2_svc(ypreq_xfr
*, struct svc_req
*);
493 #define YPPROC_CLEAR ((u_long)7)
494 extern void * ypproc_clear_2(void *, CLIENT
*);
495 extern void * ypproc_clear_2_svc(void *, struct svc_req
*);
496 #define YPPROC_ALL ((u_long)8)
497 extern ypresp_all
* ypproc_all_2(ypreq_nokey
*, CLIENT
*);
498 extern ypresp_all
* ypproc_all_2_svc(ypreq_nokey
*, struct svc_req
*);
499 #define YPPROC_MASTER ((u_long)9)
500 extern ypresp_master
* ypproc_master_2(ypreq_nokey
*, CLIENT
*);
501 extern ypresp_master
* ypproc_master_2_svc(ypreq_nokey
*, struct svc_req
*);
502 #define YPPROC_ORDER ((u_long)10)
503 extern ypresp_order
* ypproc_order_2(ypreq_nokey
*, CLIENT
*);
504 extern ypresp_order
* ypproc_order_2_svc(ypreq_nokey
*, struct svc_req
*);
505 #define YPPROC_MAPLIST ((u_long)11)
506 extern ypresp_maplist
* ypproc_maplist_2(domainname
*, CLIENT
*);
507 extern ypresp_maplist
* ypproc_maplist_2_svc(domainname
*, struct svc_req
*);
509 #else /* Old Style C */
510 #define YPPROC_NULL ((u_long)0)
511 extern void * ypproc_null_2();
512 extern void * ypproc_null_2_svc();
513 #define YPPROC_DOMAIN ((u_long)1)
514 extern bool_t
* ypproc_domain_2();
515 extern bool_t
* ypproc_domain_2_svc();
516 #define YPPROC_DOMAIN_NONACK ((u_long)2)
517 extern bool_t
* ypproc_domain_nonack_2();
518 extern bool_t
* ypproc_domain_nonack_2_svc();
519 #define YPPROC_MATCH ((u_long)3)
520 extern ypresp_val
* ypproc_match_2();
521 extern ypresp_val
* ypproc_match_2_svc();
522 #define YPPROC_FIRST ((u_long)4)
523 extern ypresp_key_val
* ypproc_first_2();
524 extern ypresp_key_val
* ypproc_first_2_svc();
525 #define YPPROC_NEXT ((u_long)5)
526 extern ypresp_key_val
* ypproc_next_2();
527 extern ypresp_key_val
* ypproc_next_2_svc();
528 #define YPPROC_XFR ((u_long)6)
529 extern ypresp_xfr
* ypproc_xfr_2();
530 extern ypresp_xfr
* ypproc_xfr_2_svc();
531 #define YPPROC_CLEAR ((u_long)7)
532 extern void * ypproc_clear_2();
533 extern void * ypproc_clear_2_svc();
534 #define YPPROC_ALL ((u_long)8)
535 extern ypresp_all
* ypproc_all_2();
536 extern ypresp_all
* ypproc_all_2_svc();
537 #define YPPROC_MASTER ((u_long)9)
538 extern ypresp_master
* ypproc_master_2();
539 extern ypresp_master
* ypproc_master_2_svc();
540 #define YPPROC_ORDER ((u_long)10)
541 extern ypresp_order
* ypproc_order_2();
542 extern ypresp_order
* ypproc_order_2_svc();
543 #define YPPROC_MAPLIST ((u_long)11)
544 extern ypresp_maplist
* ypproc_maplist_2();
545 extern ypresp_maplist
* ypproc_maplist_2_svc();
546 #endif /* Old Style C */
548 #define YPPUSH_XFRRESPPROG ((u_long)0x40000000)
549 #define YPPUSH_XFRRESPVERS ((u_long)1)
552 #define YPPUSHPROC_NULL ((u_long)0)
553 extern "C" void * yppushproc_null_1(void *, CLIENT
*);
554 extern "C" void * yppushproc_null_1_svc(void *, struct svc_req
*);
555 #define YPPUSHPROC_XFRRESP ((u_long)1)
556 extern "C" yppushresp_xfr
* yppushproc_xfrresp_1(void *, CLIENT
*);
557 extern "C" yppushresp_xfr
* yppushproc_xfrresp_1_svc(void *, struct svc_req
*);
559 #elif defined(__STDC__)
560 #define YPPUSHPROC_NULL ((u_long)0)
561 extern void * yppushproc_null_1(void *, CLIENT
*);
562 extern void * yppushproc_null_1_svc(void *, struct svc_req
*);
563 #define YPPUSHPROC_XFRRESP ((u_long)1)
564 extern yppushresp_xfr
* yppushproc_xfrresp_1(void *, CLIENT
*);
565 extern yppushresp_xfr
* yppushproc_xfrresp_1_svc(void *, struct svc_req
*);
567 #else /* Old Style C */
568 #define YPPUSHPROC_NULL ((u_long)0)
569 extern void * yppushproc_null_1();
570 extern void * yppushproc_null_1_svc();
571 #define YPPUSHPROC_XFRRESP ((u_long)1)
572 extern yppushresp_xfr
* yppushproc_xfrresp_1();
573 extern yppushresp_xfr
* yppushproc_xfrresp_1_svc();
574 #endif /* Old Style C */
576 #define YPBINDPROG ((u_long)100007)
577 #define YPBINDVERS ((u_long)2)
580 #define YPBINDPROC_NULL ((u_long)0)
581 extern "C" void * ypbindproc_null_2(void *, CLIENT
*);
582 extern "C" void * ypbindproc_null_2_svc(void *, struct svc_req
*);
583 #define YPBINDPROC_DOMAIN ((u_long)1)
584 extern "C" ypbind_resp
* ypbindproc_domain_2(domainname
*, CLIENT
*);
585 extern "C" ypbind_resp
* ypbindproc_domain_2_svc(domainname
*, struct svc_req
*);
586 #define YPBINDPROC_SETDOM ((u_long)2)
587 extern "C" void * ypbindproc_setdom_2(ypbind_setdom
*, CLIENT
*);
588 extern "C" void * ypbindproc_setdom_2_svc(ypbind_setdom
*, struct svc_req
*);
590 #elif defined(__STDC__)
591 #define YPBINDPROC_NULL ((u_long)0)
592 extern void * ypbindproc_null_2(void *, CLIENT
*);
593 extern void * ypbindproc_null_2_svc(void *, struct svc_req
*);
594 #define YPBINDPROC_DOMAIN ((u_long)1)
595 extern ypbind_resp
* ypbindproc_domain_2(domainname
*, CLIENT
*);
596 extern ypbind_resp
* ypbindproc_domain_2_svc(domainname
*, struct svc_req
*);
597 #define YPBINDPROC_SETDOM ((u_long)2)
598 extern void * ypbindproc_setdom_2(ypbind_setdom
*, CLIENT
*);
599 extern void * ypbindproc_setdom_2_svc(ypbind_setdom
*, struct svc_req
*);
601 #else /* Old Style C */
602 #define YPBINDPROC_NULL ((u_long)0)
603 extern void * ypbindproc_null_2();
604 extern void * ypbindproc_null_2_svc();
605 #define YPBINDPROC_DOMAIN ((u_long)1)
606 extern ypbind_resp
* ypbindproc_domain_2();
607 extern ypbind_resp
* ypbindproc_domain_2_svc();
608 #define YPBINDPROC_SETDOM ((u_long)2)
609 extern void * ypbindproc_setdom_2();
610 extern void * ypbindproc_setdom_2_svc();
611 #endif /* Old Style C */
613 #endif /* !_YP_H_RPCGEN */