home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / unix / armlinux / alpha / PARTITIONS / USR_GZ / usr / include / rpcsvc / ypupdate.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-05-14  |  4.6 KB  |  150 lines

  1. /*
  2.  * Please do not edit this file.
  3.  * It was generated using rpcgen.
  4.  */
  5.  
  6. #ifndef _YPUPDATE_PROT_H_RPCGEN
  7. #define _YPUPDATE_PROT_H_RPCGEN
  8.  
  9. #include <rpc/rpc.h>
  10.  
  11. /*
  12.  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
  13.  * unrestricted use provided that this legend is included on all tape
  14.  * media and as a part of the software program in whole or part.  Users
  15.  * may copy or modify Sun RPC without charge, but are not authorized
  16.  * to license or distribute it to anyone else except as part of a product or
  17.  * program developed by the user or with the express written consent of
  18.  * Sun Microsystems, Inc.
  19.  *
  20.  * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
  21.  * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
  22.  * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
  23.  *
  24.  * Sun RPC is provided with no support and without any obligation on the
  25.  * part of Sun Microsystems, Inc. to assist in its use, correction,
  26.  * modification or enhancement.
  27.  *
  28.  * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
  29.  * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
  30.  * OR ANY PART THEREOF.
  31.  *
  32.  * In no event will Sun Microsystems, Inc. be liable for any lost revenue
  33.  * or profits or other special, indirect and consequential damages, even if
  34.  * Sun has been advised of the possibility of such damages.
  35.  *
  36.  * Sun Microsystems, Inc.
  37.  * 2550 Garcia Avenue
  38.  * Mountain View, California  94043
  39.  */
  40. /*
  41.  * Copyright (c) 1986, 1990 by Sun Microsystems, Inc.
  42.  */
  43.  
  44. /* from @(#)ypupdate_prot.x    1.3 91/03/11 TIRPC 1.0 */
  45.  
  46. /*
  47.  * Compiled from ypupdate_prot.x using rpcgen
  48.  * This is NOT source code!
  49.  * DO NOT EDIT THIS FILE!
  50.  */
  51.  
  52. #ifndef _rpcsvc_ypupdate_prot_h
  53. #define _rpcsvc_ypupdate_prot_h
  54.  
  55. #define MAXMAPNAMELEN 255
  56. #define MAXYPDATALEN 1023
  57. #define MAXERRMSGLEN 255
  58.  
  59. typedef struct {
  60.     u_int yp_buf_len;
  61.     char *yp_buf_val;
  62. } yp_buf;
  63. #ifdef __cplusplus 
  64. extern "C" bool_t xdr_yp_buf(XDR *, yp_buf*);
  65. #elif __STDC__ 
  66. extern  bool_t xdr_yp_buf(XDR *, yp_buf*);
  67. #else /* Old Style C */ 
  68. bool_t xdr_yp_buf();
  69. #endif /* Old Style C */ 
  70.  
  71.  
  72. struct ypupdate_args {
  73.     char *mapname;
  74.     yp_buf key;
  75.     yp_buf datum;
  76. };
  77. typedef struct ypupdate_args ypupdate_args;
  78. #ifdef __cplusplus 
  79. extern "C" bool_t xdr_ypupdate_args(XDR *, ypupdate_args*);
  80. #elif __STDC__ 
  81. extern  bool_t xdr_ypupdate_args(XDR *, ypupdate_args*);
  82. #else /* Old Style C */ 
  83. bool_t xdr_ypupdate_args();
  84. #endif /* Old Style C */ 
  85.  
  86.  
  87. struct ypdelete_args {
  88.     char *mapname;
  89.     yp_buf key;
  90. };
  91. typedef struct ypdelete_args ypdelete_args;
  92. #ifdef __cplusplus 
  93. extern "C" bool_t xdr_ypdelete_args(XDR *, ypdelete_args*);
  94. #elif __STDC__ 
  95. extern  bool_t xdr_ypdelete_args(XDR *, ypdelete_args*);
  96. #else /* Old Style C */ 
  97. bool_t xdr_ypdelete_args();
  98. #endif /* Old Style C */ 
  99.  
  100.  
  101. #endif /* !_rpcsvc_ypupdate_prot_h */
  102.  
  103. #define YPU_PROG ((u_long)100028)
  104. #define YPU_VERS ((u_long)1)
  105.  
  106. #ifdef __cplusplus
  107. #define YPU_CHANGE ((u_long)1)
  108. extern "C" u_int * ypu_change_1(ypupdate_args *, CLIENT *);
  109. extern "C" u_int * ypu_change_1_svc(ypupdate_args *, struct svc_req *);
  110. #define YPU_INSERT ((u_long)2)
  111. extern "C" u_int * ypu_insert_1(ypupdate_args *, CLIENT *);
  112. extern "C" u_int * ypu_insert_1_svc(ypupdate_args *, struct svc_req *);
  113. #define YPU_DELETE ((u_long)3)
  114. extern "C" u_int * ypu_delete_1(ypdelete_args *, CLIENT *);
  115. extern "C" u_int * ypu_delete_1_svc(ypdelete_args *, struct svc_req *);
  116. #define YPU_STORE ((u_long)4)
  117. extern "C" u_int * ypu_store_1(ypupdate_args *, CLIENT *);
  118. extern "C" u_int * ypu_store_1_svc(ypupdate_args *, struct svc_req *);
  119.  
  120. #elif __STDC__
  121. #define YPU_CHANGE ((u_long)1)
  122. extern  u_int * ypu_change_1(ypupdate_args *, CLIENT *);
  123. extern  u_int * ypu_change_1_svc(ypupdate_args *, struct svc_req *);
  124. #define YPU_INSERT ((u_long)2)
  125. extern  u_int * ypu_insert_1(ypupdate_args *, CLIENT *);
  126. extern  u_int * ypu_insert_1_svc(ypupdate_args *, struct svc_req *);
  127. #define YPU_DELETE ((u_long)3)
  128. extern  u_int * ypu_delete_1(ypdelete_args *, CLIENT *);
  129. extern  u_int * ypu_delete_1_svc(ypdelete_args *, struct svc_req *);
  130. #define YPU_STORE ((u_long)4)
  131. extern  u_int * ypu_store_1(ypupdate_args *, CLIENT *);
  132. extern  u_int * ypu_store_1_svc(ypupdate_args *, struct svc_req *);
  133.  
  134. #else /* Old Style C */ 
  135. #define YPU_CHANGE ((u_long)1)
  136. extern  u_int * ypu_change_1();
  137. extern  u_int * ypu_change_1_svc();
  138. #define YPU_INSERT ((u_long)2)
  139. extern  u_int * ypu_insert_1();
  140. extern  u_int * ypu_insert_1_svc();
  141. #define YPU_DELETE ((u_long)3)
  142. extern  u_int * ypu_delete_1();
  143. extern  u_int * ypu_delete_1_svc();
  144. #define YPU_STORE ((u_long)4)
  145. extern  u_int * ypu_store_1();
  146. extern  u_int * ypu_store_1_svc();
  147. #endif /* Old Style C */ 
  148.  
  149. #endif /* !_YPUPDATE_PROT_H_RPCGEN */
  150.