home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / utilities / utilss / sockets / include / sys / h / acct next >
Encoding:
Text File  |  1995-01-11  |  1.8 KB  |  65 lines

  1. /*
  2.  * $Header: /ax/networking:include/sys/acct.h:networking  1.1  $
  3.  * $Source: /ax/networking:include/sys/acct.h: $
  4.  *
  5.  * Copyright (c) 1988 Acorn Computers Ltd., Cambridge, England
  6.  *
  7.  * $Log:    acct.h,v $
  8.  * Revision 1.1  95/01/11  10:18:54  kwelton
  9.  * Initial revision
  10.  * 
  11.  * Revision 1.3  88/06/17  20:18:13  beta
  12.  * Acorn Unix initial beta version
  13.  * 
  14.  */
  15. /* @(#)acct.h    1.3 87/05/15 3.2/4.3NFSSRC */
  16. /*
  17.  * Copyright (c) 1982, 1986 Regents of the University of California.
  18.  * All rights reserved.  The Berkeley software License Agreement
  19.  * specifies the terms and conditions for redistribution.
  20.  *
  21.  *    @(#)acct.h    7.1 (Berkeley) 6/4/86
  22.  */
  23.  
  24. /*
  25.  * Accounting structures;
  26.  * these use a comp_t type which is a 3 bits base 8
  27.  * exponent, 13 bit fraction ``floating point'' number.
  28.  * Units are 1/AHZ seconds.
  29.  */
  30. typedef    u_short comp_t;
  31.  
  32. struct    acct
  33. {
  34.     char    ac_comm[10];        /* Accounting command name */
  35.     comp_t    ac_utime;        /* Accounting user time */
  36.     comp_t    ac_stime;        /* Accounting system time */
  37.     comp_t    ac_etime;        /* Accounting elapsed time */
  38.     time_t    ac_btime;        /* Beginning time */
  39.     uid_t    ac_uid;            /* Accounting user ID */
  40.     gid_t    ac_gid;            /* Accounting group ID */
  41.     short    ac_mem;            /* average memory usage */
  42.     comp_t    ac_io;            /* number of disk IO blocks */
  43.     dev_t    ac_tty;            /* control typewriter */
  44.     char    ac_flag;        /* Accounting flag */
  45. };
  46.  
  47. #define    AFORK    0001        /* has executed fork, but no exec */
  48. #define    ASU    0002        /* used super-user privileges */
  49. #define    ACOMPAT    0004        /* used compatibility mode */
  50. #define    ACORE    0010        /* dumped core */
  51. #define    AXSIG    0020        /* killed by a signal */
  52.  
  53. /*
  54.  * 1/AHZ is the granularity of the data encoded in the various
  55.  * comp_t fields.  This is not necessarily equal to hz.
  56.  */
  57. #define AHZ 64
  58.  
  59. #ifdef KERNEL
  60. struct    acct    acctbuf;
  61. struct    vnode    *acctp;
  62. #endif
  63.  
  64. /* EOF acct.h */
  65.