0004-Automatically-generate-XDR-header-files-from-.x-sour.patch 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002
  1. From eba198c27f2b8d3f0b27ea4a42f3dc79d397440c 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. [Gustavo: update after dropping non-IPv6 support]
  7. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  8. [yann.morin.1998@free.fr: update for 0.3.1]
  9. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
  10. ---
  11. Makefile.am | 19 +-
  12. src/Makefile.am | 2 +-
  13. tirpc/rpc/rpcb_prot.h | 797 --------------------------------------------------
  14. tirpc/rpcsvc/crypt.h | 109 -------
  15. 4 files changed, 17 insertions(+), 910 deletions(-)
  16. delete mode 100644 tirpc/rpc/rpcb_prot.h
  17. delete mode 100644 tirpc/rpcsvc/crypt.h
  18. diff --git a/Makefile.am b/Makefile.am
  19. index 8558289..aa5908e 100644
  20. --- a/Makefile.am
  21. +++ b/Makefile.am
  22. @@ -1,6 +1,9 @@
  23. SUBDIRS = src man doc rpcgen
  24. ACLOCAL_AMFLAGS = -I m4
  25. +GENFILES = tirpc/rpcsvc/crypt.h \
  26. + tirpc/rpc/rpcb_prot.h
  27. +
  28. noinst_HEADERS = tirpc/reentrant.h \
  29. tirpc/getpeereid.h \
  30. tirpc/libc_private.h \
  31. @@ -8,7 +11,6 @@ noinst_HEADERS = tirpc/reentrant.h \
  32. nobase_include_HEADERS = tirpc/netconfig.h \
  33. tirpc/rpcsvc/crypt.x \
  34. - tirpc/rpcsvc/crypt.h \
  35. tirpc/rpc/xdr.h \
  36. tirpc/rpc/types.h \
  37. tirpc/rpc/svc_soc.h \
  38. @@ -20,7 +22,6 @@ nobase_include_HEADERS = tirpc/netconfig.h \
  39. tirpc/rpc/rpcent.h \
  40. tirpc/rpc/rpc_com.h \
  41. tirpc/rpc/rpcb_prot.x \
  42. - tirpc/rpc/rpcb_prot.h \
  43. tirpc/rpc/rpcb_clnt.h \
  44. tirpc/rpc/raw.h \
  45. tirpc/rpc/pmap_rmt.h \
  46. @@ -51,5 +52,17 @@ endif
  47. pkgconfigdir=$(libdir)/pkgconfig
  48. pkgconfig_DATA = libtirpc.pc
  49. -CLEANFILES = cscope.* *~
  50. +nobase_nodist_include_HEADERS = $(GENFILES)
  51. +BUILT_SOURCES = $(GENFILES)
  52. +
  53. +$(GENFILES): %.h: %.x $(top_builddir)/rpcgen/rpcgen
  54. + mkdir -p $(dir $@)
  55. + $(top_builddir)/rpcgen/rpcgen -h -o $@ $<
  56. +
  57. +$(top_builddir)/rpcgen/rpcgen: force
  58. + cd rpcgen && $(MAKE)
  59. +
  60. +force:
  61. +
  62. +CLEANFILES = cscope.* *~ $(GENFILES)
  63. DISTCLEANFILES = Makefile.in libtirpc*.tar.gz
  64. diff --git a/src/Makefile.am b/src/Makefile.am
  65. index 7428e92..0356171 100644
  66. --- a/src/Makefile.am
  67. +++ b/src/Makefile.am
  68. @@ -8,7 +8,7 @@
  69. noinst_HEADERS = rpc_com.h debug.h
  70. AM_CPPFLAGS = -I$(top_srcdir)/tirpc -include config.h -DPORTMAP -DINET6 \
  71. - -D_GNU_SOURCE -Wall -pipe
  72. + -D_GNU_SOURCE -Wall -pipe -I$(top_builddir)/tirpc
  73. lib_LTLIBRARIES = libtirpc.la
  74. diff --git a/tirpc/rpc/rpcb_prot.h b/tirpc/rpc/rpcb_prot.h
  75. deleted file mode 100644
  76. index 7ae48b8..0000000
  77. --- a/tirpc/rpc/rpcb_prot.h
  78. +++ /dev/null
  79. @@ -1,797 +0,0 @@
  80. -/*
  81. - * Please do not edit this file.
  82. - * It was generated using rpcgen.
  83. - */
  84. -
  85. -#ifndef _RPCB_PROT_H_RPCGEN
  86. -#define _RPCB_PROT_H_RPCGEN
  87. -
  88. -#include <rpc/rpc.h>
  89. -
  90. -#ifndef IXDR_GET_INT32
  91. -#define IXDR_GET_INT32(buf) IXDR_GET_LONG((buf))
  92. -#endif
  93. -#ifndef IXDR_PUT_INT32
  94. -#define IXDR_PUT_INT32(buf, v) IXDR_PUT_LONG((buf), (v))
  95. -#endif
  96. -#ifndef IXDR_GET_U_INT32
  97. -#define IXDR_GET_U_INT32(buf) IXDR_GET_U_LONG((buf))
  98. -#endif
  99. -#ifndef IXDR_PUT_U_INT32
  100. -#define IXDR_PUT_U_INT32(buf, v) IXDR_PUT_U_LONG((buf), (v))
  101. -#endif
  102. -/*
  103. - * $FreeBSD: src/include/rpc/rpcb_prot.x,v 1.3 2002/03/13 10:29:06 obrien Exp $
  104. - *
  105. - * Copyright (c) 2009, Sun Microsystems, Inc.
  106. - * All rights reserved.
  107. - *
  108. - * Redistribution and use in source and binary forms, with or without
  109. - * modification, are permitted provided that the following conditions are met:
  110. - * - Redistributions of source code must retain the above copyright notice,
  111. - * this list of conditions and the following disclaimer.
  112. - * - Redistributions in binary form must reproduce the above copyright notice,
  113. - * this list of conditions and the following disclaimer in the documentation
  114. - * and/or other materials provided with the distribution.
  115. - * - Neither the name of Sun Microsystems, Inc. nor the names of its
  116. - * contributors may be used to endorse or promote products derived
  117. - * from this software without specific prior written permission.
  118. - *
  119. - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  120. - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  121. - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  122. - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
  123. - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  124. - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  125. - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  126. - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  127. - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  128. - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  129. - * POSSIBILITY OF SUCH DAMAGE.
  130. - */
  131. -/*
  132. - * Copyright (c) 1988 by Sun Microsystems, Inc.
  133. - */
  134. -/* from rpcb_prot.x */
  135. -
  136. -/* #pragma ident "@(#)rpcb_prot.x 1.5 94/04/29 SMI" */
  137. -
  138. -#ifndef _KERNEL
  139. -
  140. -
  141. -/*
  142. - * The following procedures are supported by the protocol in version 3:
  143. - *
  144. - * RPCBPROC_NULL() returns ()
  145. - * takes nothing, returns nothing
  146. - *
  147. - * RPCBPROC_SET(rpcb) returns (bool_t)
  148. - * TRUE is success, FALSE is failure. Registers the tuple
  149. - * [prog, vers, address, owner, netid].
  150. - * Finds out owner and netid information on its own.
  151. - *
  152. - * RPCBPROC_UNSET(rpcb) returns (bool_t)
  153. - * TRUE is success, FALSE is failure. Un-registers tuple
  154. - * [prog, vers, netid]. addresses is ignored.
  155. - * If netid is NULL, unregister all.
  156. - *
  157. - * RPCBPROC_GETADDR(rpcb) returns (string).
  158. - * 0 is failure. Otherwise returns the universal address where the
  159. - * triple [prog, vers, netid] is registered. Ignore address and owner.
  160. - *
  161. - * RPCBPROC_DUMP() RETURNS (rpcblist_ptr)
  162. - * used to dump the entire rpcbind maps
  163. - *
  164. - * RPCBPROC_CALLIT(rpcb_rmtcallargs)
  165. - * RETURNS (rpcb_rmtcallres);
  166. - * Calls the procedure on the remote machine. If it is not registered,
  167. - * this procedure is quiet; i.e. it does not return error information!!!
  168. - * This routine only passes null authentication parameters.
  169. - * It has no interface to xdr routines for RPCBPROC_CALLIT.
  170. - *
  171. - * RPCBPROC_GETTIME() returns (int).
  172. - * Gets the remote machines time
  173. - *
  174. - * RPCBPROC_UADDR2TADDR(strint) RETURNS (struct netbuf)
  175. - * Returns the netbuf address from universal address.
  176. - *
  177. - * RPCBPROC_TADDR2UADDR(struct netbuf) RETURNS (string)
  178. - * Returns the universal address from netbuf address.
  179. - *
  180. - * END OF RPCBIND VERSION 3 PROCEDURES
  181. - */
  182. -/*
  183. - * Except for RPCBPROC_CALLIT, the procedures above are carried over to
  184. - * rpcbind version 4. Those below are added or modified for version 4.
  185. - * NOTE: RPCBPROC_BCAST HAS THE SAME FUNCTIONALITY AND PROCEDURE NUMBER
  186. - * AS RPCBPROC_CALLIT.
  187. - *
  188. - * RPCBPROC_BCAST(rpcb_rmtcallargs)
  189. - * RETURNS (rpcb_rmtcallres);
  190. - * Calls the procedure on the remote machine. If it is not registered,
  191. - * this procedure IS quiet; i.e. it DOES NOT return error information!!!
  192. - * This routine should be used for broadcasting and nothing else.
  193. - *
  194. - * RPCBPROC_GETVERSADDR(rpcb) returns (string).
  195. - * 0 is failure. Otherwise returns the universal address where the
  196. - * triple [prog, vers, netid] is registered. Ignore address and owner.
  197. - * Same as RPCBPROC_GETADDR except that if the given version number
  198. - * is not available, the address is not returned.
  199. - *
  200. - * RPCBPROC_INDIRECT(rpcb_rmtcallargs)
  201. - * RETURNS (rpcb_rmtcallres);
  202. - * Calls the procedure on the remote machine. If it is not registered,
  203. - * this procedure is NOT quiet; i.e. it DOES return error information!!!
  204. - * as any normal application would expect.
  205. - *
  206. - * RPCBPROC_GETADDRLIST(rpcb) returns (rpcb_entry_list_ptr).
  207. - * Same as RPCBPROC_GETADDR except that it returns a list of all the
  208. - * addresses registered for the combination (prog, vers) (for all
  209. - * transports).
  210. - *
  211. - * RPCBPROC_GETSTAT(void) returns (rpcb_stat_byvers)
  212. - * Returns the statistics about the kind of requests received by rpcbind.
  213. - */
  214. -
  215. -/*
  216. - * A mapping of (program, version, network ID) to address
  217. - */
  218. -
  219. -struct rpcb {
  220. - rpcprog_t r_prog;
  221. - rpcvers_t r_vers;
  222. - char *r_netid;
  223. - char *r_addr;
  224. - char *r_owner;
  225. -};
  226. -typedef struct rpcb rpcb;
  227. -#ifdef __cplusplus
  228. -extern "C" bool_t xdr_rpcb(XDR *, rpcb*);
  229. -#elif __STDC__
  230. -extern bool_t xdr_rpcb(XDR *, rpcb*);
  231. -#else /* Old Style C */
  232. -bool_t xdr_rpcb();
  233. -#endif /* Old Style C */
  234. -
  235. -
  236. -typedef rpcb RPCB;
  237. -
  238. -
  239. -/*
  240. - * A list of mappings
  241. - *
  242. - * Below are two definitions for the rpcblist structure. This is done because
  243. - * xdr_rpcblist() is specified to take a struct rpcblist **, rather than a
  244. - * struct rpcblist * that rpcgen would produce. One version of the rpcblist
  245. - * structure (actually called rp__list) is used with rpcgen, and the other is
  246. - * defined only in the header file for compatibility with the specified
  247. - * interface.
  248. - */
  249. -
  250. -struct rp__list {
  251. - rpcb rpcb_map;
  252. - struct rp__list *rpcb_next;
  253. -};
  254. -typedef struct rp__list rp__list;
  255. -#ifdef __cplusplus
  256. -extern "C" bool_t xdr_rp__list(XDR *, rp__list*);
  257. -#elif __STDC__
  258. -extern bool_t xdr_rp__list(XDR *, rp__list*);
  259. -#else /* Old Style C */
  260. -bool_t xdr_rp__list();
  261. -#endif /* Old Style C */
  262. -
  263. -
  264. -typedef rp__list *rpcblist_ptr;
  265. -#ifdef __cplusplus
  266. -extern "C" bool_t xdr_rpcblist_ptr(XDR *, rpcblist_ptr*);
  267. -#elif __STDC__
  268. -extern bool_t xdr_rpcblist_ptr(XDR *, rpcblist_ptr*);
  269. -#else /* Old Style C */
  270. -bool_t xdr_rpcblist_ptr();
  271. -#endif /* Old Style C */
  272. -
  273. -
  274. -typedef struct rp__list rpcblist;
  275. -typedef struct rp__list RPCBLIST;
  276. -
  277. -#ifndef __cplusplus
  278. -struct rpcblist {
  279. - RPCB rpcb_map;
  280. - struct rpcblist *rpcb_next;
  281. -};
  282. -#endif
  283. -
  284. -#ifdef __cplusplus
  285. -extern "C" {
  286. -#endif
  287. -extern bool_t xdr_rpcblist(XDR *, rpcblist**);
  288. -#ifdef __cplusplus
  289. -}
  290. -#endif
  291. -
  292. -
  293. -/*
  294. - * Arguments of remote calls
  295. - */
  296. -
  297. -struct rpcb_rmtcallargs {
  298. - rpcprog_t prog;
  299. - rpcvers_t vers;
  300. - rpcproc_t proc;
  301. - struct {
  302. - u_int args_len;
  303. - char *args_val;
  304. - } args;
  305. -};
  306. -typedef struct rpcb_rmtcallargs rpcb_rmtcallargs;
  307. -#ifdef __cplusplus
  308. -extern "C" bool_t xdr_rpcb_rmtcallargs(XDR *, rpcb_rmtcallargs*);
  309. -#elif __STDC__
  310. -extern bool_t xdr_rpcb_rmtcallargs(XDR *, rpcb_rmtcallargs*);
  311. -#else /* Old Style C */
  312. -bool_t xdr_rpcb_rmtcallargs();
  313. -#endif /* Old Style C */
  314. -
  315. -
  316. -/*
  317. - * Client-side only representation of rpcb_rmtcallargs structure.
  318. - *
  319. - * The routine that XDRs the rpcb_rmtcallargs structure must deal with the
  320. - * opaque arguments in the "args" structure. xdr_rpcb_rmtcallargs() needs to
  321. - * be passed the XDR routine that knows the args' structure. This routine
  322. - * doesn't need to go over-the-wire (and it wouldn't make sense anyway) since
  323. - * the application being called already knows the args structure. So we use a
  324. - * different "XDR" structure on the client side, r_rpcb_rmtcallargs, which
  325. - * includes the args' XDR routine.
  326. - */
  327. -struct r_rpcb_rmtcallargs {
  328. - rpcprog_t prog;
  329. - rpcvers_t vers;
  330. - rpcproc_t proc;
  331. - struct {
  332. - u_int args_len;
  333. - char *args_val;
  334. - } args;
  335. - xdrproc_t xdr_args; /* encodes args */
  336. -};
  337. -
  338. -
  339. -/*
  340. - * Results of the remote call
  341. - */
  342. -
  343. -struct rpcb_rmtcallres {
  344. - char *addr;
  345. - struct {
  346. - u_int results_len;
  347. - char *results_val;
  348. - } results;
  349. -};
  350. -typedef struct rpcb_rmtcallres rpcb_rmtcallres;
  351. -#ifdef __cplusplus
  352. -extern "C" bool_t xdr_rpcb_rmtcallres(XDR *, rpcb_rmtcallres*);
  353. -#elif __STDC__
  354. -extern bool_t xdr_rpcb_rmtcallres(XDR *, rpcb_rmtcallres*);
  355. -#else /* Old Style C */
  356. -bool_t xdr_rpcb_rmtcallres();
  357. -#endif /* Old Style C */
  358. -
  359. -
  360. -/*
  361. - * Client-side only representation of rpcb_rmtcallres structure.
  362. - */
  363. -struct r_rpcb_rmtcallres {
  364. - char *addr;
  365. - struct {
  366. - u_int32_t results_len;
  367. - char *results_val;
  368. - } results;
  369. - xdrproc_t xdr_res; /* decodes results */
  370. -};
  371. -
  372. -/*
  373. - * rpcb_entry contains a merged address of a service on a particular
  374. - * transport, plus associated netconfig information. A list of rpcb_entrys
  375. - * is returned by RPCBPROC_GETADDRLIST. See netconfig.h for values used
  376. - * in r_nc_* fields.
  377. - */
  378. -
  379. -struct rpcb_entry {
  380. - char *r_maddr;
  381. - char *r_nc_netid;
  382. - u_int r_nc_semantics;
  383. - char *r_nc_protofmly;
  384. - char *r_nc_proto;
  385. -};
  386. -typedef struct rpcb_entry rpcb_entry;
  387. -#ifdef __cplusplus
  388. -extern "C" bool_t xdr_rpcb_entry(XDR *, rpcb_entry*);
  389. -#elif __STDC__
  390. -extern bool_t xdr_rpcb_entry(XDR *, rpcb_entry*);
  391. -#else /* Old Style C */
  392. -bool_t xdr_rpcb_entry();
  393. -#endif /* Old Style C */
  394. -
  395. -
  396. -/*
  397. - * A list of addresses supported by a service.
  398. - */
  399. -
  400. -struct rpcb_entry_list {
  401. - rpcb_entry rpcb_entry_map;
  402. - struct rpcb_entry_list *rpcb_entry_next;
  403. -};
  404. -typedef struct rpcb_entry_list rpcb_entry_list;
  405. -#ifdef __cplusplus
  406. -extern "C" bool_t xdr_rpcb_entry_list(XDR *, rpcb_entry_list*);
  407. -#elif __STDC__
  408. -extern bool_t xdr_rpcb_entry_list(XDR *, rpcb_entry_list*);
  409. -#else /* Old Style C */
  410. -bool_t xdr_rpcb_entry_list();
  411. -#endif /* Old Style C */
  412. -
  413. -
  414. -typedef rpcb_entry_list *rpcb_entry_list_ptr;
  415. -#ifdef __cplusplus
  416. -extern "C" bool_t xdr_rpcb_entry_list_ptr(XDR *, rpcb_entry_list_ptr*);
  417. -#elif __STDC__
  418. -extern bool_t xdr_rpcb_entry_list_ptr(XDR *, rpcb_entry_list_ptr*);
  419. -#else /* Old Style C */
  420. -bool_t xdr_rpcb_entry_list_ptr();
  421. -#endif /* Old Style C */
  422. -
  423. -
  424. -/*
  425. - * rpcbind statistics
  426. - */
  427. -
  428. -#define rpcb_highproc_2 RPCBPROC_CALLIT
  429. -#define rpcb_highproc_3 RPCBPROC_TADDR2UADDR
  430. -#define rpcb_highproc_4 RPCBPROC_GETSTAT
  431. -#define RPCBSTAT_HIGHPROC 13
  432. -#define RPCBVERS_STAT 3
  433. -#define RPCBVERS_4_STAT 2
  434. -#define RPCBVERS_3_STAT 1
  435. -#define RPCBVERS_2_STAT 0
  436. -
  437. -/* Link list of all the stats about getport and getaddr */
  438. -
  439. -struct rpcbs_addrlist {
  440. - rpcprog_t prog;
  441. - rpcvers_t vers;
  442. - int success;
  443. - int failure;
  444. - char *netid;
  445. - struct rpcbs_addrlist *next;
  446. -};
  447. -typedef struct rpcbs_addrlist rpcbs_addrlist;
  448. -#ifdef __cplusplus
  449. -extern "C" bool_t xdr_rpcbs_addrlist(XDR *, rpcbs_addrlist*);
  450. -#elif __STDC__
  451. -extern bool_t xdr_rpcbs_addrlist(XDR *, rpcbs_addrlist*);
  452. -#else /* Old Style C */
  453. -bool_t xdr_rpcbs_addrlist();
  454. -#endif /* Old Style C */
  455. -
  456. -
  457. -/* Link list of all the stats about rmtcall */
  458. -
  459. -struct rpcbs_rmtcalllist {
  460. - rpcprog_t prog;
  461. - rpcvers_t vers;
  462. - rpcproc_t proc;
  463. - int success;
  464. - int failure;
  465. - int indirect;
  466. - char *netid;
  467. - struct rpcbs_rmtcalllist *next;
  468. -};
  469. -typedef struct rpcbs_rmtcalllist rpcbs_rmtcalllist;
  470. -#ifdef __cplusplus
  471. -extern "C" bool_t xdr_rpcbs_rmtcalllist(XDR *, rpcbs_rmtcalllist*);
  472. -#elif __STDC__
  473. -extern bool_t xdr_rpcbs_rmtcalllist(XDR *, rpcbs_rmtcalllist*);
  474. -#else /* Old Style C */
  475. -bool_t xdr_rpcbs_rmtcalllist();
  476. -#endif /* Old Style C */
  477. -
  478. -
  479. -typedef int rpcbs_proc[RPCBSTAT_HIGHPROC];
  480. -#ifdef __cplusplus
  481. -extern "C" bool_t xdr_rpcbs_proc(XDR *, rpcbs_proc);
  482. -#elif __STDC__
  483. -extern bool_t xdr_rpcbs_proc(XDR *, rpcbs_proc);
  484. -#else /* Old Style C */
  485. -bool_t xdr_rpcbs_proc();
  486. -#endif /* Old Style C */
  487. -
  488. -
  489. -typedef rpcbs_addrlist *rpcbs_addrlist_ptr;
  490. -#ifdef __cplusplus
  491. -extern "C" bool_t xdr_rpcbs_addrlist_ptr(XDR *, rpcbs_addrlist_ptr*);
  492. -#elif __STDC__
  493. -extern bool_t xdr_rpcbs_addrlist_ptr(XDR *, rpcbs_addrlist_ptr*);
  494. -#else /* Old Style C */
  495. -bool_t xdr_rpcbs_addrlist_ptr();
  496. -#endif /* Old Style C */
  497. -
  498. -
  499. -typedef rpcbs_rmtcalllist *rpcbs_rmtcalllist_ptr;
  500. -#ifdef __cplusplus
  501. -extern "C" bool_t xdr_rpcbs_rmtcalllist_ptr(XDR *, rpcbs_rmtcalllist_ptr*);
  502. -#elif __STDC__
  503. -extern bool_t xdr_rpcbs_rmtcalllist_ptr(XDR *, rpcbs_rmtcalllist_ptr*);
  504. -#else /* Old Style C */
  505. -bool_t xdr_rpcbs_rmtcalllist_ptr();
  506. -#endif /* Old Style C */
  507. -
  508. -
  509. -struct rpcb_stat {
  510. - rpcbs_proc info;
  511. - int setinfo;
  512. - int unsetinfo;
  513. - rpcbs_addrlist_ptr addrinfo;
  514. - rpcbs_rmtcalllist_ptr rmtinfo;
  515. -};
  516. -typedef struct rpcb_stat rpcb_stat;
  517. -#ifdef __cplusplus
  518. -extern "C" bool_t xdr_rpcb_stat(XDR *, rpcb_stat*);
  519. -#elif __STDC__
  520. -extern bool_t xdr_rpcb_stat(XDR *, rpcb_stat*);
  521. -#else /* Old Style C */
  522. -bool_t xdr_rpcb_stat();
  523. -#endif /* Old Style C */
  524. -
  525. -
  526. -/*
  527. - * One rpcb_stat structure is returned for each version of rpcbind
  528. - * being monitored.
  529. - */
  530. -
  531. -typedef rpcb_stat rpcb_stat_byvers[RPCBVERS_STAT];
  532. -#ifdef __cplusplus
  533. -extern "C" bool_t xdr_rpcb_stat_byvers(XDR *, rpcb_stat_byvers);
  534. -#elif __STDC__
  535. -extern bool_t xdr_rpcb_stat_byvers(XDR *, rpcb_stat_byvers);
  536. -#else /* Old Style C */
  537. -bool_t xdr_rpcb_stat_byvers();
  538. -#endif /* Old Style C */
  539. -
  540. -
  541. -/*
  542. - * We don't define netbuf in RPCL, since it would contain structure member
  543. - * names that would conflict with the definition of struct netbuf in
  544. - * <tiuser.h>. Instead we merely declare the XDR routine xdr_netbuf() here,
  545. - * and implement it ourselves in rpc/rpcb_prot.c.
  546. - */
  547. -#ifdef __cplusplus
  548. -extern "C" bool_t xdr_netbuf(XDR *, struct netbuf *);
  549. -
  550. -#else /* __STDC__ */
  551. -extern bool_t xdr_netbuf(XDR *, struct netbuf *);
  552. -
  553. -#endif
  554. -
  555. -#define RPCBVERS_3 RPCBVERS
  556. -#define RPCBVERS_4 RPCBVERS4
  557. -
  558. -#define _PATH_RPCBINDSOCK "/var/run/rpcbind.sock"
  559. -
  560. -#else /* ndef _KERNEL */
  561. -#ifdef __cplusplus
  562. -extern "C" {
  563. -#endif
  564. -
  565. -/*
  566. - * A mapping of (program, version, network ID) to address
  567. - */
  568. -struct rpcb {
  569. - rpcprog_t r_prog; /* program number */
  570. - rpcvers_t r_vers; /* version number */
  571. - char *r_netid; /* network id */
  572. - char *r_addr; /* universal address */
  573. - char *r_owner; /* owner of the mapping */
  574. -};
  575. -typedef struct rpcb RPCB;
  576. -
  577. -/*
  578. - * A list of mappings
  579. - */
  580. -struct rpcblist {
  581. - RPCB rpcb_map;
  582. - struct rpcblist *rpcb_next;
  583. -};
  584. -typedef struct rpcblist RPCBLIST;
  585. -typedef struct rpcblist *rpcblist_ptr;
  586. -
  587. -/*
  588. - * Remote calls arguments
  589. - */
  590. -struct rpcb_rmtcallargs {
  591. - rpcprog_t prog; /* program number */
  592. - rpcvers_t vers; /* version number */
  593. - rpcproc_t proc; /* procedure number */
  594. - u_int32_t arglen; /* arg len */
  595. - caddr_t args_ptr; /* argument */
  596. - xdrproc_t xdr_args; /* XDR routine for argument */
  597. -};
  598. -typedef struct rpcb_rmtcallargs rpcb_rmtcallargs;
  599. -
  600. -/*
  601. - * Remote calls results
  602. - */
  603. -struct rpcb_rmtcallres {
  604. - char *addr_ptr; /* remote universal address */
  605. - u_int32_t resultslen; /* results length */
  606. - caddr_t results_ptr; /* results */
  607. - xdrproc_t xdr_results; /* XDR routine for result */
  608. -};
  609. -typedef struct rpcb_rmtcallres rpcb_rmtcallres;
  610. -
  611. -struct rpcb_entry {
  612. - char *r_maddr;
  613. - char *r_nc_netid;
  614. - unsigned int r_nc_semantics;
  615. - char *r_nc_protofmly;
  616. - char *r_nc_proto;
  617. -};
  618. -typedef struct rpcb_entry rpcb_entry;
  619. -
  620. -/*
  621. - * A list of addresses supported by a service.
  622. - */
  623. -
  624. -struct rpcb_entry_list {
  625. - rpcb_entry rpcb_entry_map;
  626. - struct rpcb_entry_list *rpcb_entry_next;
  627. -};
  628. -typedef struct rpcb_entry_list rpcb_entry_list;
  629. -
  630. -typedef rpcb_entry_list *rpcb_entry_list_ptr;
  631. -
  632. -/*
  633. - * rpcbind statistics
  634. - */
  635. -
  636. -#define rpcb_highproc_2 RPCBPROC_CALLIT
  637. -#define rpcb_highproc_3 RPCBPROC_TADDR2UADDR
  638. -#define rpcb_highproc_4 RPCBPROC_GETSTAT
  639. -#define RPCBSTAT_HIGHPROC 13
  640. -#define RPCBVERS_STAT 3
  641. -#define RPCBVERS_4_STAT 2
  642. -#define RPCBVERS_3_STAT 1
  643. -#define RPCBVERS_2_STAT 0
  644. -
  645. -/* Link list of all the stats about getport and getaddr */
  646. -
  647. -struct rpcbs_addrlist {
  648. - rpcprog_t prog;
  649. - rpcvers_t vers;
  650. - int success;
  651. - int failure;
  652. - char *netid;
  653. - struct rpcbs_addrlist *next;
  654. -};
  655. -typedef struct rpcbs_addrlist rpcbs_addrlist;
  656. -
  657. -/* Link list of all the stats about rmtcall */
  658. -
  659. -struct rpcbs_rmtcalllist {
  660. - rpcprog_t prog;
  661. - rpcvers_t vers;
  662. - rpcproc_t proc;
  663. - int success;
  664. - int failure;
  665. - int indirect;
  666. - char *netid;
  667. - struct rpcbs_rmtcalllist *next;
  668. -};
  669. -typedef struct rpcbs_rmtcalllist rpcbs_rmtcalllist;
  670. -
  671. -typedef int rpcbs_proc[RPCBSTAT_HIGHPROC];
  672. -
  673. -typedef rpcbs_addrlist *rpcbs_addrlist_ptr;
  674. -
  675. -typedef rpcbs_rmtcalllist *rpcbs_rmtcalllist_ptr;
  676. -
  677. -struct rpcb_stat {
  678. - rpcbs_proc info;
  679. - int setinfo;
  680. - int unsetinfo;
  681. - rpcbs_addrlist_ptr addrinfo;
  682. - rpcbs_rmtcalllist_ptr rmtinfo;
  683. -};
  684. -typedef struct rpcb_stat rpcb_stat;
  685. -
  686. -/*
  687. - * One rpcb_stat structure is returned for each version of rpcbind
  688. - * being monitored.
  689. - */
  690. -
  691. -typedef rpcb_stat rpcb_stat_byvers[RPCBVERS_STAT];
  692. -
  693. -#ifdef __cplusplus
  694. -}
  695. -#endif
  696. -
  697. -#endif /* ndef _KERNEL */
  698. -
  699. -#define RPCBPROG ((u_int32_t)100000)
  700. -#define RPCBVERS ((u_int32_t)3)
  701. -
  702. -#ifdef __cplusplus
  703. -#define RPCBPROC_SET ((u_int32_t)1)
  704. -extern "C" bool_t * rpcbproc_set_3(rpcb *, CLIENT *);
  705. -extern "C" bool_t * rpcbproc_set_3_svc(rpcb *, struct svc_req *);
  706. -#define RPCBPROC_UNSET ((u_int32_t)2)
  707. -extern "C" bool_t * rpcbproc_unset_3(rpcb *, CLIENT *);
  708. -extern "C" bool_t * rpcbproc_unset_3_svc(rpcb *, struct svc_req *);
  709. -#define RPCBPROC_GETADDR ((u_int32_t)3)
  710. -extern "C" char ** rpcbproc_getaddr_3(rpcb *, CLIENT *);
  711. -extern "C" char ** rpcbproc_getaddr_3_svc(rpcb *, struct svc_req *);
  712. -#define RPCBPROC_DUMP ((u_int32_t)4)
  713. -extern "C" rpcblist_ptr * rpcbproc_dump_3(void *, CLIENT *);
  714. -extern "C" rpcblist_ptr * rpcbproc_dump_3_svc(void *, struct svc_req *);
  715. -#define RPCBPROC_CALLIT ((u_int32_t)5)
  716. -extern "C" rpcb_rmtcallres * rpcbproc_callit_3(rpcb_rmtcallargs *, CLIENT *);
  717. -extern "C" rpcb_rmtcallres * rpcbproc_callit_3_svc(rpcb_rmtcallargs *, struct svc_req *);
  718. -#define RPCBPROC_GETTIME ((u_int32_t)6)
  719. -extern "C" u_int * rpcbproc_gettime_3(void *, CLIENT *);
  720. -extern "C" u_int * rpcbproc_gettime_3_svc(void *, struct svc_req *);
  721. -#define RPCBPROC_UADDR2TADDR ((u_int32_t)7)
  722. -extern "C" struct netbuf * rpcbproc_uaddr2taddr_3(char **, CLIENT *);
  723. -extern "C" struct netbuf * rpcbproc_uaddr2taddr_3_svc(char **, struct svc_req *);
  724. -#define RPCBPROC_TADDR2UADDR ((u_int32_t)8)
  725. -extern "C" char ** rpcbproc_taddr2uaddr_3(struct netbuf *, CLIENT *);
  726. -extern "C" char ** rpcbproc_taddr2uaddr_3_svc(struct netbuf *, struct svc_req *);
  727. -
  728. -#elif __STDC__
  729. -#define RPCBPROC_SET ((u_int32_t)1)
  730. -extern bool_t * rpcbproc_set_3(rpcb *, CLIENT *);
  731. -extern bool_t * rpcbproc_set_3_svc(rpcb *, struct svc_req *);
  732. -#define RPCBPROC_UNSET ((u_int32_t)2)
  733. -extern bool_t * rpcbproc_unset_3(rpcb *, CLIENT *);
  734. -extern bool_t * rpcbproc_unset_3_svc(rpcb *, struct svc_req *);
  735. -#define RPCBPROC_GETADDR ((u_int32_t)3)
  736. -extern char ** rpcbproc_getaddr_3(rpcb *, CLIENT *);
  737. -extern char ** rpcbproc_getaddr_3_svc(rpcb *, struct svc_req *);
  738. -#define RPCBPROC_DUMP ((u_int32_t)4)
  739. -extern rpcblist_ptr * rpcbproc_dump_3(void *, CLIENT *);
  740. -extern rpcblist_ptr * rpcbproc_dump_3_svc(void *, struct svc_req *);
  741. -#define RPCBPROC_CALLIT ((u_int32_t)5)
  742. -extern rpcb_rmtcallres * rpcbproc_callit_3(rpcb_rmtcallargs *, CLIENT *);
  743. -extern rpcb_rmtcallres * rpcbproc_callit_3_svc(rpcb_rmtcallargs *, struct svc_req *);
  744. -#define RPCBPROC_GETTIME ((u_int32_t)6)
  745. -extern u_int * rpcbproc_gettime_3(void *, CLIENT *);
  746. -extern u_int * rpcbproc_gettime_3_svc(void *, struct svc_req *);
  747. -#define RPCBPROC_UADDR2TADDR ((u_int32_t)7)
  748. -extern struct netbuf * rpcbproc_uaddr2taddr_3(char **, CLIENT *);
  749. -extern struct netbuf * rpcbproc_uaddr2taddr_3_svc(char **, struct svc_req *);
  750. -#define RPCBPROC_TADDR2UADDR ((u_int32_t)8)
  751. -extern char ** rpcbproc_taddr2uaddr_3(struct netbuf *, CLIENT *);
  752. -extern char ** rpcbproc_taddr2uaddr_3_svc(struct netbuf *, struct svc_req *);
  753. -
  754. -#else /* Old Style C */
  755. -#define RPCBPROC_SET ((u_int32_t)1)
  756. -extern bool_t * rpcbproc_set_3();
  757. -extern bool_t * rpcbproc_set_3_svc();
  758. -#define RPCBPROC_UNSET ((u_int32_t)2)
  759. -extern bool_t * rpcbproc_unset_3();
  760. -extern bool_t * rpcbproc_unset_3_svc();
  761. -#define RPCBPROC_GETADDR ((u_int32_t)3)
  762. -extern char ** rpcbproc_getaddr_3();
  763. -extern char ** rpcbproc_getaddr_3_svc();
  764. -#define RPCBPROC_DUMP ((u_int32_t)4)
  765. -extern rpcblist_ptr * rpcbproc_dump_3();
  766. -extern rpcblist_ptr * rpcbproc_dump_3_svc();
  767. -#define RPCBPROC_CALLIT ((u_int32_t)5)
  768. -extern rpcb_rmtcallres * rpcbproc_callit_3();
  769. -extern rpcb_rmtcallres * rpcbproc_callit_3_svc();
  770. -#define RPCBPROC_GETTIME ((u_int32_t)6)
  771. -extern u_int * rpcbproc_gettime_3();
  772. -extern u_int * rpcbproc_gettime_3_svc();
  773. -#define RPCBPROC_UADDR2TADDR ((u_int32_t)7)
  774. -extern struct netbuf * rpcbproc_uaddr2taddr_3();
  775. -extern struct netbuf * rpcbproc_uaddr2taddr_3_svc();
  776. -#define RPCBPROC_TADDR2UADDR ((u_int32_t)8)
  777. -extern char ** rpcbproc_taddr2uaddr_3();
  778. -extern char ** rpcbproc_taddr2uaddr_3_svc();
  779. -#endif /* Old Style C */
  780. -#define RPCBVERS4 ((u_int32_t)4)
  781. -
  782. -#ifdef __cplusplus
  783. -extern "C" bool_t * rpcbproc_set_4(rpcb *, CLIENT *);
  784. -extern "C" bool_t * rpcbproc_set_4_svc(rpcb *, struct svc_req *);
  785. -extern "C" bool_t * rpcbproc_unset_4(rpcb *, CLIENT *);
  786. -extern "C" bool_t * rpcbproc_unset_4_svc(rpcb *, struct svc_req *);
  787. -extern "C" char ** rpcbproc_getaddr_4(rpcb *, CLIENT *);
  788. -extern "C" char ** rpcbproc_getaddr_4_svc(rpcb *, struct svc_req *);
  789. -extern "C" rpcblist_ptr * rpcbproc_dump_4(void *, CLIENT *);
  790. -extern "C" rpcblist_ptr * rpcbproc_dump_4_svc(void *, struct svc_req *);
  791. -#define RPCBPROC_BCAST ((u_int32_t)RPCBPROC_CALLIT)
  792. -extern "C" rpcb_rmtcallres * rpcbproc_bcast_4(rpcb_rmtcallargs *, CLIENT *);
  793. -extern "C" rpcb_rmtcallres * rpcbproc_bcast_4_svc(rpcb_rmtcallargs *, struct svc_req *);
  794. -extern "C" u_int * rpcbproc_gettime_4(void *, CLIENT *);
  795. -extern "C" u_int * rpcbproc_gettime_4_svc(void *, struct svc_req *);
  796. -extern "C" struct netbuf * rpcbproc_uaddr2taddr_4(char **, CLIENT *);
  797. -extern "C" struct netbuf * rpcbproc_uaddr2taddr_4_svc(char **, struct svc_req *);
  798. -extern "C" char ** rpcbproc_taddr2uaddr_4(struct netbuf *, CLIENT *);
  799. -extern "C" char ** rpcbproc_taddr2uaddr_4_svc(struct netbuf *, struct svc_req *);
  800. -#define RPCBPROC_GETVERSADDR ((u_int32_t)9)
  801. -extern "C" char ** rpcbproc_getversaddr_4(rpcb *, CLIENT *);
  802. -extern "C" char ** rpcbproc_getversaddr_4_svc(rpcb *, struct svc_req *);
  803. -#define RPCBPROC_INDIRECT ((u_int32_t)10)
  804. -extern "C" rpcb_rmtcallres * rpcbproc_indirect_4(rpcb_rmtcallargs *, CLIENT *);
  805. -extern "C" rpcb_rmtcallres * rpcbproc_indirect_4_svc(rpcb_rmtcallargs *, struct svc_req *);
  806. -#define RPCBPROC_GETADDRLIST ((u_int32_t)11)
  807. -extern "C" rpcb_entry_list_ptr * rpcbproc_getaddrlist_4(rpcb *, CLIENT *);
  808. -extern "C" rpcb_entry_list_ptr * rpcbproc_getaddrlist_4_svc(rpcb *, struct svc_req *);
  809. -#define RPCBPROC_GETSTAT ((u_int32_t)12)
  810. -extern "C" rpcb_stat * rpcbproc_getstat_4(void *, CLIENT *);
  811. -extern "C" rpcb_stat * rpcbproc_getstat_4_svc(void *, struct svc_req *);
  812. -
  813. -#elif __STDC__
  814. -extern bool_t * rpcbproc_set_4(rpcb *, CLIENT *);
  815. -extern bool_t * rpcbproc_set_4_svc(rpcb *, struct svc_req *);
  816. -extern bool_t * rpcbproc_unset_4(rpcb *, CLIENT *);
  817. -extern bool_t * rpcbproc_unset_4_svc(rpcb *, struct svc_req *);
  818. -extern char ** rpcbproc_getaddr_4(rpcb *, CLIENT *);
  819. -extern char ** rpcbproc_getaddr_4_svc(rpcb *, struct svc_req *);
  820. -extern rpcblist_ptr * rpcbproc_dump_4(void *, CLIENT *);
  821. -extern rpcblist_ptr * rpcbproc_dump_4_svc(void *, struct svc_req *);
  822. -#define RPCBPROC_BCAST ((u_int32_t)RPCBPROC_CALLIT)
  823. -extern rpcb_rmtcallres * rpcbproc_bcast_4(rpcb_rmtcallargs *, CLIENT *);
  824. -extern rpcb_rmtcallres * rpcbproc_bcast_4_svc(rpcb_rmtcallargs *, struct svc_req *);
  825. -extern u_int * rpcbproc_gettime_4(void *, CLIENT *);
  826. -extern u_int * rpcbproc_gettime_4_svc(void *, struct svc_req *);
  827. -extern struct netbuf * rpcbproc_uaddr2taddr_4(char **, CLIENT *);
  828. -extern struct netbuf * rpcbproc_uaddr2taddr_4_svc(char **, struct svc_req *);
  829. -extern char ** rpcbproc_taddr2uaddr_4(struct netbuf *, CLIENT *);
  830. -extern char ** rpcbproc_taddr2uaddr_4_svc(struct netbuf *, struct svc_req *);
  831. -#define RPCBPROC_GETVERSADDR ((u_int32_t)9)
  832. -extern char ** rpcbproc_getversaddr_4(rpcb *, CLIENT *);
  833. -extern char ** rpcbproc_getversaddr_4_svc(rpcb *, struct svc_req *);
  834. -#define RPCBPROC_INDIRECT ((u_int32_t)10)
  835. -extern rpcb_rmtcallres * rpcbproc_indirect_4(rpcb_rmtcallargs *, CLIENT *);
  836. -extern rpcb_rmtcallres * rpcbproc_indirect_4_svc(rpcb_rmtcallargs *, struct svc_req *);
  837. -#define RPCBPROC_GETADDRLIST ((u_int32_t)11)
  838. -extern rpcb_entry_list_ptr * rpcbproc_getaddrlist_4(rpcb *, CLIENT *);
  839. -extern rpcb_entry_list_ptr * rpcbproc_getaddrlist_4_svc(rpcb *, struct svc_req *);
  840. -#define RPCBPROC_GETSTAT ((u_int32_t)12)
  841. -extern rpcb_stat * rpcbproc_getstat_4(void *, CLIENT *);
  842. -extern rpcb_stat * rpcbproc_getstat_4_svc(void *, struct svc_req *);
  843. -
  844. -#else /* Old Style C */
  845. -extern bool_t * rpcbproc_set_4();
  846. -extern bool_t * rpcbproc_set_4_svc();
  847. -extern bool_t * rpcbproc_unset_4();
  848. -extern bool_t * rpcbproc_unset_4_svc();
  849. -extern char ** rpcbproc_getaddr_4();
  850. -extern char ** rpcbproc_getaddr_4_svc();
  851. -extern rpcblist_ptr * rpcbproc_dump_4();
  852. -extern rpcblist_ptr * rpcbproc_dump_4_svc();
  853. -#define RPCBPROC_BCAST ((u_int32_t)RPCBPROC_CALLIT)
  854. -extern rpcb_rmtcallres * rpcbproc_bcast_4();
  855. -extern rpcb_rmtcallres * rpcbproc_bcast_4_svc();
  856. -extern u_int * rpcbproc_gettime_4();
  857. -extern u_int * rpcbproc_gettime_4_svc();
  858. -extern struct netbuf * rpcbproc_uaddr2taddr_4();
  859. -extern struct netbuf * rpcbproc_uaddr2taddr_4_svc();
  860. -extern char ** rpcbproc_taddr2uaddr_4();
  861. -extern char ** rpcbproc_taddr2uaddr_4_svc();
  862. -#define RPCBPROC_GETVERSADDR ((u_int32_t)9)
  863. -extern char ** rpcbproc_getversaddr_4();
  864. -extern char ** rpcbproc_getversaddr_4_svc();
  865. -#define RPCBPROC_INDIRECT ((u_int32_t)10)
  866. -extern rpcb_rmtcallres * rpcbproc_indirect_4();
  867. -extern rpcb_rmtcallres * rpcbproc_indirect_4_svc();
  868. -#define RPCBPROC_GETADDRLIST ((u_int32_t)11)
  869. -extern rpcb_entry_list_ptr * rpcbproc_getaddrlist_4();
  870. -extern rpcb_entry_list_ptr * rpcbproc_getaddrlist_4_svc();
  871. -#define RPCBPROC_GETSTAT ((u_int32_t)12)
  872. -extern rpcb_stat * rpcbproc_getstat_4();
  873. -extern rpcb_stat * rpcbproc_getstat_4_svc();
  874. -#endif /* Old Style C */
  875. -
  876. -#endif /* !_RPCB_PROT_H_RPCGEN */
  877. diff --git a/tirpc/rpcsvc/crypt.h b/tirpc/rpcsvc/crypt.h
  878. deleted file mode 100644
  879. index da1f9cc..0000000
  880. --- a/tirpc/rpcsvc/crypt.h
  881. +++ /dev/null
  882. @@ -1,109 +0,0 @@
  883. -/*
  884. - * Please do not edit this file.
  885. - * It was generated using rpcgen.
  886. - */
  887. -
  888. -#ifndef _CRYPT_H_RPCGEN
  889. -#define _CRYPT_H_RPCGEN
  890. -
  891. -#include <rpc/rpc.h>
  892. -
  893. -#ifndef IXDR_GET_INT32
  894. -#define IXDR_GET_INT32(buf) IXDR_GET_LONG((buf))
  895. -#endif
  896. -#ifndef IXDR_PUT_INT32
  897. -#define IXDR_PUT_INT32(buf, v) IXDR_PUT_LONG((buf), (v))
  898. -#endif
  899. -#ifndef IXDR_GET_U_INT32
  900. -#define IXDR_GET_U_INT32(buf) IXDR_GET_U_LONG((buf))
  901. -#endif
  902. -#ifndef IXDR_PUT_U_INT32
  903. -#define IXDR_PUT_U_INT32(buf, v) IXDR_PUT_U_LONG((buf), (v))
  904. -#endif
  905. -
  906. -enum des_dir {
  907. - ENCRYPT_DES = 0,
  908. - DECRYPT_DES = 1,
  909. -};
  910. -typedef enum des_dir des_dir;
  911. -#ifdef __cplusplus
  912. -extern "C" bool_t xdr_des_dir(XDR *, des_dir*);
  913. -#elif __STDC__
  914. -extern bool_t xdr_des_dir(XDR *, des_dir*);
  915. -#else /* Old Style C */
  916. -bool_t xdr_des_dir();
  917. -#endif /* Old Style C */
  918. -
  919. -
  920. -enum des_mode {
  921. - CBC_DES = 0,
  922. - ECB_DES = 1,
  923. -};
  924. -typedef enum des_mode des_mode;
  925. -#ifdef __cplusplus
  926. -extern "C" bool_t xdr_des_mode(XDR *, des_mode*);
  927. -#elif __STDC__
  928. -extern bool_t xdr_des_mode(XDR *, des_mode*);
  929. -#else /* Old Style C */
  930. -bool_t xdr_des_mode();
  931. -#endif /* Old Style C */
  932. -
  933. -
  934. -struct desargs {
  935. - u_char des_key[8];
  936. - des_dir des_dir;
  937. - des_mode des_mode;
  938. - u_char des_ivec[8];
  939. - struct {
  940. - u_int desbuf_len;
  941. - char *desbuf_val;
  942. - } desbuf;
  943. -};
  944. -typedef struct desargs desargs;
  945. -#ifdef __cplusplus
  946. -extern "C" bool_t xdr_desargs(XDR *, desargs*);
  947. -#elif __STDC__
  948. -extern bool_t xdr_desargs(XDR *, desargs*);
  949. -#else /* Old Style C */
  950. -bool_t xdr_desargs();
  951. -#endif /* Old Style C */
  952. -
  953. -
  954. -struct desresp {
  955. - struct {
  956. - u_int desbuf_len;
  957. - char *desbuf_val;
  958. - } desbuf;
  959. - u_char des_ivec[8];
  960. - int stat;
  961. -};
  962. -typedef struct desresp desresp;
  963. -#ifdef __cplusplus
  964. -extern "C" bool_t xdr_desresp(XDR *, desresp*);
  965. -#elif __STDC__
  966. -extern bool_t xdr_desresp(XDR *, desresp*);
  967. -#else /* Old Style C */
  968. -bool_t xdr_desresp();
  969. -#endif /* Old Style C */
  970. -
  971. -
  972. -#define CRYPT_PROG ((u_int32_t)600100029)
  973. -#define CRYPT_VERS ((u_int32_t)1)
  974. -
  975. -#ifdef __cplusplus
  976. -#define DES_CRYPT ((u_int32_t)1)
  977. -extern "C" desresp * des_crypt_1(desargs *, CLIENT *);
  978. -extern "C" desresp * des_crypt_1_svc(desargs *, struct svc_req *);
  979. -
  980. -#elif __STDC__
  981. -#define DES_CRYPT ((u_int32_t)1)
  982. -extern desresp * des_crypt_1(desargs *, CLIENT *);
  983. -extern desresp * des_crypt_1_svc(desargs *, struct svc_req *);
  984. -
  985. -#else /* Old Style C */
  986. -#define DES_CRYPT ((u_int32_t)1)
  987. -extern desresp * des_crypt_1();
  988. -extern desresp * des_crypt_1_svc();
  989. -#endif /* Old Style C */
  990. -
  991. -#endif /* !_CRYPT_H_RPCGEN */
  992. --
  993. 1.9.1