1/* 2 * Copyright (c) 2007 Apple Inc. All rights reserved. 3 * 4 * @APPLE_LICENSE_HEADER_START@ 5 * 6 * This file contains Original Code and/or Modifications of Original Code 7 * as defined in and that are subject to the Apple Public Source License 8 * Version 2.0 (the 'License'). You may not use this file except in 9 * compliance with the License. Please obtain a copy of the License at 10 * http://www.opensource.apple.com/apsl/ and read it before using this 11 * file. 12 * 13 * The Original Code and all software distributed under the License are 14 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 18 * Please see the License for the specific language governing rights and 19 * limitations under the License. 20 * 21 * @APPLE_LICENSE_HEADER_END@ 22 */ 23/* 24 * Please do not edit this file. 25 * It was generated using rpcgen. 26 */ 27 28#ifndef _RQUOTA_H_RPCGEN 29#define _RQUOTA_H_RPCGEN 30 31#define RPCGEN_VERSION 199506 32 33#include <oncrpc/rpc.h> 34 35#define RQ_PATHLEN 1024 36 37struct getquota_args { 38 char *gqa_pathp; 39 int gqa_uid; 40}; 41typedef struct getquota_args getquota_args; 42#ifdef __cplusplus 43extern "C" bool_t xdr_getquota_args(XDR *, getquota_args*); 44#elif __STDC__ 45extern bool_t xdr_getquota_args(XDR *, getquota_args*); 46#else /* Old Style C */ 47bool_t xdr_getquota_args(); 48#endif /* Old Style C */ 49 50#define RQUOTA_MAXQUOTAS 0x02 51#define RQUOTA_USRQUOTA 0x00 52#define RQUOTA_GRPQUOTA 0x01 53 54struct ext_getquota_args { 55 char *gqa_pathp; 56 int gqa_type; 57 int gqa_id; 58}; 59typedef struct ext_getquota_args ext_getquota_args; 60#ifdef __cplusplus 61extern "C" bool_t xdr_ext_getquota_args(XDR *, ext_getquota_args*); 62#elif __STDC__ 63extern bool_t xdr_ext_getquota_args(XDR *, ext_getquota_args*); 64#else /* Old Style C */ 65bool_t xdr_ext_getquota_args(); 66#endif /* Old Style C */ 67 68 69struct rquota { 70 int rq_bsize; 71 bool_t rq_active; 72 u_int rq_bhardlimit; 73 u_int rq_bsoftlimit; 74 u_int rq_curblocks; 75 u_int rq_fhardlimit; 76 u_int rq_fsoftlimit; 77 u_int rq_curfiles; 78 u_int rq_btimeleft; 79 u_int rq_ftimeleft; 80}; 81typedef struct rquota rquota; 82#ifdef __cplusplus 83extern "C" bool_t xdr_rquota(XDR *, rquota*); 84#elif __STDC__ 85extern bool_t xdr_rquota(XDR *, rquota*); 86#else /* Old Style C */ 87bool_t xdr_rquota(); 88#endif /* Old Style C */ 89 90 91enum gqr_status { 92 Q_OK = 1, 93 Q_NOQUOTA = 2, 94 Q_EPERM = 3 95}; 96typedef enum gqr_status gqr_status; 97#ifdef __cplusplus 98extern "C" bool_t xdr_gqr_status(XDR *, gqr_status*); 99#elif __STDC__ 100extern bool_t xdr_gqr_status(XDR *, gqr_status*); 101#else /* Old Style C */ 102bool_t xdr_gqr_status(); 103#endif /* Old Style C */ 104 105 106struct getquota_rslt { 107 gqr_status status; 108 union { 109 rquota gqr_rquota; 110 } getquota_rslt_u; 111}; 112typedef struct getquota_rslt getquota_rslt; 113#ifdef __cplusplus 114extern "C" bool_t xdr_getquota_rslt(XDR *, getquota_rslt*); 115#elif __STDC__ 116extern bool_t xdr_getquota_rslt(XDR *, getquota_rslt*); 117#else /* Old Style C */ 118bool_t xdr_getquota_rslt(); 119#endif /* Old Style C */ 120 121 122#define RQUOTAPROG ((rpc_uint)100011) 123#define RQUOTAVERS ((rpc_uint)1) 124 125#ifdef __cplusplus 126#define RQUOTAPROC_GETQUOTA ((rpc_uint)1) 127extern "C" getquota_rslt * rquotaproc_getquota_1(getquota_args *, CLIENT *); 128extern "C" getquota_rslt * rquotaproc_getquota_1_svc(getquota_args *, struct svc_req *); 129#define RQUOTAPROC_GETACTIVEQUOTA ((rpc_uint)2) 130extern "C" getquota_rslt * rquotaproc_getactivequota_1(getquota_args *, CLIENT *); 131extern "C" getquota_rslt * rquotaproc_getactivequota_1_svc(getquota_args *, struct svc_req *); 132 133#elif __STDC__ 134#define RQUOTAPROC_GETQUOTA ((rpc_uint)1) 135extern getquota_rslt * rquotaproc_getquota_1(getquota_args *, CLIENT *); 136extern getquota_rslt * rquotaproc_getquota_1_svc(getquota_args *, struct svc_req *); 137#define RQUOTAPROC_GETACTIVEQUOTA ((rpc_uint)2) 138extern getquota_rslt * rquotaproc_getactivequota_1(getquota_args *, CLIENT *); 139extern getquota_rslt * rquotaproc_getactivequota_1_svc(getquota_args *, struct svc_req *); 140 141#else /* Old Style C */ 142#define RQUOTAPROC_GETQUOTA ((rpc_uint)1) 143extern getquota_rslt * rquotaproc_getquota_1(); 144extern getquota_rslt * rquotaproc_getquota_1_svc(); 145#define RQUOTAPROC_GETACTIVEQUOTA ((rpc_uint)2) 146extern getquota_rslt * rquotaproc_getactivequota_1(); 147extern getquota_rslt * rquotaproc_getactivequota_1_svc(); 148#endif /* Old Style C */ 149#define EXT_RQUOTAVERS ((rpc_uint)2) 150 151#ifdef __cplusplus 152extern "C" getquota_rslt * rquotaproc_getquota_2(ext_getquota_args *, CLIENT *); 153extern "C" getquota_rslt * rquotaproc_getquota_2_svc(ext_getquota_args *, struct svc_req *); 154extern "C" getquota_rslt * rquotaproc_getactivequota_2(ext_getquota_args *, CLIENT *); 155extern "C" getquota_rslt * rquotaproc_getactivequota_2_svc(ext_getquota_args *, struct svc_req *); 156 157#elif __STDC__ 158extern getquota_rslt * rquotaproc_getquota_2(ext_getquota_args *, CLIENT *); 159extern getquota_rslt * rquotaproc_getquota_2_svc(ext_getquota_args *, struct svc_req *); 160extern getquota_rslt * rquotaproc_getactivequota_2(ext_getquota_args *, CLIENT *); 161extern getquota_rslt * rquotaproc_getactivequota_2_svc(ext_getquota_args *, struct svc_req *); 162 163#else /* Old Style C */ 164extern getquota_rslt * rquotaproc_getquota_2(); 165extern getquota_rslt * rquotaproc_getquota_2_svc(); 166extern getquota_rslt * rquotaproc_getactivequota_2(); 167extern getquota_rslt * rquotaproc_getactivequota_2_svc(); 168#endif /* Old Style C */ 169 170#endif /* !_RQUOTA_H_RPCGEN */ 171