home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / PDP-11 / Trees / V7 / usr / include / sys / acct.h next >
Encoding:
C/C++ Source or Header  |  1979-01-10  |  822 b   |  26 lines

  1. /*
  2.  * Accounting structures
  3.  */
  4.  
  5. typedef    unsigned short comp_t;    /* "floating pt": 3 bits base 8 exp, 13 bits fraction */
  6. struct    acct
  7. {
  8.     char    ac_comm[10];        /* Accounting command name */
  9.     comp_t    ac_utime;        /* Accounting user time */
  10.     comp_t    ac_stime;        /* Accounting system time */
  11.     comp_t    ac_etime;        /* Accounting elapsed time */
  12.     time_t    ac_btime;        /* Beginning time */
  13.     short    ac_uid;            /* Accounting user ID */
  14.     short    ac_gid;            /* Accounting group ID */
  15.     short    ac_mem;            /* average memory usage */
  16.     comp_t    ac_io;            /* number of disk IO blocks */
  17.     dev_t    ac_tty;            /* control typewriter */
  18.     char    ac_flag;        /* Accounting flag */
  19. };
  20.  
  21. extern    struct    acct    acctbuf;
  22. extern    struct    inode    *acctp;        /* inode of accounting file */
  23.  
  24. #define    AFORK    01        /* has executed fork, but no exec */
  25. #define    ASU    02        /* used super-user privileges */
  26.