1 From 99ecb155efdfcf474c5701ab7e6ad1cbe88f500f Mon Sep 17 00:00:00 2001
2 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3 Date: Sat, 10 Nov 2012 17:29:53 +0100
4 Subject: [PATCH] Automatically generate XDR header files from .x sources using
7 [Gustavo: update after dropping non-IPv6 support]
8 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
11 src/Makefile.am | 2 +-
12 tirpc/rpc/rpcb_prot.h | 797 --------------------------------------------------
13 tirpc/rpcsvc/crypt.h | 109 -------
14 4 files changed, 20 insertions(+), 910 deletions(-)
15 delete mode 100644 tirpc/rpc/rpcb_prot.h
16 delete mode 100644 tirpc/rpcsvc/crypt.h
18 diff --git a/Makefile.am b/Makefile.am
19 index 6edf029..4e4dc32 100644
23 SUBDIRS = src man doc rpcgen
24 ACLOCAL_AMFLAGS = -I m4
27 + tirpc/rpcsvc/crypt.h \
28 + tirpc/rpc/rpcb_prot.h
30 noinst_HEADERS = tirpc/reentrant.h \
32 tirpc/libc_private.h \
33 @@ -8,7 +12,6 @@ noinst_HEADERS = tirpc/reentrant.h \
35 nobase_include_HEADERS = tirpc/netconfig.h \
36 tirpc/rpcsvc/crypt.x \
37 - tirpc/rpcsvc/crypt.h \
41 @@ -20,7 +23,6 @@ nobase_include_HEADERS = tirpc/netconfig.h \
44 tirpc/rpc/rpcb_prot.x \
45 - tirpc/rpc/rpcb_prot.h \
46 tirpc/rpc/rpcb_clnt.h \
48 tirpc/rpc/pmap_rmt.h \
49 @@ -37,7 +39,21 @@ nobase_include_HEADERS = tirpc/netconfig.h \
51 tirpc/rpc/auth_gss.h \
55 +nobase_nodist_include_HEADERS = $(GENFILES)
56 +BUILT_SOURCES = $(GENFILES)
58 +$(GENFILES): %.h: %.x $(top_builddir)/rpcgen/rpcgen
60 + $(top_builddir)/rpcgen/rpcgen -h -o $@ $<
62 +$(top_builddir)/rpcgen/rpcgen: force
63 + cd rpcgen && $(MAKE)
67 +CLEANFILES = $(GENFILES)
69 pkgconfigdir=$(libdir)/pkgconfig
70 pkgconfig_DATA = libtirpc.pc
72 diff --git a/src/Makefile.am b/src/Makefile.am
73 index f086255..a9db71b 100644
77 noinst_HEADERS = rpc_com.h
79 AM_CPPFLAGS = -I$(top_srcdir)/tirpc -DPORTMAP -DINET6 \
80 - -D_GNU_SOURCE -Wall -pipe
81 + -D_GNU_SOURCE -Wall -pipe -I$(top_builddir)/tirpc
83 lib_LTLIBRARIES = libtirpc.la
85 diff --git a/tirpc/rpc/rpcb_prot.h b/tirpc/rpc/rpcb_prot.h
86 deleted file mode 100644
87 index 7ae48b8..0000000
88 --- a/tirpc/rpc/rpcb_prot.h
92 - * Please do not edit this file.
93 - * It was generated using rpcgen.
96 -#ifndef _RPCB_PROT_H_RPCGEN
97 -#define _RPCB_PROT_H_RPCGEN
101 -#ifndef IXDR_GET_INT32
102 -#define IXDR_GET_INT32(buf) IXDR_GET_LONG((buf))
104 -#ifndef IXDR_PUT_INT32
105 -#define IXDR_PUT_INT32(buf, v) IXDR_PUT_LONG((buf), (v))
107 -#ifndef IXDR_GET_U_INT32
108 -#define IXDR_GET_U_INT32(buf) IXDR_GET_U_LONG((buf))
110 -#ifndef IXDR_PUT_U_INT32
111 -#define IXDR_PUT_U_INT32(buf, v) IXDR_PUT_U_LONG((buf), (v))
114 - * $FreeBSD: src/include/rpc/rpcb_prot.x,v 1.3 2002/03/13 10:29:06 obrien Exp $
116 - * Copyright (c) 2009, Sun Microsystems, Inc.
117 - * All rights reserved.
119 - * Redistribution and use in source and binary forms, with or without
120 - * modification, are permitted provided that the following conditions are met:
121 - * - Redistributions of source code must retain the above copyright notice,
122 - * this list of conditions and the following disclaimer.
123 - * - Redistributions in binary form must reproduce the above copyright notice,
124 - * this list of conditions and the following disclaimer in the documentation
125 - * and/or other materials provided with the distribution.
126 - * - Neither the name of Sun Microsystems, Inc. nor the names of its
127 - * contributors may be used to endorse or promote products derived
128 - * from this software without specific prior written permission.
130 - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
131 - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
132 - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
133 - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
134 - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
135 - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
136 - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
137 - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
138 - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
139 - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
140 - * POSSIBILITY OF SUCH DAMAGE.
143 - * Copyright (c) 1988 by Sun Microsystems, Inc.
145 -/* from rpcb_prot.x */
147 -/* #pragma ident "@(#)rpcb_prot.x 1.5 94/04/29 SMI" */
153 - * The following procedures are supported by the protocol in version 3:
155 - * RPCBPROC_NULL() returns ()
156 - * takes nothing, returns nothing
158 - * RPCBPROC_SET(rpcb) returns (bool_t)
159 - * TRUE is success, FALSE is failure. Registers the tuple
160 - * [prog, vers, address, owner, netid].
161 - * Finds out owner and netid information on its own.
163 - * RPCBPROC_UNSET(rpcb) returns (bool_t)
164 - * TRUE is success, FALSE is failure. Un-registers tuple
165 - * [prog, vers, netid]. addresses is ignored.
166 - * If netid is NULL, unregister all.
168 - * RPCBPROC_GETADDR(rpcb) returns (string).
169 - * 0 is failure. Otherwise returns the universal address where the
170 - * triple [prog, vers, netid] is registered. Ignore address and owner.
172 - * RPCBPROC_DUMP() RETURNS (rpcblist_ptr)
173 - * used to dump the entire rpcbind maps
175 - * RPCBPROC_CALLIT(rpcb_rmtcallargs)
176 - * RETURNS (rpcb_rmtcallres);
177 - * Calls the procedure on the remote machine. If it is not registered,
178 - * this procedure is quiet; i.e. it does not return error information!!!
179 - * This routine only passes null authentication parameters.
180 - * It has no interface to xdr routines for RPCBPROC_CALLIT.
182 - * RPCBPROC_GETTIME() returns (int).
183 - * Gets the remote machines time
185 - * RPCBPROC_UADDR2TADDR(strint) RETURNS (struct netbuf)
186 - * Returns the netbuf address from universal address.
188 - * RPCBPROC_TADDR2UADDR(struct netbuf) RETURNS (string)
189 - * Returns the universal address from netbuf address.
191 - * END OF RPCBIND VERSION 3 PROCEDURES
194 - * Except for RPCBPROC_CALLIT, the procedures above are carried over to
195 - * rpcbind version 4. Those below are added or modified for version 4.
196 - * NOTE: RPCBPROC_BCAST HAS THE SAME FUNCTIONALITY AND PROCEDURE NUMBER
197 - * AS RPCBPROC_CALLIT.
199 - * RPCBPROC_BCAST(rpcb_rmtcallargs)
200 - * RETURNS (rpcb_rmtcallres);
201 - * Calls the procedure on the remote machine. If it is not registered,
202 - * this procedure IS quiet; i.e. it DOES NOT return error information!!!
203 - * This routine should be used for broadcasting and nothing else.
205 - * RPCBPROC_GETVERSADDR(rpcb) returns (string).
206 - * 0 is failure. Otherwise returns the universal address where the
207 - * triple [prog, vers, netid] is registered. Ignore address and owner.
208 - * Same as RPCBPROC_GETADDR except that if the given version number
209 - * is not available, the address is not returned.
211 - * RPCBPROC_INDIRECT(rpcb_rmtcallargs)
212 - * RETURNS (rpcb_rmtcallres);
213 - * Calls the procedure on the remote machine. If it is not registered,
214 - * this procedure is NOT quiet; i.e. it DOES return error information!!!
215 - * as any normal application would expect.
217 - * RPCBPROC_GETADDRLIST(rpcb) returns (rpcb_entry_list_ptr).
218 - * Same as RPCBPROC_GETADDR except that it returns a list of all the
219 - * addresses registered for the combination (prog, vers) (for all
222 - * RPCBPROC_GETSTAT(void) returns (rpcb_stat_byvers)
223 - * Returns the statistics about the kind of requests received by rpcbind.
227 - * A mapping of (program, version, network ID) to address
237 -typedef struct rpcb rpcb;
239 -extern "C" bool_t xdr_rpcb(XDR *, rpcb*);
241 -extern bool_t xdr_rpcb(XDR *, rpcb*);
242 -#else /* Old Style C */
244 -#endif /* Old Style C */
251 - * A list of mappings
253 - * Below are two definitions for the rpcblist structure. This is done because
254 - * xdr_rpcblist() is specified to take a struct rpcblist **, rather than a
255 - * struct rpcblist * that rpcgen would produce. One version of the rpcblist
256 - * structure (actually called rp__list) is used with rpcgen, and the other is
257 - * defined only in the header file for compatibility with the specified
263 - struct rp__list *rpcb_next;
265 -typedef struct rp__list rp__list;
267 -extern "C" bool_t xdr_rp__list(XDR *, rp__list*);
269 -extern bool_t xdr_rp__list(XDR *, rp__list*);
270 -#else /* Old Style C */
271 -bool_t xdr_rp__list();
272 -#endif /* Old Style C */
275 -typedef rp__list *rpcblist_ptr;
277 -extern "C" bool_t xdr_rpcblist_ptr(XDR *, rpcblist_ptr*);
279 -extern bool_t xdr_rpcblist_ptr(XDR *, rpcblist_ptr*);
280 -#else /* Old Style C */
281 -bool_t xdr_rpcblist_ptr();
282 -#endif /* Old Style C */
285 -typedef struct rp__list rpcblist;
286 -typedef struct rp__list RPCBLIST;
291 - struct rpcblist *rpcb_next;
298 -extern bool_t xdr_rpcblist(XDR *, rpcblist**);
305 - * Arguments of remote calls
308 -struct rpcb_rmtcallargs {
317 -typedef struct rpcb_rmtcallargs rpcb_rmtcallargs;
319 -extern "C" bool_t xdr_rpcb_rmtcallargs(XDR *, rpcb_rmtcallargs*);
321 -extern bool_t xdr_rpcb_rmtcallargs(XDR *, rpcb_rmtcallargs*);
322 -#else /* Old Style C */
323 -bool_t xdr_rpcb_rmtcallargs();
324 -#endif /* Old Style C */
328 - * Client-side only representation of rpcb_rmtcallargs structure.
330 - * The routine that XDRs the rpcb_rmtcallargs structure must deal with the
331 - * opaque arguments in the "args" structure. xdr_rpcb_rmtcallargs() needs to
332 - * be passed the XDR routine that knows the args' structure. This routine
333 - * doesn't need to go over-the-wire (and it wouldn't make sense anyway) since
334 - * the application being called already knows the args structure. So we use a
335 - * different "XDR" structure on the client side, r_rpcb_rmtcallargs, which
336 - * includes the args' XDR routine.
338 -struct r_rpcb_rmtcallargs {
346 - xdrproc_t xdr_args; /* encodes args */
351 - * Results of the remote call
354 -struct rpcb_rmtcallres {
361 -typedef struct rpcb_rmtcallres rpcb_rmtcallres;
363 -extern "C" bool_t xdr_rpcb_rmtcallres(XDR *, rpcb_rmtcallres*);
365 -extern bool_t xdr_rpcb_rmtcallres(XDR *, rpcb_rmtcallres*);
366 -#else /* Old Style C */
367 -bool_t xdr_rpcb_rmtcallres();
368 -#endif /* Old Style C */
372 - * Client-side only representation of rpcb_rmtcallres structure.
374 -struct r_rpcb_rmtcallres {
377 - u_int32_t results_len;
380 - xdrproc_t xdr_res; /* decodes results */
384 - * rpcb_entry contains a merged address of a service on a particular
385 - * transport, plus associated netconfig information. A list of rpcb_entrys
386 - * is returned by RPCBPROC_GETADDRLIST. See netconfig.h for values used
387 - * in r_nc_* fields.
393 - u_int r_nc_semantics;
394 - char *r_nc_protofmly;
397 -typedef struct rpcb_entry rpcb_entry;
399 -extern "C" bool_t xdr_rpcb_entry(XDR *, rpcb_entry*);
401 -extern bool_t xdr_rpcb_entry(XDR *, rpcb_entry*);
402 -#else /* Old Style C */
403 -bool_t xdr_rpcb_entry();
404 -#endif /* Old Style C */
408 - * A list of addresses supported by a service.
411 -struct rpcb_entry_list {
412 - rpcb_entry rpcb_entry_map;
413 - struct rpcb_entry_list *rpcb_entry_next;
415 -typedef struct rpcb_entry_list rpcb_entry_list;
417 -extern "C" bool_t xdr_rpcb_entry_list(XDR *, rpcb_entry_list*);
419 -extern bool_t xdr_rpcb_entry_list(XDR *, rpcb_entry_list*);
420 -#else /* Old Style C */
421 -bool_t xdr_rpcb_entry_list();
422 -#endif /* Old Style C */
425 -typedef rpcb_entry_list *rpcb_entry_list_ptr;
427 -extern "C" bool_t xdr_rpcb_entry_list_ptr(XDR *, rpcb_entry_list_ptr*);
429 -extern bool_t xdr_rpcb_entry_list_ptr(XDR *, rpcb_entry_list_ptr*);
430 -#else /* Old Style C */
431 -bool_t xdr_rpcb_entry_list_ptr();
432 -#endif /* Old Style C */
436 - * rpcbind statistics
439 -#define rpcb_highproc_2 RPCBPROC_CALLIT
440 -#define rpcb_highproc_3 RPCBPROC_TADDR2UADDR
441 -#define rpcb_highproc_4 RPCBPROC_GETSTAT
442 -#define RPCBSTAT_HIGHPROC 13
443 -#define RPCBVERS_STAT 3
444 -#define RPCBVERS_4_STAT 2
445 -#define RPCBVERS_3_STAT 1
446 -#define RPCBVERS_2_STAT 0
448 -/* Link list of all the stats about getport and getaddr */
450 -struct rpcbs_addrlist {
456 - struct rpcbs_addrlist *next;
458 -typedef struct rpcbs_addrlist rpcbs_addrlist;
460 -extern "C" bool_t xdr_rpcbs_addrlist(XDR *, rpcbs_addrlist*);
462 -extern bool_t xdr_rpcbs_addrlist(XDR *, rpcbs_addrlist*);
463 -#else /* Old Style C */
464 -bool_t xdr_rpcbs_addrlist();
465 -#endif /* Old Style C */
468 -/* Link list of all the stats about rmtcall */
470 -struct rpcbs_rmtcalllist {
478 - struct rpcbs_rmtcalllist *next;
480 -typedef struct rpcbs_rmtcalllist rpcbs_rmtcalllist;
482 -extern "C" bool_t xdr_rpcbs_rmtcalllist(XDR *, rpcbs_rmtcalllist*);
484 -extern bool_t xdr_rpcbs_rmtcalllist(XDR *, rpcbs_rmtcalllist*);
485 -#else /* Old Style C */
486 -bool_t xdr_rpcbs_rmtcalllist();
487 -#endif /* Old Style C */
490 -typedef int rpcbs_proc[RPCBSTAT_HIGHPROC];
492 -extern "C" bool_t xdr_rpcbs_proc(XDR *, rpcbs_proc);
494 -extern bool_t xdr_rpcbs_proc(XDR *, rpcbs_proc);
495 -#else /* Old Style C */
496 -bool_t xdr_rpcbs_proc();
497 -#endif /* Old Style C */
500 -typedef rpcbs_addrlist *rpcbs_addrlist_ptr;
502 -extern "C" bool_t xdr_rpcbs_addrlist_ptr(XDR *, rpcbs_addrlist_ptr*);
504 -extern bool_t xdr_rpcbs_addrlist_ptr(XDR *, rpcbs_addrlist_ptr*);
505 -#else /* Old Style C */
506 -bool_t xdr_rpcbs_addrlist_ptr();
507 -#endif /* Old Style C */
510 -typedef rpcbs_rmtcalllist *rpcbs_rmtcalllist_ptr;
512 -extern "C" bool_t xdr_rpcbs_rmtcalllist_ptr(XDR *, rpcbs_rmtcalllist_ptr*);
514 -extern bool_t xdr_rpcbs_rmtcalllist_ptr(XDR *, rpcbs_rmtcalllist_ptr*);
515 -#else /* Old Style C */
516 -bool_t xdr_rpcbs_rmtcalllist_ptr();
517 -#endif /* Old Style C */
524 - rpcbs_addrlist_ptr addrinfo;
525 - rpcbs_rmtcalllist_ptr rmtinfo;
527 -typedef struct rpcb_stat rpcb_stat;
529 -extern "C" bool_t xdr_rpcb_stat(XDR *, rpcb_stat*);
531 -extern bool_t xdr_rpcb_stat(XDR *, rpcb_stat*);
532 -#else /* Old Style C */
533 -bool_t xdr_rpcb_stat();
534 -#endif /* Old Style C */
538 - * One rpcb_stat structure is returned for each version of rpcbind
542 -typedef rpcb_stat rpcb_stat_byvers[RPCBVERS_STAT];
544 -extern "C" bool_t xdr_rpcb_stat_byvers(XDR *, rpcb_stat_byvers);
546 -extern bool_t xdr_rpcb_stat_byvers(XDR *, rpcb_stat_byvers);
547 -#else /* Old Style C */
548 -bool_t xdr_rpcb_stat_byvers();
549 -#endif /* Old Style C */
553 - * We don't define netbuf in RPCL, since it would contain structure member
554 - * names that would conflict with the definition of struct netbuf in
555 - * <tiuser.h>. Instead we merely declare the XDR routine xdr_netbuf() here,
556 - * and implement it ourselves in rpc/rpcb_prot.c.
559 -extern "C" bool_t xdr_netbuf(XDR *, struct netbuf *);
561 -#else /* __STDC__ */
562 -extern bool_t xdr_netbuf(XDR *, struct netbuf *);
566 -#define RPCBVERS_3 RPCBVERS
567 -#define RPCBVERS_4 RPCBVERS4
569 -#define _PATH_RPCBINDSOCK "/var/run/rpcbind.sock"
571 -#else /* ndef _KERNEL */
577 - * A mapping of (program, version, network ID) to address
580 - rpcprog_t r_prog; /* program number */
581 - rpcvers_t r_vers; /* version number */
582 - char *r_netid; /* network id */
583 - char *r_addr; /* universal address */
584 - char *r_owner; /* owner of the mapping */
586 -typedef struct rpcb RPCB;
589 - * A list of mappings
593 - struct rpcblist *rpcb_next;
595 -typedef struct rpcblist RPCBLIST;
596 -typedef struct rpcblist *rpcblist_ptr;
599 - * Remote calls arguments
601 -struct rpcb_rmtcallargs {
602 - rpcprog_t prog; /* program number */
603 - rpcvers_t vers; /* version number */
604 - rpcproc_t proc; /* procedure number */
605 - u_int32_t arglen; /* arg len */
606 - caddr_t args_ptr; /* argument */
607 - xdrproc_t xdr_args; /* XDR routine for argument */
609 -typedef struct rpcb_rmtcallargs rpcb_rmtcallargs;
612 - * Remote calls results
614 -struct rpcb_rmtcallres {
615 - char *addr_ptr; /* remote universal address */
616 - u_int32_t resultslen; /* results length */
617 - caddr_t results_ptr; /* results */
618 - xdrproc_t xdr_results; /* XDR routine for result */
620 -typedef struct rpcb_rmtcallres rpcb_rmtcallres;
625 - unsigned int r_nc_semantics;
626 - char *r_nc_protofmly;
629 -typedef struct rpcb_entry rpcb_entry;
632 - * A list of addresses supported by a service.
635 -struct rpcb_entry_list {
636 - rpcb_entry rpcb_entry_map;
637 - struct rpcb_entry_list *rpcb_entry_next;
639 -typedef struct rpcb_entry_list rpcb_entry_list;
641 -typedef rpcb_entry_list *rpcb_entry_list_ptr;
644 - * rpcbind statistics
647 -#define rpcb_highproc_2 RPCBPROC_CALLIT
648 -#define rpcb_highproc_3 RPCBPROC_TADDR2UADDR
649 -#define rpcb_highproc_4 RPCBPROC_GETSTAT
650 -#define RPCBSTAT_HIGHPROC 13
651 -#define RPCBVERS_STAT 3
652 -#define RPCBVERS_4_STAT 2
653 -#define RPCBVERS_3_STAT 1
654 -#define RPCBVERS_2_STAT 0
656 -/* Link list of all the stats about getport and getaddr */
658 -struct rpcbs_addrlist {
664 - struct rpcbs_addrlist *next;
666 -typedef struct rpcbs_addrlist rpcbs_addrlist;
668 -/* Link list of all the stats about rmtcall */
670 -struct rpcbs_rmtcalllist {
678 - struct rpcbs_rmtcalllist *next;
680 -typedef struct rpcbs_rmtcalllist rpcbs_rmtcalllist;
682 -typedef int rpcbs_proc[RPCBSTAT_HIGHPROC];
684 -typedef rpcbs_addrlist *rpcbs_addrlist_ptr;
686 -typedef rpcbs_rmtcalllist *rpcbs_rmtcalllist_ptr;
692 - rpcbs_addrlist_ptr addrinfo;
693 - rpcbs_rmtcalllist_ptr rmtinfo;
695 -typedef struct rpcb_stat rpcb_stat;
698 - * One rpcb_stat structure is returned for each version of rpcbind
702 -typedef rpcb_stat rpcb_stat_byvers[RPCBVERS_STAT];
708 -#endif /* ndef _KERNEL */
710 -#define RPCBPROG ((u_int32_t)100000)
711 -#define RPCBVERS ((u_int32_t)3)
714 -#define RPCBPROC_SET ((u_int32_t)1)
715 -extern "C" bool_t * rpcbproc_set_3(rpcb *, CLIENT *);
716 -extern "C" bool_t * rpcbproc_set_3_svc(rpcb *, struct svc_req *);
717 -#define RPCBPROC_UNSET ((u_int32_t)2)
718 -extern "C" bool_t * rpcbproc_unset_3(rpcb *, CLIENT *);
719 -extern "C" bool_t * rpcbproc_unset_3_svc(rpcb *, struct svc_req *);
720 -#define RPCBPROC_GETADDR ((u_int32_t)3)
721 -extern "C" char ** rpcbproc_getaddr_3(rpcb *, CLIENT *);
722 -extern "C" char ** rpcbproc_getaddr_3_svc(rpcb *, struct svc_req *);
723 -#define RPCBPROC_DUMP ((u_int32_t)4)
724 -extern "C" rpcblist_ptr * rpcbproc_dump_3(void *, CLIENT *);
725 -extern "C" rpcblist_ptr * rpcbproc_dump_3_svc(void *, struct svc_req *);
726 -#define RPCBPROC_CALLIT ((u_int32_t)5)
727 -extern "C" rpcb_rmtcallres * rpcbproc_callit_3(rpcb_rmtcallargs *, CLIENT *);
728 -extern "C" rpcb_rmtcallres * rpcbproc_callit_3_svc(rpcb_rmtcallargs *, struct svc_req *);
729 -#define RPCBPROC_GETTIME ((u_int32_t)6)
730 -extern "C" u_int * rpcbproc_gettime_3(void *, CLIENT *);
731 -extern "C" u_int * rpcbproc_gettime_3_svc(void *, struct svc_req *);
732 -#define RPCBPROC_UADDR2TADDR ((u_int32_t)7)
733 -extern "C" struct netbuf * rpcbproc_uaddr2taddr_3(char **, CLIENT *);
734 -extern "C" struct netbuf * rpcbproc_uaddr2taddr_3_svc(char **, struct svc_req *);
735 -#define RPCBPROC_TADDR2UADDR ((u_int32_t)8)
736 -extern "C" char ** rpcbproc_taddr2uaddr_3(struct netbuf *, CLIENT *);
737 -extern "C" char ** rpcbproc_taddr2uaddr_3_svc(struct netbuf *, struct svc_req *);
740 -#define RPCBPROC_SET ((u_int32_t)1)
741 -extern bool_t * rpcbproc_set_3(rpcb *, CLIENT *);
742 -extern bool_t * rpcbproc_set_3_svc(rpcb *, struct svc_req *);
743 -#define RPCBPROC_UNSET ((u_int32_t)2)
744 -extern bool_t * rpcbproc_unset_3(rpcb *, CLIENT *);
745 -extern bool_t * rpcbproc_unset_3_svc(rpcb *, struct svc_req *);
746 -#define RPCBPROC_GETADDR ((u_int32_t)3)
747 -extern char ** rpcbproc_getaddr_3(rpcb *, CLIENT *);
748 -extern char ** rpcbproc_getaddr_3_svc(rpcb *, struct svc_req *);
749 -#define RPCBPROC_DUMP ((u_int32_t)4)
750 -extern rpcblist_ptr * rpcbproc_dump_3(void *, CLIENT *);
751 -extern rpcblist_ptr * rpcbproc_dump_3_svc(void *, struct svc_req *);
752 -#define RPCBPROC_CALLIT ((u_int32_t)5)
753 -extern rpcb_rmtcallres * rpcbproc_callit_3(rpcb_rmtcallargs *, CLIENT *);
754 -extern rpcb_rmtcallres * rpcbproc_callit_3_svc(rpcb_rmtcallargs *, struct svc_req *);
755 -#define RPCBPROC_GETTIME ((u_int32_t)6)
756 -extern u_int * rpcbproc_gettime_3(void *, CLIENT *);
757 -extern u_int * rpcbproc_gettime_3_svc(void *, struct svc_req *);
758 -#define RPCBPROC_UADDR2TADDR ((u_int32_t)7)
759 -extern struct netbuf * rpcbproc_uaddr2taddr_3(char **, CLIENT *);
760 -extern struct netbuf * rpcbproc_uaddr2taddr_3_svc(char **, struct svc_req *);
761 -#define RPCBPROC_TADDR2UADDR ((u_int32_t)8)
762 -extern char ** rpcbproc_taddr2uaddr_3(struct netbuf *, CLIENT *);
763 -extern char ** rpcbproc_taddr2uaddr_3_svc(struct netbuf *, struct svc_req *);
765 -#else /* Old Style C */
766 -#define RPCBPROC_SET ((u_int32_t)1)
767 -extern bool_t * rpcbproc_set_3();
768 -extern bool_t * rpcbproc_set_3_svc();
769 -#define RPCBPROC_UNSET ((u_int32_t)2)
770 -extern bool_t * rpcbproc_unset_3();
771 -extern bool_t * rpcbproc_unset_3_svc();
772 -#define RPCBPROC_GETADDR ((u_int32_t)3)
773 -extern char ** rpcbproc_getaddr_3();
774 -extern char ** rpcbproc_getaddr_3_svc();
775 -#define RPCBPROC_DUMP ((u_int32_t)4)
776 -extern rpcblist_ptr * rpcbproc_dump_3();
777 -extern rpcblist_ptr * rpcbproc_dump_3_svc();
778 -#define RPCBPROC_CALLIT ((u_int32_t)5)
779 -extern rpcb_rmtcallres * rpcbproc_callit_3();
780 -extern rpcb_rmtcallres * rpcbproc_callit_3_svc();
781 -#define RPCBPROC_GETTIME ((u_int32_t)6)
782 -extern u_int * rpcbproc_gettime_3();
783 -extern u_int * rpcbproc_gettime_3_svc();
784 -#define RPCBPROC_UADDR2TADDR ((u_int32_t)7)
785 -extern struct netbuf * rpcbproc_uaddr2taddr_3();
786 -extern struct netbuf * rpcbproc_uaddr2taddr_3_svc();
787 -#define RPCBPROC_TADDR2UADDR ((u_int32_t)8)
788 -extern char ** rpcbproc_taddr2uaddr_3();
789 -extern char ** rpcbproc_taddr2uaddr_3_svc();
790 -#endif /* Old Style C */
791 -#define RPCBVERS4 ((u_int32_t)4)
794 -extern "C" bool_t * rpcbproc_set_4(rpcb *, CLIENT *);
795 -extern "C" bool_t * rpcbproc_set_4_svc(rpcb *, struct svc_req *);
796 -extern "C" bool_t * rpcbproc_unset_4(rpcb *, CLIENT *);
797 -extern "C" bool_t * rpcbproc_unset_4_svc(rpcb *, struct svc_req *);
798 -extern "C" char ** rpcbproc_getaddr_4(rpcb *, CLIENT *);
799 -extern "C" char ** rpcbproc_getaddr_4_svc(rpcb *, struct svc_req *);
800 -extern "C" rpcblist_ptr * rpcbproc_dump_4(void *, CLIENT *);
801 -extern "C" rpcblist_ptr * rpcbproc_dump_4_svc(void *, struct svc_req *);
802 -#define RPCBPROC_BCAST ((u_int32_t)RPCBPROC_CALLIT)
803 -extern "C" rpcb_rmtcallres * rpcbproc_bcast_4(rpcb_rmtcallargs *, CLIENT *);
804 -extern "C" rpcb_rmtcallres * rpcbproc_bcast_4_svc(rpcb_rmtcallargs *, struct svc_req *);
805 -extern "C" u_int * rpcbproc_gettime_4(void *, CLIENT *);
806 -extern "C" u_int * rpcbproc_gettime_4_svc(void *, struct svc_req *);
807 -extern "C" struct netbuf * rpcbproc_uaddr2taddr_4(char **, CLIENT *);
808 -extern "C" struct netbuf * rpcbproc_uaddr2taddr_4_svc(char **, struct svc_req *);
809 -extern "C" char ** rpcbproc_taddr2uaddr_4(struct netbuf *, CLIENT *);
810 -extern "C" char ** rpcbproc_taddr2uaddr_4_svc(struct netbuf *, struct svc_req *);
811 -#define RPCBPROC_GETVERSADDR ((u_int32_t)9)
812 -extern "C" char ** rpcbproc_getversaddr_4(rpcb *, CLIENT *);
813 -extern "C" char ** rpcbproc_getversaddr_4_svc(rpcb *, struct svc_req *);
814 -#define RPCBPROC_INDIRECT ((u_int32_t)10)
815 -extern "C" rpcb_rmtcallres * rpcbproc_indirect_4(rpcb_rmtcallargs *, CLIENT *);
816 -extern "C" rpcb_rmtcallres * rpcbproc_indirect_4_svc(rpcb_rmtcallargs *, struct svc_req *);
817 -#define RPCBPROC_GETADDRLIST ((u_int32_t)11)
818 -extern "C" rpcb_entry_list_ptr * rpcbproc_getaddrlist_4(rpcb *, CLIENT *);
819 -extern "C" rpcb_entry_list_ptr * rpcbproc_getaddrlist_4_svc(rpcb *, struct svc_req *);
820 -#define RPCBPROC_GETSTAT ((u_int32_t)12)
821 -extern "C" rpcb_stat * rpcbproc_getstat_4(void *, CLIENT *);
822 -extern "C" rpcb_stat * rpcbproc_getstat_4_svc(void *, struct svc_req *);
825 -extern bool_t * rpcbproc_set_4(rpcb *, CLIENT *);
826 -extern bool_t * rpcbproc_set_4_svc(rpcb *, struct svc_req *);
827 -extern bool_t * rpcbproc_unset_4(rpcb *, CLIENT *);
828 -extern bool_t * rpcbproc_unset_4_svc(rpcb *, struct svc_req *);
829 -extern char ** rpcbproc_getaddr_4(rpcb *, CLIENT *);
830 -extern char ** rpcbproc_getaddr_4_svc(rpcb *, struct svc_req *);
831 -extern rpcblist_ptr * rpcbproc_dump_4(void *, CLIENT *);
832 -extern rpcblist_ptr * rpcbproc_dump_4_svc(void *, struct svc_req *);
833 -#define RPCBPROC_BCAST ((u_int32_t)RPCBPROC_CALLIT)
834 -extern rpcb_rmtcallres * rpcbproc_bcast_4(rpcb_rmtcallargs *, CLIENT *);
835 -extern rpcb_rmtcallres * rpcbproc_bcast_4_svc(rpcb_rmtcallargs *, struct svc_req *);
836 -extern u_int * rpcbproc_gettime_4(void *, CLIENT *);
837 -extern u_int * rpcbproc_gettime_4_svc(void *, struct svc_req *);
838 -extern struct netbuf * rpcbproc_uaddr2taddr_4(char **, CLIENT *);
839 -extern struct netbuf * rpcbproc_uaddr2taddr_4_svc(char **, struct svc_req *);
840 -extern char ** rpcbproc_taddr2uaddr_4(struct netbuf *, CLIENT *);
841 -extern char ** rpcbproc_taddr2uaddr_4_svc(struct netbuf *, struct svc_req *);
842 -#define RPCBPROC_GETVERSADDR ((u_int32_t)9)
843 -extern char ** rpcbproc_getversaddr_4(rpcb *, CLIENT *);
844 -extern char ** rpcbproc_getversaddr_4_svc(rpcb *, struct svc_req *);
845 -#define RPCBPROC_INDIRECT ((u_int32_t)10)
846 -extern rpcb_rmtcallres * rpcbproc_indirect_4(rpcb_rmtcallargs *, CLIENT *);
847 -extern rpcb_rmtcallres * rpcbproc_indirect_4_svc(rpcb_rmtcallargs *, struct svc_req *);
848 -#define RPCBPROC_GETADDRLIST ((u_int32_t)11)
849 -extern rpcb_entry_list_ptr * rpcbproc_getaddrlist_4(rpcb *, CLIENT *);
850 -extern rpcb_entry_list_ptr * rpcbproc_getaddrlist_4_svc(rpcb *, struct svc_req *);
851 -#define RPCBPROC_GETSTAT ((u_int32_t)12)
852 -extern rpcb_stat * rpcbproc_getstat_4(void *, CLIENT *);
853 -extern rpcb_stat * rpcbproc_getstat_4_svc(void *, struct svc_req *);
855 -#else /* Old Style C */
856 -extern bool_t * rpcbproc_set_4();
857 -extern bool_t * rpcbproc_set_4_svc();
858 -extern bool_t * rpcbproc_unset_4();
859 -extern bool_t * rpcbproc_unset_4_svc();
860 -extern char ** rpcbproc_getaddr_4();
861 -extern char ** rpcbproc_getaddr_4_svc();
862 -extern rpcblist_ptr * rpcbproc_dump_4();
863 -extern rpcblist_ptr * rpcbproc_dump_4_svc();
864 -#define RPCBPROC_BCAST ((u_int32_t)RPCBPROC_CALLIT)
865 -extern rpcb_rmtcallres * rpcbproc_bcast_4();
866 -extern rpcb_rmtcallres * rpcbproc_bcast_4_svc();
867 -extern u_int * rpcbproc_gettime_4();
868 -extern u_int * rpcbproc_gettime_4_svc();
869 -extern struct netbuf * rpcbproc_uaddr2taddr_4();
870 -extern struct netbuf * rpcbproc_uaddr2taddr_4_svc();
871 -extern char ** rpcbproc_taddr2uaddr_4();
872 -extern char ** rpcbproc_taddr2uaddr_4_svc();
873 -#define RPCBPROC_GETVERSADDR ((u_int32_t)9)
874 -extern char ** rpcbproc_getversaddr_4();
875 -extern char ** rpcbproc_getversaddr_4_svc();
876 -#define RPCBPROC_INDIRECT ((u_int32_t)10)
877 -extern rpcb_rmtcallres * rpcbproc_indirect_4();
878 -extern rpcb_rmtcallres * rpcbproc_indirect_4_svc();
879 -#define RPCBPROC_GETADDRLIST ((u_int32_t)11)
880 -extern rpcb_entry_list_ptr * rpcbproc_getaddrlist_4();
881 -extern rpcb_entry_list_ptr * rpcbproc_getaddrlist_4_svc();
882 -#define RPCBPROC_GETSTAT ((u_int32_t)12)
883 -extern rpcb_stat * rpcbproc_getstat_4();
884 -extern rpcb_stat * rpcbproc_getstat_4_svc();
885 -#endif /* Old Style C */
887 -#endif /* !_RPCB_PROT_H_RPCGEN */
888 diff --git a/tirpc/rpcsvc/crypt.h b/tirpc/rpcsvc/crypt.h
889 deleted file mode 100644
890 index da1f9cc..0000000
891 --- a/tirpc/rpcsvc/crypt.h
895 - * Please do not edit this file.
896 - * It was generated using rpcgen.
899 -#ifndef _CRYPT_H_RPCGEN
900 -#define _CRYPT_H_RPCGEN
902 -#include <rpc/rpc.h>
904 -#ifndef IXDR_GET_INT32
905 -#define IXDR_GET_INT32(buf) IXDR_GET_LONG((buf))
907 -#ifndef IXDR_PUT_INT32
908 -#define IXDR_PUT_INT32(buf, v) IXDR_PUT_LONG((buf), (v))
910 -#ifndef IXDR_GET_U_INT32
911 -#define IXDR_GET_U_INT32(buf) IXDR_GET_U_LONG((buf))
913 -#ifndef IXDR_PUT_U_INT32
914 -#define IXDR_PUT_U_INT32(buf, v) IXDR_PUT_U_LONG((buf), (v))
921 -typedef enum des_dir des_dir;
923 -extern "C" bool_t xdr_des_dir(XDR *, des_dir*);
925 -extern bool_t xdr_des_dir(XDR *, des_dir*);
926 -#else /* Old Style C */
927 -bool_t xdr_des_dir();
928 -#endif /* Old Style C */
935 -typedef enum des_mode des_mode;
937 -extern "C" bool_t xdr_des_mode(XDR *, des_mode*);
939 -extern bool_t xdr_des_mode(XDR *, des_mode*);
940 -#else /* Old Style C */
941 -bool_t xdr_des_mode();
942 -#endif /* Old Style C */
949 - u_char des_ivec[8];
955 -typedef struct desargs desargs;
957 -extern "C" bool_t xdr_desargs(XDR *, desargs*);
959 -extern bool_t xdr_desargs(XDR *, desargs*);
960 -#else /* Old Style C */
961 -bool_t xdr_desargs();
962 -#endif /* Old Style C */
970 - u_char des_ivec[8];
973 -typedef struct desresp desresp;
975 -extern "C" bool_t xdr_desresp(XDR *, desresp*);
977 -extern bool_t xdr_desresp(XDR *, desresp*);
978 -#else /* Old Style C */
979 -bool_t xdr_desresp();
980 -#endif /* Old Style C */
983 -#define CRYPT_PROG ((u_int32_t)600100029)
984 -#define CRYPT_VERS ((u_int32_t)1)
987 -#define DES_CRYPT ((u_int32_t)1)
988 -extern "C" desresp * des_crypt_1(desargs *, CLIENT *);
989 -extern "C" desresp * des_crypt_1_svc(desargs *, struct svc_req *);
992 -#define DES_CRYPT ((u_int32_t)1)
993 -extern desresp * des_crypt_1(desargs *, CLIENT *);
994 -extern desresp * des_crypt_1_svc(desargs *, struct svc_req *);
996 -#else /* Old Style C */
997 -#define DES_CRYPT ((u_int32_t)1)
998 -extern desresp * des_crypt_1();
999 -extern desresp * des_crypt_1_svc();
1000 -#endif /* Old Style C */
1002 -#endif /* !_CRYPT_H_RPCGEN */