summaryrefslogtreecommitdiffstats
path: root/sys/sys/ucred.h
diff options
context:
space:
mode:
authordd <dd@FreeBSD.org>2002-04-07 03:59:31 +0000
committerdd <dd@FreeBSD.org>2002-04-07 03:59:31 +0000
commit4a1195d2b7fd98ce412de02209afcb89723ac260 (patch)
treed8f4ea8997c6c5ba0c18fa3f720263279a9a4051 /sys/sys/ucred.h
parent30621dc30cdefd5ef281ce98aeafae6275bbfa21 (diff)
downloadFreeBSD-src-4a1195d2b7fd98ce412de02209afcb89723ac260.zip
FreeBSD-src-4a1195d2b7fd98ce412de02209afcb89723ac260.tar.gz
Minor style cleanup. Remove unneeded includes, and correct or add
some comments. Reviewed by: bde
Diffstat (limited to 'sys/sys/ucred.h')
-rw-r--r--sys/sys/ucred.h15
1 files changed, 6 insertions, 9 deletions
diff --git a/sys/sys/ucred.h b/sys/sys/ucred.h
index 7493a65..bb2cd5b 100644
--- a/sys/sys/ucred.h
+++ b/sys/sys/ucred.h
@@ -37,10 +37,6 @@
#ifndef _SYS_UCRED_H_
#define _SYS_UCRED_H_
-#include <sys/queue.h>
-#include <sys/_lock.h>
-#include <sys/_mutex.h>
-
/*
* Credentials.
*
@@ -61,16 +57,13 @@ struct ucred {
struct uidinfo *cr_ruidinfo; /* per ruid resource consumption */
struct prison *cr_prison; /* jail(4) */
#define cr_endcopy cr_mtxp
- struct mtx *cr_mtxp; /* protect refcount */
+ struct mtx *cr_mtxp; /* protect refcount */
};
-#define cr_gid cr_groups[0]
#define NOCRED ((struct ucred *)0) /* no credential available */
#define FSCRED ((struct ucred *)-1) /* filesystem credential */
/*
- * This is the external representation of struct ucred, based upon the
- * size of a 4.2-RELEASE struct ucred. There will probably never be
- * any need to change the size of this or layout of its used fields.
+ * This is the external representation of struct ucred.
*/
struct xucred {
u_int cr_version; /* structure layout version */
@@ -81,7 +74,11 @@ struct xucred {
};
#define XUCRED_VERSION 0
+/* This can be used for both ucred and xucred structures. */
+#define cr_gid cr_groups[0]
+
#ifdef _KERNEL
+struct thread;
#ifdef DIAGNOSTIC
void cred_free_thread(struct thread *td);
OpenPOWER on IntegriCloud