blob: 4eb3c92e47f3ebbe71b713011f7e9945687c033f [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
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 */
Tao Baod7db5942015-01-28 10:07:51 -080029struct acct {
30 char ac_flag;
31 char ac_version;
32 __u16 ac_uid16;
Ben Cheng655a7c02013-10-16 16:09:24 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080034 __u16 ac_gid16;
35 __u16 ac_tty;
36 __u32 ac_btime;
37 comp_t ac_utime;
Ben Cheng655a7c02013-10-16 16:09:24 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080039 comp_t ac_stime;
40 comp_t ac_etime;
41 comp_t ac_mem;
42 comp_t ac_io;
Ben Cheng655a7c02013-10-16 16:09:24 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080044 comp_t ac_rw;
45 comp_t ac_minflt;
46 comp_t ac_majflt;
47 comp_t ac_swaps;
Ben Cheng655a7c02013-10-16 16:09:24 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080049 __u16 ac_ahz;
50 __u32 ac_exitcode;
51 char ac_comm[ACCT_COMM + 1];
52 __u8 ac_etime_hi;
Ben Cheng655a7c02013-10-16 16:09:24 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080054 __u16 ac_etime_lo;
55 __u32 ac_uid;
56 __u32 ac_gid;
Ben Cheng655a7c02013-10-16 16:09:24 -070057};
Ben Cheng655a7c02013-10-16 16:09:24 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080059struct acct_v3 {
60 char ac_flag;
61 char ac_version;
62 __u16 ac_tty;
Ben Cheng655a7c02013-10-16 16:09:24 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080064 __u32 ac_exitcode;
65 __u32 ac_uid;
66 __u32 ac_gid;
67 __u32 ac_pid;
Ben Cheng655a7c02013-10-16 16:09:24 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080069 __u32 ac_ppid;
70 __u32 ac_btime;
71 float ac_etime;
72 comp_t ac_utime;
Ben Cheng655a7c02013-10-16 16:09:24 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080074 comp_t ac_stime;
75 comp_t ac_mem;
76 comp_t ac_io;
77 comp_t ac_rw;
Ben Cheng655a7c02013-10-16 16:09:24 -070078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080079 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 */
Ben Cheng655a7c02013-10-16 16:09:24 -070084};
85#define AFORK 0x01
Ben Cheng655a7c02013-10-16 16:09:24 -070086#define ASU 0x02
87#define ACOMPAT 0x04
Tao Baod7db5942015-01-28 10:07:51 -080088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070089#define ACORE 0x08
90#define AXSIG 0x10
Elliott Hughes8cb52b02013-11-21 13:43:23 -080091#if defined(__BYTE_ORDER) ? __BYTE_ORDER == __BIG_ENDIAN : defined(__BIG_ENDIAN)
Ben Cheng655a7c02013-10-16 16:09:24 -070092#define ACCT_BYTEORDER 0x80
Ben Cheng655a7c02013-10-16 16:09:24 -070093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080094#elif defined(__BYTE_ORDER)?__BYTE_ORDER==__LITTLE_ENDIAN:defined(__LITTLE_ENDIAN)
95#define ACCT_BYTEORDER 0x00
Ben Cheng655a7c02013-10-16 16:09:24 -070096#else
97#error unspecified endianness
Tao Baod7db5942015-01-28 10:07:51 -080098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070099#endif
100#define ACCT_VERSION 2
Ben Cheng655a7c02013-10-16 16:09:24 -0700101#define AHZ (HZ)
102#endif
Tao Baod7db5942015-01-28 10:07:51 -0800103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */