-
Notifications
You must be signed in to change notification settings - Fork 0
/
fuse_rpc_clnt.c
217 lines (192 loc) · 5.44 KB
/
fuse_rpc_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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
/*
* Please do not edit this file.
* It was generated using rpcgen.
*/
#include <memory.h> /* for memset */
#include "fuse_rpc.h"
/* Default timeout can be changed using clnt_control() */
static struct timeval TIMEOUT = { 25, 0 };
enum clnt_stat
init_rootdir_6(init_arg *argp, init_ret *clnt_res, CLIENT *clnt)
{
return (clnt_call(clnt, INIT_ROOTDIR,
(xdrproc_t) xdr_init_arg, (caddr_t) argp,
(xdrproc_t) xdr_init_ret, (caddr_t) clnt_res,
TIMEOUT));
}
enum clnt_stat
bb_getattr_6(getattr_arg *argp, getattr_ret *clnt_res, CLIENT *clnt)
{
return (clnt_call(clnt, BB_GETATTR,
(xdrproc_t) xdr_getattr_arg, (caddr_t) argp,
(xdrproc_t) xdr_getattr_ret, (caddr_t) clnt_res,
TIMEOUT));
}
enum clnt_stat
bb_access_6(access_arg *argp, access_ret *clnt_res, CLIENT *clnt)
{
return (clnt_call(clnt, BB_ACCESS,
(xdrproc_t) xdr_access_arg, (caddr_t) argp,
(xdrproc_t) xdr_access_ret, (caddr_t) clnt_res,
TIMEOUT));
}
enum clnt_stat
bb_mkdir_6(mkdir_arg *argp, mkdir_ret *clnt_res, CLIENT *clnt)
{
return (clnt_call(clnt, BB_MKDIR,
(xdrproc_t) xdr_mkdir_arg, (caddr_t) argp,
(xdrproc_t) xdr_mkdir_ret, (caddr_t) clnt_res,
TIMEOUT));
}
enum clnt_stat
bb_rmdir_6(rmdir_arg *argp, rmdir_ret *clnt_res, CLIENT *clnt)
{
return (clnt_call(clnt, BB_RMDIR,
(xdrproc_t) xdr_rmdir_arg, (caddr_t) argp,
(xdrproc_t) xdr_rmdir_ret, (caddr_t) clnt_res,
TIMEOUT));
}
enum clnt_stat
bb_opendir_6(opendir_arg *argp, opendir_ret *clnt_res, CLIENT *clnt)
{
return (clnt_call(clnt, BB_OPENDIR,
(xdrproc_t) xdr_opendir_arg, (caddr_t) argp,
(xdrproc_t) xdr_opendir_ret, (caddr_t) clnt_res,
TIMEOUT));
}
enum clnt_stat
bb_readdir_6(readdir_arg *argp, readdir_ret *clnt_res, CLIENT *clnt)
{
return (clnt_call(clnt, BB_READDIR,
(xdrproc_t) xdr_readdir_arg, (caddr_t) argp,
(xdrproc_t) xdr_readdir_ret, (caddr_t) clnt_res,
TIMEOUT));
}
enum clnt_stat
bb_releasedir_6(releasedir_arg *argp, releasedir_ret *clnt_res, CLIENT *clnt)
{
return (clnt_call(clnt, BB_RELEASEDIR,
(xdrproc_t) xdr_releasedir_arg, (caddr_t) argp,
(xdrproc_t) xdr_releasedir_ret, (caddr_t) clnt_res,
TIMEOUT));
}
enum clnt_stat
bb_rename_6(rename_arg *argp, rename_ret *clnt_res, CLIENT *clnt)
{
return (clnt_call(clnt, BB_RENAME,
(xdrproc_t) xdr_rename_arg, (caddr_t) argp,
(xdrproc_t) xdr_rename_ret, (caddr_t) clnt_res,
TIMEOUT));
}
enum clnt_stat
bb_symlink_6(symlink_arg *argp, symlink_ret *clnt_res, CLIENT *clnt)
{
return (clnt_call(clnt, BB_SYMLINK,
(xdrproc_t) xdr_symlink_arg, (caddr_t) argp,
(xdrproc_t) xdr_symlink_ret, (caddr_t) clnt_res,
TIMEOUT));
}
enum clnt_stat
bb_link_6(link_arg *argp, link_ret *clnt_res, CLIENT *clnt)
{
return (clnt_call(clnt, BB_LINK,
(xdrproc_t) xdr_link_arg, (caddr_t) argp,
(xdrproc_t) xdr_link_ret, (caddr_t) clnt_res,
TIMEOUT));
}
enum clnt_stat
bb_readlink_6(readlink_arg *argp, readlink_ret *clnt_res, CLIENT *clnt)
{
return (clnt_call(clnt, BB_READLINK,
(xdrproc_t) xdr_readlink_arg, (caddr_t) argp,
(xdrproc_t) xdr_readlink_ret, (caddr_t) clnt_res,
TIMEOUT));
}
enum clnt_stat
bb_mknod_6(mknod_arg *argp, mknod_ret *clnt_res, CLIENT *clnt)
{
return (clnt_call(clnt, BB_MKNOD,
(xdrproc_t) xdr_mknod_arg, (caddr_t) argp,
(xdrproc_t) xdr_mknod_ret, (caddr_t) clnt_res,
TIMEOUT));
}
enum clnt_stat
bb_truncate_6(truncate_arg *argp, truncate_ret *clnt_res, CLIENT *clnt)
{
return (clnt_call(clnt, BB_TRUNCATE,
(xdrproc_t) xdr_truncate_arg, (caddr_t) argp,
(xdrproc_t) xdr_truncate_ret, (caddr_t) clnt_res,
TIMEOUT));
}
enum clnt_stat
bb_unlink_6(unlink_arg *argp, unlink_ret *clnt_res, CLIENT *clnt)
{
return (clnt_call(clnt, BB_UNLINK,
(xdrproc_t) xdr_unlink_arg, (caddr_t) argp,
(xdrproc_t) xdr_unlink_ret, (caddr_t) clnt_res,
TIMEOUT));
}
enum clnt_stat
bb_utime_6(utime_arg *argp, utime_ret *clnt_res, CLIENT *clnt)
{
return (clnt_call(clnt, BB_UTIME,
(xdrproc_t) xdr_utime_arg, (caddr_t) argp,
(xdrproc_t) xdr_utime_ret, (caddr_t) clnt_res,
TIMEOUT));
}
enum clnt_stat
bb_chmod_6(chmod_arg *argp, chmod_ret *clnt_res, CLIENT *clnt)
{
return (clnt_call(clnt, BB_CHMOD,
(xdrproc_t) xdr_chmod_arg, (caddr_t) argp,
(xdrproc_t) xdr_chmod_ret, (caddr_t) clnt_res,
TIMEOUT));
}
enum clnt_stat
bb_chown_6(chown_arg *argp, chown_ret *clnt_res, CLIENT *clnt)
{
return (clnt_call(clnt, BB_CHOWN,
(xdrproc_t) xdr_chown_arg, (caddr_t) argp,
(xdrproc_t) xdr_chown_ret, (caddr_t) clnt_res,
TIMEOUT));
}
enum clnt_stat
bb_open_6(open_arg *argp, open_ret *clnt_res, CLIENT *clnt)
{
return (clnt_call(clnt, BB_OPEN,
(xdrproc_t) xdr_open_arg, (caddr_t) argp,
(xdrproc_t) xdr_open_ret, (caddr_t) clnt_res,
TIMEOUT));
}
enum clnt_stat
bb_release_6(release_arg *argp, release_ret *clnt_res, CLIENT *clnt)
{
return (clnt_call(clnt, BB_RELEASE,
(xdrproc_t) xdr_release_arg, (caddr_t) argp,
(xdrproc_t) xdr_release_ret, (caddr_t) clnt_res,
TIMEOUT));
}
enum clnt_stat
bb_read_6(read_arg *argp, read_ret *clnt_res, CLIENT *clnt)
{
return (clnt_call(clnt, BB_READ,
(xdrproc_t) xdr_read_arg, (caddr_t) argp,
(xdrproc_t) xdr_read_ret, (caddr_t) clnt_res,
TIMEOUT));
}
enum clnt_stat
bb_write_6(write_arg *argp, write_ret *clnt_res, CLIENT *clnt)
{
return (clnt_call(clnt, BB_WRITE,
(xdrproc_t) xdr_write_arg, (caddr_t) argp,
(xdrproc_t) xdr_write_ret, (caddr_t) clnt_res,
TIMEOUT));
}
enum clnt_stat
bb_statfs_6(statfs_arg *argp, statfs_ret *clnt_res, CLIENT *clnt)
{
return (clnt_call(clnt, BB_STATFS,
(xdrproc_t) xdr_statfs_arg, (caddr_t) argp,
(xdrproc_t) xdr_statfs_ret, (caddr_t) clnt_res,
TIMEOUT));
}