| 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 |
| 12 | extern "C" { |
| 13 | #endif |
| 14 | |
| 15 | #define	RQ_PATHLEN 1024 |
| 16 | |
| 17 | struct 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 | }; |
| 27 | typedef struct sq_dqblk sq_dqblk; |
| 28 | |
| 29 | struct getquota_args { |
| 30 | 	char *gqa_pathp; |
| 31 | 	int gqa_uid; |
| 32 | }; |
| 33 | typedef struct getquota_args getquota_args; |
| 34 | |
| 35 | struct setquota_args { |
| 36 | 	int sqa_qcmd; |
| 37 | 	char *sqa_pathp; |
| 38 | 	int sqa_id; |
| 39 | 	sq_dqblk sqa_dqblk; |
| 40 | }; |
| 41 | typedef struct setquota_args setquota_args; |
| 42 | |
| 43 | struct ext_getquota_args { |
| 44 | 	char *gqa_pathp; |
| 45 | 	int gqa_type; |
| 46 | 	int gqa_id; |
| 47 | }; |
| 48 | typedef struct ext_getquota_args ext_getquota_args; |
| 49 | |
| 50 | struct 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 | }; |
| 57 | typedef struct ext_setquota_args ext_setquota_args; |
| 58 | |
| 59 | struct 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 | }; |
| 71 | typedef struct rquota rquota; |
| 72 | |
| 73 | enum gqr_status { |
| 74 | 	Q_OK = 1, |
| 75 | 	Q_NOQUOTA = 2, |
| 76 | 	Q_EPERM = 3 |
| 77 | }; |
| 78 | typedef enum gqr_status gqr_status; |
| 79 | |
| 80 | struct getquota_rslt { |
| 81 | 	gqr_status status; |
| 82 | 	union { |
| 83 | 		rquota gqr_rquota; |
| 84 | 	} getquota_rslt_u; |
| 85 | }; |
| 86 | typedef struct getquota_rslt getquota_rslt; |
| 87 | |
| 88 | struct setquota_rslt { |
| 89 | 	gqr_status status; |
| 90 | 	union { |
| 91 | 		rquota sqr_rquota; |
| 92 | 	} setquota_rslt_u; |
| 93 | }; |
| 94 | typedef struct setquota_rslt setquota_rslt; |
| 95 | |
| 96 | #define	RQUOTAPROG ((unsigned long)(100011)) |
| 97 | #define	RQUOTAVERS ((unsigned long)(1)) |
| 98 | |
| 99 | extern void rquotaprog_1(struct svc_req *rqstp, SVCXPRT *transp); |
| 100 | #define	RQUOTAPROC_GETQUOTA ((unsigned long)(1)) |
| 101 | extern getquota_rslt * rquotaproc_getquota_1(getquota_args *, CLIENT *); |
| 102 | extern getquota_rslt * rquotaproc_getquota_1_svc(getquota_args *, struct svc_req *); |
| 103 | #define	RQUOTAPROC_GETACTIVEQUOTA ((unsigned long)(2)) |
| 104 | extern getquota_rslt * rquotaproc_getactivequota_1(getquota_args *, CLIENT *); |
| 105 | extern getquota_rslt * rquotaproc_getactivequota_1_svc(getquota_args *, struct svc_req *); |
| 106 | #define	RQUOTAPROC_SETQUOTA ((unsigned long)(3)) |
| 107 | extern setquota_rslt * rquotaproc_setquota_1(setquota_args *, CLIENT *); |
| 108 | extern setquota_rslt * rquotaproc_setquota_1_svc(setquota_args *, struct svc_req *); |
| 109 | #define	RQUOTAPROC_SETACTIVEQUOTA ((unsigned long)(4)) |
| 110 | extern setquota_rslt * rquotaproc_setactivequota_1(setquota_args *, CLIENT *); |
| 111 | extern setquota_rslt * rquotaproc_setactivequota_1_svc(setquota_args *, struct svc_req *); |
| 112 | extern int rquotaprog_1_freeresult(SVCXPRT *, xdrproc_t, caddr_t); |
| 113 | #define	EXT_RQUOTAVERS ((unsigned long)(2)) |
| 114 | |
| 115 | extern void rquotaprog_2(struct svc_req *rqstp, SVCXPRT *transp); |
| 116 | extern getquota_rslt * rquotaproc_getquota_2(ext_getquota_args *, CLIENT *); |
| 117 | extern getquota_rslt * rquotaproc_getquota_2_svc(ext_getquota_args *, struct svc_req *); |
| 118 | extern getquota_rslt * rquotaproc_getactivequota_2(ext_getquota_args *, CLIENT *); |
| 119 | extern getquota_rslt * rquotaproc_getactivequota_2_svc(ext_getquota_args *, struct svc_req *); |
| 120 | extern setquota_rslt * rquotaproc_setquota_2(ext_setquota_args *, CLIENT *); |
| 121 | extern setquota_rslt * rquotaproc_setquota_2_svc(ext_setquota_args *, struct svc_req *); |
| 122 | extern setquota_rslt * rquotaproc_setactivequota_2(ext_setquota_args *, CLIENT *); |
| 123 | extern setquota_rslt * rquotaproc_setactivequota_2_svc(ext_setquota_args *, struct svc_req *); |
| 124 | extern int rquotaprog_2_freeresult(SVCXPRT *, xdrproc_t, caddr_t); |
| 125 | |
| 126 | /* the xdr functions */ |
| 127 | extern bool_t xdr_sq_dqblk(XDR *, sq_dqblk*); |
| 128 | extern bool_t xdr_getquota_args(XDR *, getquota_args*); |
| 129 | extern bool_t xdr_setquota_args(XDR *, setquota_args*); |
| 130 | extern bool_t xdr_ext_getquota_args(XDR *, ext_getquota_args*); |
| 131 | extern bool_t xdr_ext_setquota_args(XDR *, ext_setquota_args*); |
| 132 | extern bool_t xdr_rquota(XDR *, rquota*); |
| 133 | extern bool_t xdr_gqr_status(XDR *, gqr_status*); |
| 134 | extern bool_t xdr_getquota_rslt(XDR *, getquota_rslt*); |
| 135 | extern bool_t xdr_setquota_rslt(XDR *, setquota_rslt*); |
| 136 | |
| 137 | #ifdef __cplusplus |
| 138 | } |
| 139 | #endif |
| 140 | |
| 141 | #endif /* !_RQUOTA_H_RPCGEN */ |