fix reversed argument order x86_64 sigsetjmp's call to sigprocmask
[musl] / include / sys / acct.h
1 #ifndef _SYS_ACCT_H
2 #define _SYS_ACCT_H
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8 #include <features.h>
9 #include <endian.h>
10 #include <time.h>
11 #include <stdint.h>
12
13 #define ACCT_COMM 16
14
15 typedef uint16_t comp_t;
16
17 struct acct
18 {
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];
36 };
37
38
39 struct acct_v3
40 {
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];
60 };
61
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
68
69 int acct(const char *);
70
71 #ifdef __cplusplus
72 }
73 #endif
74
75 #endif