表 2. acct 结构体中的成员

成员名称 类型 描述
ac_flag char 显示进程行为的特殊标志
ac_uid u_int16_t 进程的用户ID
ac_gid u_int16_t 进程的组ID
ac_tty u_int16_t 进程的控制终端
ac_btime u_int_32_t 进程启动时间
ac_utime comp_t 用户时间
ac_stime comp_t 系统时间
ac_etime comp_t 经过时间
ac_mem comp_t 平均内存使用量
ac_io comp_t 传输的字符数
ac_rw comp_t 读取或写入的块数
ac_minflt comp_t 次要缺页
ac_majflt comp_t 主要缺页
ac_swaps comp_t 交换次数
ac_exitcode u_int32_t 进程退出码
ac_comm char[] 命令名称的前16个字符
ac_pad char[] 填充字节
© . All rights reserved.