home *** CD-ROM | disk | FTP | other *** search
/ Jason Aller Floppy Collection / 202.img / SCO386N2.TD0 / usr / include / sys / acct.h < prev    next >
Encoding:
C/C++ Source or Header  |  1988-05-18  |  1.5 KB  |  51 lines

  1.  
  2. /*
  3.  *    @(#) acct.h 2.1 88/05/18 
  4.  *
  5.  *    Copyright (C) The Santa Cruz Operation, 1984, 1985, 1986, 1987.
  6.  *    Copyright (C) Microsoft Corporation, 1984, 1985, 1986, 1987.
  7.  *    This Module contains Proprietary Information of
  8.  *    The Santa Cruz Operation, Microsoft Corporation
  9.  *    and AT&T, and should be treated as Confidential.
  10.  */
  11.  
  12. /*
  13.  * THIS FILE CONTAINS CODE WHICH IS DESIGNED TO BE
  14.  * PORTABLE BETWEEN DIFFERENT MACHINE ARCHITECTURES
  15.  * AND CONFIGURATIONS. IT SHOULD NOT REQUIRE ANY
  16.  * MODIFICATIONS WHEN ADAPTING XENIX TO NEW HARDWARE.
  17.  */
  18.  
  19.  
  20.  
  21. /*
  22.  * Accounting structures
  23.  */
  24.  
  25. typedef    ushort comp_t;        /* "floating point" */
  26.         /* 13-bit fraction, 3-bit exponent  */
  27.  
  28. struct    acct
  29. {
  30.     char    ac_flag;        /* Accounting flag */
  31.     char    ac_stat;        /* Exit status */
  32.     ushort    ac_uid;            /* Accounting user ID */
  33.     ushort    ac_gid;            /* Accounting group ID */
  34.     dev_t    ac_tty;            /* control typewriter */
  35.     time_t    ac_btime;        /* Beginning time */
  36.     comp_t    ac_utime;        /* acctng user time in clock ticks */
  37.     comp_t    ac_stime;        /* acctng system time in clock ticks */
  38.     comp_t    ac_etime;        /* acctng elapsed time in clock ticks */
  39.     comp_t    ac_mem;            /* memory usage */
  40.     comp_t    ac_io;            /* chars transferred */
  41.     comp_t    ac_rw;            /* blocks read or written */
  42.     char    ac_comm[8];        /* command name */
  43. };    
  44.  
  45. extern    struct    acct    acctbuf;
  46. extern    inodep_t    acctp;        /* inode of accounting file */
  47.  
  48. #define    AFORK    01        /* has executed fork, but no exec */
  49. #define    ASU    02        /* used super-user privileges */
  50. #define    ACCTF    0300        /* record type: 00 = acct */
  51.