authorgravatar for kenta@lithdew.netlithdew <kenta@lithdew.net> 2021-04-22 14:53:44+09:00
committergravatar for kenta@lithdew.netlithdew <kenta@lithdew.net> 2021-04-25 21:15:02+09:00
log98706c968677caafeb12c56c884b7cc952c696bc
tree0f956b37b9be96fb548c29c20ef07a9ec9ca5201
parentb435d7fa6050a8867b7228eeaa71a399a9d8d7c1

x: fmt source code


4 files changed, 6 insertions(+), 6 deletions(-)

lib/std/os/bits/openbsd.zig+1-1
...@@ -805,7 +805,7 @@ comptime {...@@ -805,7 +805,7 @@ comptime {
805 if (@sizeOf(usize) == 4)805 if (@sizeOf(usize) == 4)
806 std.debug.assert(@sizeOf(siginfo_t) == 128)806 std.debug.assert(@sizeOf(siginfo_t) == 128)
807 else807 else
808 // Take into account the padding between errno and data fields.808 // Take into account the padding between errno and data fields.
809 std.debug.assert(@sizeOf(siginfo_t) == 136);809 std.debug.assert(@sizeOf(siginfo_t) == 136);
810}810}
811811
lib/std/x.zig+1-1
...@@ -1 +1 @@...@@ -1 +1 @@
1pub const os = @import("x/os/os.zig");
\ No newline at end of file
1pub const os = @import("x/os/os.zig");
lib/std/x/os/Socket.zig+3-3
...@@ -12,7 +12,7 @@ const Socket = @This();...@@ -12,7 +12,7 @@ const Socket = @This();
12/// A socket-address pair.12/// A socket-address pair.
13pub const Connection = struct {13pub const Connection = struct {
14 socket: Socket,14 socket: Socket,
15 address: net.Address, 15 address: net.Address,
16};16};
1717
18/// The underlying handle of a socket.18/// The underlying handle of a socket.
...@@ -231,7 +231,7 @@ test {...@@ -231,7 +231,7 @@ test {
231}231}
232232
233test "socket/linux: set read timeout of 1 millisecond on blocking socket" {233test "socket/linux: set read timeout of 1 millisecond on blocking socket" {
234 if (builtin.os.tag != .linux) return error.SkipZigTest;234 if (builtin.os.tag != .linux) return error.SkipZigTest;
235235
236 const a = try Socket.init(os.AF_INET, os.SOCK_STREAM | os.SOCK_CLOEXEC, os.IPPROTO_TCP);236 const a = try Socket.init(os.AF_INET, os.SOCK_STREAM | os.SOCK_CLOEXEC, os.IPPROTO_TCP);
237 defer a.deinit();237 defer a.deinit();
...@@ -273,4 +273,4 @@ test "socket/linux: create non-blocking socket pair" {...@@ -273,4 +273,4 @@ test "socket/linux: create non-blocking socket pair" {
273273
274 const ab = try a.accept(os.SOCK_NONBLOCK | os.SOCK_CLOEXEC);274 const ab = try a.accept(os.SOCK_NONBLOCK | os.SOCK_CLOEXEC);
275 defer ab.socket.deinit();275 defer ab.socket.deinit();
276}
\ No newline at end of file
276}
lib/std/x/os/os.zig+1-1
...@@ -6,4 +6,4 @@ pub const Socket = @import("Socket.zig");...@@ -6,4 +6,4 @@ pub const Socket = @import("Socket.zig");
66
7test {7test {
8 testing.refAllDecls(@This());8 testing.refAllDecls(@This());
9}
\ No newline at end of file
9}