Increase gid_t and uid_t to 32 bits

Increase gid_t and uid_t to 32 bits and provide backwards compatibility
where needed.
This commit is contained in:
Thomas Veerman
2011-09-05 13:56:14 +00:00
parent fde9a258d0
commit 8a266a478e
36 changed files with 339 additions and 234 deletions

View File

@@ -51,7 +51,7 @@ struct minix_prev_stat {
ino_t st_ino; /* i-node number */
mode_t st_mode; /* file mode, protection bits, etc. */
nlink_t st_nlink; /* # links; */
uid_t st_uid; /* uid of the file's owner */
short st_uid; /* uid of the file's owner */
short int st_gid; /* gid; TEMPORARY HACK: should be gid_t */
short st_rdev;
off_t st_size; /* file size */

View File

@@ -1,11 +1,18 @@
#ifndef __SYS_UCRED_H
#define __SYS_UCRED_H
struct ucred
struct ucred_old
{
pid_t pid;
uid_t uid;
gid_t gid;
short uid;
char gid;
};
struct ucred
{
pid_t pid;
uid_t uid;
gid_t gid;
};
#endif