home *** CD-ROM | disk | FTP | other *** search
/ Serving the Web / ServingTheWeb1995.disc1of1.iso / linux / slacksrce / d / libc / libc-4.6 / libc-4 / libc-linux / yp / yp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-07-28  |  12.4 KB  |  357 lines

  1. /*
  2.  * Please do not edit this file.
  3.  * It was generated using rpcgen.
  4.  */
  5.  
  6. #ifndef _YP_H_RPCGEN
  7. #define _YP_H_RPCGEN
  8.  
  9. #include <rpc/rpc.h>
  10. #include <rpcsvc/yp_prot.h>
  11.  
  12. enum ypxfrstat
  13. {
  14.   YPXFR_SUCC = 1,
  15.   YPXFR_AGE = 2,
  16.   YPXFR_NOMAP = -1,
  17.   YPXFR_NODOM = -2,
  18.   YPXFR_RSRC = -3,
  19.   YPXFR_RPC = -4,
  20.   YPXFR_MADDR = -5,
  21.   YPXFR_YPERR = -6,
  22.   YPXFR_BADARGS = -7,
  23.   YPXFR_DBM = -8,
  24.   YPXFR_FILE = -9,
  25.   YPXFR_SKEW = -10,
  26.   YPXFR_CLEAR = -11,
  27.   YPXFR_FORCE = -12,
  28.   YPXFR_XFRERR = -13,
  29.   YPXFR_REFUSED = -14
  30. };
  31.  
  32. #ifdef __cplusplus 
  33. extern "C" bool_t xdr_ypxfrstat(XDR *, ypxfrstat*);
  34. #elif __STDC__ 
  35. extern  bool_t xdr_ypxfrstat(XDR *, enum ypxfrstat*);
  36. #else /* Old Style C */ 
  37. bool_t xdr_ypxfrstat();
  38. #endif /* Old Style C */ 
  39.  
  40.  
  41. typedef char *domainname;
  42. #ifdef __cplusplus 
  43. extern "C" bool_t xdr_domainname(XDR *, char *);
  44. #elif __STDC__ 
  45. extern  bool_t xdr_domainname(XDR *, char*);
  46. #else /* Old Style C */ 
  47. bool_t xdr_domainname();
  48. #endif /* Old Style C */ 
  49.  
  50.  
  51. typedef char *mapname;
  52. #ifdef __cplusplus 
  53. extern "C" bool_t xdr_mapname(XDR *, mapname*);
  54. #elif __STDC__ 
  55. extern  bool_t xdr_mapname(XDR *, mapname*);
  56. #else /* Old Style C */ 
  57. bool_t xdr_mapname();
  58. #endif /* Old Style C */ 
  59.  
  60. typedef char *peername;
  61. #ifdef __cplusplus 
  62. extern "C" bool_t xdr_peername(XDR *, peername*);
  63. #elif __STDC__ 
  64. extern  bool_t xdr_peername(XDR *, peername*);
  65. #else /* Old Style C */ 
  66. bool_t xdr_peername();
  67. #endif /* Old Style C */ 
  68.  
  69. struct keydat {
  70.     u_int keydat_len;
  71.     char *keydat_val;
  72. };
  73. #ifdef __cplusplus 
  74. extern "C" bool_t xdr_keydat(XDR *, keydat*);
  75. #elif __STDC__ 
  76. extern  bool_t xdr_keydat(XDR *, struct keydat*);
  77. #else /* Old Style C */ 
  78. bool_t xdr_keydat();
  79. #endif /* Old Style C */ 
  80.  
  81.  
  82. typedef struct {
  83.     u_int valdat_len;
  84.     char *valdat_val;
  85. } valdat;
  86. #ifdef __cplusplus 
  87. extern "C" bool_t xdr_valdat(XDR *, valdat*);
  88. #elif __STDC__ 
  89. extern  bool_t xdr_valdat(XDR *, valdat*);
  90. #else /* Old Style C */ 
  91. bool_t xdr_valdat();
  92. #endif /* Old Style C */ 
  93.  
  94. #ifdef __cplusplus 
  95. extern "C" bool_t xdr_ypresp_all(XDR *, struct ypresp_all*);
  96. extern "C" bool_t xdr_ypresp_all_seq(XDR *, u_long *);
  97. extern "C" int (*ypresp_allfn) (int, char *, int, char *, int, char *);
  98. extern "C" void *ypresp_data;
  99. #elif __STDC__ 
  100. extern  bool_t xdr_ypresp_all(XDR *, struct ypresp_all*);
  101. extern  bool_t xdr_ypresp_all_seq(XDR *, u_long *);
  102. extern  int (*ypresp_allfn) (int, char *, int, char *, int, char *);
  103. extern  void *ypresp_data;
  104. #else /* Old Style C */ 
  105. bool_t xdr_ypresp_all();
  106. bool_t xdr_ypresp_all_seq();
  107. extern int (*ypresp_allfn) ();
  108. extern void *ypresp_data;
  109. #endif /* Old Style C */ 
  110.  
  111.  
  112. struct ypresp_xfr {
  113.     u_int transid;
  114.     enum ypxfrstat xfrstat;
  115. };
  116. #ifdef __cplusplus 
  117. extern "C" bool_t xdr_ypresp_xfr(XDR *, struct ypresp_xfr*);
  118. #elif __STDC__ 
  119. extern  bool_t xdr_ypresp_xfr(XDR *, struct ypresp_xfr*);
  120. #else /* Old Style C */ 
  121. bool_t xdr_ypresp_xfr();
  122. #endif /* Old Style C */ 
  123.  
  124. #ifdef __cplusplus 
  125. extern "C" bool_t xdr_ypmaplist_str(XDR *xdrs, char *objp);
  126. extern "C" bool_t xdr_ypmaplist(XDR *, struct ypmaplist*);
  127. #elif __STDC__ 
  128. extern  bool_t xdr_ypmaplist_str(XDR *xdrs, char *objp);
  129. extern  bool_t xdr_ypmaplist(XDR *, struct ypmaplist*);
  130. #else /* Old Style C */ 
  131. bool_t xdr_ypmaplist_str();
  132. bool_t xdr_ypmaplist();
  133. #endif /* Old Style C */ 
  134.  
  135. #ifdef __cplusplus 
  136. extern "C" bool_t xdr_ypbind_resptype(XDR *, enum ypbind_resptype*);
  137. #elif __STDC__ 
  138. extern  bool_t xdr_ypbind_resptype(XDR *, enum ypbind_resptype*);
  139. #else /* Old Style C */ 
  140. bool_t xdr_ypbind_resptype();
  141. #endif /* Old Style C */ 
  142.  
  143. #ifdef __cplusplus 
  144. extern "C" bool_t xdr_ypbind_binding(XDR *, struct ypbind_binding*);
  145. #elif __STDC__ 
  146. extern  bool_t xdr_ypbind_binding(XDR *, struct ypbind_binding*);
  147. #else /* Old Style C */ 
  148. bool_t xdr_ypbind_binding();
  149. #endif /* Old Style C */ 
  150.  
  151.  
  152. #ifdef __cplusplus 
  153. extern "C" bool_t xdr_ypbind_resp(XDR *, struct ypbind_resp*);
  154. #elif __STDC__ 
  155. extern  bool_t xdr_ypbind_resp(XDR *, struct ypbind_resp*);
  156. #else /* Old Style C */ 
  157. bool_t xdr_ypbind_resp();
  158. #endif /* Old Style C */ 
  159.  
  160. #define YPBIND_ERR_ERR 1
  161. #define YPBIND_ERR_NOSERV 2
  162. #define YPBIND_ERR_RESC 3
  163.  
  164. #ifdef __cplusplus 
  165. extern "C" bool_t xdr_ypbind_setdom(XDR *, struct ypbind_setdom*);
  166. #elif __STDC__ 
  167. extern  bool_t xdr_ypbind_setdom(XDR *, struct ypbind_setdom*);
  168. #else /* Old Style C */ 
  169. bool_t xdr_ypbind_setdom();
  170. #endif /* Old Style C */ 
  171.  
  172.  
  173. #define YPPROG ((u_long)100004)
  174. #define YPVERS ((u_long)2)
  175.  
  176. #ifdef __cplusplus
  177. #define YPPROC_NULL ((u_long)0)
  178. extern "C" void * ypproc_null_2(CLIENT *);
  179. extern "C" void * ypproc_null_2_svc(struct svc_req *);
  180. #define YPPROC_DOMAIN ((u_long)1)
  181. extern "C" bool_t * ypproc_domain_2(domainname , CLIENT *);
  182. extern "C" bool_t * ypproc_domain_2_svc(domainname , struct svc_req *);
  183. #define YPPROC_DOMAIN_NONACK ((u_long)2)
  184. extern "C" bool_t * ypproc_domain_nonack_2(domainname , CLIENT *);
  185. extern "C" bool_t * ypproc_domain_nonack_2_svc(domainname , struct svc_req *);
  186. #define YPPROC_MATCH ((u_long)3)
  187. extern "C" ypresp_val * ypproc_match_2(ypreq_key , CLIENT *);
  188. extern "C" ypresp_val * ypproc_match_2_svc(ypreq_key , struct svc_req *);
  189. #define YPPROC_FIRST ((u_long)4)
  190. extern "C" ypresp_key_val * ypproc_first_2(ypreq_key , CLIENT *);
  191. extern "C" ypresp_key_val * ypproc_first_2_svc(ypreq_key , struct svc_req *);
  192. #define YPPROC_NEXT ((u_long)5)
  193. extern "C" ypresp_key_val * ypproc_next_2(ypreq_key , CLIENT *);
  194. extern "C" ypresp_key_val * ypproc_next_2_svc(ypreq_key , struct svc_req *);
  195. #define YPPROC_XFR ((u_long)6)
  196. extern "C" ypresp_xfr * ypproc_xfr_2(ypreq_xfr , CLIENT *);
  197. extern "C" ypresp_xfr * ypproc_xfr_2_svc(ypreq_xfr , struct svc_req *);
  198. #define YPPROC_CLEAR ((u_long)7)
  199. extern "C" void * ypproc_clear_2(CLIENT *);
  200. extern "C" void * ypproc_clear_2_svc(struct svc_req *);
  201. #define YPPROC_ALL ((u_long)8)
  202. extern "C" ypresp_all * ypproc_all_2(ypreq_nokey , CLIENT *);
  203. extern "C" ypresp_all * ypproc_all_2_svc(ypreq_nokey , struct svc_req *);
  204. #define YPPROC_MASTER ((u_long)9)
  205. extern "C" ypresp_master * ypproc_master_2(ypreq_nokey , CLIENT *);
  206. extern "C" ypresp_master * ypproc_master_2_svc(ypreq_nokey , struct svc_req *);
  207. #define YPPROC_ORDER ((u_long)10)
  208. extern "C" ypresp_order * ypproc_order_2(ypreq_nokey , CLIENT *);
  209. extern "C" ypresp_order * ypproc_order_2_svc(ypreq_nokey , struct svc_req *);
  210. #define YPPROC_MAPLIST ((u_long)11)
  211. extern "C" ypresp_maplist * ypproc_maplist_2(domainname , CLIENT *);
  212. extern "C" ypresp_maplist * ypproc_maplist_2_svc(domainname , struct svc_req *);
  213.  
  214. #elif __STDC__
  215. #define YPPROC_NULL ((u_long)0)
  216. extern  void * ypproc_null_2(CLIENT *);
  217. extern  void * ypproc_null_2_svc(struct svc_req *);
  218. #define YPPROC_DOMAIN ((u_long)1)
  219. extern  bool_t * ypproc_domain_2(domainname , CLIENT *);
  220. extern  bool_t * ypproc_domain_2_svc(domainname , struct svc_req *);
  221. #define YPPROC_DOMAIN_NONACK ((u_long)2)
  222. extern  bool_t * ypproc_domain_nonack_2(domainname , CLIENT *);
  223. extern  bool_t * ypproc_domain_nonack_2_svc(domainname , struct svc_req *);
  224. #define YPPROC_MATCH ((u_long)3)
  225. extern  struct ypresp_val * ypproc_match_2(struct ypreq_key , CLIENT *);
  226. extern  struct ypresp_val * ypproc_match_2_svc(struct ypreq_key , struct svc_req *);
  227. #define YPPROC_FIRST ((u_long)4)
  228. extern  struct ypresp_key_val * ypproc_first_2(struct ypreq_key , CLIENT *);
  229. extern  struct ypresp_key_val * ypproc_first_2_svc(struct ypreq_key , struct svc_req *);
  230. #define YPPROC_NEXT ((u_long)5)
  231. extern  struct ypresp_key_val * ypproc_next_2(struct ypreq_key , CLIENT *);
  232. extern  struct ypresp_key_val * ypproc_next_2_svc(struct ypreq_key , struct svc_req *);
  233. #define YPPROC_XFR ((u_long)6)
  234. extern  struct ypresp_xfr * ypproc_xfr_2(struct ypreq_xfr , CLIENT *);
  235. extern  struct ypresp_xfr * ypproc_xfr_2_svc(struct ypreq_xfr , struct svc_req *);
  236. #define YPPROC_CLEAR ((u_long)7)
  237. extern  void * ypproc_clear_2(CLIENT *);
  238. extern  void * ypproc_clear_2_svc(struct svc_req *);
  239. #define YPPROC_ALL ((u_long)8)
  240. extern  struct ypresp_all * ypproc_all_2(struct ypreq_nokey , CLIENT *);
  241. extern  struct ypresp_all * ypproc_all_2_svc(struct ypreq_nokey , struct svc_req *);
  242. #define YPPROC_MASTER ((u_long)9)
  243. extern  struct ypresp_master * ypproc_master_2(struct ypreq_nokey , CLIENT *);
  244. extern  struct ypresp_master * ypproc_master_2_svc(struct ypreq_nokey , struct svc_req *);
  245. #define YPPROC_ORDER ((u_long)10)
  246. extern  struct ypresp_order * ypproc_order_2(struct ypreq_nokey , CLIENT *);
  247. extern  struct ypresp_order * ypproc_order_2_svc(struct ypreq_nokey , struct svc_req *);
  248. #define YPPROC_MAPLIST ((u_long)11)
  249. extern  struct ypresp_maplist * ypproc_maplist_2(domainname , CLIENT *);
  250. extern  struct ypresp_maplist * ypproc_maplist_2_svc(domainname , struct svc_req *);
  251.  
  252. #else /* Old Style C */ 
  253. #define YPPROC_NULL ((u_long)0)
  254. extern  void * ypproc_null_2();
  255. extern  void * ypproc_null_2_svc();
  256. #define YPPROC_DOMAIN ((u_long)1)
  257. extern  bool_t * ypproc_domain_2();
  258. extern  bool_t * ypproc_domain_2_svc();
  259. #define YPPROC_DOMAIN_NONACK ((u_long)2)
  260. extern  bool_t * ypproc_domain_nonack_2();
  261. extern  bool_t * ypproc_domain_nonack_2_svc();
  262. #define YPPROC_MATCH ((u_long)3)
  263. extern  ypresp_val * ypproc_match_2();
  264. extern  ypresp_val * ypproc_match_2_svc();
  265. #define YPPROC_FIRST ((u_long)4)
  266. extern  ypresp_key_val * ypproc_first_2();
  267. extern  ypresp_key_val * ypproc_first_2_svc();
  268. #define YPPROC_NEXT ((u_long)5)
  269. extern  ypresp_key_val * ypproc_next_2();
  270. extern  ypresp_key_val * ypproc_next_2_svc();
  271. #define YPPROC_XFR ((u_long)6)
  272. extern  ypresp_xfr * ypproc_xfr_2();
  273. extern  ypresp_xfr * ypproc_xfr_2_svc();
  274. #define YPPROC_CLEAR ((u_long)7)
  275. extern  void * ypproc_clear_2();
  276. extern  void * ypproc_clear_2_svc();
  277. #define YPPROC_ALL ((u_long)8)
  278. extern  ypresp_all * ypproc_all_2();
  279. extern  ypresp_all * ypproc_all_2_svc();
  280. #define YPPROC_MASTER ((u_long)9)
  281. extern  ypresp_master * ypproc_master_2();
  282. extern  ypresp_master * ypproc_master_2_svc();
  283. #define YPPROC_ORDER ((u_long)10)
  284. extern  ypresp_order * ypproc_order_2();
  285. extern  ypresp_order * ypproc_order_2_svc();
  286. #define YPPROC_MAPLIST ((u_long)11)
  287. extern  struct ypresp_maplist * ypproc_maplist_2();
  288. extern  struct ypresp_maplist * ypproc_maplist_2_svc();
  289. #endif /* Old Style C */ 
  290.  
  291. #define YPPUSH_XFRRESPPROG ((u_long)0x40000000)
  292. #define YPPUSH_XFRRESPVERS ((u_long)1)
  293.  
  294. #ifdef __cplusplus
  295. #define YPPUSHPROC_NULL ((u_long)0)
  296. extern "C" void * yppushproc_null_1(CLIENT *);
  297. extern "C" void * yppushproc_null_1_svc(struct svc_req *);
  298. #define YPPUSHPROC_XFRRESP ((u_long)1)
  299. extern "C" yppushresp_xfr * yppushproc_xfrresp_1(CLIENT *);
  300. extern "C" yppushresp_xfr * yppushproc_xfrresp_1_svc(struct svc_req *);
  301.  
  302. #elif __STDC__
  303. #define YPPUSHPROC_NULL ((u_long)0)
  304. extern  void * yppushproc_null_1(CLIENT *);
  305. extern  void * yppushproc_null_1_svc(struct svc_req *);
  306. #define YPPUSHPROC_XFRRESP ((u_long)1)
  307. extern  struct yppushresp_xfr * yppushproc_xfrresp_1(CLIENT *);
  308. extern  struct yppushresp_xfr * yppushproc_xfrresp_1_svc(struct svc_req *);
  309.  
  310. #else /* Old Style C */ 
  311. #define YPPUSHPROC_NULL ((u_long)0)
  312. extern  void * yppushproc_null_1();
  313. extern  void * yppushproc_null_1_svc();
  314. #define YPPUSHPROC_XFRRESP ((u_long)1)
  315. extern  struct yppushresp_xfr * yppushproc_xfrresp_1();
  316. extern  struct yppushresp_xfr * yppushproc_xfrresp_1_svc();
  317. #endif /* Old Style C */ 
  318.  
  319. #define YPBINDPROG ((u_long)100007)
  320. #define YPBINDVERS ((u_long)2)
  321.  
  322. #ifdef __cplusplus
  323. #define YPBINDPROC_NULL ((u_long)0)
  324. extern "C" void * ypbindproc_null_2(CLIENT *);
  325. extern "C" void * ypbindproc_null_2_svc(struct svc_req *);
  326. #define YPBINDPROC_DOMAIN ((u_long)1)
  327. extern "C" ypbind_resp * ypbindproc_domain_2(domainname , CLIENT *);
  328. extern "C" ypbind_resp * ypbindproc_domain_2_svc(domainname , struct svc_req *);
  329. #define YPBINDPROC_SETDOM ((u_long)2)
  330. extern "C" void * ypbindproc_setdom_2(ypbind_setdom , CLIENT *);
  331. extern "C" void * ypbindproc_setdom_2_svc(ypbind_setdom , struct svc_req *);
  332.  
  333. #elif __STDC__
  334. #define YPBINDPROC_NULL ((u_long)0)
  335. extern  void * ypbindproc_null_2(CLIENT *);
  336. extern  void * ypbindproc_null_2_svc(struct svc_req *);
  337. #define YPBINDPROC_DOMAIN ((u_long)1)
  338. extern  struct ypbind_resp * ypbindproc_domain_2(domainname , CLIENT *);
  339. extern  struct ypbind_resp * ypbindproc_domain_2_svc(domainname , struct svc_req *);
  340. #define YPBINDPROC_SETDOM ((u_long)2)
  341. extern  void * ypbindproc_setdom_2(struct ypbind_setdom , CLIENT *);
  342. extern  void * ypbindproc_setdom_2_svc(struct ypbind_setdom , struct svc_req *);
  343.  
  344. #else /* Old Style C */ 
  345. #define YPBINDPROC_NULL ((u_long)0)
  346. extern  void * ypbindproc_null_2();
  347. extern  void * ypbindproc_null_2_svc();
  348. #define YPBINDPROC_DOMAIN ((u_long)1)
  349. extern  struct ypbind_resp * ypbindproc_domain_2();
  350. extern  struct ypbind_resp * ypbindproc_domain_2_svc();
  351. #define YPBINDPROC_SETDOM ((u_long)2)
  352. extern  void * ypbindproc_setdom_2();
  353. extern  void * ypbindproc_setdom_2_svc();
  354. #endif /* Old Style C */ 
  355.  
  356. #endif /* !_YP_H_RPCGEN */
  357.