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 getquota_args { 18 char *gqa_pathp; 19 int32_t gqa_uid; 20 }; 21 typedef struct getquota_args getquota_args; 22 23 struct rquota { 24 int32_t rq_bsize; 25 bool_t rq_active; 26 uint32_t rq_bhardlimit; 27 uint32_t rq_bsoftlimit; 28 uint32_t rq_curblocks; 29 uint32_t rq_fhardlimit; 30 uint32_t rq_fsoftlimit; 31 uint32_t rq_curfiles; 32 uint32_t rq_btimeleft; 33 uint32_t rq_ftimeleft; 34 }; 35 typedef struct rquota rquota; 36 37 enum gqr_status { 38 Q_OK = 1, 39 Q_NOQUOTA = 2, 40 Q_EPERM = 3 41 }; 42 typedef enum gqr_status gqr_status; 43 44 struct getquota_rslt { 45 gqr_status status; 46 union { 47 rquota gqr_rquota; 48 } getquota_rslt_u; 49 }; 50 typedef struct getquota_rslt getquota_rslt; 51 52 #define RQUOTAPROG 100011 53 #define RQUOTAVERS 1 54 55 #if defined(__STDC__) || defined(__cplusplus) 56 #define RQUOTAPROC_GETQUOTA 1 57 extern getquota_rslt * rquotaproc_getquota_1(getquota_args *, CLIENT *); 58 extern getquota_rslt * rquotaproc_getquota_1_svc(getquota_args *, struct svc_req *); 59 #define RQUOTAPROC_GETACTIVEQUOTA 2 60 extern getquota_rslt * rquotaproc_getactivequota_1(getquota_args *, CLIENT *); 61 extern getquota_rslt * rquotaproc_getactivequota_1_svc(getquota_args *, struct svc_req *); 62 extern int rquotaprog_1_freeresult(SVCXPRT *, xdrproc_t, caddr_t); 63 64 #else /* K&R C */ 65 #define RQUOTAPROC_GETQUOTA 1 66 extern getquota_rslt * rquotaproc_getquota_1(); 67 extern getquota_rslt * rquotaproc_getquota_1_svc(); 68 #define RQUOTAPROC_GETACTIVEQUOTA 2 69 extern getquota_rslt * rquotaproc_getactivequota_1(); 70 extern getquota_rslt * rquotaproc_getactivequota_1_svc(); 71 extern int rquotaprog_1_freeresult(); 72 #endif /* K&R C */ 73 74 /* the xdr functions */ 75 76 #if defined(__STDC__) || defined(__cplusplus) 77 extern bool_t xdr_getquota_args(XDR *, getquota_args*); 78 extern bool_t xdr_rquota(XDR *, rquota*); 79 extern bool_t xdr_gqr_status(XDR *, gqr_status*); 80 extern bool_t xdr_getquota_rslt(XDR *, getquota_rslt*); 81 82 #else /* K&R C */ 83 extern bool_t xdr_getquota_args(); 84 extern bool_t xdr_rquota(); 85 extern bool_t xdr_gqr_status(); 86 extern bool_t xdr_getquota_rslt(); 87 88 #endif /* K&R C */ 89 90 #ifdef __cplusplus 91 } 92 #endif 93 94 #endif /* !_RQUOTA_H_RPCGEN */ 95