rquota.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. /*
  2. * Please do not edit this file.
  3. * It was generated using rpcgen.
  4. */
  5. #ifndef _RQUOTA_H_RPCGEN
  6. #define _RQUOTA_H_RPCGEN
  7. #include <rpc/rpc.h>
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11. #define RQ_PATHLEN 1024
  12. struct getquota_args {
  13. char *gqa_pathp;
  14. int gqa_uid;
  15. };
  16. typedef struct getquota_args getquota_args;
  17. struct rquota {
  18. int rq_bsize;
  19. bool_t rq_active;
  20. u_int rq_bhardlimit;
  21. u_int rq_bsoftlimit;
  22. u_int rq_curblocks;
  23. u_int rq_fhardlimit;
  24. u_int rq_fsoftlimit;
  25. u_int rq_curfiles;
  26. u_int rq_btimeleft;
  27. u_int rq_ftimeleft;
  28. };
  29. typedef struct rquota rquota;
  30. enum gqr_status {
  31. Q_OK = 1,
  32. Q_NOQUOTA = 2,
  33. Q_EPERM = 3,
  34. };
  35. typedef enum gqr_status gqr_status;
  36. struct getquota_rslt {
  37. gqr_status status;
  38. union {
  39. rquota gqr_rquota;
  40. } getquota_rslt_u;
  41. };
  42. typedef struct getquota_rslt getquota_rslt;
  43. #define RQUOTAPROG 100011
  44. #define RQUOTAVERS 1
  45. #if defined(__STDC__) || defined(__cplusplus)
  46. #define RQUOTAPROC_GETQUOTA 1
  47. extern getquota_rslt * rquotaproc_getquota_1(getquota_args *, CLIENT *);
  48. extern getquota_rslt * rquotaproc_getquota_1_svc(getquota_args *, struct svc_req *);
  49. #define RQUOTAPROC_GETACTIVEQUOTA 2
  50. extern getquota_rslt * rquotaproc_getactivequota_1(getquota_args *, CLIENT *);
  51. extern getquota_rslt * rquotaproc_getactivequota_1_svc(getquota_args *, struct svc_req *);
  52. extern int rquotaprog_1_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
  53. #else /* K&R C */
  54. #define RQUOTAPROC_GETQUOTA 1
  55. extern getquota_rslt * rquotaproc_getquota_1();
  56. extern getquota_rslt * rquotaproc_getquota_1_svc();
  57. #define RQUOTAPROC_GETACTIVEQUOTA 2
  58. extern getquota_rslt * rquotaproc_getactivequota_1();
  59. extern getquota_rslt * rquotaproc_getactivequota_1_svc();
  60. extern int rquotaprog_1_freeresult ();
  61. #endif /* K&R C */
  62. /* the xdr functions */
  63. #if defined(__STDC__) || defined(__cplusplus)
  64. extern bool_t xdr_getquota_args (XDR *, getquota_args*);
  65. extern bool_t xdr_rquota (XDR *, rquota*);
  66. extern bool_t xdr_gqr_status (XDR *, gqr_status*);
  67. extern bool_t xdr_getquota_rslt (XDR *, getquota_rslt*);
  68. #else /* K&R C */
  69. extern bool_t xdr_getquota_args ();
  70. extern bool_t xdr_rquota ();
  71. extern bool_t xdr_gqr_status ();
  72. extern bool_t xdr_getquota_rslt ();
  73. #endif /* K&R C */
  74. #ifdef __cplusplus
  75. }
  76. #endif
  77. #endif /* !_RQUOTA_H_RPCGEN */