2 * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. Please obtain a copy of the License at
10 * http://www.opensource.apple.com/apsl/ and read it before using this
13 * The Original Code and all software distributed under the License are
14 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
18 * Please see the License for the specific language governing rights and
19 * limitations under the License.
21 * @APPLE_LICENSE_HEADER_END@
23 /* $OpenBSD: yp.h,v 1.5 1997/07/25 20:12:31 mickey Exp $ */
26 * Please do not edit this file.
27 * It was generated using rpcgen.
35 #define YPMAXRECORD 1024
36 #define YPMAXDOMAIN 64
53 typedef enum ypstat ypstat
;
55 extern "C" bool_t
xdr_ypstat(XDR
*, ypstat
*);
56 #elif defined(__STDC__)
57 extern bool_t
xdr_ypstat(XDR
*, ypstat
*);
58 #else /* Old Style C */
60 #endif /* Old Style C */
81 typedef enum ypxfrstat ypxfrstat
;
83 extern "C" bool_t
xdr_ypxfrstat(XDR
*, ypxfrstat
*);
84 #elif defined(__STDC__)
85 extern bool_t
xdr_ypxfrstat(XDR
*, ypxfrstat
*);
86 #else /* Old Style C */
87 bool_t
xdr_ypxfrstat();
88 #endif /* Old Style C */
91 typedef char *domainname
;
93 extern "C" bool_t
xdr_domainname(XDR
*, domainname
*);
94 #elif defined(__STDC__)
95 extern bool_t
xdr_domainname(XDR
*, domainname
*);
96 #else /* Old Style C */
97 bool_t
xdr_domainname();
98 #endif /* Old Style C */
101 typedef char *mapname
;
103 extern "C" bool_t
xdr_mapname(XDR
*, mapname
*);
104 #elif defined(__STDC__)
105 extern bool_t
xdr_mapname(XDR
*, mapname
*);
106 #else /* Old Style C */
107 bool_t
xdr_mapname();
108 #endif /* Old Style C */
111 typedef char *peername
;
113 extern "C" bool_t
xdr_peername(XDR
*, peername
*);
114 #elif defined(__STDC__)
115 extern bool_t
xdr_peername(XDR
*, peername
*);
116 #else /* Old Style C */
117 bool_t
xdr_peername();
118 #endif /* Old Style C */
126 extern "C" bool_t
xdr_keydat(XDR
*, keydat
*);
127 #elif defined(__STDC__)
128 extern bool_t
xdr_keydat(XDR
*, keydat
*);
129 #else /* Old Style C */
131 #endif /* Old Style C */
139 extern "C" bool_t
xdr_valdat(XDR
*, valdat
*);
140 #elif defined(__STDC__)
141 extern bool_t
xdr_valdat(XDR
*, valdat
*);
142 #else /* Old Style C */
144 #endif /* Old Style C */
153 typedef struct ypmap_parms ypmap_parms
;
155 extern "C" bool_t
xdr_ypmap_parms(XDR
*, ypmap_parms
*);
156 #elif defined(__STDC__)
157 extern bool_t
xdr_ypmap_parms(XDR
*, ypmap_parms
*);
158 #else /* Old Style C */
159 bool_t
xdr_ypmap_parms();
160 #endif /* Old Style C */
168 typedef struct ypreq_key ypreq_key
;
170 extern "C" bool_t
xdr_ypreq_key(XDR
*, ypreq_key
*);
171 #elif defined(__STDC__)
172 extern bool_t
xdr_ypreq_key(XDR
*, ypreq_key
*);
173 #else /* Old Style C */
174 bool_t
xdr_ypreq_key();
175 #endif /* Old Style C */
182 typedef struct ypreq_nokey ypreq_nokey
;
184 extern "C" bool_t
xdr_ypreq_nokey(XDR
*, ypreq_nokey
*);
185 #elif defined(__STDC__)
186 extern bool_t
xdr_ypreq_nokey(XDR
*, ypreq_nokey
*);
187 #else /* Old Style C */
188 bool_t
xdr_ypreq_nokey();
189 #endif /* Old Style C */
193 ypmap_parms map_parms
;
198 typedef struct ypreq_xfr ypreq_xfr
;
200 extern "C" bool_t
xdr_ypreq_xfr(XDR
*, ypreq_xfr
*);
201 #elif defined(__STDC__)
202 extern bool_t
xdr_ypreq_xfr(XDR
*, ypreq_xfr
*);
203 #else /* Old Style C */
204 bool_t
xdr_ypreq_xfr();
205 #endif /* Old Style C */
212 typedef struct ypresp_val ypresp_val
;
214 extern "C" bool_t
xdr_ypresp_val(XDR
*, ypresp_val
*);
215 #elif defined(__STDC__)
216 extern bool_t
xdr_ypresp_val(XDR
*, ypresp_val
*);
217 #else /* Old Style C */
218 bool_t
xdr_ypresp_val();
219 #endif /* Old Style C */
222 struct ypresp_key_val
{
227 typedef struct ypresp_key_val ypresp_key_val
;
229 extern "C" bool_t
xdr_ypresp_key_val(XDR
*, ypresp_key_val
*);
230 #elif defined(__STDC__)
231 extern bool_t
xdr_ypresp_key_val(XDR
*, ypresp_key_val
*);
232 #else /* Old Style C */
233 bool_t
xdr_ypresp_key_val();
234 #endif /* Old Style C */
237 struct ypresp_master
{
241 typedef struct ypresp_master ypresp_master
;
243 extern "C" bool_t
xdr_ypresp_master(XDR
*, ypresp_master
*);
244 #elif defined(__STDC__)
245 extern bool_t
xdr_ypresp_master(XDR
*, ypresp_master
*);
246 #else /* Old Style C */
247 bool_t
xdr_ypresp_master();
248 #endif /* Old Style C */
251 struct ypresp_order
{
255 typedef struct ypresp_order ypresp_order
;
257 extern "C" bool_t
xdr_ypresp_order(XDR
*, ypresp_order
*);
258 #elif defined(__STDC__)
259 extern bool_t
xdr_ypresp_order(XDR
*, ypresp_order
*);
260 #else /* Old Style C */
261 bool_t
xdr_ypresp_order();
262 #endif /* Old Style C */
271 typedef struct ypresp_all ypresp_all
;
273 extern "C" bool_t
xdr_ypresp_all(XDR
*, ypresp_all
*);
274 #elif defined(__STDC__)
275 extern bool_t
xdr_ypresp_all(XDR
*, ypresp_all
*);
276 #else /* Old Style C */
277 bool_t
xdr_ypresp_all();
278 #endif /* Old Style C */
285 typedef struct ypresp_xfr ypresp_xfr
;
287 extern "C" bool_t
xdr_ypresp_xfr(XDR
*, ypresp_xfr
*);
288 #elif defined(__STDC__)
289 extern bool_t
xdr_ypresp_xfr(XDR
*, ypresp_xfr
*);
290 #else /* Old Style C */
291 bool_t
xdr_ypresp_xfr();
292 #endif /* Old Style C */
297 struct ypmaplist
*next
;
299 typedef struct ypmaplist ypmaplist
;
301 extern "C" bool_t
xdr_ypmaplist(XDR
*, ypmaplist
*);
302 #elif defined(__STDC__)
303 extern bool_t
xdr_ypmaplist(XDR
*, ypmaplist
*);
304 #else /* Old Style C */
305 bool_t
xdr_ypmaplist();
306 #endif /* Old Style C */
309 struct ypresp_maplist
{
313 typedef struct ypresp_maplist ypresp_maplist
;
315 extern "C" bool_t
xdr_ypresp_maplist(XDR
*, ypresp_maplist
*);
316 #elif defined(__STDC__)
317 extern bool_t
xdr_ypresp_maplist(XDR
*, ypresp_maplist
*);
318 #else /* Old Style C */
319 bool_t
xdr_ypresp_maplist();
320 #endif /* Old Style C */
339 YPPUSH_REFUSED
= -14,
341 typedef enum yppush_status yppush_status
;
343 extern "C" bool_t
xdr_yppush_status(XDR
*, yppush_status
*);
344 #elif defined(__STDC__)
345 extern bool_t
xdr_yppush_status(XDR
*, yppush_status
*);
346 #else /* Old Style C */
347 bool_t
xdr_yppush_status();
348 #endif /* Old Style C */
351 struct yppushresp_xfr
{
353 yppush_status status
;
355 typedef struct yppushresp_xfr yppushresp_xfr
;
357 extern "C" bool_t
xdr_yppushresp_xfr(XDR
*, yppushresp_xfr
*);
358 #elif defined(__STDC__)
359 extern bool_t
xdr_yppushresp_xfr(XDR
*, yppushresp_xfr
*);
360 #else /* Old Style C */
361 bool_t
xdr_yppushresp_xfr();
362 #endif /* Old Style C */
365 enum ypbind_resptype
{
369 typedef enum ypbind_resptype ypbind_resptype
;
371 extern "C" bool_t
xdr_ypbind_resptype(XDR
*, ypbind_resptype
*);
372 #elif defined(__STDC__)
373 extern bool_t
xdr_ypbind_resptype(XDR
*, ypbind_resptype
*);
374 #else /* Old Style C */
375 bool_t
xdr_ypbind_resptype();
376 #endif /* Old Style C */
379 struct ypbind_binding
{
380 char ypbind_binding_addr
[4];
381 char ypbind_binding_port
[2];
383 typedef struct ypbind_binding ypbind_binding
;
385 extern "C" bool_t
xdr_ypbind_binding(XDR
*, ypbind_binding
*);
386 #elif defined(__STDC__)
387 extern bool_t
xdr_ypbind_binding(XDR
*, ypbind_binding
*);
388 #else /* Old Style C */
389 bool_t
xdr_ypbind_binding();
390 #endif /* Old Style C */
394 ypbind_resptype ypbind_status
;
397 ypbind_binding ypbind_bindinfo
;
400 typedef struct ypbind_resp ypbind_resp
;
402 extern "C" bool_t
xdr_ypbind_resp(XDR
*, ypbind_resp
*);
403 #elif defined(__STDC__)
404 extern bool_t
xdr_ypbind_resp(XDR
*, ypbind_resp
*);
405 #else /* Old Style C */
406 bool_t
xdr_ypbind_resp();
407 #endif /* Old Style C */
409 #define YPBIND_ERR_ERR 1
410 #define YPBIND_ERR_NOSERV 2
411 #define YPBIND_ERR_RESC 3
413 struct ypbind_setdom
{
414 domainname ypsetdom_domain
;
415 ypbind_binding ypsetdom_binding
;
418 typedef struct ypbind_setdom ypbind_setdom
;
420 extern "C" bool_t
xdr_ypbind_setdom(XDR
*, ypbind_setdom
*);
421 #elif defined(__STDC__)
422 extern bool_t
xdr_ypbind_setdom(XDR
*, ypbind_setdom
*);
423 #else /* Old Style C */
424 bool_t
xdr_ypbind_setdom();
425 #endif /* Old Style C */
428 #define YPPROG ((u_long)100004)
429 #define YPVERS ((u_long)2)
432 #define YPPROC_NULL ((u_long)0)
433 extern "C" void * ypproc_null_2(void *, CLIENT
*);
434 extern "C" void * ypproc_null_2_svc(void *, struct svc_req
*);
435 #define YPPROC_DOMAIN ((u_long)1)
436 extern "C" bool_t
* ypproc_domain_2(domainname
*, CLIENT
*);
437 extern "C" bool_t
* ypproc_domain_2_svc(domainname
*, struct svc_req
*);
438 #define YPPROC_DOMAIN_NONACK ((u_long)2)
439 extern "C" bool_t
* ypproc_domain_nonack_2(domainname
*, CLIENT
*);
440 extern "C" bool_t
* ypproc_domain_nonack_2_svc(domainname
*, struct svc_req
*);
441 #define YPPROC_MATCH ((u_long)3)
442 extern "C" ypresp_val
* ypproc_match_2(ypreq_key
*, CLIENT
*);
443 extern "C" ypresp_val
* ypproc_match_2_svc(ypreq_key
*, struct svc_req
*);
444 #define YPPROC_FIRST ((u_long)4)
445 extern "C" ypresp_key_val
* ypproc_first_2(ypreq_nokey
*, CLIENT
*);
446 extern "C" ypresp_key_val
* ypproc_first_2_svc(ypreq_nokey
*, struct svc_req
*);
447 #define YPPROC_NEXT ((u_long)5)
448 extern "C" ypresp_key_val
* ypproc_next_2(ypreq_key
*, CLIENT
*);
449 extern "C" ypresp_key_val
* ypproc_next_2_svc(ypreq_key
*, struct svc_req
*);
450 #define YPPROC_XFR ((u_long)6)
451 extern "C" ypresp_xfr
* ypproc_xfr_2(ypreq_xfr
*, CLIENT
*);
452 extern "C" ypresp_xfr
* ypproc_xfr_2_svc(ypreq_xfr
*, struct svc_req
*);
453 #define YPPROC_CLEAR ((u_long)7)
454 extern "C" void * ypproc_clear_2(void *, CLIENT
*);
455 extern "C" void * ypproc_clear_2_svc(void *, struct svc_req
*);
456 #define YPPROC_ALL ((u_long)8)
457 extern "C" ypresp_all
* ypproc_all_2(ypreq_nokey
*, CLIENT
*);
458 extern "C" ypresp_all
* ypproc_all_2_svc(ypreq_nokey
*, struct svc_req
*);
459 #define YPPROC_MASTER ((u_long)9)
460 extern "C" ypresp_master
* ypproc_master_2(ypreq_nokey
*, CLIENT
*);
461 extern "C" ypresp_master
* ypproc_master_2_svc(ypreq_nokey
*, struct svc_req
*);
462 #define YPPROC_ORDER ((u_long)10)
463 extern "C" ypresp_order
* ypproc_order_2(ypreq_nokey
*, CLIENT
*);
464 extern "C" ypresp_order
* ypproc_order_2_svc(ypreq_nokey
*, struct svc_req
*);
465 #define YPPROC_MAPLIST ((u_long)11)
466 extern "C" ypresp_maplist
* ypproc_maplist_2(domainname
*, CLIENT
*);
467 extern "C" ypresp_maplist
* ypproc_maplist_2_svc(domainname
*, struct svc_req
*);
469 #elif defined(__STDC__)
470 #define YPPROC_NULL ((u_long)0)
471 extern void * ypproc_null_2(void *, CLIENT
*);
472 extern void * ypproc_null_2_svc(void *, struct svc_req
*);
473 #define YPPROC_DOMAIN ((u_long)1)
474 extern bool_t
* ypproc_domain_2(domainname
*, CLIENT
*);
475 extern bool_t
* ypproc_domain_2_svc(domainname
*, struct svc_req
*);
476 #define YPPROC_DOMAIN_NONACK ((u_long)2)
477 extern bool_t
* ypproc_domain_nonack_2(domainname
*, CLIENT
*);
478 extern bool_t
* ypproc_domain_nonack_2_svc(domainname
*, struct svc_req
*);
479 #define YPPROC_MATCH ((u_long)3)
480 extern ypresp_val
* ypproc_match_2(ypreq_key
*, CLIENT
*);
481 extern ypresp_val
* ypproc_match_2_svc(ypreq_key
*, struct svc_req
*);
482 #define YPPROC_FIRST ((u_long)4)
483 extern ypresp_key_val
* ypproc_first_2(ypreq_nokey
*, CLIENT
*);
484 extern ypresp_key_val
* ypproc_first_2_svc(ypreq_nokey
*, struct svc_req
*);
485 #define YPPROC_NEXT ((u_long)5)
486 extern ypresp_key_val
* ypproc_next_2(ypreq_key
*, CLIENT
*);
487 extern ypresp_key_val
* ypproc_next_2_svc(ypreq_key
*, struct svc_req
*);
488 #define YPPROC_XFR ((u_long)6)
489 extern ypresp_xfr
* ypproc_xfr_2(ypreq_xfr
*, CLIENT
*);
490 extern ypresp_xfr
* ypproc_xfr_2_svc(ypreq_xfr
*, struct svc_req
*);
491 #define YPPROC_CLEAR ((u_long)7)
492 extern void * ypproc_clear_2(void *, CLIENT
*);
493 extern void * ypproc_clear_2_svc(void *, struct svc_req
*);
494 #define YPPROC_ALL ((u_long)8)
495 extern ypresp_all
* ypproc_all_2(ypreq_nokey
*, CLIENT
*);
496 extern ypresp_all
* ypproc_all_2_svc(ypreq_nokey
*, struct svc_req
*);
497 #define YPPROC_MASTER ((u_long)9)
498 extern ypresp_master
* ypproc_master_2(ypreq_nokey
*, CLIENT
*);
499 extern ypresp_master
* ypproc_master_2_svc(ypreq_nokey
*, struct svc_req
*);
500 #define YPPROC_ORDER ((u_long)10)
501 extern ypresp_order
* ypproc_order_2(ypreq_nokey
*, CLIENT
*);
502 extern ypresp_order
* ypproc_order_2_svc(ypreq_nokey
*, struct svc_req
*);
503 #define YPPROC_MAPLIST ((u_long)11)
504 extern ypresp_maplist
* ypproc_maplist_2(domainname
*, CLIENT
*);
505 extern ypresp_maplist
* ypproc_maplist_2_svc(domainname
*, struct svc_req
*);
507 #else /* Old Style C */
508 #define YPPROC_NULL ((u_long)0)
509 extern void * ypproc_null_2();
510 extern void * ypproc_null_2_svc();
511 #define YPPROC_DOMAIN ((u_long)1)
512 extern bool_t
* ypproc_domain_2();
513 extern bool_t
* ypproc_domain_2_svc();
514 #define YPPROC_DOMAIN_NONACK ((u_long)2)
515 extern bool_t
* ypproc_domain_nonack_2();
516 extern bool_t
* ypproc_domain_nonack_2_svc();
517 #define YPPROC_MATCH ((u_long)3)
518 extern ypresp_val
* ypproc_match_2();
519 extern ypresp_val
* ypproc_match_2_svc();
520 #define YPPROC_FIRST ((u_long)4)
521 extern ypresp_key_val
* ypproc_first_2();
522 extern ypresp_key_val
* ypproc_first_2_svc();
523 #define YPPROC_NEXT ((u_long)5)
524 extern ypresp_key_val
* ypproc_next_2();
525 extern ypresp_key_val
* ypproc_next_2_svc();
526 #define YPPROC_XFR ((u_long)6)
527 extern ypresp_xfr
* ypproc_xfr_2();
528 extern ypresp_xfr
* ypproc_xfr_2_svc();
529 #define YPPROC_CLEAR ((u_long)7)
530 extern void * ypproc_clear_2();
531 extern void * ypproc_clear_2_svc();
532 #define YPPROC_ALL ((u_long)8)
533 extern ypresp_all
* ypproc_all_2();
534 extern ypresp_all
* ypproc_all_2_svc();
535 #define YPPROC_MASTER ((u_long)9)
536 extern ypresp_master
* ypproc_master_2();
537 extern ypresp_master
* ypproc_master_2_svc();
538 #define YPPROC_ORDER ((u_long)10)
539 extern ypresp_order
* ypproc_order_2();
540 extern ypresp_order
* ypproc_order_2_svc();
541 #define YPPROC_MAPLIST ((u_long)11)
542 extern ypresp_maplist
* ypproc_maplist_2();
543 extern ypresp_maplist
* ypproc_maplist_2_svc();
544 #endif /* Old Style C */
546 #define YPPUSH_XFRRESPPROG ((u_long)0x40000000)
547 #define YPPUSH_XFRRESPVERS ((u_long)1)
550 #define YPPUSHPROC_NULL ((u_long)0)
551 extern "C" void * yppushproc_null_1(void *, CLIENT
*);
552 extern "C" void * yppushproc_null_1_svc(void *, struct svc_req
*);
553 #define YPPUSHPROC_XFRRESP ((u_long)1)
554 extern "C" yppushresp_xfr
* yppushproc_xfrresp_1(void *, CLIENT
*);
555 extern "C" yppushresp_xfr
* yppushproc_xfrresp_1_svc(void *, struct svc_req
*);
557 #elif defined(__STDC__)
558 #define YPPUSHPROC_NULL ((u_long)0)
559 extern void * yppushproc_null_1(void *, CLIENT
*);
560 extern void * yppushproc_null_1_svc(void *, struct svc_req
*);
561 #define YPPUSHPROC_XFRRESP ((u_long)1)
562 extern yppushresp_xfr
* yppushproc_xfrresp_1(void *, CLIENT
*);
563 extern yppushresp_xfr
* yppushproc_xfrresp_1_svc(void *, struct svc_req
*);
565 #else /* Old Style C */
566 #define YPPUSHPROC_NULL ((u_long)0)
567 extern void * yppushproc_null_1();
568 extern void * yppushproc_null_1_svc();
569 #define YPPUSHPROC_XFRRESP ((u_long)1)
570 extern yppushresp_xfr
* yppushproc_xfrresp_1();
571 extern yppushresp_xfr
* yppushproc_xfrresp_1_svc();
572 #endif /* Old Style C */
574 #define YPBINDPROG ((u_long)100007)
575 #define YPBINDVERS ((u_long)2)
578 #define YPBINDPROC_NULL ((u_long)0)
579 extern "C" void * ypbindproc_null_2(void *, CLIENT
*);
580 extern "C" void * ypbindproc_null_2_svc(void *, struct svc_req
*);
581 #define YPBINDPROC_DOMAIN ((u_long)1)
582 extern "C" ypbind_resp
* ypbindproc_domain_2(domainname
*, CLIENT
*);
583 extern "C" ypbind_resp
* ypbindproc_domain_2_svc(domainname
*, struct svc_req
*);
584 #define YPBINDPROC_SETDOM ((u_long)2)
585 extern "C" void * ypbindproc_setdom_2(ypbind_setdom
*, CLIENT
*);
586 extern "C" void * ypbindproc_setdom_2_svc(ypbind_setdom
*, struct svc_req
*);
588 #elif defined(__STDC__)
589 #define YPBINDPROC_NULL ((u_long)0)
590 extern void * ypbindproc_null_2(void *, CLIENT
*);
591 extern void * ypbindproc_null_2_svc(void *, struct svc_req
*);
592 #define YPBINDPROC_DOMAIN ((u_long)1)
593 extern ypbind_resp
* ypbindproc_domain_2(domainname
*, CLIENT
*);
594 extern ypbind_resp
* ypbindproc_domain_2_svc(domainname
*, struct svc_req
*);
595 #define YPBINDPROC_SETDOM ((u_long)2)
596 extern void * ypbindproc_setdom_2(ypbind_setdom
*, CLIENT
*);
597 extern void * ypbindproc_setdom_2_svc(ypbind_setdom
*, struct svc_req
*);
599 #else /* Old Style C */
600 #define YPBINDPROC_NULL ((u_long)0)
601 extern void * ypbindproc_null_2();
602 extern void * ypbindproc_null_2_svc();
603 #define YPBINDPROC_DOMAIN ((u_long)1)
604 extern ypbind_resp
* ypbindproc_domain_2();
605 extern ypbind_resp
* ypbindproc_domain_2_svc();
606 #define YPBINDPROC_SETDOM ((u_long)2)
607 extern void * ypbindproc_setdom_2();
608 extern void * ypbindproc_setdom_2_svc();
609 #endif /* Old Style C */
611 #endif /* !_YP_H_RPCGEN */