| 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 | #ifdef __cplusplus |
| 12 | extern "C" { |
| 13 | #endif |
| 14 | |
| 15 | |
| 16 | struct x_passwd { |
| 17 | 	char *pw_name; |
| 18 | 	char *pw_passwd; |
| 19 | 	int pw_uid; |
| 20 | 	int pw_gid; |
| 21 | 	char *pw_gecos; |
| 22 | 	char *pw_dir; |
| 23 | 	char *pw_shell; |
| 24 | }; |
| 25 | typedef struct x_passwd x_passwd; |
| 26 | |
| 27 | struct yppasswd { |
| 28 | 	char *oldpass; |
| 29 | 	x_passwd newpw; |
| 30 | }; |
| 31 | typedef struct yppasswd yppasswd; |
| 32 | #include <sys/cdefs.h> |
| 33 | extern int _yppasswd( char * , struct x_passwd * ); |
| 34 | #define yppasswd(x,y) _yppasswd(x,y) |
| 35 | |
| 36 | #define	YPPASSWDPROG ((unsigned long)(100009)) |
| 37 | #define	YPPASSWDVERS ((unsigned long)(1)) |
| 38 | |
| 39 | extern void yppasswdprog_1(struct svc_req *rqstp, SVCXPRT *transp); |
| 40 | #define	YPPASSWDPROC_UPDATE ((unsigned long)(1)) |
| 41 | extern int * yppasswdproc_update_1(yppasswd *, CLIENT *); |
| 42 | extern int * yppasswdproc_update_1_svc(yppasswd *, struct svc_req *); |
| 43 | extern int yppasswdprog_1_freeresult(SVCXPRT *, xdrproc_t, caddr_t); |
| 44 | |
| 45 | /* the xdr functions */ |
| 46 | extern bool_t xdr_x_passwd(XDR *, x_passwd*); |
| 47 | extern bool_t xdr_yppasswd(XDR *, yppasswd*); |
| 48 | |
| 49 | #ifdef __cplusplus |
| 50 | } |
| 51 | #endif |
| 52 | |
| 53 | #endif /* !_YPPASSWD_H_RPCGEN */ |