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

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

Issue 1714623002: [fusl] clang-format fusl (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: headers too Created 4 years, 10 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
OLDNEW
1 #ifndef _SYS_ACCT_H 1 #ifndef _SYS_ACCT_H
2 #define _SYS_ACCT_H 2 #define _SYS_ACCT_H
3 3
4 #ifdef __cplusplus 4 #ifdef __cplusplus
5 extern "C" { 5 extern "C" {
6 #endif 6 #endif
7 7
8 #include <features.h> 8 #include <features.h>
9 #include <endian.h> 9 #include <endian.h>
10 #include <time.h> 10 #include <time.h>
11 #include <stdint.h> 11 #include <stdint.h>
12 12
13 #define ACCT_COMM 16 13 #define ACCT_COMM 16
14 14
15 typedef uint16_t comp_t; 15 typedef uint16_t comp_t;
16 16
17 struct acct 17 struct acct {
18 { 18 char ac_flag;
19 » char ac_flag; 19 uint16_t ac_uid;
20 » uint16_t ac_uid; 20 uint16_t ac_gid;
21 » uint16_t ac_gid; 21 uint16_t ac_tty;
22 » uint16_t ac_tty; 22 uint32_t ac_btime;
23 » uint32_t ac_btime; 23 comp_t ac_utime;
24 » comp_t ac_utime; 24 comp_t ac_stime;
25 » comp_t ac_stime; 25 comp_t ac_etime;
26 » comp_t ac_etime; 26 comp_t ac_mem;
27 » comp_t ac_mem; 27 comp_t ac_io;
28 » comp_t ac_io; 28 comp_t ac_rw;
29 » comp_t ac_rw; 29 comp_t ac_minflt;
30 » comp_t ac_minflt; 30 comp_t ac_majflt;
31 » comp_t ac_majflt; 31 comp_t ac_swaps;
32 » comp_t ac_swaps; 32 uint32_t ac_exitcode;
33 » uint32_t ac_exitcode; 33 char ac_comm[ACCT_COMM + 1];
34 » char ac_comm[ACCT_COMM+1]; 34 char ac_pad[10];
35 » char ac_pad[10];
36 }; 35 };
37 36
38 37 struct acct_v3 {
39 struct acct_v3 38 char ac_flag;
40 { 39 char ac_version;
41 » char ac_flag; 40 uint16_t ac_tty;
42 » char ac_version; 41 uint32_t ac_exitcode;
43 » uint16_t ac_tty; 42 uint32_t ac_uid;
44 » uint32_t ac_exitcode; 43 uint32_t ac_gid;
45 » uint32_t ac_uid; 44 uint32_t ac_pid;
46 » uint32_t ac_gid; 45 uint32_t ac_ppid;
47 » uint32_t ac_pid; 46 uint32_t ac_btime;
48 » uint32_t ac_ppid; 47 float ac_etime;
49 » uint32_t ac_btime; 48 comp_t ac_utime;
50 » float ac_etime; 49 comp_t ac_stime;
51 » comp_t ac_utime; 50 comp_t ac_mem;
52 » comp_t ac_stime; 51 comp_t ac_io;
53 » comp_t ac_mem; 52 comp_t ac_rw;
54 » comp_t ac_io; 53 comp_t ac_minflt;
55 » comp_t ac_rw; 54 comp_t ac_majflt;
56 » comp_t ac_minflt; 55 comp_t ac_swaps;
57 » comp_t ac_majflt; 56 char ac_comm[ACCT_COMM];
58 » comp_t ac_swaps;
59 » char ac_comm[ACCT_COMM];
60 }; 57 };
61 58
62 #define AFORK 1 59 #define AFORK 1
63 #define ASU 2 60 #define ASU 2
64 #define ACORE 8 61 #define ACORE 8
65 #define AXSIG 16 62 #define AXSIG 16
66 #define ACCT_BYTEORDER (128*(__BYTE_ORDER==__BIG_ENDIAN)) 63 #define ACCT_BYTEORDER (128 * (__BYTE_ORDER == __BIG_ENDIAN))
67 #define AHZ 100 64 #define AHZ 100
68 65
69 int acct(const char *); 66 int acct(const char*);
70 67
71 #ifdef __cplusplus 68 #ifdef __cplusplus
72 } 69 }
73 #endif 70 #endif
74 71
75 #endif 72 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698