Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/ucred.h
Show First 20 Lines • Show All 55 Lines • ▼ Show 20 Lines | |||||
* | * | ||||
* Unmarked fields are constant after creation. | * Unmarked fields are constant after creation. | ||||
* | * | ||||
* See "Credential management" comment in kern_prot.c for more information. | * See "Credential management" comment in kern_prot.c for more information. | ||||
*/ | */ | ||||
#if defined(_KERNEL) || defined(_WANT_UCRED) | #if defined(_KERNEL) || defined(_WANT_UCRED) | ||||
struct ucred { | struct ucred { | ||||
struct mtx cr_mtx; | struct mtx cr_mtx; | ||||
u_int cr_ref; /* (c) reference count */ | int cr_ref; /* (c) reference count */ | ||||
jrtc27: This was previously unsigned, is signed intended? The summary doesn't make any reference to… | |||||
u_int cr_users; /* (c) proc + thread using this cred */ | u_int cr_users; /* (c) proc + thread using this cred */ | ||||
struct auditinfo_addr cr_audit; /* Audit properties. */ | struct auditinfo_addr cr_audit; /* Audit properties. */ | ||||
#define cr_startcopy cr_uid | #define cr_startcopy cr_uid | ||||
uid_t cr_uid; /* effective user id */ | uid_t cr_uid; /* effective user id */ | ||||
uid_t cr_ruid; /* real user id */ | uid_t cr_ruid; /* real user id */ | ||||
uid_t cr_svuid; /* saved user id */ | uid_t cr_svuid; /* saved user id */ | ||||
int cr_ngroups; /* number of groups */ | int cr_ngroups; /* number of groups */ | ||||
gid_t cr_rgid; /* real group id */ | gid_t cr_rgid; /* real group id */ | ||||
▲ Show 20 Lines • Show All 93 Lines • Show Last 20 Lines |
This was previously unsigned, is signed intended? The summary doesn't make any reference to this change.