fix misplaced indention in sys/procfs.h
[musl.git] / include / sys / acct.h
blobee576c4ab39ff28d477623d19d3a205a806b14f8
1 #ifndef _SYS_ACCT_H
2 #define _SYS_ACCT_H
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
8 #include <features.h>
9 #include <endian.h>
10 #include <time.h>
11 #include <stdint.h>
13 #define ACCT_COMM 16
15 typedef uint16_t comp_t;
17 struct acct
19 char ac_flag;
20 uint16_t ac_uid;
21 uint16_t ac_gid;
22 uint16_t ac_tty;
23 uint32_t ac_btime;
24 comp_t ac_utime;
25 comp_t ac_stime;
26 comp_t ac_etime;
27 comp_t ac_mem;
28 comp_t ac_io;
29 comp_t ac_rw;
30 comp_t ac_minflt;
31 comp_t ac_majflt;
32 comp_t ac_swaps;
33 uint32_t ac_exitcode;
34 char ac_comm[ACCT_COMM+1];
35 char ac_pad[10];
39 struct acct_v3
41 char ac_flag;
42 char ac_version;
43 uint16_t ac_tty;
44 uint32_t ac_exitcode;
45 uint32_t ac_uid;
46 uint32_t ac_gid;
47 uint32_t ac_pid;
48 uint32_t ac_ppid;
49 uint32_t ac_btime;
50 float ac_etime;
51 comp_t ac_utime;
52 comp_t ac_stime;
53 comp_t ac_mem;
54 comp_t ac_io;
55 comp_t ac_rw;
56 comp_t ac_minflt;
57 comp_t ac_majflt;
58 comp_t ac_swaps;
59 char ac_comm[ACCT_COMM];
62 #define AFORK 1
63 #define ASU 2
64 #define ACORE 8
65 #define AXSIG 16
66 #define ACCT_BYTEORDER (128*(__BYTE_ORDER==__BIG_ENDIAN))
67 #define AHZ 100
69 int acct(const char *);
71 #ifdef __cplusplus
73 #endif
75 #endif