1: /*
   2:  * Copyright (c) 1982, 1986 Regents of the University of California.
   3:  * All rights reserved.  The Berkeley software License Agreement
   4:  * specifies the terms and conditions for redistribution.
   5:  *
   6:  *	@(#)acct.h	2.2	(2.11BSD) 1999/2/19
   7:  */
   8: 
   9: /*
  10:  * Accounting structures;
  11:  * these use a comp_t type which is a 3 bits base 8
  12:  * exponent, 13 bit fraction ``floating point'' number.
  13:  * Units are 1/AHZ seconds.
  14:  */
  15: typedef u_short comp_t;
  16: 
  17: struct  acct
  18: {
  19:     char    ac_comm[10];        /* Accounting command name */
  20:     comp_t  ac_utime;       /* Accounting user time */
  21:     comp_t  ac_stime;       /* Accounting system time */
  22:     comp_t  ac_etime;       /* Accounting elapsed time */
  23:     time_t  ac_btime;       /* Beginning time */
  24:     uid_t   ac_uid;         /* Accounting user ID */
  25:     gid_t   ac_gid;         /* Accounting group ID */
  26:     short   ac_mem;         /* average memory usage */
  27:     comp_t  ac_io;          /* number of disk IO blocks */
  28:     dev_t   ac_tty;         /* control typewriter */
  29:     char    ac_flag;        /* Accounting flag */
  30: };
  31: 
  32: #define AFORK   0001        /* has executed fork, but no exec */
  33: #define ASU 0002        /* used super-user privileges */
  34: #define ACOMPAT 0004        /* used compatibility mode */
  35: #define ACORE   0010        /* dumped core */
  36: #define AXSIG   0020        /* killed by a signal */
  37: #define ASUGID  0040        /* setuser/group id privileges used */
  38: 
  39: /*
  40:  * 1/AHZ is the granularity of the data encoded in the various
  41:  * comp_t fields.  This is not necessarily equal to hz.
  42:  */
  43: #define AHZ 64
  44: 
  45: #ifndef KERNEL
  46: #define _PATH_ACCTD "/usr/libexec/acctd"
  47: #define _PATH_ACCTFILE "/usr/adm/acct"
  48: #define _PATH_ACCTDPID "/var/run/acctd.pid"
  49: #define _PATH_ACCTDCF "/etc/acctd.cf"
  50: #define _PATH_DEVALOG "/dev/acctlog"
  51: #endif

Defined struct's

acct defined in line 17; used 20 times

Defined macros

ACOMPAT defined in line 34; used 1 times
ACORE defined in line 35; used 2 times
AHZ defined in line 43; used 13 times
ASU defined in line 33; used 3 times
AXSIG defined in line 36; used 2 times
_PATH_ACCTD defined in line 46; used 2 times
_PATH_DEVALOG defined in line 50; used 2 times

Usage of this include

Last modified: 1999-02-20
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 2894
Valid CSS Valid XHTML 1.0 Strict