023abd1114d6703e37910322a238425382b7a782
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / libtirpc / 0005-Automatically-generate-XDR-header-files-from-.x-sour.patch
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
5  rpcgen
6
7 [Gustavo: update after dropping non-IPv6 support]
8 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 ---
10  Makefile.am           |  22 +-
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
17
18 diff --git a/Makefile.am b/Makefile.am
19 index 6edf029..4e4dc32 100644
20 --- a/Makefile.am
21 +++ b/Makefile.am
22 @@ -1,6 +1,10 @@
23  SUBDIRS = src man doc rpcgen
24  ACLOCAL_AMFLAGS = -I m4
25  
26 +GENFILES = \
27 +                       tirpc/rpcsvc/crypt.h \
28 +                       tirpc/rpc/rpcb_prot.h
29 +
30  noinst_HEADERS        = tirpc/reentrant.h \
31                          tirpc/getpeereid.h \
32                          tirpc/libc_private.h \
33 @@ -8,7 +12,6 @@ noinst_HEADERS        = tirpc/reentrant.h \
34  
35  nobase_include_HEADERS = tirpc/netconfig.h \
36                          tirpc/rpcsvc/crypt.x \
37 -                        tirpc/rpcsvc/crypt.h \
38                          tirpc/rpc/xdr.h \
39                          tirpc/rpc/types.h \
40                          tirpc/rpc/svc_soc.h \
41 @@ -20,7 +23,6 @@ nobase_include_HEADERS = tirpc/netconfig.h \
42                          tirpc/rpc/rpcent.h \
43                          tirpc/rpc/rpc_com.h \
44                          tirpc/rpc/rpcb_prot.x \
45 -                        tirpc/rpc/rpcb_prot.h \
46                          tirpc/rpc/rpcb_clnt.h \
47                          tirpc/rpc/raw.h \
48                          tirpc/rpc/pmap_rmt.h \
49 @@ -37,7 +39,21 @@ nobase_include_HEADERS = tirpc/netconfig.h \
50                          tirpc/rpc/auth.h \
51                          tirpc/rpc/auth_gss.h \
52                          tirpc/rpc/auth_des.h
53 -    
54 +
55 +nobase_nodist_include_HEADERS = $(GENFILES)
56 +BUILT_SOURCES = $(GENFILES)
57 +
58 +$(GENFILES): %.h: %.x $(top_builddir)/rpcgen/rpcgen
59 +       mkdir -p $(dir $@)
60 +       $(top_builddir)/rpcgen/rpcgen -h -o $@ $<
61 +
62 +$(top_builddir)/rpcgen/rpcgen: force
63 +       cd rpcgen && $(MAKE)
64 +
65 +force:
66 +
67 +CLEANFILES = $(GENFILES)
68 +
69  pkgconfigdir=$(libdir)/pkgconfig
70  pkgconfig_DATA = libtirpc.pc
71  
72 diff --git a/src/Makefile.am b/src/Makefile.am
73 index f086255..a9db71b 100644
74 --- a/src/Makefile.am
75 +++ b/src/Makefile.am
76 @@ -8,7 +8,7 @@
77  noinst_HEADERS = rpc_com.h
78  
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
82  
83  lib_LTLIBRARIES = libtirpc.la
84  
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
89 +++ /dev/null
90 @@ -1,797 +0,0 @@
91 -/*
92 - * Please do not edit this file.
93 - * It was generated using rpcgen.
94 - */
95 -
96 -#ifndef _RPCB_PROT_H_RPCGEN
97 -#define _RPCB_PROT_H_RPCGEN
98 -
99 -#include <rpc/rpc.h>
100 -
101 -#ifndef IXDR_GET_INT32
102 -#define IXDR_GET_INT32(buf) IXDR_GET_LONG((buf))
103 -#endif
104 -#ifndef IXDR_PUT_INT32
105 -#define IXDR_PUT_INT32(buf, v) IXDR_PUT_LONG((buf), (v))
106 -#endif
107 -#ifndef IXDR_GET_U_INT32
108 -#define IXDR_GET_U_INT32(buf) IXDR_GET_U_LONG((buf))
109 -#endif
110 -#ifndef IXDR_PUT_U_INT32
111 -#define IXDR_PUT_U_INT32(buf, v) IXDR_PUT_U_LONG((buf), (v))
112 -#endif
113 -/*
114 - * $FreeBSD: src/include/rpc/rpcb_prot.x,v 1.3 2002/03/13 10:29:06 obrien Exp $
115 - *
116 - * Copyright (c) 2009, Sun Microsystems, Inc.
117 - * All rights reserved.
118 - *
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.
129 - *
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.
141 - */
142 -/*
143 - * Copyright (c) 1988 by Sun Microsystems, Inc.
144 - */
145 -/* from rpcb_prot.x */
146 -
147 -/* #pragma ident       "@(#)rpcb_prot.x        1.5     94/04/29 SMI" */
148 -
149 -#ifndef _KERNEL
150 -
151 -
152 -/*
153 - * The following procedures are supported by the protocol in version 3:
154 - *
155 - * RPCBPROC_NULL() returns ()
156 - *     takes nothing, returns nothing
157 - *
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.
162 - *
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.
167 - *
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.
171 - *
172 - * RPCBPROC_DUMP() RETURNS (rpcblist_ptr)
173 - *     used to dump the entire rpcbind maps
174 - *
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.
181 - *
182 - * RPCBPROC_GETTIME() returns (int).
183 - *     Gets the remote machines time
184 - *
185 - * RPCBPROC_UADDR2TADDR(strint) RETURNS (struct netbuf)
186 - *     Returns the netbuf address from universal address.
187 - *
188 - * RPCBPROC_TADDR2UADDR(struct netbuf) RETURNS (string)
189 - *     Returns the universal address from netbuf address.
190 - *
191 - * END OF RPCBIND VERSION 3 PROCEDURES
192 - */
193 -/*
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.
198 - *
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.
204 - *
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.
210 - *
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.
216 - *
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
220 - *     transports).
221 - *
222 - * RPCBPROC_GETSTAT(void) returns (rpcb_stat_byvers)
223 - *     Returns the statistics about the kind of requests received by rpcbind.
224 - */
225 -
226 -/*
227 - * A mapping of (program, version, network ID) to address
228 - */
229 -
230 -struct rpcb {
231 -       rpcprog_t r_prog;
232 -       rpcvers_t r_vers;
233 -       char *r_netid;
234 -       char *r_addr;
235 -       char *r_owner;
236 -};
237 -typedef struct rpcb rpcb;
238 -#ifdef __cplusplus 
239 -extern "C" bool_t xdr_rpcb(XDR *, rpcb*);
240 -#elif __STDC__ 
241 -extern  bool_t xdr_rpcb(XDR *, rpcb*);
242 -#else /* Old Style C */ 
243 -bool_t xdr_rpcb();
244 -#endif /* Old Style C */ 
245 -
246 -
247 -typedef rpcb RPCB;
248 -
249 -
250 -/*
251 - * A list of mappings
252 - *
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
258 - * interface.
259 - */
260 -
261 -struct rp__list {
262 -       rpcb rpcb_map;
263 -       struct rp__list *rpcb_next;
264 -};
265 -typedef struct rp__list rp__list;
266 -#ifdef __cplusplus 
267 -extern "C" bool_t xdr_rp__list(XDR *, rp__list*);
268 -#elif __STDC__ 
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 */ 
273 -
274 -
275 -typedef rp__list *rpcblist_ptr;
276 -#ifdef __cplusplus 
277 -extern "C" bool_t xdr_rpcblist_ptr(XDR *, rpcblist_ptr*);
278 -#elif __STDC__ 
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 */ 
283 -
284 -
285 -typedef struct rp__list rpcblist;
286 -typedef struct rp__list RPCBLIST;
287 -
288 -#ifndef __cplusplus
289 -struct rpcblist {
290 - RPCB rpcb_map;
291 - struct rpcblist *rpcb_next;
292 -};
293 -#endif
294 -
295 -#ifdef __cplusplus
296 -extern "C" {
297 -#endif
298 -extern bool_t xdr_rpcblist(XDR *, rpcblist**);
299 -#ifdef __cplusplus
300 -}
301 -#endif
302 -
303 -
304 -/*
305 - * Arguments of remote calls
306 - */
307 -
308 -struct rpcb_rmtcallargs {
309 -       rpcprog_t prog;
310 -       rpcvers_t vers;
311 -       rpcproc_t proc;
312 -       struct {
313 -               u_int args_len;
314 -               char *args_val;
315 -       } args;
316 -};
317 -typedef struct rpcb_rmtcallargs rpcb_rmtcallargs;
318 -#ifdef __cplusplus 
319 -extern "C" bool_t xdr_rpcb_rmtcallargs(XDR *, rpcb_rmtcallargs*);
320 -#elif __STDC__ 
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 */ 
325 -
326 -
327 -/*
328 - * Client-side only representation of rpcb_rmtcallargs structure.
329 - *
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.
337 - */
338 -struct r_rpcb_rmtcallargs {
339 - rpcprog_t prog;
340 - rpcvers_t vers;
341 - rpcproc_t proc;
342 - struct {
343 - u_int args_len;
344 - char *args_val;
345 - } args;
346 - xdrproc_t xdr_args; /* encodes args */
347 -};
348 -
349 -
350 -/*
351 - * Results of the remote call
352 - */
353 -
354 -struct rpcb_rmtcallres {
355 -       char *addr;
356 -       struct {
357 -               u_int results_len;
358 -               char *results_val;
359 -       } results;
360 -};
361 -typedef struct rpcb_rmtcallres rpcb_rmtcallres;
362 -#ifdef __cplusplus 
363 -extern "C" bool_t xdr_rpcb_rmtcallres(XDR *, rpcb_rmtcallres*);
364 -#elif __STDC__ 
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 */ 
369 -
370 -
371 -/*
372 - * Client-side only representation of rpcb_rmtcallres structure.
373 - */
374 -struct r_rpcb_rmtcallres {
375 - char *addr;
376 - struct {
377 - u_int32_t results_len;
378 - char *results_val;
379 - } results;
380 - xdrproc_t xdr_res; /* decodes results */
381 -};
382 -
383 -/*
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.
388 - */
389 -
390 -struct rpcb_entry {
391 -       char *r_maddr;
392 -       char *r_nc_netid;
393 -       u_int r_nc_semantics;
394 -       char *r_nc_protofmly;
395 -       char *r_nc_proto;
396 -};
397 -typedef struct rpcb_entry rpcb_entry;
398 -#ifdef __cplusplus 
399 -extern "C" bool_t xdr_rpcb_entry(XDR *, rpcb_entry*);
400 -#elif __STDC__ 
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 */ 
405 -
406 -
407 -/*
408 - * A list of addresses supported by a service.
409 - */
410 -
411 -struct rpcb_entry_list {
412 -       rpcb_entry rpcb_entry_map;
413 -       struct rpcb_entry_list *rpcb_entry_next;
414 -};
415 -typedef struct rpcb_entry_list rpcb_entry_list;
416 -#ifdef __cplusplus 
417 -extern "C" bool_t xdr_rpcb_entry_list(XDR *, rpcb_entry_list*);
418 -#elif __STDC__ 
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 */ 
423 -
424 -
425 -typedef rpcb_entry_list *rpcb_entry_list_ptr;
426 -#ifdef __cplusplus 
427 -extern "C" bool_t xdr_rpcb_entry_list_ptr(XDR *, rpcb_entry_list_ptr*);
428 -#elif __STDC__ 
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 */ 
433 -
434 -
435 -/*
436 - * rpcbind statistics
437 - */
438 -
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
447 -
448 -/* Link list of all the stats about getport and getaddr */
449 -
450 -struct rpcbs_addrlist {
451 -       rpcprog_t prog;
452 -       rpcvers_t vers;
453 -       int success;
454 -       int failure;
455 -       char *netid;
456 -       struct rpcbs_addrlist *next;
457 -};
458 -typedef struct rpcbs_addrlist rpcbs_addrlist;
459 -#ifdef __cplusplus 
460 -extern "C" bool_t xdr_rpcbs_addrlist(XDR *, rpcbs_addrlist*);
461 -#elif __STDC__ 
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 */ 
466 -
467 -
468 -/* Link list of all the stats about rmtcall */
469 -
470 -struct rpcbs_rmtcalllist {
471 -       rpcprog_t prog;
472 -       rpcvers_t vers;
473 -       rpcproc_t proc;
474 -       int success;
475 -       int failure;
476 -       int indirect;
477 -       char *netid;
478 -       struct rpcbs_rmtcalllist *next;
479 -};
480 -typedef struct rpcbs_rmtcalllist rpcbs_rmtcalllist;
481 -#ifdef __cplusplus 
482 -extern "C" bool_t xdr_rpcbs_rmtcalllist(XDR *, rpcbs_rmtcalllist*);
483 -#elif __STDC__ 
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 */ 
488 -
489 -
490 -typedef int rpcbs_proc[RPCBSTAT_HIGHPROC];
491 -#ifdef __cplusplus 
492 -extern "C" bool_t xdr_rpcbs_proc(XDR *, rpcbs_proc);
493 -#elif __STDC__ 
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 */ 
498 -
499 -
500 -typedef rpcbs_addrlist *rpcbs_addrlist_ptr;
501 -#ifdef __cplusplus 
502 -extern "C" bool_t xdr_rpcbs_addrlist_ptr(XDR *, rpcbs_addrlist_ptr*);
503 -#elif __STDC__ 
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 */ 
508 -
509 -
510 -typedef rpcbs_rmtcalllist *rpcbs_rmtcalllist_ptr;
511 -#ifdef __cplusplus 
512 -extern "C" bool_t xdr_rpcbs_rmtcalllist_ptr(XDR *, rpcbs_rmtcalllist_ptr*);
513 -#elif __STDC__ 
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 */ 
518 -
519 -
520 -struct rpcb_stat {
521 -       rpcbs_proc info;
522 -       int setinfo;
523 -       int unsetinfo;
524 -       rpcbs_addrlist_ptr addrinfo;
525 -       rpcbs_rmtcalllist_ptr rmtinfo;
526 -};
527 -typedef struct rpcb_stat rpcb_stat;
528 -#ifdef __cplusplus 
529 -extern "C" bool_t xdr_rpcb_stat(XDR *, rpcb_stat*);
530 -#elif __STDC__ 
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 */ 
535 -
536 -
537 -/*
538 - * One rpcb_stat structure is returned for each version of rpcbind
539 - * being monitored.
540 - */
541 -
542 -typedef rpcb_stat rpcb_stat_byvers[RPCBVERS_STAT];
543 -#ifdef __cplusplus 
544 -extern "C" bool_t xdr_rpcb_stat_byvers(XDR *, rpcb_stat_byvers);
545 -#elif __STDC__ 
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 */ 
550 -
551 -
552 -/*
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.
557 - */
558 -#ifdef __cplusplus
559 -extern "C" bool_t xdr_netbuf(XDR *, struct netbuf *);
560 -
561 -#else /* __STDC__ */
562 -extern bool_t xdr_netbuf(XDR *, struct netbuf *);
563 -
564 -#endif
565 -
566 -#define RPCBVERS_3 RPCBVERS
567 -#define RPCBVERS_4 RPCBVERS4
568 -
569 -#define _PATH_RPCBINDSOCK "/var/run/rpcbind.sock"
570 -
571 -#else /* ndef _KERNEL */
572 -#ifdef __cplusplus
573 -extern "C" {
574 -#endif
575 -
576 -/*
577 - * A mapping of (program, version, network ID) to address
578 - */
579 -struct rpcb {
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 */
585 -};
586 -typedef struct rpcb RPCB;
587 -
588 -/*
589 - * A list of mappings
590 - */
591 -struct rpcblist {
592 - RPCB rpcb_map;
593 - struct rpcblist *rpcb_next;
594 -};
595 -typedef struct rpcblist RPCBLIST;
596 -typedef struct rpcblist *rpcblist_ptr;
597 -
598 -/*
599 - * Remote calls arguments
600 - */
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 */
608 -};
609 -typedef struct rpcb_rmtcallargs rpcb_rmtcallargs;
610 -
611 -/*
612 - * Remote calls results
613 - */
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 */
619 -};
620 -typedef struct rpcb_rmtcallres rpcb_rmtcallres;
621 -
622 -struct rpcb_entry {
623 - char *r_maddr;
624 - char *r_nc_netid;
625 - unsigned int r_nc_semantics;
626 - char *r_nc_protofmly;
627 - char *r_nc_proto;
628 -};
629 -typedef struct rpcb_entry rpcb_entry;
630 -
631 -/*
632 - * A list of addresses supported by a service.
633 - */
634 -
635 -struct rpcb_entry_list {
636 - rpcb_entry rpcb_entry_map;
637 - struct rpcb_entry_list *rpcb_entry_next;
638 -};
639 -typedef struct rpcb_entry_list rpcb_entry_list;
640 -
641 -typedef rpcb_entry_list *rpcb_entry_list_ptr;
642 -
643 -/*
644 - * rpcbind statistics
645 - */
646 -
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
655 -
656 -/* Link list of all the stats about getport and getaddr */
657 -
658 -struct rpcbs_addrlist {
659 - rpcprog_t prog;
660 - rpcvers_t vers;
661 - int success;
662 - int failure;
663 - char *netid;
664 - struct rpcbs_addrlist *next;
665 -};
666 -typedef struct rpcbs_addrlist rpcbs_addrlist;
667 -
668 -/* Link list of all the stats about rmtcall */
669 -
670 -struct rpcbs_rmtcalllist {
671 - rpcprog_t prog;
672 - rpcvers_t vers;
673 - rpcproc_t proc;
674 - int success;
675 - int failure;
676 - int indirect;
677 - char *netid;
678 - struct rpcbs_rmtcalllist *next;
679 -};
680 -typedef struct rpcbs_rmtcalllist rpcbs_rmtcalllist;
681 -
682 -typedef int rpcbs_proc[RPCBSTAT_HIGHPROC];
683 -
684 -typedef rpcbs_addrlist *rpcbs_addrlist_ptr;
685 -
686 -typedef rpcbs_rmtcalllist *rpcbs_rmtcalllist_ptr;
687 -
688 -struct rpcb_stat {
689 - rpcbs_proc info;
690 - int setinfo;
691 - int unsetinfo;
692 - rpcbs_addrlist_ptr addrinfo;
693 - rpcbs_rmtcalllist_ptr rmtinfo;
694 -};
695 -typedef struct rpcb_stat rpcb_stat;
696 -
697 -/*
698 - * One rpcb_stat structure is returned for each version of rpcbind
699 - * being monitored.
700 - */
701 -
702 -typedef rpcb_stat rpcb_stat_byvers[RPCBVERS_STAT];
703 -
704 -#ifdef __cplusplus
705 -}
706 -#endif
707 -
708 -#endif /* ndef _KERNEL */
709 -
710 -#define RPCBPROG ((u_int32_t)100000)
711 -#define RPCBVERS ((u_int32_t)3)
712 -
713 -#ifdef __cplusplus
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 *);
738 -
739 -#elif __STDC__
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 *);
764 -
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)
792 -
793 -#ifdef __cplusplus
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 *);
823 -
824 -#elif __STDC__
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 *);
854 -
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 */ 
886 -
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
892 +++ /dev/null
893 @@ -1,109 +0,0 @@
894 -/*
895 - * Please do not edit this file.
896 - * It was generated using rpcgen.
897 - */
898 -
899 -#ifndef _CRYPT_H_RPCGEN
900 -#define _CRYPT_H_RPCGEN
901 -
902 -#include <rpc/rpc.h>
903 -
904 -#ifndef IXDR_GET_INT32
905 -#define IXDR_GET_INT32(buf) IXDR_GET_LONG((buf))
906 -#endif
907 -#ifndef IXDR_PUT_INT32
908 -#define IXDR_PUT_INT32(buf, v) IXDR_PUT_LONG((buf), (v))
909 -#endif
910 -#ifndef IXDR_GET_U_INT32
911 -#define IXDR_GET_U_INT32(buf) IXDR_GET_U_LONG((buf))
912 -#endif
913 -#ifndef IXDR_PUT_U_INT32
914 -#define IXDR_PUT_U_INT32(buf, v) IXDR_PUT_U_LONG((buf), (v))
915 -#endif
916 -
917 -enum des_dir {
918 -       ENCRYPT_DES = 0,
919 -       DECRYPT_DES = 1,
920 -};
921 -typedef enum des_dir des_dir;
922 -#ifdef __cplusplus 
923 -extern "C" bool_t xdr_des_dir(XDR *, des_dir*);
924 -#elif __STDC__ 
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 */ 
929 -
930 -
931 -enum des_mode {
932 -       CBC_DES = 0,
933 -       ECB_DES = 1,
934 -};
935 -typedef enum des_mode des_mode;
936 -#ifdef __cplusplus 
937 -extern "C" bool_t xdr_des_mode(XDR *, des_mode*);
938 -#elif __STDC__ 
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 */ 
943 -
944 -
945 -struct desargs {
946 -       u_char des_key[8];
947 -       des_dir des_dir;
948 -       des_mode des_mode;
949 -       u_char des_ivec[8];
950 -       struct {
951 -               u_int desbuf_len;
952 -               char *desbuf_val;
953 -       } desbuf;
954 -};
955 -typedef struct desargs desargs;
956 -#ifdef __cplusplus 
957 -extern "C" bool_t xdr_desargs(XDR *, desargs*);
958 -#elif __STDC__ 
959 -extern  bool_t xdr_desargs(XDR *, desargs*);
960 -#else /* Old Style C */ 
961 -bool_t xdr_desargs();
962 -#endif /* Old Style C */ 
963 -
964 -
965 -struct desresp {
966 -       struct {
967 -               u_int desbuf_len;
968 -               char *desbuf_val;
969 -       } desbuf;
970 -       u_char des_ivec[8];
971 -       int stat;
972 -};
973 -typedef struct desresp desresp;
974 -#ifdef __cplusplus 
975 -extern "C" bool_t xdr_desresp(XDR *, desresp*);
976 -#elif __STDC__ 
977 -extern  bool_t xdr_desresp(XDR *, desresp*);
978 -#else /* Old Style C */ 
979 -bool_t xdr_desresp();
980 -#endif /* Old Style C */ 
981 -
982 -
983 -#define CRYPT_PROG ((u_int32_t)600100029)
984 -#define CRYPT_VERS ((u_int32_t)1)
985 -
986 -#ifdef __cplusplus
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 *);
990 -
991 -#elif __STDC__
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 *);
995 -
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 */ 
1001 -
1002 -#endif /* !_CRYPT_H_RPCGEN */
1003 -- 
1004 2.0.0
1005