1/**************************************************************************** 2 **************************************************************************** 3 *** 4 *** This header was automatically generated from a Linux kernel header 5 *** of the same name, to make information necessary for userspace to 6 *** call into the kernel available to libc. It contains only constants, 7 *** structures, and macros generated from the original header, and thus, 8 *** contains no copyrightable information. 9 *** 10 *** To edit the content of this header, modify the corresponding 11 *** source file (e.g. under external/kernel-headers/original/) then 12 *** run bionic/libc/kernel/tools/update_all.py 13 *** 14 *** Any manual change here will be lost the next time this script will 15 *** be run. You've been warned! 16 *** 17 **************************************************************************** 18 ****************************************************************************/ 19#ifndef _UAPI_LINUX_ACCT_H 20#define _UAPI_LINUX_ACCT_H 21#include <linux/types.h> 22#include <asm/param.h> 23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 24#include <asm/byteorder.h> 25typedef __u16 comp_t; 26typedef __u32 comp2_t; 27#define ACCT_COMM 16 28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 29struct acct { 30 char ac_flag; 31 char ac_version; 32 __u16 ac_uid16; 33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 34 __u16 ac_gid16; 35 __u16 ac_tty; 36 __u32 ac_btime; 37 comp_t ac_utime; 38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 39 comp_t ac_stime; 40 comp_t ac_etime; 41 comp_t ac_mem; 42 comp_t ac_io; 43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 44 comp_t ac_rw; 45 comp_t ac_minflt; 46 comp_t ac_majflt; 47 comp_t ac_swaps; 48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 49 __u16 ac_ahz; 50 __u32 ac_exitcode; 51 char ac_comm[ACCT_COMM + 1]; 52 __u8 ac_etime_hi; 53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 54 __u16 ac_etime_lo; 55 __u32 ac_uid; 56 __u32 ac_gid; 57}; 58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 59struct acct_v3 { 60 char ac_flag; 61 char ac_version; 62 __u16 ac_tty; 63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 64 __u32 ac_exitcode; 65 __u32 ac_uid; 66 __u32 ac_gid; 67 __u32 ac_pid; 68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 69 __u32 ac_ppid; 70 __u32 ac_btime; 71 float ac_etime; 72 comp_t ac_utime; 73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 74 comp_t ac_stime; 75 comp_t ac_mem; 76 comp_t ac_io; 77 comp_t ac_rw; 78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 79 comp_t ac_minflt; 80 comp_t ac_majflt; 81 comp_t ac_swaps; 82 char ac_comm[ACCT_COMM]; 83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 84}; 85#define AFORK 0x01 86#define ASU 0x02 87#define ACOMPAT 0x04 88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 89#define ACORE 0x08 90#define AXSIG 0x10 91#if defined(__BYTE_ORDER) ? __BYTE_ORDER == __BIG_ENDIAN : defined(__BIG_ENDIAN) 92#define ACCT_BYTEORDER 0x80 93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 94#elif defined(__BYTE_ORDER)?__BYTE_ORDER==__LITTLE_ENDIAN:defined(__LITTLE_ENDIAN) 95#define ACCT_BYTEORDER 0x00 96#else 97#error unspecified endianness 98/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 99#endif 100#define ACCT_VERSION 2 101#define AHZ (HZ) 102#endif 103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 104