Merge in Lite2: change manifest constant values for NOCRED and FSCRED

stylistic changes to function prototypes
Reviewed by:	davidg & bde
This commit is contained in:
Jeffrey Hsu 1996-03-11 02:11:48 +00:00
parent 886556be00
commit 32a8159d72
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=14488

View File

@ -30,8 +30,8 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* @(#)ucred.h 8.2 (Berkeley) 1/4/94
* $Id: ucred.h,v 1.4 1994/10/08 22:23:00 phk Exp $
* @(#)ucred.h 8.4 (Berkeley) 1/9/95
* $Id: ucred.h,v 1.6 1996/02/24 07:53:38 hsu Exp $
*/
#ifndef _SYS_UCRED_H_
@ -47,18 +47,18 @@ struct ucred {
gid_t cr_groups[NGROUPS]; /* groups */
};
#define cr_gid cr_groups[0]
#define NOCRED ((struct ucred *)-1) /* no credential available */
#define FSCRED ((struct ucred *)-2) /* filesystem credential */
#define NOCRED ((struct ucred *)0) /* no credential available */
#define FSCRED ((struct ucred *)-1) /* filesystem credential */
#ifdef KERNEL
#define crhold(cr) (cr)->cr_ref++
struct ucred *crget(void);
struct ucred *crcopy(struct ucred *);
struct ucred *crdup(struct ucred *);
extern void crfree(struct ucred *);
extern int suser(struct ucred *, u_short *);
int groupmember __P((gid_t, struct ucred *));
struct ucred *crcopy __P((struct ucred *cr));
struct ucred *crdup __P((struct ucred *cr));
void crfree __P((struct ucred *cr));
struct ucred *crget __P((void));
int suser __P((struct ucred *cred, u_short *acflag));
int groupmember __P((gid_t gid, struct ucred *cred));
#endif /* KERNEL */
#endif /* !_SYS_UCRED_H_ */