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 / yppasswd.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-05-26  |  2.9 KB  |  100 lines

  1. /*
  2.  * Please do not edit this file.
  3.  * It was generated using rpcgen.
  4.  */
  5.  
  6. #ifndef _YPPASSWD_H_RPCGEN
  7. #define _YPPASSWD_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 @(#)yppasswd.x    1.3 91/03/11 TIRPC 1.0 */
  45. #ifndef _rpcsvc_yppasswd_h
  46. #define _rpcsvc_yppasswd_h
  47.  
  48. struct passwd {
  49.   char *pw_name;
  50.   char *pw_passwd;
  51.   int pw_uid;
  52.   int pw_gid;
  53.   char *pw_gecos;
  54.   char *pw_dir;
  55.   char *pw_shell;
  56. };
  57. #ifdef __cplusplus 
  58. extern "C" bool_t xdr_passwd(XDR *, passwd*);
  59. #elif __STDC__ 
  60. extern  bool_t xdr_passwd(XDR *, struct passwd*);
  61. #else /* Old Style C */ 
  62. bool_t xdr_passwd();
  63. #endif /* Old Style C */ 
  64.  
  65.  
  66. struct yppasswd {
  67.   char *oldpass;
  68.   struct passwd newpw;
  69. };
  70. #ifdef __cplusplus 
  71. extern "C" bool_t xdr_yppasswd(XDR *, yppasswd*);
  72. #elif __STDC__ 
  73. extern  bool_t xdr_yppasswd(XDR *, struct yppasswd*);
  74. #else /* Old Style C */ 
  75. bool_t xdr_yppasswd();
  76. #endif /* Old Style C */ 
  77.  
  78. #endif /* !_rpcsvc_yppasswd_h */
  79.  
  80. #define YPPASSWDPROG ((u_long)100009)
  81. #define YPPASSWDVERS ((u_long)1)
  82.  
  83. #ifdef __cplusplus
  84. #define YPPASSWDPROC_UPDATE ((u_long)1)
  85. extern "C" int * yppasswdproc_update_1(yppasswd , CLIENT *);
  86. extern "C" int * yppasswdproc_update_1_svc(yppasswd , struct svc_req *);
  87.  
  88. #elif __STDC__
  89. #define YPPASSWDPROC_UPDATE ((u_long)1)
  90. extern  int * yppasswdproc_update_1(struct yppasswd , CLIENT *);
  91. extern  int * yppasswdproc_update_1_svc(struct yppasswd , struct svc_req *);
  92.  
  93. #else /* Old Style C */ 
  94. #define YPPASSWDPROC_UPDATE ((u_long)1)
  95. extern  int * yppasswdproc_update_1();
  96. extern  int * yppasswdproc_update_1_svc();
  97. #endif /* Old Style C */ 
  98.  
  99. #endif /* !_YPPASSWD_H_RPCGEN */
  100.