yppasswd.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /*
  2. * Please do not edit this file.
  3. * It was generated using rpcgen.
  4. */
  5. #ifndef _YPPASSWD_H_RPCGEN
  6. #define _YPPASSWD_H_RPCGEN
  7. #include <rpc/rpc.h>
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11. struct passwd {
  12. char *pw_name;
  13. char *pw_passwd;
  14. int pw_uid;
  15. int pw_gid;
  16. char *pw_gecos;
  17. char *pw_dir;
  18. char *pw_shell;
  19. };
  20. typedef struct passwd passwd;
  21. struct yppasswd {
  22. char *oldpass;
  23. passwd newpw;
  24. };
  25. typedef struct yppasswd yppasswd;
  26. #define YPPASSWDPROG 100009
  27. #define YPPASSWDVERS 1
  28. #if defined(__STDC__) || defined(__cplusplus)
  29. #define YPPASSWDPROC_UPDATE 1
  30. extern int * yppasswdproc_update_1(yppasswd *, CLIENT *);
  31. extern int * yppasswdproc_update_1_svc(yppasswd *, struct svc_req *);
  32. extern int yppasswdprog_1_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
  33. #else /* K&R C */
  34. #define YPPASSWDPROC_UPDATE 1
  35. extern int * yppasswdproc_update_1();
  36. extern int * yppasswdproc_update_1_svc();
  37. extern int yppasswdprog_1_freeresult ();
  38. #endif /* K&R C */
  39. /* the xdr functions */
  40. #if defined(__STDC__) || defined(__cplusplus)
  41. extern bool_t xdr_passwd (XDR *, passwd*);
  42. extern bool_t xdr_yppasswd (XDR *, yppasswd*);
  43. #else /* K&R C */
  44. extern bool_t xdr_passwd ();
  45. extern bool_t xdr_yppasswd ();
  46. #endif /* K&R C */
  47. #ifdef __cplusplus
  48. }
  49. #endif
  50. #endif /* !_YPPASSWD_H_RPCGEN */