GCC Code Coverage Report
Directory: ./ Exec Total Coverage
File: usr.sbin/amd/amq/../rpcx/amq_clnt.c Lines: 0 32 0.0 %
Date: 2017-11-07 Branches: 0 16 0.0 %

Line Branch Exec Source
1
/*
2
 * Please do not edit this file.
3
 * It was generated using rpcgen.
4
 */
5
6
#include <memory.h> /* for memset */
7
#include "amq.h"
8
9
/* Default timeout can be changed using clnt_control() */
10
static struct timeval TIMEOUT = { 25, 0 };
11
12
void *
13
amqproc_null_57(void *argp, CLIENT *clnt)
14
{
15
	static char clnt_res;
16
17
	memset((char *)&clnt_res, 0, sizeof(clnt_res));
18
	if (clnt_call(clnt, AMQPROC_NULL, xdr_void, argp, xdr_void, &clnt_res, TIMEOUT) != RPC_SUCCESS) {
19
		return (NULL);
20
	}
21
	return ((void *)&clnt_res);
22
}
23
24
amq_mount_tree_p *
25
amqproc_mnttree_57(amq_string *argp, CLIENT *clnt)
26
{
27
	static amq_mount_tree_p clnt_res;
28
29
	memset((char *)&clnt_res, 0, sizeof(clnt_res));
30
	if (clnt_call(clnt, AMQPROC_MNTTREE, xdr_amq_string, argp, xdr_amq_mount_tree_p, &clnt_res, TIMEOUT) != RPC_SUCCESS) {
31
		return (NULL);
32
	}
33
	return (&clnt_res);
34
}
35
36
void *
37
amqproc_umnt_57(amq_string *argp, CLIENT *clnt)
38
{
39
	static char clnt_res;
40
41
	memset((char *)&clnt_res, 0, sizeof(clnt_res));
42
	if (clnt_call(clnt, AMQPROC_UMNT, xdr_amq_string, argp, xdr_void, &clnt_res, TIMEOUT) != RPC_SUCCESS) {
43
		return (NULL);
44
	}
45
	return ((void *)&clnt_res);
46
}
47
48
amq_mount_stats *
49
amqproc_stats_57(void *argp, CLIENT *clnt)
50
{
51
	static amq_mount_stats clnt_res;
52
53
	memset((char *)&clnt_res, 0, sizeof(clnt_res));
54
	if (clnt_call(clnt, AMQPROC_STATS, xdr_void, argp, xdr_amq_mount_stats, &clnt_res, TIMEOUT) != RPC_SUCCESS) {
55
		return (NULL);
56
	}
57
	return (&clnt_res);
58
}
59
60
amq_mount_tree_list *
61
amqproc_export_57(void *argp, CLIENT *clnt)
62
{
63
	static amq_mount_tree_list clnt_res;
64
65
	memset((char *)&clnt_res, 0, sizeof(clnt_res));
66
	if (clnt_call(clnt, AMQPROC_EXPORT, xdr_void, argp, xdr_amq_mount_tree_list, &clnt_res, TIMEOUT) != RPC_SUCCESS) {
67
		return (NULL);
68
	}
69
	return (&clnt_res);
70
}
71
72
int *
73
amqproc_setopt_57(amq_setopt *argp, CLIENT *clnt)
74
{
75
	static int clnt_res;
76
77
	memset((char *)&clnt_res, 0, sizeof(clnt_res));
78
	if (clnt_call(clnt, AMQPROC_SETOPT, xdr_amq_setopt, argp, xdr_int, &clnt_res, TIMEOUT) != RPC_SUCCESS) {
79
		return (NULL);
80
	}
81
	return (&clnt_res);
82
}
83
84
amq_mount_info_list *
85
amqproc_getmntfs_57(void *argp, CLIENT *clnt)
86
{
87
	static amq_mount_info_list clnt_res;
88
89
	memset((char *)&clnt_res, 0, sizeof(clnt_res));
90
	if (clnt_call(clnt, AMQPROC_GETMNTFS, xdr_void, argp, xdr_amq_mount_info_list, &clnt_res, TIMEOUT) != RPC_SUCCESS) {
91
		return (NULL);
92
	}
93
	return (&clnt_res);
94
}
95
96
amq_string *
97
amqproc_getvers_57(void *argp, CLIENT *clnt)
98
{
99
	static amq_string clnt_res;
100
101
	memset((char *)&clnt_res, 0, sizeof(clnt_res));
102
	if (clnt_call(clnt, AMQPROC_GETVERS, xdr_void, argp, xdr_amq_string, &clnt_res, TIMEOUT) != RPC_SUCCESS) {
103
		return (NULL);
104
	}
105
	return (&clnt_res);
106
}