u_XXX -> u_logname (for set/get logname)
authorKevin Fall <kfall@ucbvax.Berkeley.EDU>
Tue, 2 May 1989 14:17:27 +0000 (06:17 -0800)
committerKevin Fall <kfall@ucbvax.Berkeley.EDU>
Tue, 2 May 1989 14:17:27 +0000 (06:17 -0800)
SCCS-vsn: sys/sys/user.h 7.4

usr/src/sys/sys/user.h

index ba57cb3..c4646ce 100644 (file)
@@ -3,7 +3,7 @@
  * All rights reserved.  The Berkeley software License Agreement
  * specifies the terms and conditions for redistribution.
  *
  * All rights reserved.  The Berkeley software License Agreement
  * specifies the terms and conditions for redistribution.
  *
- *     @(#)user.h      7.3 (Berkeley) %G%
+ *     @(#)user.h      7.4 (Berkeley) %G%
  */
 
 #ifdef KERNEL
  */
 
 #ifdef KERNEL
@@ -26,6 +26,7 @@
  */
  
 #define        MAXCOMLEN       16              /* <= MAXNAMLEN, >= sizeof(ac_comm) */
  */
  
 #define        MAXCOMLEN       16              /* <= MAXNAMLEN, >= sizeof(ac_comm) */
+#define        MAXLOGNAME      12              /* >= UT_NAMESIZE */
  
 struct user {
        struct  pcb u_pcb;
  
 struct user {
        struct  pcb u_pcb;
@@ -97,7 +98,7 @@ struct        user {
        struct  rusage u_ru;            /* stats for this proc */
        struct  rusage u_cru;           /* sum of stats for reaped children */
        struct  itimerval u_timer[3];
        struct  rusage u_ru;            /* stats for this proc */
        struct  rusage u_cru;           /* sum of stats for reaped children */
        struct  itimerval u_timer[3];
-       int     u_XXX[3];
+       char    u_logname[MAXLOGNAME];  /* login name, if available */
        struct  timeval u_start;
        short   u_acflag;
 
        struct  timeval u_start;
        short   u_acflag;