1 /*
2 * Please do not edit this file.
3 * It was generated using rpcgen.
4 */
5
6 #include <memory.h> /* for memset */
7 #include "nfs_prot.h"
8
9 /* Default timeout can be changed using clnt_control() */
10 static struct timeval TIMEOUT = { 25, 0 };
11
12 void *
nfs3_null_3(void * argp,CLIENT * clnt)13 nfs3_null_3(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, NFS3_NULL,
19 (xdrproc_t) xdr_void, (caddr_t) argp,
20 (xdrproc_t) xdr_void, (caddr_t) &clnt_res,
21 TIMEOUT) != RPC_SUCCESS) {
22 return (NULL);
23 }
24 return ((void *)&clnt_res);
25 }
26
27 GETATTR3res *
nfs3_getattr_3(GETATTR3args * argp,CLIENT * clnt)28 nfs3_getattr_3(GETATTR3args *argp, CLIENT *clnt)
29 {
30 static GETATTR3res clnt_res;
31
32 memset((char *)&clnt_res, 0, sizeof(clnt_res));
33 if (clnt_call (clnt, NFS3_GETATTR,
34 (xdrproc_t) xdr_GETATTR3args, (caddr_t) argp,
35 (xdrproc_t) xdr_GETATTR3res, (caddr_t) &clnt_res,
36 TIMEOUT) != RPC_SUCCESS) {
37 return (NULL);
38 }
39 return (&clnt_res);
40 }
41
42 SETATTR3res *
nfs3_setattr_3(SETATTR3args * argp,CLIENT * clnt)43 nfs3_setattr_3(SETATTR3args *argp, CLIENT *clnt)
44 {
45 static SETATTR3res clnt_res;
46
47 memset((char *)&clnt_res, 0, sizeof(clnt_res));
48 if (clnt_call (clnt, NFS3_SETATTR,
49 (xdrproc_t) xdr_SETATTR3args, (caddr_t) argp,
50 (xdrproc_t) xdr_SETATTR3res, (caddr_t) &clnt_res,
51 TIMEOUT) != RPC_SUCCESS) {
52 return (NULL);
53 }
54 return (&clnt_res);
55 }
56
57 LOOKUP3res *
nfs3_lookup_3(LOOKUP3args * argp,CLIENT * clnt)58 nfs3_lookup_3(LOOKUP3args *argp, CLIENT *clnt)
59 {
60 static LOOKUP3res clnt_res;
61
62 memset((char *)&clnt_res, 0, sizeof(clnt_res));
63 if (clnt_call (clnt, NFS3_LOOKUP,
64 (xdrproc_t) xdr_LOOKUP3args, (caddr_t) argp,
65 (xdrproc_t) xdr_LOOKUP3res, (caddr_t) &clnt_res,
66 TIMEOUT) != RPC_SUCCESS) {
67 return (NULL);
68 }
69 return (&clnt_res);
70 }
71
72 ACCESS3res *
nfs3_access_3(ACCESS3args * argp,CLIENT * clnt)73 nfs3_access_3(ACCESS3args *argp, CLIENT *clnt)
74 {
75 static ACCESS3res clnt_res;
76
77 memset((char *)&clnt_res, 0, sizeof(clnt_res));
78 if (clnt_call (clnt, NFS3_ACCESS,
79 (xdrproc_t) xdr_ACCESS3args, (caddr_t) argp,
80 (xdrproc_t) xdr_ACCESS3res, (caddr_t) &clnt_res,
81 TIMEOUT) != RPC_SUCCESS) {
82 return (NULL);
83 }
84 return (&clnt_res);
85 }
86
87 READLINK3res *
nfs3_readlink_3(READLINK3args * argp,CLIENT * clnt)88 nfs3_readlink_3(READLINK3args *argp, CLIENT *clnt)
89 {
90 static READLINK3res clnt_res;
91
92 memset((char *)&clnt_res, 0, sizeof(clnt_res));
93 if (clnt_call (clnt, NFS3_READLINK,
94 (xdrproc_t) xdr_READLINK3args, (caddr_t) argp,
95 (xdrproc_t) xdr_READLINK3res, (caddr_t) &clnt_res,
96 TIMEOUT) != RPC_SUCCESS) {
97 return (NULL);
98 }
99 return (&clnt_res);
100 }
101
102 READ3res *
nfs3_read_3(READ3args * argp,CLIENT * clnt)103 nfs3_read_3(READ3args *argp, CLIENT *clnt)
104 {
105 static READ3res clnt_res;
106
107 memset((char *)&clnt_res, 0, sizeof(clnt_res));
108 if (clnt_call (clnt, NFS3_READ,
109 (xdrproc_t) xdr_READ3args, (caddr_t) argp,
110 (xdrproc_t) xdr_READ3res, (caddr_t) &clnt_res,
111 TIMEOUT) != RPC_SUCCESS) {
112 return (NULL);
113 }
114 return (&clnt_res);
115 }
116
117 WRITE3res *
nfs3_write_3(WRITE3args * argp,CLIENT * clnt)118 nfs3_write_3(WRITE3args *argp, CLIENT *clnt)
119 {
120 static WRITE3res clnt_res;
121
122 memset((char *)&clnt_res, 0, sizeof(clnt_res));
123 if (clnt_call (clnt, NFS3_WRITE,
124 (xdrproc_t) xdr_WRITE3args, (caddr_t) argp,
125 (xdrproc_t) xdr_WRITE3res, (caddr_t) &clnt_res,
126 TIMEOUT) != RPC_SUCCESS) {
127 return (NULL);
128 }
129 return (&clnt_res);
130 }
131
132 CREATE3res *
nfs3_create_3(CREATE3args * argp,CLIENT * clnt)133 nfs3_create_3(CREATE3args *argp, CLIENT *clnt)
134 {
135 static CREATE3res clnt_res;
136
137 memset((char *)&clnt_res, 0, sizeof(clnt_res));
138 if (clnt_call (clnt, NFS3_CREATE,
139 (xdrproc_t) xdr_CREATE3args, (caddr_t) argp,
140 (xdrproc_t) xdr_CREATE3res, (caddr_t) &clnt_res,
141 TIMEOUT) != RPC_SUCCESS) {
142 return (NULL);
143 }
144 return (&clnt_res);
145 }
146
147 MKDIR3res *
nfs3_mkdir_3(MKDIR3args * argp,CLIENT * clnt)148 nfs3_mkdir_3(MKDIR3args *argp, CLIENT *clnt)
149 {
150 static MKDIR3res clnt_res;
151
152 memset((char *)&clnt_res, 0, sizeof(clnt_res));
153 if (clnt_call (clnt, NFS3_MKDIR,
154 (xdrproc_t) xdr_MKDIR3args, (caddr_t) argp,
155 (xdrproc_t) xdr_MKDIR3res, (caddr_t) &clnt_res,
156 TIMEOUT) != RPC_SUCCESS) {
157 return (NULL);
158 }
159 return (&clnt_res);
160 }
161
162 SYMLINK3res *
nfs3_symlink_3(SYMLINK3args * argp,CLIENT * clnt)163 nfs3_symlink_3(SYMLINK3args *argp, CLIENT *clnt)
164 {
165 static SYMLINK3res clnt_res;
166
167 memset((char *)&clnt_res, 0, sizeof(clnt_res));
168 if (clnt_call (clnt, NFS3_SYMLINK,
169 (xdrproc_t) xdr_SYMLINK3args, (caddr_t) argp,
170 (xdrproc_t) xdr_SYMLINK3res, (caddr_t) &clnt_res,
171 TIMEOUT) != RPC_SUCCESS) {
172 return (NULL);
173 }
174 return (&clnt_res);
175 }
176
177 MKNOD3res *
nfs3_mknod_3(MKNOD3args * argp,CLIENT * clnt)178 nfs3_mknod_3(MKNOD3args *argp, CLIENT *clnt)
179 {
180 static MKNOD3res clnt_res;
181
182 memset((char *)&clnt_res, 0, sizeof(clnt_res));
183 if (clnt_call (clnt, NFS3_MKNOD,
184 (xdrproc_t) xdr_MKNOD3args, (caddr_t) argp,
185 (xdrproc_t) xdr_MKNOD3res, (caddr_t) &clnt_res,
186 TIMEOUT) != RPC_SUCCESS) {
187 return (NULL);
188 }
189 return (&clnt_res);
190 }
191
192 REMOVE3res *
nfs3_remove_3(REMOVE3args * argp,CLIENT * clnt)193 nfs3_remove_3(REMOVE3args *argp, CLIENT *clnt)
194 {
195 static REMOVE3res clnt_res;
196
197 memset((char *)&clnt_res, 0, sizeof(clnt_res));
198 if (clnt_call (clnt, NFS3_REMOVE,
199 (xdrproc_t) xdr_REMOVE3args, (caddr_t) argp,
200 (xdrproc_t) xdr_REMOVE3res, (caddr_t) &clnt_res,
201 TIMEOUT) != RPC_SUCCESS) {
202 return (NULL);
203 }
204 return (&clnt_res);
205 }
206
207 RMDIR3res *
nfs3_rmdir_3(RMDIR3args * argp,CLIENT * clnt)208 nfs3_rmdir_3(RMDIR3args *argp, CLIENT *clnt)
209 {
210 static RMDIR3res clnt_res;
211
212 memset((char *)&clnt_res, 0, sizeof(clnt_res));
213 if (clnt_call (clnt, NFS3_RMDIR,
214 (xdrproc_t) xdr_RMDIR3args, (caddr_t) argp,
215 (xdrproc_t) xdr_RMDIR3res, (caddr_t) &clnt_res,
216 TIMEOUT) != RPC_SUCCESS) {
217 return (NULL);
218 }
219 return (&clnt_res);
220 }
221
222 RENAME3res *
nfs3_rename_3(RENAME3args * argp,CLIENT * clnt)223 nfs3_rename_3(RENAME3args *argp, CLIENT *clnt)
224 {
225 static RENAME3res clnt_res;
226
227 memset((char *)&clnt_res, 0, sizeof(clnt_res));
228 if (clnt_call (clnt, NFS3_RENAME,
229 (xdrproc_t) xdr_RENAME3args, (caddr_t) argp,
230 (xdrproc_t) xdr_RENAME3res, (caddr_t) &clnt_res,
231 TIMEOUT) != RPC_SUCCESS) {
232 return (NULL);
233 }
234 return (&clnt_res);
235 }
236
237 LINK3res *
nfs3_link_3(LINK3args * argp,CLIENT * clnt)238 nfs3_link_3(LINK3args *argp, CLIENT *clnt)
239 {
240 static LINK3res clnt_res;
241
242 memset((char *)&clnt_res, 0, sizeof(clnt_res));
243 if (clnt_call (clnt, NFS3_LINK,
244 (xdrproc_t) xdr_LINK3args, (caddr_t) argp,
245 (xdrproc_t) xdr_LINK3res, (caddr_t) &clnt_res,
246 TIMEOUT) != RPC_SUCCESS) {
247 return (NULL);
248 }
249 return (&clnt_res);
250 }
251
252 READDIR3res *
nfs3_readdir_3(READDIR3args * argp,CLIENT * clnt)253 nfs3_readdir_3(READDIR3args *argp, CLIENT *clnt)
254 {
255 static READDIR3res clnt_res;
256
257 memset((char *)&clnt_res, 0, sizeof(clnt_res));
258 if (clnt_call (clnt, NFS3_READDIR,
259 (xdrproc_t) xdr_READDIR3args, (caddr_t) argp,
260 (xdrproc_t) xdr_READDIR3res, (caddr_t) &clnt_res,
261 TIMEOUT) != RPC_SUCCESS) {
262 return (NULL);
263 }
264 return (&clnt_res);
265 }
266
267 READDIRPLUS3res *
nfs3_readdirplus_3(READDIRPLUS3args * argp,CLIENT * clnt)268 nfs3_readdirplus_3(READDIRPLUS3args *argp, CLIENT *clnt)
269 {
270 static READDIRPLUS3res clnt_res;
271
272 memset((char *)&clnt_res, 0, sizeof(clnt_res));
273 if (clnt_call (clnt, NFS3_READDIRPLUS,
274 (xdrproc_t) xdr_READDIRPLUS3args, (caddr_t) argp,
275 (xdrproc_t) xdr_READDIRPLUS3res, (caddr_t) &clnt_res,
276 TIMEOUT) != RPC_SUCCESS) {
277 return (NULL);
278 }
279 return (&clnt_res);
280 }
281
282 FSSTAT3res *
nfs3_fsstat_3(FSSTAT3args * argp,CLIENT * clnt)283 nfs3_fsstat_3(FSSTAT3args *argp, CLIENT *clnt)
284 {
285 static FSSTAT3res clnt_res;
286
287 memset((char *)&clnt_res, 0, sizeof(clnt_res));
288 if (clnt_call (clnt, NFS3_FSSTAT,
289 (xdrproc_t) xdr_FSSTAT3args, (caddr_t) argp,
290 (xdrproc_t) xdr_FSSTAT3res, (caddr_t) &clnt_res,
291 TIMEOUT) != RPC_SUCCESS) {
292 return (NULL);
293 }
294 return (&clnt_res);
295 }
296
297 FSINFO3res *
nfs3_fsinfo_3(FSINFO3args * argp,CLIENT * clnt)298 nfs3_fsinfo_3(FSINFO3args *argp, CLIENT *clnt)
299 {
300 static FSINFO3res clnt_res;
301
302 memset((char *)&clnt_res, 0, sizeof(clnt_res));
303 if (clnt_call (clnt, NFS3_FSINFO,
304 (xdrproc_t) xdr_FSINFO3args, (caddr_t) argp,
305 (xdrproc_t) xdr_FSINFO3res, (caddr_t) &clnt_res,
306 TIMEOUT) != RPC_SUCCESS) {
307 return (NULL);
308 }
309 return (&clnt_res);
310 }
311
312 PATHCONF3res *
nfs3_pathconf_3(PATHCONF3args * argp,CLIENT * clnt)313 nfs3_pathconf_3(PATHCONF3args *argp, CLIENT *clnt)
314 {
315 static PATHCONF3res clnt_res;
316
317 memset((char *)&clnt_res, 0, sizeof(clnt_res));
318 if (clnt_call (clnt, NFS3_PATHCONF,
319 (xdrproc_t) xdr_PATHCONF3args, (caddr_t) argp,
320 (xdrproc_t) xdr_PATHCONF3res, (caddr_t) &clnt_res,
321 TIMEOUT) != RPC_SUCCESS) {
322 return (NULL);
323 }
324 return (&clnt_res);
325 }
326
327 COMMIT3res *
nfs3_commit_3(COMMIT3args * argp,CLIENT * clnt)328 nfs3_commit_3(COMMIT3args *argp, CLIENT *clnt)
329 {
330 static COMMIT3res clnt_res;
331
332 memset((char *)&clnt_res, 0, sizeof(clnt_res));
333 if (clnt_call (clnt, NFS3_COMMIT,
334 (xdrproc_t) xdr_COMMIT3args, (caddr_t) argp,
335 (xdrproc_t) xdr_COMMIT3res, (caddr_t) &clnt_res,
336 TIMEOUT) != RPC_SUCCESS) {
337 return (NULL);
338 }
339 return (&clnt_res);
340 }
341
342 void *
nfsacl3_null_3(void * argp,CLIENT * clnt)343 nfsacl3_null_3(void *argp, CLIENT *clnt)
344 {
345 static char clnt_res;
346
347 memset((char *)&clnt_res, 0, sizeof(clnt_res));
348 if (clnt_call (clnt, NFSACL3_NULL,
349 (xdrproc_t) xdr_void, (caddr_t) argp,
350 (xdrproc_t) xdr_void, (caddr_t) &clnt_res,
351 TIMEOUT) != RPC_SUCCESS) {
352 return (NULL);
353 }
354 return ((void *)&clnt_res);
355 }
356
357 GETACL3res *
nfsacl3_getacl_3(GETACL3args * argp,CLIENT * clnt)358 nfsacl3_getacl_3(GETACL3args *argp, CLIENT *clnt)
359 {
360 static GETACL3res clnt_res;
361
362 memset((char *)&clnt_res, 0, sizeof(clnt_res));
363 if (clnt_call (clnt, NFSACL3_GETACL,
364 (xdrproc_t) xdr_GETACL3args, (caddr_t) argp,
365 (xdrproc_t) xdr_GETACL3res, (caddr_t) &clnt_res,
366 TIMEOUT) != RPC_SUCCESS) {
367 return (NULL);
368 }
369 return (&clnt_res);
370 }
371
372 SETACL3res *
nfsacl3_setacl_3(SETACL3args * argp,CLIENT * clnt)373 nfsacl3_setacl_3(SETACL3args *argp, CLIENT *clnt)
374 {
375 static SETACL3res clnt_res;
376
377 memset((char *)&clnt_res, 0, sizeof(clnt_res));
378 if (clnt_call (clnt, NFSACL3_SETACL,
379 (xdrproc_t) xdr_SETACL3args, (caddr_t) argp,
380 (xdrproc_t) xdr_SETACL3res, (caddr_t) &clnt_res,
381 TIMEOUT) != RPC_SUCCESS) {
382 return (NULL);
383 }
384 return (&clnt_res);
385 }
386