home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0010 - 0019 / ibm0010-0019 / ibm0010.tar / ibm0010 / UNIX3862.ZIP / U386-06.ZIP / U386-6.TD0 / usr / include / sys / acct.h next >
Encoding:
C/C++ Source or Header  |  1988-06-26  |  1.2 KB  |  41 lines

  1. /*    Copyright (c) 1984, 1986, 1987, 1988 AT&T    */
  2. /*      All Rights Reserved      */
  3.  
  4. /*    THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T    */
  5. /*    The copyright notice above does not evidence any       */
  6. /*    actual or intended publication of such source code.    */
  7.  
  8.  
  9. #ident    "@(#)head.sys:acct.h    1.3"
  10.  
  11. /*
  12.  * Accounting structures
  13.  */
  14.  
  15. typedef    ushort comp_t;        /* "floating point" */
  16.         /* 13-bit fraction, 3-bit exponent  */
  17.  
  18. struct    acct
  19. {
  20.     char    ac_flag;        /* Accounting flag */
  21.     char    ac_stat;        /* Exit status */
  22.     ushort    ac_uid;            /* Accounting user ID */
  23.     ushort    ac_gid;            /* Accounting group ID */
  24.     dev_t    ac_tty;            /* control typewriter */
  25.     time_t    ac_btime;        /* Beginning time */
  26.     comp_t    ac_utime;        /* acctng user time in clock ticks */
  27.     comp_t    ac_stime;        /* acctng system time in clock ticks */
  28.     comp_t    ac_etime;        /* acctng elapsed time in clock ticks */
  29.     comp_t    ac_mem;            /* memory usage */
  30.     comp_t    ac_io;            /* chars transferred */
  31.     comp_t    ac_rw;            /* blocks read or written */
  32.     char    ac_comm[8];        /* command name */
  33. };    
  34.  
  35. extern    struct    acct    acctbuf;
  36. extern    struct    inode    *acctp;        /* inode of accounting file */
  37.  
  38. #define    AFORK    01        /* has executed fork, but no exec */
  39. #define    ASU    02        /* used super-user privileges */
  40. #define    ACCTF    0300        /* record type: 00 = acct */
  41.