1 /* 2 * Please do not edit this file. 3 * It was generated using rpcgen. 4 */ 5 6 #include "../../head/rpcsvc/rusers.h" 7 8 #ifndef _KERNEL 9 #include <stdlib.h> 10 #endif /* !_KERNEL */ 11 12 /* 13 * Find out about remote users 14 */ 15 16 bool_t 17 xdr_rusers_utmp(xdrs, objp) 18 XDR *xdrs; 19 rusers_utmp *objp; 20 { 21 22 rpc_inline_t *buf; 23 24 if (!xdr_string(xdrs, &objp->ut_user, RUSERS_MAXUSERLEN)) 25 return (FALSE); 26 if (!xdr_string(xdrs, &objp->ut_line, RUSERS_MAXLINELEN)) 27 return (FALSE); 28 if (!xdr_string(xdrs, &objp->ut_host, RUSERS_MAXHOSTLEN)) 29 return (FALSE); 30 if (!xdr_int(xdrs, &objp->ut_type)) 31 return (FALSE); 32 if (!xdr_int(xdrs, &objp->ut_time)) 33 return (FALSE); 34 if (!xdr_u_int(xdrs, &objp->ut_idle)) 35 return (FALSE); 36 return (TRUE); 37 } 38 39 bool_t 40 xdr_utmp_array(xdrs, objp) 41 XDR *xdrs; 42 utmp_array *objp; 43 { 44 45 rpc_inline_t *buf; 46 47 if (!xdr_array(xdrs, (char **)&objp->utmp_array_val, (u_int *) &objp->utmp_array_len, ~0, 48 sizeof (rusers_utmp), (xdrproc_t)xdr_rusers_utmp)) 49 return (FALSE); 50 return (TRUE); 51 } 52