Check in README and sample plots for some of the new data.
[bluesky.git] / nfs3 / mount.c
1 #include "mount_prot.h"
2 #include <stdio.h>
3 #include <stdlib.h>
4 #include <rpc/pmap_clnt.h>
5 #include <string.h>
6 #include <memory.h>
7 #include <sys/socket.h>
8 #include <netinet/in.h>
9
10 static int null_int;
11 static void *null_result = (void *)&null_int;
12
13 void *
14 mountproc3_null_3_svc(void *argp, struct svc_req *rqstp)
15 {
16     return null_result;
17 }
18
19 mountres3 *
20 mountproc3_mnt_3_svc(dirpath *argp, struct svc_req *rqstp)
21 {
22     static char fhbytes[] = {0, 0, 0, 0, 0, 0, 0, 1};
23     static fhandle3 fh = {8, fhbytes};
24     static mountres3 result;
25     static int auth_flavors = AUTH_UNIX;
26
27     result.fhs_status = MNT3_OK;
28     result.mountres3_u.mountinfo.fhandle = fh;
29     result.mountres3_u.mountinfo.auth_flavors.auth_flavors_len = 1;
30     result.mountres3_u.mountinfo.auth_flavors.auth_flavors_val = &auth_flavors;
31
32     return &result;
33 }
34
35 mountlist *
36 mountproc3_dump_3_svc(void *argp, struct svc_req *rqstp)
37 {
38     return null_result;
39 }
40
41 void *
42 mountproc3_umnt_3_svc(dirpath *argp, struct svc_req *rqstp)
43 {
44     return null_result;
45 }
46
47 void *
48 mountproc3_umntall_3_svc(void *argp, struct svc_req *rqstp)
49 {
50     return null_result;
51 }
52
53 exports *
54 mountproc3_export_3_svc(void *argp, struct svc_req *rqstp)
55 {
56     return null_result;
57 }