-
Notifications
You must be signed in to change notification settings - Fork 0
/
cvstool_clnt.c
55 lines (47 loc) · 1.36 KB
/
cvstool_clnt.c
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/*
* Please do not edit this file.
* It was generated using rpcgen.
*/
#include <memory.h> /* for memset */
#include "cvstool.h"
/* Default timeout can be changed using clnt_control() */
static struct timeval TIMEOUT = { 25, 0 };
cvstool_ls_resp *
cvstool_ls_1(cvstool_ls_args *argp, CLIENT *clnt)
{
static cvstool_ls_resp clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, CVSTOOL_LS,
(xdrproc_t) xdr_cvstool_ls_args, (caddr_t) argp,
(xdrproc_t) xdr_cvstool_ls_resp, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}
cvstool_lsver_resp *
cvstool_lsver_1(cvstool_lsver_args *argp, CLIENT *clnt)
{
static cvstool_lsver_resp clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, CVSTOOL_LSVER,
(xdrproc_t) xdr_cvstool_lsver_args, (caddr_t) argp,
(xdrproc_t) xdr_cvstool_lsver_resp, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}
cvstool_update_resp *
cvstool_update_1(cvstool_update_args *argp, CLIENT *clnt)
{
static cvstool_update_resp clnt_res;
memset((char *)&clnt_res, 0, sizeof(clnt_res));
if (clnt_call (clnt, CVSTOOL_UPDATE,
(xdrproc_t) xdr_cvstool_update_args, (caddr_t) argp,
(xdrproc_t) xdr_cvstool_update_resp, (caddr_t) &clnt_res,
TIMEOUT) != RPC_SUCCESS) {
return (NULL);
}
return (&clnt_res);
}