# 2.11BSD#431 - /usr/src/sys/h/acct.h

##### Macros

    ACOMPAT           X
    ACORE             X
    AFORK             X
    AHZ               X
    ASU               X
    ASUGID            X
    AXSIG             X
    _PATH_ACCTD       X
    _PATH_ACCTDCF     X
    _PATH_ACCTDPID    X
    _PATH_ACCTFILE    X
    _PATH_DEVALOG     X

##### struct's

    acct              X

       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

- in /usr/src/libexec/acctd/acctd.c line 167(2), 277(2)
- in /usr/src/sys/sys/kern_acct.c line 30-31(4)
- in /usr/src/ucb/lastcomm.c line 30(4), 41(2), 133(2)
- in /usr/src/usr.sbin/sa/sa.c line 31(2), 584(2)

#### Defined macros

ACOMPAT defined in line 34; used 1 times

- in /usr/src/ucb/lastcomm.c line 124

ACORE defined in line 35; used 2 times

- in /usr/src/sys/sys/kern_sig.c line 662
- in /usr/src/ucb/lastcomm.c line 125

AFORK defined in line 32; used 4 times

- in /usr/src/sys/sys/kern_exec.c line 372
- in /usr/src/sys/sys/kern_fork.c line 80
- in /usr/src/ucb/lastcomm.c line 123
- in /usr/src/usr.sbin/sa/sa.c line 608

AHZ defined in line 43; used 13 times

- in /usr/src/sys/sys/kern_acct.c line 40-42(3), 50
- in /usr/src/ucb/lastcomm.c line 94
- in /usr/src/usr.sbin/sa/sa.c line 528, 546, 561, 570-571(2), 617-620(2), 627

ASU defined in line 33; used 3 times

- in /usr/src/sys/sys/sys_net.c line 267
- in /usr/src/sys/sys/ufs_fio.c line 108
- in /usr/src/ucb/lastcomm.c line 122

ASUGID defined in line 37; used 7 times

- in /usr/src/sys/sys/kern_exec.c line 614
- in /usr/src/sys/sys/kern_fork.c line 80
- in /usr/src/sys/sys/kern_prot2.c line 90, 115, 139, 161
- in /usr/src/sys/sys/kern_sig.c line 630

AXSIG defined in line 36; used 2 times

- in /usr/src/sys/sys/kern_sig.c line 598
- in /usr/src/ucb/lastcomm.c line 126

_PATH_ACCTD defined in line 46; used 2 times

- in /usr/src/usr.sbin/accton/accton.c line 195-196(2)

_PATH_ACCTDCF defined in line 49; used 2 times

- in /usr/src/libexec/acctd/acctd.c line 42
- in /usr/src/usr.sbin/accton/accton.c line 30

_PATH_ACCTDPID defined in line 48; used 3 times

- in /usr/src/libexec/acctd/acctd.c line 142-145(2)
- in /usr/src/usr.sbin/accton/accton.c line 31

_PATH_ACCTFILE defined in line 47; used 2 times

- in /usr/src/libexec/acctd/acctd.c line 404
- in /usr/src/usr.sbin/accton/accton.c line 131

_PATH_DEVALOG defined in line 50; used 2 times

- in /usr/src/libexec/acctd/acctd.c line 132, 138

#### Usage of this include

acct.h used 11 times

- in /usr/src/libexec/acctd/acctd.c line 19
- in /usr/src/sys/sys/kern_acct.c line 20
- in /usr/src/sys/sys/kern_exec.c line 19
- in /usr/src/sys/sys/kern_fork.c line 18
- in /usr/src/sys/sys/kern_prot2.c line 43
- in /usr/src/sys/sys/kern_sig.c line 17
- in /usr/src/sys/sys/sys_net.c line 30
- in /usr/src/sys/sys/ufs_fio.c line 16
- in /usr/src/ucb/lastcomm.c line 19
- in /usr/src/usr.sbin/accton/accton.c line 14
- in /usr/src/usr.sbin/sa/sa.c line 20

Last modified: 1999-02-20 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 623 |