Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(459)

Side by Side Diff: fusl/include/sys/acct.h

Issue 1573973002: Add a "fork" of musl as //fusl. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « fusl/include/stropts.h ('k') | fusl/include/sys/auxv.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
OLDNEW
« no previous file with comments | « fusl/include/stropts.h ('k') | fusl/include/sys/auxv.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698