1/*
  2 * Please do not edit this file.
  3 * It was generated using rpcgen.
  4 */
  5
  6#ifndef _RQUOTA_H_RPCGEN
  7#define	_RQUOTA_H_RPCGEN
  8
  9#include <rpc/rpc.h>
 10
 11#ifdef __cplusplus
 12extern "C" {
 13#endif
 14
 15#define	RQ_PATHLEN 1024
 16
 17struct sq_dqblk {
 18	u_int rq_bhardlimit;
 19	u_int rq_bsoftlimit;
 20	u_int rq_curblocks;
 21	u_int rq_fhardlimit;
 22	u_int rq_fsoftlimit;
 23	u_int rq_curfiles;
 24	u_int rq_btimeleft;
 25	u_int rq_ftimeleft;
 26};
 27typedef struct sq_dqblk sq_dqblk;
 28
 29struct getquota_args {
 30	char *gqa_pathp;
 31	int gqa_uid;
 32};
 33typedef struct getquota_args getquota_args;
 34
 35struct setquota_args {
 36	int sqa_qcmd;
 37	char *sqa_pathp;
 38	int sqa_id;
 39	sq_dqblk sqa_dqblk;
 40};
 41typedef struct setquota_args setquota_args;
 42
 43struct ext_getquota_args {
 44	char *gqa_pathp;
 45	int gqa_type;
 46	int gqa_id;
 47};
 48typedef struct ext_getquota_args ext_getquota_args;
 49
 50struct ext_setquota_args {
 51	int sqa_qcmd;
 52	char *sqa_pathp;
 53	int sqa_id;
 54	int sqa_type;
 55	sq_dqblk sqa_dqblk;
 56};
 57typedef struct ext_setquota_args ext_setquota_args;
 58
 59struct rquota {
 60	int rq_bsize;
 61	bool_t rq_active;
 62	u_int rq_bhardlimit;
 63	u_int rq_bsoftlimit;
 64	u_int rq_curblocks;
 65	u_int rq_fhardlimit;
 66	u_int rq_fsoftlimit;
 67	u_int rq_curfiles;
 68	u_int rq_btimeleft;
 69	u_int rq_ftimeleft;
 70};
 71typedef struct rquota rquota;
 72
 73enum gqr_status {
 74	Q_OK = 1,
 75	Q_NOQUOTA = 2,
 76	Q_EPERM = 3
 77};
 78typedef enum gqr_status gqr_status;
 79
 80struct getquota_rslt {
 81	gqr_status status;
 82	union {
 83		rquota gqr_rquota;
 84	} getquota_rslt_u;
 85};
 86typedef struct getquota_rslt getquota_rslt;
 87
 88struct setquota_rslt {
 89	gqr_status status;
 90	union {
 91		rquota sqr_rquota;
 92	} setquota_rslt_u;
 93};
 94typedef struct setquota_rslt setquota_rslt;
 95
 96#define	RQUOTAPROG ((unsigned long)(100011))
 97#define	RQUOTAVERS ((unsigned long)(1))
 98
 99extern  void rquotaprog_1(struct svc_req *rqstp, SVCXPRT *transp);
100#define	RQUOTAPROC_GETQUOTA ((unsigned long)(1))
101extern  getquota_rslt * rquotaproc_getquota_1(getquota_args *, CLIENT *);
102extern  getquota_rslt * rquotaproc_getquota_1_svc(getquota_args *, struct svc_req *);
103#define	RQUOTAPROC_GETACTIVEQUOTA ((unsigned long)(2))
104extern  getquota_rslt * rquotaproc_getactivequota_1(getquota_args *, CLIENT *);
105extern  getquota_rslt * rquotaproc_getactivequota_1_svc(getquota_args *, struct svc_req *);
106#define	RQUOTAPROC_SETQUOTA ((unsigned long)(3))
107extern  setquota_rslt * rquotaproc_setquota_1(setquota_args *, CLIENT *);
108extern  setquota_rslt * rquotaproc_setquota_1_svc(setquota_args *, struct svc_req *);
109#define	RQUOTAPROC_SETACTIVEQUOTA ((unsigned long)(4))
110extern  setquota_rslt * rquotaproc_setactivequota_1(setquota_args *, CLIENT *);
111extern  setquota_rslt * rquotaproc_setactivequota_1_svc(setquota_args *, struct svc_req *);
112extern int rquotaprog_1_freeresult(SVCXPRT *, xdrproc_t, caddr_t);
113#define	EXT_RQUOTAVERS ((unsigned long)(2))
114
115extern  void rquotaprog_2(struct svc_req *rqstp, SVCXPRT *transp);
116extern  getquota_rslt * rquotaproc_getquota_2(ext_getquota_args *, CLIENT *);
117extern  getquota_rslt * rquotaproc_getquota_2_svc(ext_getquota_args *, struct svc_req *);
118extern  getquota_rslt * rquotaproc_getactivequota_2(ext_getquota_args *, CLIENT *);
119extern  getquota_rslt * rquotaproc_getactivequota_2_svc(ext_getquota_args *, struct svc_req *);
120extern  setquota_rslt * rquotaproc_setquota_2(ext_setquota_args *, CLIENT *);
121extern  setquota_rslt * rquotaproc_setquota_2_svc(ext_setquota_args *, struct svc_req *);
122extern  setquota_rslt * rquotaproc_setactivequota_2(ext_setquota_args *, CLIENT *);
123extern  setquota_rslt * rquotaproc_setactivequota_2_svc(ext_setquota_args *, struct svc_req *);
124extern int rquotaprog_2_freeresult(SVCXPRT *, xdrproc_t, caddr_t);
125
126/* the xdr functions */
127extern  bool_t xdr_sq_dqblk(XDR *, sq_dqblk*);
128extern  bool_t xdr_getquota_args(XDR *, getquota_args*);
129extern  bool_t xdr_setquota_args(XDR *, setquota_args*);
130extern  bool_t xdr_ext_getquota_args(XDR *, ext_getquota_args*);
131extern  bool_t xdr_ext_setquota_args(XDR *, ext_setquota_args*);
132extern  bool_t xdr_rquota(XDR *, rquota*);
133extern  bool_t xdr_gqr_status(XDR *, gqr_status*);
134extern  bool_t xdr_getquota_rslt(XDR *, getquota_rslt*);
135extern  bool_t xdr_setquota_rslt(XDR *, setquota_rslt*);
136
137#ifdef __cplusplus
138}
139#endif
140
141#endif /* !_RQUOTA_H_RPCGEN */