GCC Code Coverage Report
Directory: ./ Exec Total Coverage
File: lib/librpcsvc/rusers.c Lines: 0 17 0.0 %
Date: 2017-11-07 Branches: 0 14 0.0 %

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