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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: fusl/include/sys/acct.h
diff --git a/fusl/include/sys/acct.h b/fusl/include/sys/acct.h
index ee576c4ab39ff28d477623d19d3a205a806b14f8..97c8eedd650d13938897b7997744a277cc24c2fc 100644
--- a/fusl/include/sys/acct.h
+++ b/fusl/include/sys/acct.h
@@ -14,59 +14,56 @@ extern "C" {
typedef uint16_t comp_t;
-struct acct
-{
- char ac_flag;
- uint16_t ac_uid;
- uint16_t ac_gid;
- uint16_t ac_tty;
- uint32_t ac_btime;
- comp_t ac_utime;
- comp_t ac_stime;
- comp_t ac_etime;
- comp_t ac_mem;
- comp_t ac_io;
- comp_t ac_rw;
- comp_t ac_minflt;
- comp_t ac_majflt;
- comp_t ac_swaps;
- uint32_t ac_exitcode;
- char ac_comm[ACCT_COMM+1];
- char ac_pad[10];
+struct acct {
+ char ac_flag;
+ uint16_t ac_uid;
+ uint16_t ac_gid;
+ uint16_t ac_tty;
+ uint32_t ac_btime;
+ comp_t ac_utime;
+ comp_t ac_stime;
+ comp_t ac_etime;
+ comp_t ac_mem;
+ comp_t ac_io;
+ comp_t ac_rw;
+ comp_t ac_minflt;
+ comp_t ac_majflt;
+ comp_t ac_swaps;
+ uint32_t ac_exitcode;
+ char ac_comm[ACCT_COMM + 1];
+ char ac_pad[10];
};
-
-struct acct_v3
-{
- char ac_flag;
- char ac_version;
- uint16_t ac_tty;
- uint32_t ac_exitcode;
- uint32_t ac_uid;
- uint32_t ac_gid;
- uint32_t ac_pid;
- uint32_t ac_ppid;
- uint32_t ac_btime;
- float ac_etime;
- comp_t ac_utime;
- comp_t ac_stime;
- comp_t ac_mem;
- comp_t ac_io;
- comp_t ac_rw;
- comp_t ac_minflt;
- comp_t ac_majflt;
- comp_t ac_swaps;
- char ac_comm[ACCT_COMM];
+struct acct_v3 {
+ char ac_flag;
+ char ac_version;
+ uint16_t ac_tty;
+ uint32_t ac_exitcode;
+ uint32_t ac_uid;
+ uint32_t ac_gid;
+ uint32_t ac_pid;
+ uint32_t ac_ppid;
+ uint32_t ac_btime;
+ float ac_etime;
+ comp_t ac_utime;
+ comp_t ac_stime;
+ comp_t ac_mem;
+ comp_t ac_io;
+ comp_t ac_rw;
+ comp_t ac_minflt;
+ comp_t ac_majflt;
+ comp_t ac_swaps;
+ char ac_comm[ACCT_COMM];
};
#define AFORK 1
#define ASU 2
#define ACORE 8
#define AXSIG 16
-#define ACCT_BYTEORDER (128*(__BYTE_ORDER==__BIG_ENDIAN))
+#define ACCT_BYTEORDER (128 * (__BYTE_ORDER == __BIG_ENDIAN))
#define AHZ 100
-int acct(const char *);
+int acct(const char*);
#ifdef __cplusplus
}

Powered by Google App Engine
This is Rietveld 408576698