new group stuff
authorBill Joy <wnj@ucbvax.Berkeley.EDU>
Tue, 16 Feb 1982 05:28:56 +0000 (21:28 -0800)
committerBill Joy <wnj@ucbvax.Berkeley.EDU>
Tue, 16 Feb 1982 05:28:56 +0000 (21:28 -0800)
SCCS-vsn: sys/sys/param.h 4.15
SCCS-vsn: sys/sys/user.h 4.10

usr/src/sys/sys/param.h
usr/src/sys/sys/user.h

index 7000da8..657ff91 100644 (file)
@@ -1,4 +1,4 @@
-/*     param.h 4.14    81/11/26        */
+/*     param.h 4.15    82/02/15        */
 
 /*
  * Tunable variables which do not usually vary per system.
 
 /*
  * Tunable variables which do not usually vary per system.
@@ -71,6 +71,7 @@
 #define        ROOTINO ((ino_t)2)      /* i number of all roots */
 #define        SUPERB  ((daddr_t)1)    /* block number of the super block */
 #define        DIRSIZ  14              /* max characters per directory */
 #define        ROOTINO ((ino_t)2)      /* i number of all roots */
 #define        SUPERB  ((daddr_t)1)    /* block number of the super block */
 #define        DIRSIZ  14              /* max characters per directory */
+#define        NGRPS   256             /* max number groups */
 
 /*
  * Clustering of hardware pages on machines with ridiculously small
 
 /*
  * Clustering of hardware pages on machines with ridiculously small
index ac35ada..ae58c31 100644 (file)
@@ -1,4 +1,4 @@
-/*     user.h  4.9     81/11/29        */
+/*     user.h  4.10    82/02/15        */
 
 #ifdef KERNEL
 #include "../h/pcb.h"
 
 #ifdef KERNEL
 #include "../h/pcb.h"
@@ -35,6 +35,8 @@ struct        user
        char    u_error;                /* return error code */
        short   u_uid;                  /* effective user id */
        short   u_gid;                  /* effective group id */
        char    u_error;                /* return error code */
        short   u_uid;                  /* effective user id */
        short   u_gid;                  /* effective group id */
+       int     u_grps[NGRPS/(sizeof(int)*8)];
+                                       /* group bit array */
        short   u_ruid;                 /* real user id */
        short   u_rgid;                 /* real group id */
        struct  proc *u_procp;          /* pointer to proc structure */
        short   u_ruid;                 /* real user id */
        short   u_rgid;                 /* real group id */
        struct  proc *u_procp;          /* pointer to proc structure */