authorgravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2019-05-11 10:34:22+02:00
committergravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2019-05-11 10:34:22+02:00
log1b23348f30243ed61a61f1892bb391d8afab7f10
tree223409538fcafbd7f894bef5916eddbb7b77b00e
parent715d808f14e132df9eb4e29261d010eca5cfb82a

linux: Minor `zig fmt` induced reformatting


1 files changed, 11 insertions(+), 5 deletions(-)

std/os/linux.zig+11-5
...@@ -1112,8 +1112,8 @@ pub fn sigaction(sig: u6, noalias act: *const Sigaction, noalias oact: ?*Sigacti...@@ -1112,8 +1112,8 @@ pub fn sigaction(sig: u6, noalias act: *const Sigaction, noalias oact: ?*Sigacti
11121112
1113const NSIG = 65;1113const NSIG = 65;
1114const sigset_t = [128 / @sizeOf(usize)]usize;1114const sigset_t = [128 / @sizeOf(usize)]usize;
1115const all_mask = []u32{0xffffffff, 0xffffffff};1115const all_mask = []u32{ 0xffffffff, 0xffffffff };
1116const app_mask = []u32{0xfffffffc, 0x7fffffff};1116const app_mask = []u32{ 0xfffffffc, 0x7fffffff };
11171117
1118const k_sigaction = extern struct {1118const k_sigaction = extern struct {
1119 handler: extern fn (i32) void,1119 handler: extern fn (i32) void,
...@@ -1411,9 +1411,15 @@ pub const epoll_data = extern union {...@@ -1411,9 +1411,15 @@ pub const epoll_data = extern union {
1411// On x86_64 the structure is packed so that it matches the definition of its1411// On x86_64 the structure is packed so that it matches the definition of its
1412// 32bit counterpart1412// 32bit counterpart
1413pub const epoll_event = if (builtin.arch != .x86_64)1413pub const epoll_event = if (builtin.arch != .x86_64)
1414 extern struct { events: u32, data: epoll_data }1414 extern struct {
1415 else1415 events: u32,
1416 packed struct { events: u32, data: epoll_data };1416 data: epoll_data,
1417 }
1418else
1419 packed struct {
1420 events: u32,
1421 data: epoll_data,
1422 };
14171423
1418pub fn epoll_create() usize {1424pub fn epoll_create() usize {
1419 return epoll_create1(0);1425 return epoll_create1(0);