1 |
|
|
/* |
2 |
|
|
* Please do not edit this file. |
3 |
|
|
* It was generated using rpcgen. |
4 |
|
|
*/ |
5 |
|
|
|
6 |
|
|
#include "rnusers.h" |
7 |
|
|
bool_t xdr_utmp(XDR *, struct ru_utmp *); |
8 |
|
|
bool_t xdr_utmpptr(XDR *, struct ru_utmp **); |
9 |
|
|
bool_t xdr_utmparr(XDR *, struct utmparr *); |
10 |
|
|
bool_t xdr_utmpidle(XDR *, struct utmpidle *); |
11 |
|
|
bool_t xdr_utmpidleptr(XDR *, struct utmpidle **); |
12 |
|
|
|
13 |
|
|
bool_t |
14 |
|
|
xdr_utmp(XDR *xdrs, struct ru_utmp *objp) |
15 |
|
|
{ |
16 |
|
|
int size; |
17 |
|
|
|
18 |
|
|
size = RNUSERS_MAXLINELEN; |
19 |
|
|
if (!xdr_bytes(xdrs, &objp->ut_line, &size, RNUSERS_MAXLINELEN)) |
20 |
|
|
return (FALSE); |
21 |
|
|
size = RNUSERS_MAXUSERLEN; |
22 |
|
|
if (!xdr_bytes(xdrs, &objp->ut_name, &size, RNUSERS_MAXUSERLEN)) |
23 |
|
|
return (FALSE); |
24 |
|
|
size = RNUSERS_MAXHOSTLEN; |
25 |
|
|
if (!xdr_bytes(xdrs, &objp->ut_host, &size, RNUSERS_MAXHOSTLEN)) |
26 |
|
|
return (FALSE); |
27 |
|
|
if (!xdr_int(xdrs, &objp->ut_time)) |
28 |
|
|
return (FALSE); |
29 |
|
|
return (TRUE); |
30 |
|
|
} |
31 |
|
|
|
32 |
|
|
bool_t |
33 |
|
|
xdr_utmpptr(XDR *xdrs, struct ru_utmp **objpp) |
34 |
|
|
{ |
35 |
|
|
if (!xdr_reference(xdrs, (char **) objpp, sizeof (struct ru_utmp), |
36 |
|
|
xdr_utmp)) |
37 |
|
|
return (FALSE); |
38 |
|
|
return (TRUE); |
39 |
|
|
} |
40 |
|
|
|
41 |
|
|
bool_t |
42 |
|
|
xdr_utmparr(XDR *xdrs, struct utmparr *objp) |
43 |
|
|
{ |
44 |
|
|
if (!xdr_array(xdrs, (char **)&objp->uta_arr, (u_int *)&objp->uta_cnt, |
45 |
|
|
MAXUSERS, sizeof(struct ru_utmp *), xdr_utmpptr)) |
46 |
|
|
return (FALSE); |
47 |
|
|
return (TRUE); |
48 |
|
|
} |
49 |
|
|
|
50 |
|
|
bool_t |
51 |
|
|
xdr_utmpidle(XDR *xdrs, struct utmpidle *objp) |
52 |
|
|
{ |
53 |
|
|
if (!xdr_utmp(xdrs, &objp->ui_utmp)) |
54 |
|
|
return (FALSE); |
55 |
|
|
if (!xdr_u_int(xdrs, &objp->ui_idle)) |
56 |
|
|
return (FALSE); |
57 |
|
|
return (TRUE); |
58 |
|
|
} |
59 |
|
|
|
60 |
|
|
bool_t |
61 |
|
|
xdr_utmpidleptr(XDR *xdrs, struct utmpidle **objpp) |
62 |
|
|
{ |
63 |
|
|
if (!xdr_reference(xdrs, (char **) objpp, sizeof (struct utmpidle), |
64 |
|
|
xdr_utmpidle)) |
65 |
|
|
return (FALSE); |
66 |
|
|
return (TRUE); |
67 |
|
|
} |
68 |
|
|
|
69 |
|
|
bool_t |
70 |
|
|
xdr_utmpidlearr(XDR *xdrs, struct utmpidlearr *objp) |
71 |
|
|
{ |
72 |
|
|
if (!xdr_array(xdrs, (char **)&objp->uia_arr, (u_int *)&objp->uia_cnt, |
73 |
|
|
MAXUSERS, sizeof(struct utmpidle *), xdr_utmpidleptr)) |
74 |
|
|
return (FALSE); |
75 |
|
|
return (TRUE); |
76 |
|
|
} |