X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/8f6c56a50524aa785f7e596d52dddfb331e18961..39236c6e673c41db228275375ab7fdb0f837b292:/bsd/hfs/hfs_quota.h?ds=inline diff --git a/bsd/hfs/hfs_quota.h b/bsd/hfs/hfs_quota.h index 1375078a4..a57dbdff3 100644 --- a/bsd/hfs/hfs_quota.h +++ b/bsd/hfs/hfs_quota.h @@ -78,20 +78,26 @@ struct cnode; struct mount; struct proc; +#ifndef _KAUTH_CRED_T +#define _KAUTH_CRED_T struct ucred; +typedef struct ucred *kauth_cred_t; +#endif /* !_KAUTH_CRED_T */ __BEGIN_DECLS -int hfs_chkdq(struct cnode *, int64_t, struct ucred *, int); -int hfs_chkdqchg(struct cnode *, int64_t, struct ucred *, int); -int hfs_chkiq(struct cnode *, long, struct ucred *, int); -int hfs_chkiqchg(struct cnode *, long, struct ucred *, int); +int hfs_chkdq(struct cnode *, int64_t, kauth_cred_t, int); +int hfs_chkdqchg(struct cnode *, int64_t, kauth_cred_t, int); +int hfs_chkiq(struct cnode *, int32_t, kauth_cred_t, int); +int hfs_chkiqchg(struct cnode *, int32_t, kauth_cred_t, int); int hfs_getinoquota(struct cnode *); -int hfs_getquota(struct mount *, u_long, int, caddr_t); +int hfs_getquota(struct mount *, u_int32_t, int, caddr_t); int hfs_qsync(struct mount *mp); int hfs_quotaoff(struct proc *, struct mount *, int); int hfs_quotaon(struct proc *, struct mount *, int, caddr_t); int hfs_quotastat(struct mount *, int, caddr_t); -int hfs_setquota(struct mount *, u_long, int, caddr_t); -int hfs_setuse(struct mount *, u_long, int, caddr_t); +int hfs_setquota(struct mount *, u_int32_t, int, caddr_t); +int hfs_setuse(struct mount *, u_int32_t, int, caddr_t); +int hfs_isiqchg_allowed(struct dquot *, struct hfsmount *, int32_t, kauth_cred_t, int, uid_t); +int hfs_quotacheck (struct hfsmount *, int , uid_t, gid_t, kauth_cred_t); __END_DECLS #if DIAGNOSTIC