mirror of
https://github.com/ziglang/zig.git
synced 2026-02-12 20:37:54 +00:00
x: fmt source code
This commit is contained in:
parent
b435d7fa60
commit
98706c9686
@ -805,7 +805,7 @@ comptime {
|
||||
if (@sizeOf(usize) == 4)
|
||||
std.debug.assert(@sizeOf(siginfo_t) == 128)
|
||||
else
|
||||
// Take into account the padding between errno and data fields.
|
||||
// Take into account the padding between errno and data fields.
|
||||
std.debug.assert(@sizeOf(siginfo_t) == 136);
|
||||
}
|
||||
|
||||
|
||||
@ -1 +1 @@
|
||||
pub const os = @import("x/os/os.zig");
|
||||
pub const os = @import("x/os/os.zig");
|
||||
|
||||
@ -12,7 +12,7 @@ const Socket = @This();
|
||||
/// A socket-address pair.
|
||||
pub const Connection = struct {
|
||||
socket: Socket,
|
||||
address: net.Address,
|
||||
address: net.Address,
|
||||
};
|
||||
|
||||
/// The underlying handle of a socket.
|
||||
@ -231,7 +231,7 @@ test {
|
||||
}
|
||||
|
||||
test "socket/linux: set read timeout of 1 millisecond on blocking socket" {
|
||||
if (builtin.os.tag != .linux) return error.SkipZigTest;
|
||||
if (builtin.os.tag != .linux) return error.SkipZigTest;
|
||||
|
||||
const a = try Socket.init(os.AF_INET, os.SOCK_STREAM | os.SOCK_CLOEXEC, os.IPPROTO_TCP);
|
||||
defer a.deinit();
|
||||
@ -273,4 +273,4 @@ test "socket/linux: create non-blocking socket pair" {
|
||||
|
||||
const ab = try a.accept(os.SOCK_NONBLOCK | os.SOCK_CLOEXEC);
|
||||
defer ab.socket.deinit();
|
||||
}
|
||||
}
|
||||
|
||||
@ -6,4 +6,4 @@ pub const Socket = @import("Socket.zig");
|
||||
|
||||
test {
|
||||
testing.refAllDecls(@This());
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user