diff options
author | bde <bde@FreeBSD.org> | 1999-03-05 11:25:31 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1999-03-05 11:25:31 +0000 |
commit | 6d203414cae29b2e8d67d7d6a63f671228bde7c5 (patch) | |
tree | 9566e4c9255283d83f654a668db829d441bd204e | |
parent | 16c496dd85fe19bd73e3eccaaa9a24259f36efa9 (diff) | |
download | FreeBSD-src-6d203414cae29b2e8d67d7d6a63f671228bde7c5.zip FreeBSD-src-6d203414cae29b2e8d67d7d6a63f671228bde7c5.tar.gz |
Moved kernel declarations inside the KERNEL ifdef, and removed
include of <sys/queue.h> in the !KERNEL case. The prerequisites
for <ufs/ufs/quota.h> were broken in Lite2 by converting some of
the kernel declarations to use queue macros without including
<sys/queue.h>. <sys/queue.h> was included in applications in
/usr/src instead. We polluted this file instead of merging the
changes in the applications.
Include <sys/queue.h> in the KERNEL case, and forward-declare all
structs that are used in prototypes, so that this file is almost
self-sufficient even in the kernel.
Obtained from: mostly from NetBSD
-rw-r--r-- | sys/ufs/ufs/quota.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/ufs/ufs/quota.h b/sys/ufs/ufs/quota.h index 1944e40..e5ce29b 100644 --- a/sys/ufs/ufs/quota.h +++ b/sys/ufs/ufs/quota.h @@ -34,16 +34,12 @@ * SUCH DAMAGE. * * @(#)quota.h 8.3 (Berkeley) 8/19/94 - * $Id: quota.h,v 1.11 1997/07/13 15:43:54 bde Exp $ + * $Id: quota.h,v 1.12 1999/03/05 09:28:33 bde Exp $ */ #ifndef _UFS_UFS_QUOTA_H_ #define _UFS_UFS_QUOTA_H_ -#ifndef KERNEL -#include <sys/queue.h> -#endif - /* * Definitions for disk quotas imposed on the average user * (big brother finally hits UNIX). @@ -112,6 +108,10 @@ struct dqblk { time_t dqb_itime; /* time limit for excessive files */ }; +#ifdef KERNEL + +#include <sys/queue.h> + /* * The following structure records disk usage for a user or group on a * filesystem. There is one allocated for each quota that exists on any @@ -172,10 +172,10 @@ struct dquot { #define DQREF(dq) (dq)->dq_cnt++ #endif -#ifdef KERNEL - struct inode; struct mount; +struct proc; +struct ucred; struct vnode; int chkdq __P((struct inode *, long, struct ucred *, int)); |