home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C / Applications / Portable Patmos / usr / include / rpcsvc / rquota.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-08  |  983 b   |  53 lines  |  [TEXT/R*ch]

  1. #define RQ_PATHLEN 1024
  2.  
  3. struct getquota_args {
  4.     char *gqa_pathp;
  5.     int gqa_uid;
  6. };
  7. typedef struct getquota_args getquota_args;
  8. bool_t xdr_getquota_args();
  9.  
  10.  
  11. struct rquota {
  12.     int rq_bsize;
  13.     bool_t rq_active;
  14.     u_int rq_bhardlimit;
  15.     u_int rq_bsoftlimit;
  16.     u_int rq_curblocks;
  17.     u_int rq_fhardlimit;
  18.     u_int rq_fsoftlimit;
  19.     u_int rq_curfiles;
  20.     u_int rq_btimeleft;
  21.     u_int rq_ftimeleft;
  22. };
  23. typedef struct rquota rquota;
  24. bool_t xdr_rquota();
  25.  
  26.  
  27. enum gqr_status {
  28.     Q_OK = 1,
  29.     Q_NOQUOTA = 2,
  30.     Q_EPERM = 3,
  31. };
  32. typedef enum gqr_status gqr_status;
  33. bool_t xdr_gqr_status();
  34.  
  35.  
  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. bool_t xdr_getquota_rslt();
  44.  
  45.  
  46. #define RQUOTAPROG ((u_long)100011)
  47. #define RQUOTAVERS ((u_long)1)
  48. #define RQUOTAPROC_GETQUOTA ((u_long)1)
  49. extern getquota_rslt *rquotaproc_getquota_1();
  50. #define RQUOTAPROC_GETACTIVEQUOTA ((u_long)2)
  51. extern getquota_rslt *rquotaproc_getactivequota_1();
  52.  
  53.