1: /*
   2:  * Accounting structures;
   3:  * these use a comp_t type which is a 3 bits base 8
   4:  * exponent, 13 bit fraction ``floating point'' number.
   5:  */
   6: 
   7: struct  acct
   8: {
   9:     char    ac_comm[10];        /* Accounting command name */
  10:     comp_t  ac_utime;       /* Accounting user time */
  11:     comp_t  ac_stime;       /* Accounting system time */
  12:     comp_t  ac_etime;       /* Accounting elapsed time */
  13:     time_t  ac_btime;       /* Beginning time */
  14:     short   ac_uid;         /* Accounting user ID */
  15:     short   ac_gid;         /* Accounting group ID */
  16:     short   ac_mem;         /* average memory usage */
  17:     comp_t  ac_io;          /* number of disk IO blocks */
  18:     dev_t   ac_tty;         /* control typewriter */
  19:     char    ac_flag;        /* Accounting flag */
  20: #ifdef  UCB_LOGIN
  21:     char    ac_crn[4];      /* Accounting charge number */
  22:     short   ac_magic;       /* Magic number for synchronization */
  23: #endif
  24: };
  25: 
  26: #if defined(KERNEL) && defined(ACCT)
  27: extern  struct  acct    acctbuf;
  28: extern  struct  inode   *acctp;     /* inode of accounting file */
  29: #endif
  30: 
  31: #define AFORK   01          /* has executed fork, but no exec */
  32: #define ASU 02          /* used super-user privileges */
  33: 
  34: #ifdef  UCB_SUBM
  35: #define ASUBM   04          /* submitted process */
  36: #endif
  37: 
  38: #ifdef  UCB_LOGIN
  39: #define AMAGIC  052525          /* magic number */
  40: #endif

Defined struct's

acct defined in line 7; used 14 times

Defined macros

AFORK defined in line 31; used 3 times
AMAGIC defined in line 39; used 1 times
ASU defined in line 32; used 1 times
ASUBM defined in line 35; used 1 times

Usage of this include

Last modified: 1983-09-05
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 816
Valid CSS Valid XHTML 1.0 Strict