1/*
2 * Please do not edit this file.
3 * It was generated using rpcgen.
4 */
5
6#ifndef _MOUNT_H_RPCGEN
7#define _MOUNT_H_RPCGEN
8
9#define RPCGEN_VERSION 199506
10
11#include <rpc/rpc.h>
12
13#define MNTPATHLEN 1024
14#define MNTNAMLEN 255
15#define FHSIZE 32
16#define FHSIZE3 64
17
18typedef char fhandle[FHSIZE];
19
20typedef struct {
21 unsigned int fhandle3_len;
22 char *fhandle3_val;
23} fhandle3;
24
25struct fhstatus {
26 u_int fhs_status;
27 union {
28 fhandle fhs_fhandle;
29 } fhstatus_u;
30};
31typedef struct fhstatus fhstatus;
32
33enum mountstat3 {
34 MNT3_OK = 0,
35 MNT3ERR_PERM = 1,
36 MNT3ERR_NOENT = 2,
37 MNT3ERR_IO = 5,
38 MNT3ERR_ACCES = 13,
39 MNT3ERR_NOTDIR = 20,
40 MNT3ERR_INVAL = 22,
41 MNT3ERR_NAMETOOLONG = 63,
42 MNT3ERR_NOTSUPP = 10004,
43 MNT3ERR_SERVERFAULT = 10006
44};
45typedef enum mountstat3 mountstat3;
46
47struct mountres3_ok {
48 fhandle3 fhandle;
49 struct {
50 unsigned int auth_flavors_len;
51 int *auth_flavors_val;
52 } auth_flavors;
53};
54typedef struct mountres3_ok mountres3_ok;
55
56struct mountres3 {
57 mountstat3 fhs_status;
58 union {
59 mountres3_ok mountinfo;
60 } mountres3_u;
61};
62typedef struct mountres3 mountres3;
63
64typedef char *dirpath;
65
66typedef char *name;
67
68typedef struct mountbody *mountlist;
69
70struct mountbody {
71 name ml_hostname;
72 dirpath ml_directory;
73 mountlist ml_next;
74};
75typedef struct mountbody mountbody;
76
77typedef struct groupnode *groups;
78
79struct groupnode {
80 name gr_name;
81 groups gr_next;
82};
83typedef struct groupnode groupnode;
84
85typedef struct exportnode *exports;
86
87struct exportnode {
88 dirpath ex_dir;
89 groups ex_groups;
90 exports ex_next;
91};
92typedef struct exportnode exportnode;
93
94__BEGIN_DECLS
95bool_t xdr_fhandle(XDR *, fhandle);
96bool_t xdr_fhandle3(XDR *, fhandle3 *);
97bool_t xdr_fhstatus(XDR *, fhstatus *);
98bool_t xdr_mountstat3(XDR *, mountstat3 *);
99bool_t xdr_mountres3_ok(XDR *, mountres3_ok *);
100bool_t xdr_mountres3(XDR *, mountres3 *);
101bool_t xdr_dirpath(XDR *, dirpath *);
102bool_t xdr_name(XDR *, name *);
103bool_t xdr_mountlist(XDR *, mountlist *);
104bool_t xdr_mountbody(XDR *, mountbody *);
105bool_t xdr_groups(XDR *, groups *);
106bool_t xdr_groupnode(XDR *, groupnode *);
107bool_t xdr_exports(XDR *, exports *);
108bool_t xdr_exportnode(XDR *, exportnode *);
109__END_DECLS
110
111#define MOUNTPROG 100005
112#define MOUNTVERS 1
113#define MOUNTPROC_NULL 0
114#define MOUNTPROC_MNT 1
115#define MOUNTPROC_DUMP 2
116#define MOUNTPROC_UMNT 3
117#define MOUNTPROC_UMNTALL 4
118#define MOUNTPROC_EXPORT 5
119#define MOUNTPROC_EXPORTALL 6
120#define MOUNTVERS3 3
121
122__BEGIN_DECLS
123void *mountproc_null_1(void *, CLIENT *);
124void *mountproc_null_1_svc(void *, struct svc_req *);
125fhstatus *mountproc_mnt_1(dirpath *, CLIENT *);
126fhstatus *mountproc_mnt_1_svc(dirpath *, struct svc_req *);
127mountlist *mountproc_dump_1(void *, CLIENT *);
128mountlist *mountproc_dump_1_svc(void *, struct svc_req *);
129void *mountproc_umnt_1(dirpath *, CLIENT *);
130void *mountproc_umnt_1_svc(dirpath *, struct svc_req *);
131void *mountproc_umntall_1(void *, CLIENT *);
132void *mountproc_umntall_1_svc(void *, struct svc_req *);
133exports *mountproc_export_1(void *, CLIENT *);
134exports *mountproc_export_1_svc(void *, struct svc_req *);
135exports *mountproc_exportall_1(void *, CLIENT *);
136exports *mountproc_exportall_1_svc(void *, struct svc_req *);
137void *mountproc_null_3(void *, CLIENT *);
138void *mountproc_null_3_svc(void *, struct svc_req *);
139mountres3 *mountproc_mnt_3(dirpath *, CLIENT *);
140mountres3 *mountproc_mnt_3_svc(dirpath *, struct svc_req *);
141mountlist *mountproc_dump_3(void *, CLIENT *);
142mountlist *mountproc_dump_3_svc(void *, struct svc_req *);
143void *mountproc_umnt_3(dirpath *, CLIENT *);
144void *mountproc_umnt_3_svc(dirpath *, struct svc_req *);
145void *mountproc_umntall_3(void *, CLIENT *);
146void *mountproc_umntall_3_svc(void *, struct svc_req *);
147exports *mountproc_export_3(void *, CLIENT *);
148exports *mountproc_export_3_svc(void *, struct svc_req *);
149__END_DECLS
150
151#endif /* !_MOUNT_H_RPCGEN */
152