yppasswd.h
01: 
02: 
03: 
04: 
05: 
06: #ifndef _YPPASSWD_H_RPCGEN
07: #define _YPPASSWD_H_RPCGEN
08: 
09: #include <rpc/rpc.h>
10: 
11: 
12: #ifdef __cplusplus
13: extern "C" {
14: #endif
15: 
16: 
17: struct passwd {
18:         char *pw_name;
19:         char *pw_passwd;
20:         int pw_uid;
21:         int pw_gid;
22:         char *pw_gecos;
23:         char *pw_dir;
24:         char *pw_shell;
25: };
26: typedef struct passwd passwd;
27: 
28: struct yppasswd {
29:         char *oldpass;
30:         passwd newpw;
31: };
32: typedef struct yppasswd yppasswd;
33: 
34: #define YPPASSWDPROG 100009
35: #define YPPASSWDVERS 1
36: 
37: #if defined(__STDC__) || defined(__cplusplus)
38: #define YPPASSWDPROC_UPDATE 1
39: extern  int * yppasswdproc_update_1(yppasswd *, CLIENT *);
40: extern  int * yppasswdproc_update_1_svc(yppasswd *, struct svc_req *);
41: extern int yppasswdprog_1_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
42: 
43: #else 
44: #define YPPASSWDPROC_UPDATE 1
45: extern  int * yppasswdproc_update_1();
46: extern  int * yppasswdproc_update_1_svc();
47: extern int yppasswdprog_1_freeresult ();
48: #endif 
49: 
50: 
51: 
52: #if defined(__STDC__) || defined(__cplusplus)
53: extern  bool_t xdr_passwd (XDR *, passwd*);
54: extern  bool_t xdr_yppasswd (XDR *, yppasswd*);
55: 
56: #else 
57: extern bool_t xdr_passwd ();
58: extern bool_t xdr_yppasswd ();
59: 
60: #endif 
61: 
62: #ifdef __cplusplus
63: }
64: #endif
65: 
66: #endif 
67: 
      
      
      
      
   
      
      
         
            
            © Andrew Scott 2006 -
            2025, 
            All Rights Reserved