acct.5

来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 5 代码 · 共 55 行

5
55
字号
.\" SCCSID: @(#)acct.5	4.1	12/9/88.TH acct 5 RISC.SH Nameacct \- execution accounting file.SH Syntax.B #include <sys/acct.h>.SH Description.NXR "acct file" "format".NXAM "acct system call" "acct file"The .MS acct 2system call makes entries in an accounting filefor each process that terminates.The accounting file is a sequence of entries whose layout,as defined by the include file, is:.EX 0typedef u_short comp_tstruct  acct{        char    ac_comm[10];   /* Accounting command name */        comp_t  ac_utime;      /* Accounting user time */        comp_t  ac_stime;      /* Accounting system time */        comp_t  ac_etime;      /* Accounting elapsed time */        time_t  ac_btime;      /* Beginning time */        short   ac_uid;        /* Accounting user ID */        short   ac_gid;        /* Accounting group ID */        short   ac_mem;        /* average memory usage */        comp_t  ac_io;         /* number of disk IO blocks */        dev_t   ac_tty;        /* control typewriter */        char    ac_flag;       /* Accounting flag */};#define AFORK   0001    /* has executed fork, but no exec */#define ASU     0002    /* used super-user privileges */#define ACOMPAT 0004    /* used compatibility mode */#define ACORE   0010    /* dumped core */#define AXSIG   0020    /* killed by a signal */#define AHZ     64      /* the accuracy of data is 1/AHZ */#ifdef KERNELstruct  acct    acctbuf;struct  gnode   *acctp;#endif.EEIf the process does an .MS execve 2 ,the first 10 characters of the file name appear in.I ac_comm.The accounting flag contains bits indicating whether .MS execve 2was ever accomplished and whether the process ever had superuser privileges..SH See Alsoacct(2), execve(2), sa(8)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?