minix/nbsd_include/sys/ucred.h

28 lines
610 B
C
Raw Normal View History

2011-02-21 14:13:55 +01:00
#ifndef __SYS_UCRED_H
#define __SYS_UCRED_H
struct ucred_old
{
pid_t pid;
short uid;
char gid;
};
2011-02-21 14:13:55 +01:00
struct ucred
{
pid_t pid;
uid_t uid;
gid_t gid;
};
/* Userland's view of credentials. This should not change */
struct uucred {
unsigned short cr_unused; /* not used, compat */
uid_t cr_uid; /* effective user id */
gid_t cr_gid; /* effective group id */
short cr_ngroups; /* number of groups */
gid_t cr_groups[NGROUPS_MAX]; /* groups */
2011-02-21 14:13:55 +01:00
};
#endif