Where Online Learning is simpler!
The C and C++ Include Header Files
/usr/include/tirpc/rpc/rpcb_prot.h
$ cat -n /usr/include/tirpc/rpc/rpcb_prot.h 1 /* 2 * Please do not edit this file. 3 * It was generated using rpcgen. 4 */ 5 6 #ifndef _RPCB_PROT_H_RPCGEN 7 #define _RPCB_PROT_H_RPCGEN 8 9 #include
10 11 #ifndef IXDR_GET_INT32 12 #define IXDR_GET_INT32(buf) IXDR_GET_LONG((buf)) 13 #endif 14 #ifndef IXDR_PUT_INT32 15 #define IXDR_PUT_INT32(buf, v) IXDR_PUT_LONG((buf), (v)) 16 #endif 17 #ifndef IXDR_GET_U_INT32 18 #define IXDR_GET_U_INT32(buf) IXDR_GET_U_LONG((buf)) 19 #endif 20 #ifndef IXDR_PUT_U_INT32 21 #define IXDR_PUT_U_INT32(buf, v) IXDR_PUT_U_LONG((buf), (v)) 22 #endif 23 /* 24 * $FreeBSD: src/include/rpc/rpcb_prot.x,v 1.3 2002/03/13 10:29:06 obrien Exp $ 25 * 26 * Copyright (c) 2009, Sun Microsystems, Inc. 27 * All rights reserved. 28 * 29 * Redistribution and use in source and binary forms, with or without 30 * modification, are permitted provided that the following conditions are met: 31 * - Redistributions of source code must retain the above copyright notice, 32 * this list of conditions and the following disclaimer. 33 * - Redistributions in binary form must reproduce the above copyright notice, 34 * this list of conditions and the following disclaimer in the documentation 35 * and/or other materials provided with the distribution. 36 * - Neither the name of Sun Microsystems, Inc. nor the names of its 37 * contributors may be used to endorse or promote products derived 38 * from this software without specific prior written permission. 39 * 40 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 41 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 42 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 43 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 44 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 45 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 46 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 47 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 48 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 49 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 50 * POSSIBILITY OF SUCH DAMAGE. 51 */ 52 /* 53 * Copyright (c) 1988 by Sun Microsystems, Inc. 54 */ 55 /* from rpcb_prot.x */ 56 57 /* #pragma ident "@(#)rpcb_prot.x 1.5 94/04/29 SMI" */ 58 59 #ifndef _KERNEL 60 61 62 /* 63 * The following procedures are supported by the protocol in version 3: 64 * 65 * RPCBPROC_NULL() returns () 66 * takes nothing, returns nothing 67 * 68 * RPCBPROC_SET(rpcb) returns (bool_t) 69 * TRUE is success, FALSE is failure. Registers the tuple 70 * [prog, vers, address, owner, netid]. 71 * Finds out owner and netid information on its own. 72 * 73 * RPCBPROC_UNSET(rpcb) returns (bool_t) 74 * TRUE is success, FALSE is failure. Un-registers tuple 75 * [prog, vers, netid]. addresses is ignored. 76 * If netid is NULL, unregister all. 77 * 78 * RPCBPROC_GETADDR(rpcb) returns (string). 79 * 0 is failure. Otherwise returns the universal address where the 80 * triple [prog, vers, netid] is registered. Ignore address and owner. 81 * 82 * RPCBPROC_DUMP() RETURNS (rpcblist_ptr) 83 * used to dump the entire rpcbind maps 84 * 85 * RPCBPROC_CALLIT(rpcb_rmtcallargs) 86 * RETURNS (rpcb_rmtcallres); 87 * Calls the procedure on the remote machine. If it is not registered, 88 * this procedure is quiet; i.e. it does not return error information!!! 89 * This routine only passes null authentication parameters. 90 * It has no interface to xdr routines for RPCBPROC_CALLIT. 91 * 92 * RPCBPROC_GETTIME() returns (int). 93 * Gets the remote machines time 94 * 95 * RPCBPROC_UADDR2TADDR(strint) RETURNS (struct netbuf) 96 * Returns the netbuf address from universal address. 97 * 98 * RPCBPROC_TADDR2UADDR(struct netbuf) RETURNS (string) 99 * Returns the universal address from netbuf address. 100 * 101 * END OF RPCBIND VERSION 3 PROCEDURES 102 */ 103 /* 104 * Except for RPCBPROC_CALLIT, the procedures above are carried over to 105 * rpcbind version 4. Those below are added or modified for version 4. 106 * NOTE: RPCBPROC_BCAST HAS THE SAME FUNCTIONALITY AND PROCEDURE NUMBER 107 * AS RPCBPROC_CALLIT. 108 * 109 * RPCBPROC_BCAST(rpcb_rmtcallargs) 110 * RETURNS (rpcb_rmtcallres); 111 * Calls the procedure on the remote machine. If it is not registered, 112 * this procedure IS quiet; i.e. it DOES NOT return error information!!! 113 * This routine should be used for broadcasting and nothing else. 114 * 115 * RPCBPROC_GETVERSADDR(rpcb) returns (string). 116 * 0 is failure. Otherwise returns the universal address where the 117 * triple [prog, vers, netid] is registered. Ignore address and owner. 118 * Same as RPCBPROC_GETADDR except that if the given version number 119 * is not available, the address is not returned. 120 * 121 * RPCBPROC_INDIRECT(rpcb_rmtcallargs) 122 * RETURNS (rpcb_rmtcallres); 123 * Calls the procedure on the remote machine. If it is not registered, 124 * this procedure is NOT quiet; i.e. it DOES return error information!!! 125 * as any normal application would expect. 126 * 127 * RPCBPROC_GETADDRLIST(rpcb) returns (rpcb_entry_list_ptr). 128 * Same as RPCBPROC_GETADDR except that it returns a list of all the 129 * addresses registered for the combination (prog, vers) (for all 130 * transports). 131 * 132 * RPCBPROC_GETSTAT(void) returns (rpcb_stat_byvers) 133 * Returns the statistics about the kind of requests received by rpcbind. 134 */ 135 136 /* 137 * A mapping of (program, version, network ID) to address 138 */ 139 140 struct rpcb { 141 rpcprog_t r_prog; 142 rpcvers_t r_vers; 143 char *r_netid; 144 char *r_addr; 145 char *r_owner; 146 }; 147 typedef struct rpcb rpcb; 148 #ifdef __cplusplus 149 extern "C" bool_t xdr_rpcb(XDR *, rpcb*); 150 #elif __STDC__ 151 extern bool_t xdr_rpcb(XDR *, rpcb*); 152 #else /* Old Style C */ 153 bool_t xdr_rpcb(); 154 #endif /* Old Style C */ 155 156 157 typedef rpcb RPCB; 158 159 160 /* 161 * A list of mappings 162 * 163 * Below are two definitions for the rpcblist structure. This is done because 164 * xdr_rpcblist() is specified to take a struct rpcblist **, rather than a 165 * struct rpcblist * that rpcgen would produce. One version of the rpcblist 166 * structure (actually called rp__list) is used with rpcgen, and the other is 167 * defined only in the header file for compatibility with the specified 168 * interface. 169 */ 170 171 struct rp__list { 172 rpcb rpcb_map; 173 struct rp__list *rpcb_next; 174 }; 175 typedef struct rp__list rp__list; 176 #ifdef __cplusplus 177 extern "C" bool_t xdr_rp__list(XDR *, rp__list*); 178 #elif __STDC__ 179 extern bool_t xdr_rp__list(XDR *, rp__list*); 180 #else /* Old Style C */ 181 bool_t xdr_rp__list(); 182 #endif /* Old Style C */ 183 184 185 typedef rp__list *rpcblist_ptr; 186 #ifdef __cplusplus 187 extern "C" bool_t xdr_rpcblist_ptr(XDR *, rpcblist_ptr*); 188 #elif __STDC__ 189 extern bool_t xdr_rpcblist_ptr(XDR *, rpcblist_ptr*); 190 #else /* Old Style C */ 191 bool_t xdr_rpcblist_ptr(); 192 #endif /* Old Style C */ 193 194 195 typedef struct rp__list rpcblist; 196 typedef struct rp__list RPCBLIST; 197 198 #ifndef __cplusplus 199 struct rpcblist { 200 RPCB rpcb_map; 201 struct rpcblist *rpcb_next; 202 }; 203 #endif 204 205 #ifdef __cplusplus 206 extern "C" { 207 #endif 208 extern bool_t xdr_rpcblist(XDR *, rpcblist**); 209 #ifdef __cplusplus 210 } 211 #endif 212 213 214 /* 215 * Arguments of remote calls 216 */ 217 218 struct rpcb_rmtcallargs { 219 rpcprog_t prog; 220 rpcvers_t vers; 221 rpcproc_t proc; 222 struct { 223 u_int args_len; 224 char *args_val; 225 } args; 226 }; 227 typedef struct rpcb_rmtcallargs rpcb_rmtcallargs; 228 #ifdef __cplusplus 229 extern "C" bool_t xdr_rpcb_rmtcallargs(XDR *, rpcb_rmtcallargs*); 230 #elif __STDC__ 231 extern bool_t xdr_rpcb_rmtcallargs(XDR *, rpcb_rmtcallargs*); 232 #else /* Old Style C */ 233 bool_t xdr_rpcb_rmtcallargs(); 234 #endif /* Old Style C */ 235 236 237 /* 238 * Client-side only representation of rpcb_rmtcallargs structure. 239 * 240 * The routine that XDRs the rpcb_rmtcallargs structure must deal with the 241 * opaque arguments in the "args" structure. xdr_rpcb_rmtcallargs() needs to 242 * be passed the XDR routine that knows the args' structure. This routine 243 * doesn't need to go over-the-wire (and it wouldn't make sense anyway) since 244 * the application being called already knows the args structure. So we use a 245 * different "XDR" structure on the client side, r_rpcb_rmtcallargs, which 246 * includes the args' XDR routine. 247 */ 248 struct r_rpcb_rmtcallargs { 249 rpcprog_t prog; 250 rpcvers_t vers; 251 rpcproc_t proc; 252 struct { 253 u_int args_len; 254 char *args_val; 255 } args; 256 xdrproc_t xdr_args; /* encodes args */ 257 }; 258 259 260 /* 261 * Results of the remote call 262 */ 263 264 struct rpcb_rmtcallres { 265 char *addr; 266 struct { 267 u_int results_len; 268 char *results_val; 269 } results; 270 }; 271 typedef struct rpcb_rmtcallres rpcb_rmtcallres; 272 #ifdef __cplusplus 273 extern "C" bool_t xdr_rpcb_rmtcallres(XDR *, rpcb_rmtcallres*); 274 #elif __STDC__ 275 extern bool_t xdr_rpcb_rmtcallres(XDR *, rpcb_rmtcallres*); 276 #else /* Old Style C */ 277 bool_t xdr_rpcb_rmtcallres(); 278 #endif /* Old Style C */ 279 280 281 /* 282 * Client-side only representation of rpcb_rmtcallres structure. 283 */ 284 struct r_rpcb_rmtcallres { 285 char *addr; 286 struct { 287 u_int32_t results_len; 288 char *results_val; 289 } results; 290 xdrproc_t xdr_res; /* decodes results */ 291 }; 292 293 /* 294 * rpcb_entry contains a merged address of a service on a particular 295 * transport, plus associated netconfig information. A list of rpcb_entrys 296 * is returned by RPCBPROC_GETADDRLIST. See netconfig.h for values used 297 * in r_nc_* fields. 298 */ 299 300 struct rpcb_entry { 301 char *r_maddr; 302 char *r_nc_netid; 303 u_int r_nc_semantics; 304 char *r_nc_protofmly; 305 char *r_nc_proto; 306 }; 307 typedef struct rpcb_entry rpcb_entry; 308 #ifdef __cplusplus 309 extern "C" bool_t xdr_rpcb_entry(XDR *, rpcb_entry*); 310 #elif __STDC__ 311 extern bool_t xdr_rpcb_entry(XDR *, rpcb_entry*); 312 #else /* Old Style C */ 313 bool_t xdr_rpcb_entry(); 314 #endif /* Old Style C */ 315 316 317 /* 318 * A list of addresses supported by a service. 319 */ 320 321 struct rpcb_entry_list { 322 rpcb_entry rpcb_entry_map; 323 struct rpcb_entry_list *rpcb_entry_next; 324 }; 325 typedef struct rpcb_entry_list rpcb_entry_list; 326 #ifdef __cplusplus 327 extern "C" bool_t xdr_rpcb_entry_list(XDR *, rpcb_entry_list*); 328 #elif __STDC__ 329 extern bool_t xdr_rpcb_entry_list(XDR *, rpcb_entry_list*); 330 #else /* Old Style C */ 331 bool_t xdr_rpcb_entry_list(); 332 #endif /* Old Style C */ 333 334 335 typedef rpcb_entry_list *rpcb_entry_list_ptr; 336 #ifdef __cplusplus 337 extern "C" bool_t xdr_rpcb_entry_list_ptr(XDR *, rpcb_entry_list_ptr*); 338 #elif __STDC__ 339 extern bool_t xdr_rpcb_entry_list_ptr(XDR *, rpcb_entry_list_ptr*); 340 #else /* Old Style C */ 341 bool_t xdr_rpcb_entry_list_ptr(); 342 #endif /* Old Style C */ 343 344 345 /* 346 * rpcbind statistics 347 */ 348 349 #define rpcb_highproc_2 RPCBPROC_CALLIT 350 #define rpcb_highproc_3 RPCBPROC_TADDR2UADDR 351 #define rpcb_highproc_4 RPCBPROC_GETSTAT 352 #define RPCBSTAT_HIGHPROC 13 353 #define RPCBVERS_STAT 3 354 #define RPCBVERS_4_STAT 2 355 #define RPCBVERS_3_STAT 1 356 #define RPCBVERS_2_STAT 0 357 358 /* Link list of all the stats about getport and getaddr */ 359 360 struct rpcbs_addrlist { 361 rpcprog_t prog; 362 rpcvers_t vers; 363 int success; 364 int failure; 365 char *netid; 366 struct rpcbs_addrlist *next; 367 }; 368 typedef struct rpcbs_addrlist rpcbs_addrlist; 369 #ifdef __cplusplus 370 extern "C" bool_t xdr_rpcbs_addrlist(XDR *, rpcbs_addrlist*); 371 #elif __STDC__ 372 extern bool_t xdr_rpcbs_addrlist(XDR *, rpcbs_addrlist*); 373 #else /* Old Style C */ 374 bool_t xdr_rpcbs_addrlist(); 375 #endif /* Old Style C */ 376 377 378 /* Link list of all the stats about rmtcall */ 379 380 struct rpcbs_rmtcalllist { 381 rpcprog_t prog; 382 rpcvers_t vers; 383 rpcproc_t proc; 384 int success; 385 int failure; 386 int indirect; 387 char *netid; 388 struct rpcbs_rmtcalllist *next; 389 }; 390 typedef struct rpcbs_rmtcalllist rpcbs_rmtcalllist; 391 #ifdef __cplusplus 392 extern "C" bool_t xdr_rpcbs_rmtcalllist(XDR *, rpcbs_rmtcalllist*); 393 #elif __STDC__ 394 extern bool_t xdr_rpcbs_rmtcalllist(XDR *, rpcbs_rmtcalllist*); 395 #else /* Old Style C */ 396 bool_t xdr_rpcbs_rmtcalllist(); 397 #endif /* Old Style C */ 398 399 400 typedef int rpcbs_proc[RPCBSTAT_HIGHPROC]; 401 #ifdef __cplusplus 402 extern "C" bool_t xdr_rpcbs_proc(XDR *, rpcbs_proc); 403 #elif __STDC__ 404 extern bool_t xdr_rpcbs_proc(XDR *, rpcbs_proc); 405 #else /* Old Style C */ 406 bool_t xdr_rpcbs_proc(); 407 #endif /* Old Style C */ 408 409 410 typedef rpcbs_addrlist *rpcbs_addrlist_ptr; 411 #ifdef __cplusplus 412 extern "C" bool_t xdr_rpcbs_addrlist_ptr(XDR *, rpcbs_addrlist_ptr*); 413 #elif __STDC__ 414 extern bool_t xdr_rpcbs_addrlist_ptr(XDR *, rpcbs_addrlist_ptr*); 415 #else /* Old Style C */ 416 bool_t xdr_rpcbs_addrlist_ptr(); 417 #endif /* Old Style C */ 418 419 420 typedef rpcbs_rmtcalllist *rpcbs_rmtcalllist_ptr; 421 #ifdef __cplusplus 422 extern "C" bool_t xdr_rpcbs_rmtcalllist_ptr(XDR *, rpcbs_rmtcalllist_ptr*); 423 #elif __STDC__ 424 extern bool_t xdr_rpcbs_rmtcalllist_ptr(XDR *, rpcbs_rmtcalllist_ptr*); 425 #else /* Old Style C */ 426 bool_t xdr_rpcbs_rmtcalllist_ptr(); 427 #endif /* Old Style C */ 428 429 430 struct rpcb_stat { 431 rpcbs_proc info; 432 int setinfo; 433 int unsetinfo; 434 rpcbs_addrlist_ptr addrinfo; 435 rpcbs_rmtcalllist_ptr rmtinfo; 436 }; 437 typedef struct rpcb_stat rpcb_stat; 438 #ifdef __cplusplus 439 extern "C" bool_t xdr_rpcb_stat(XDR *, rpcb_stat*); 440 #elif __STDC__ 441 extern bool_t xdr_rpcb_stat(XDR *, rpcb_stat*); 442 #else /* Old Style C */ 443 bool_t xdr_rpcb_stat(); 444 #endif /* Old Style C */ 445 446 447 /* 448 * One rpcb_stat structure is returned for each version of rpcbind 449 * being monitored. 450 */ 451 452 typedef rpcb_stat rpcb_stat_byvers[RPCBVERS_STAT]; 453 #ifdef __cplusplus 454 extern "C" bool_t xdr_rpcb_stat_byvers(XDR *, rpcb_stat_byvers); 455 #elif __STDC__ 456 extern bool_t xdr_rpcb_stat_byvers(XDR *, rpcb_stat_byvers); 457 #else /* Old Style C */ 458 bool_t xdr_rpcb_stat_byvers(); 459 #endif /* Old Style C */ 460 461 462 /* 463 * We don't define netbuf in RPCL, since it would contain structure member 464 * names that would conflict with the definition of struct netbuf in 465 *
. Instead we merely declare the XDR routine xdr_netbuf() here, 466 * and implement it ourselves in rpc/rpcb_prot.c. 467 */ 468 #ifdef __cplusplus 469 extern "C" bool_t xdr_netbuf(XDR *, struct netbuf *); 470 471 #else /* __STDC__ */ 472 extern bool_t xdr_netbuf(XDR *, struct netbuf *); 473 474 #endif 475 476 #define RPCBVERS_3 RPCBVERS 477 #define RPCBVERS_4 RPCBVERS4 478 479 #define _PATH_RPCBINDSOCK "/var/run/rpcbind.sock" 480 481 #else /* ndef _KERNEL */ 482 #ifdef __cplusplus 483 extern "C" { 484 #endif 485 486 /* 487 * A mapping of (program, version, network ID) to address 488 */ 489 struct rpcb { 490 rpcprog_t r_prog; /* program number */ 491 rpcvers_t r_vers; /* version number */ 492 char *r_netid; /* network id */ 493 char *r_addr; /* universal address */ 494 char *r_owner; /* owner of the mapping */ 495 }; 496 typedef struct rpcb RPCB; 497 498 /* 499 * A list of mappings 500 */ 501 struct rpcblist { 502 RPCB rpcb_map; 503 struct rpcblist *rpcb_next; 504 }; 505 typedef struct rpcblist RPCBLIST; 506 typedef struct rpcblist *rpcblist_ptr; 507 508 /* 509 * Remote calls arguments 510 */ 511 struct rpcb_rmtcallargs { 512 rpcprog_t prog; /* program number */ 513 rpcvers_t vers; /* version number */ 514 rpcproc_t proc; /* procedure number */ 515 u_int32_t arglen; /* arg len */ 516 caddr_t args_ptr; /* argument */ 517 xdrproc_t xdr_args; /* XDR routine for argument */ 518 }; 519 typedef struct rpcb_rmtcallargs rpcb_rmtcallargs; 520 521 /* 522 * Remote calls results 523 */ 524 struct rpcb_rmtcallres { 525 char *addr_ptr; /* remote universal address */ 526 u_int32_t resultslen; /* results length */ 527 caddr_t results_ptr; /* results */ 528 xdrproc_t xdr_results; /* XDR routine for result */ 529 }; 530 typedef struct rpcb_rmtcallres rpcb_rmtcallres; 531 532 struct rpcb_entry { 533 char *r_maddr; 534 char *r_nc_netid; 535 unsigned int r_nc_semantics; 536 char *r_nc_protofmly; 537 char *r_nc_proto; 538 }; 539 typedef struct rpcb_entry rpcb_entry; 540 541 /* 542 * A list of addresses supported by a service. 543 */ 544 545 struct rpcb_entry_list { 546 rpcb_entry rpcb_entry_map; 547 struct rpcb_entry_list *rpcb_entry_next; 548 }; 549 typedef struct rpcb_entry_list rpcb_entry_list; 550 551 typedef rpcb_entry_list *rpcb_entry_list_ptr; 552 553 /* 554 * rpcbind statistics 555 */ 556 557 #define rpcb_highproc_2 RPCBPROC_CALLIT 558 #define rpcb_highproc_3 RPCBPROC_TADDR2UADDR 559 #define rpcb_highproc_4 RPCBPROC_GETSTAT 560 #define RPCBSTAT_HIGHPROC 13 561 #define RPCBVERS_STAT 3 562 #define RPCBVERS_4_STAT 2 563 #define RPCBVERS_3_STAT 1 564 #define RPCBVERS_2_STAT 0 565 566 /* Link list of all the stats about getport and getaddr */ 567 568 struct rpcbs_addrlist { 569 rpcprog_t prog; 570 rpcvers_t vers; 571 int success; 572 int failure; 573 char *netid; 574 struct rpcbs_addrlist *next; 575 }; 576 typedef struct rpcbs_addrlist rpcbs_addrlist; 577 578 /* Link list of all the stats about rmtcall */ 579 580 struct rpcbs_rmtcalllist { 581 rpcprog_t prog; 582 rpcvers_t vers; 583 rpcproc_t proc; 584 int success; 585 int failure; 586 int indirect; 587 char *netid; 588 struct rpcbs_rmtcalllist *next; 589 }; 590 typedef struct rpcbs_rmtcalllist rpcbs_rmtcalllist; 591 592 typedef int rpcbs_proc[RPCBSTAT_HIGHPROC]; 593 594 typedef rpcbs_addrlist *rpcbs_addrlist_ptr; 595 596 typedef rpcbs_rmtcalllist *rpcbs_rmtcalllist_ptr; 597 598 struct rpcb_stat { 599 rpcbs_proc info; 600 int setinfo; 601 int unsetinfo; 602 rpcbs_addrlist_ptr addrinfo; 603 rpcbs_rmtcalllist_ptr rmtinfo; 604 }; 605 typedef struct rpcb_stat rpcb_stat; 606 607 /* 608 * One rpcb_stat structure is returned for each version of rpcbind 609 * being monitored. 610 */ 611 612 typedef rpcb_stat rpcb_stat_byvers[RPCBVERS_STAT]; 613 614 #ifdef __cplusplus 615 } 616 #endif 617 618 #endif /* ndef _KERNEL */ 619 620 #define RPCBPROG ((u_int32_t)100000) 621 #define RPCBVERS ((u_int32_t)3) 622 623 #ifdef __cplusplus 624 #define RPCBPROC_SET ((u_int32_t)1) 625 extern "C" bool_t * rpcbproc_set_3(rpcb *, CLIENT *); 626 extern "C" bool_t * rpcbproc_set_3_svc(rpcb *, struct svc_req *); 627 #define RPCBPROC_UNSET ((u_int32_t)2) 628 extern "C" bool_t * rpcbproc_unset_3(rpcb *, CLIENT *); 629 extern "C" bool_t * rpcbproc_unset_3_svc(rpcb *, struct svc_req *); 630 #define RPCBPROC_GETADDR ((u_int32_t)3) 631 extern "C" char ** rpcbproc_getaddr_3(rpcb *, CLIENT *); 632 extern "C" char ** rpcbproc_getaddr_3_svc(rpcb *, struct svc_req *); 633 #define RPCBPROC_DUMP ((u_int32_t)4) 634 extern "C" rpcblist_ptr * rpcbproc_dump_3(void *, CLIENT *); 635 extern "C" rpcblist_ptr * rpcbproc_dump_3_svc(void *, struct svc_req *); 636 #define RPCBPROC_CALLIT ((u_int32_t)5) 637 extern "C" rpcb_rmtcallres * rpcbproc_callit_3(rpcb_rmtcallargs *, CLIENT *); 638 extern "C" rpcb_rmtcallres * rpcbproc_callit_3_svc(rpcb_rmtcallargs *, struct svc_req *); 639 #define RPCBPROC_GETTIME ((u_int32_t)6) 640 extern "C" u_int * rpcbproc_gettime_3(void *, CLIENT *); 641 extern "C" u_int * rpcbproc_gettime_3_svc(void *, struct svc_req *); 642 #define RPCBPROC_UADDR2TADDR ((u_int32_t)7) 643 extern "C" struct netbuf * rpcbproc_uaddr2taddr_3(char **, CLIENT *); 644 extern "C" struct netbuf * rpcbproc_uaddr2taddr_3_svc(char **, struct svc_req *); 645 #define RPCBPROC_TADDR2UADDR ((u_int32_t)8) 646 extern "C" char ** rpcbproc_taddr2uaddr_3(struct netbuf *, CLIENT *); 647 extern "C" char ** rpcbproc_taddr2uaddr_3_svc(struct netbuf *, struct svc_req *); 648 649 #elif __STDC__ 650 #define RPCBPROC_SET ((u_int32_t)1) 651 extern bool_t * rpcbproc_set_3(rpcb *, CLIENT *); 652 extern bool_t * rpcbproc_set_3_svc(rpcb *, struct svc_req *); 653 #define RPCBPROC_UNSET ((u_int32_t)2) 654 extern bool_t * rpcbproc_unset_3(rpcb *, CLIENT *); 655 extern bool_t * rpcbproc_unset_3_svc(rpcb *, struct svc_req *); 656 #define RPCBPROC_GETADDR ((u_int32_t)3) 657 extern char ** rpcbproc_getaddr_3(rpcb *, CLIENT *); 658 extern char ** rpcbproc_getaddr_3_svc(rpcb *, struct svc_req *); 659 #define RPCBPROC_DUMP ((u_int32_t)4) 660 extern rpcblist_ptr * rpcbproc_dump_3(void *, CLIENT *); 661 extern rpcblist_ptr * rpcbproc_dump_3_svc(void *, struct svc_req *); 662 #define RPCBPROC_CALLIT ((u_int32_t)5) 663 extern rpcb_rmtcallres * rpcbproc_callit_3(rpcb_rmtcallargs *, CLIENT *); 664 extern rpcb_rmtcallres * rpcbproc_callit_3_svc(rpcb_rmtcallargs *, struct svc_req *); 665 #define RPCBPROC_GETTIME ((u_int32_t)6) 666 extern u_int * rpcbproc_gettime_3(void *, CLIENT *); 667 extern u_int * rpcbproc_gettime_3_svc(void *, struct svc_req *); 668 #define RPCBPROC_UADDR2TADDR ((u_int32_t)7) 669 extern struct netbuf * rpcbproc_uaddr2taddr_3(char **, CLIENT *); 670 extern struct netbuf * rpcbproc_uaddr2taddr_3_svc(char **, struct svc_req *); 671 #define RPCBPROC_TADDR2UADDR ((u_int32_t)8) 672 extern char ** rpcbproc_taddr2uaddr_3(struct netbuf *, CLIENT *); 673 extern char ** rpcbproc_taddr2uaddr_3_svc(struct netbuf *, struct svc_req *); 674 675 #else /* Old Style C */ 676 #define RPCBPROC_SET ((u_int32_t)1) 677 extern bool_t * rpcbproc_set_3(); 678 extern bool_t * rpcbproc_set_3_svc(); 679 #define RPCBPROC_UNSET ((u_int32_t)2) 680 extern bool_t * rpcbproc_unset_3(); 681 extern bool_t * rpcbproc_unset_3_svc(); 682 #define RPCBPROC_GETADDR ((u_int32_t)3) 683 extern char ** rpcbproc_getaddr_3(); 684 extern char ** rpcbproc_getaddr_3_svc(); 685 #define RPCBPROC_DUMP ((u_int32_t)4) 686 extern rpcblist_ptr * rpcbproc_dump_3(); 687 extern rpcblist_ptr * rpcbproc_dump_3_svc(); 688 #define RPCBPROC_CALLIT ((u_int32_t)5) 689 extern rpcb_rmtcallres * rpcbproc_callit_3(); 690 extern rpcb_rmtcallres * rpcbproc_callit_3_svc(); 691 #define RPCBPROC_GETTIME ((u_int32_t)6) 692 extern u_int * rpcbproc_gettime_3(); 693 extern u_int * rpcbproc_gettime_3_svc(); 694 #define RPCBPROC_UADDR2TADDR ((u_int32_t)7) 695 extern struct netbuf * rpcbproc_uaddr2taddr_3(); 696 extern struct netbuf * rpcbproc_uaddr2taddr_3_svc(); 697 #define RPCBPROC_TADDR2UADDR ((u_int32_t)8) 698 extern char ** rpcbproc_taddr2uaddr_3(); 699 extern char ** rpcbproc_taddr2uaddr_3_svc(); 700 #endif /* Old Style C */ 701 #define RPCBVERS4 ((u_int32_t)4) 702 703 #ifdef __cplusplus 704 extern "C" bool_t * rpcbproc_set_4(rpcb *, CLIENT *); 705 extern "C" bool_t * rpcbproc_set_4_svc(rpcb *, struct svc_req *); 706 extern "C" bool_t * rpcbproc_unset_4(rpcb *, CLIENT *); 707 extern "C" bool_t * rpcbproc_unset_4_svc(rpcb *, struct svc_req *); 708 extern "C" char ** rpcbproc_getaddr_4(rpcb *, CLIENT *); 709 extern "C" char ** rpcbproc_getaddr_4_svc(rpcb *, struct svc_req *); 710 extern "C" rpcblist_ptr * rpcbproc_dump_4(void *, CLIENT *); 711 extern "C" rpcblist_ptr * rpcbproc_dump_4_svc(void *, struct svc_req *); 712 #define RPCBPROC_BCAST ((u_int32_t)RPCBPROC_CALLIT) 713 extern "C" rpcb_rmtcallres * rpcbproc_bcast_4(rpcb_rmtcallargs *, CLIENT *); 714 extern "C" rpcb_rmtcallres * rpcbproc_bcast_4_svc(rpcb_rmtcallargs *, struct svc_req *); 715 extern "C" u_int * rpcbproc_gettime_4(void *, CLIENT *); 716 extern "C" u_int * rpcbproc_gettime_4_svc(void *, struct svc_req *); 717 extern "C" struct netbuf * rpcbproc_uaddr2taddr_4(char **, CLIENT *); 718 extern "C" struct netbuf * rpcbproc_uaddr2taddr_4_svc(char **, struct svc_req *); 719 extern "C" char ** rpcbproc_taddr2uaddr_4(struct netbuf *, CLIENT *); 720 extern "C" char ** rpcbproc_taddr2uaddr_4_svc(struct netbuf *, struct svc_req *); 721 #define RPCBPROC_GETVERSADDR ((u_int32_t)9) 722 extern "C" char ** rpcbproc_getversaddr_4(rpcb *, CLIENT *); 723 extern "C" char ** rpcbproc_getversaddr_4_svc(rpcb *, struct svc_req *); 724 #define RPCBPROC_INDIRECT ((u_int32_t)10) 725 extern "C" rpcb_rmtcallres * rpcbproc_indirect_4(rpcb_rmtcallargs *, CLIENT *); 726 extern "C" rpcb_rmtcallres * rpcbproc_indirect_4_svc(rpcb_rmtcallargs *, struct svc_req *); 727 #define RPCBPROC_GETADDRLIST ((u_int32_t)11) 728 extern "C" rpcb_entry_list_ptr * rpcbproc_getaddrlist_4(rpcb *, CLIENT *); 729 extern "C" rpcb_entry_list_ptr * rpcbproc_getaddrlist_4_svc(rpcb *, struct svc_req *); 730 #define RPCBPROC_GETSTAT ((u_int32_t)12) 731 extern "C" rpcb_stat * rpcbproc_getstat_4(void *, CLIENT *); 732 extern "C" rpcb_stat * rpcbproc_getstat_4_svc(void *, struct svc_req *); 733 734 #elif __STDC__ 735 extern bool_t * rpcbproc_set_4(rpcb *, CLIENT *); 736 extern bool_t * rpcbproc_set_4_svc(rpcb *, struct svc_req *); 737 extern bool_t * rpcbproc_unset_4(rpcb *, CLIENT *); 738 extern bool_t * rpcbproc_unset_4_svc(rpcb *, struct svc_req *); 739 extern char ** rpcbproc_getaddr_4(rpcb *, CLIENT *); 740 extern char ** rpcbproc_getaddr_4_svc(rpcb *, struct svc_req *); 741 extern rpcblist_ptr * rpcbproc_dump_4(void *, CLIENT *); 742 extern rpcblist_ptr * rpcbproc_dump_4_svc(void *, struct svc_req *); 743 #define RPCBPROC_BCAST ((u_int32_t)RPCBPROC_CALLIT) 744 extern rpcb_rmtcallres * rpcbproc_bcast_4(rpcb_rmtcallargs *, CLIENT *); 745 extern rpcb_rmtcallres * rpcbproc_bcast_4_svc(rpcb_rmtcallargs *, struct svc_req *); 746 extern u_int * rpcbproc_gettime_4(void *, CLIENT *); 747 extern u_int * rpcbproc_gettime_4_svc(void *, struct svc_req *); 748 extern struct netbuf * rpcbproc_uaddr2taddr_4(char **, CLIENT *); 749 extern struct netbuf * rpcbproc_uaddr2taddr_4_svc(char **, struct svc_req *); 750 extern char ** rpcbproc_taddr2uaddr_4(struct netbuf *, CLIENT *); 751 extern char ** rpcbproc_taddr2uaddr_4_svc(struct netbuf *, struct svc_req *); 752 #define RPCBPROC_GETVERSADDR ((u_int32_t)9) 753 extern char ** rpcbproc_getversaddr_4(rpcb *, CLIENT *); 754 extern char ** rpcbproc_getversaddr_4_svc(rpcb *, struct svc_req *); 755 #define RPCBPROC_INDIRECT ((u_int32_t)10) 756 extern rpcb_rmtcallres * rpcbproc_indirect_4(rpcb_rmtcallargs *, CLIENT *); 757 extern rpcb_rmtcallres * rpcbproc_indirect_4_svc(rpcb_rmtcallargs *, struct svc_req *); 758 #define RPCBPROC_GETADDRLIST ((u_int32_t)11) 759 extern rpcb_entry_list_ptr * rpcbproc_getaddrlist_4(rpcb *, CLIENT *); 760 extern rpcb_entry_list_ptr * rpcbproc_getaddrlist_4_svc(rpcb *, struct svc_req *); 761 #define RPCBPROC_GETSTAT ((u_int32_t)12) 762 extern rpcb_stat * rpcbproc_getstat_4(void *, CLIENT *); 763 extern rpcb_stat * rpcbproc_getstat_4_svc(void *, struct svc_req *); 764 765 #else /* Old Style C */ 766 extern bool_t * rpcbproc_set_4(); 767 extern bool_t * rpcbproc_set_4_svc(); 768 extern bool_t * rpcbproc_unset_4(); 769 extern bool_t * rpcbproc_unset_4_svc(); 770 extern char ** rpcbproc_getaddr_4(); 771 extern char ** rpcbproc_getaddr_4_svc(); 772 extern rpcblist_ptr * rpcbproc_dump_4(); 773 extern rpcblist_ptr * rpcbproc_dump_4_svc(); 774 #define RPCBPROC_BCAST ((u_int32_t)RPCBPROC_CALLIT) 775 extern rpcb_rmtcallres * rpcbproc_bcast_4(); 776 extern rpcb_rmtcallres * rpcbproc_bcast_4_svc(); 777 extern u_int * rpcbproc_gettime_4(); 778 extern u_int * rpcbproc_gettime_4_svc(); 779 extern struct netbuf * rpcbproc_uaddr2taddr_4(); 780 extern struct netbuf * rpcbproc_uaddr2taddr_4_svc(); 781 extern char ** rpcbproc_taddr2uaddr_4(); 782 extern char ** rpcbproc_taddr2uaddr_4_svc(); 783 #define RPCBPROC_GETVERSADDR ((u_int32_t)9) 784 extern char ** rpcbproc_getversaddr_4(); 785 extern char ** rpcbproc_getversaddr_4_svc(); 786 #define RPCBPROC_INDIRECT ((u_int32_t)10) 787 extern rpcb_rmtcallres * rpcbproc_indirect_4(); 788 extern rpcb_rmtcallres * rpcbproc_indirect_4_svc(); 789 #define RPCBPROC_GETADDRLIST ((u_int32_t)11) 790 extern rpcb_entry_list_ptr * rpcbproc_getaddrlist_4(); 791 extern rpcb_entry_list_ptr * rpcbproc_getaddrlist_4_svc(); 792 #define RPCBPROC_GETSTAT ((u_int32_t)12) 793 extern rpcb_stat * rpcbproc_getstat_4(); 794 extern rpcb_stat * rpcbproc_getstat_4_svc(); 795 #endif /* Old Style C */ 796 797 #endif /* !_RPCB_PROT_H_RPCGEN */
Contact us
|
About us
|
Term of use
|
Copyright © 2000-2025 MyWebUniversity.com ™