1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
/*
* Please do not edit this file.
* It was generated using rpcgen.
*/
#include "yppasswd.h"
bool_t
xdr_passwd (XDR *xdrs, xpasswd *objp)
{
if (!xdr_string (xdrs, &objp->pw_name, ~0))
return FALSE;
if (!xdr_string (xdrs, &objp->pw_passwd, ~0))
return FALSE;
if (!xdr_int (xdrs, &objp->pw_uid))
return FALSE;
if (!xdr_int (xdrs, &objp->pw_gid))
return FALSE;
if (!xdr_string (xdrs, &objp->pw_gecos, ~0))
return FALSE;
if (!xdr_string (xdrs, &objp->pw_dir, ~0))
return FALSE;
if (!xdr_string (xdrs, &objp->pw_shell, ~0))
return FALSE;
return TRUE;
}
bool_t
xdr_yppasswd (XDR *xdrs, yppasswd *objp)
{
if (!xdr_string (xdrs, &objp->oldpass, ~0))
return FALSE;
if (!xdr_passwd (xdrs, &objp->newpw))
return FALSE;
return TRUE;
}
|