Home | History | Annotate | Download | only in linux
      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>
     25 typedef __u16 comp_t;
     26 typedef __u32 comp2_t;
     27 #define ACCT_COMM 16
     28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     29 struct acct
     30 {
     31  char ac_flag;
     32  char ac_version;
     33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     34  __u16 ac_uid16;
     35  __u16 ac_gid16;
     36  __u16 ac_tty;
     37  __u32 ac_btime;
     38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     39  comp_t ac_utime;
     40  comp_t ac_stime;
     41  comp_t ac_etime;
     42  comp_t ac_mem;
     43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     44  comp_t ac_io;
     45  comp_t ac_rw;
     46  comp_t ac_minflt;
     47  comp_t ac_majflt;
     48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     49  comp_t ac_swaps;
     50  __u16 ac_ahz;
     51  __u32 ac_exitcode;
     52  char ac_comm[ACCT_COMM + 1];
     53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     54  __u8 ac_etime_hi;
     55  __u16 ac_etime_lo;
     56  __u32 ac_uid;
     57  __u32 ac_gid;
     58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     59 };
     60 struct acct_v3
     61 {
     62  char ac_flag;
     63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     64  char ac_version;
     65  __u16 ac_tty;
     66  __u32 ac_exitcode;
     67  __u32 ac_uid;
     68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     69  __u32 ac_gid;
     70  __u32 ac_pid;
     71  __u32 ac_ppid;
     72  __u32 ac_btime;
     73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     74  float ac_etime;
     75  comp_t ac_utime;
     76  comp_t ac_stime;
     77  comp_t ac_mem;
     78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     79  comp_t ac_io;
     80  comp_t ac_rw;
     81  comp_t ac_minflt;
     82  comp_t ac_majflt;
     83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     84  comp_t ac_swaps;
     85  char ac_comm[ACCT_COMM];
     86 };
     87 #define AFORK 0x01
     88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     89 #define ASU 0x02
     90 #define ACOMPAT 0x04
     91 #define ACORE 0x08
     92 #define AXSIG 0x10
     93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     94 #if defined(__BYTE_ORDER) ? __BYTE_ORDER == __BIG_ENDIAN : defined(__BIG_ENDIAN)
     95 #define ACCT_BYTEORDER 0x80
     96 #elif defined(__BYTE_ORDER) ? __BYTE_ORDER == __LITTLE_ENDIAN : defined(__LITTLE_ENDIAN)
     97 #define ACCT_BYTEORDER 0x00
     98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     99 #else
    100 #error unspecified endianness
    101 #endif
    102 #define ACCT_VERSION 2
    103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    104 #define AHZ (HZ)
    105 #endif
    106