0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/lib/std/c
Kenta Iwasaki c4f97d3365 os: usingnamespace fixes for std.x.os.Socket and std.os.TCP
Extract existing constants to do with TCP socket options into a 'TCP'
namespace.

Export 'MSG' and 'TCP' from std.os.{linux, windows} into std.c.

Fix compile errors to do with std.x.os.Socket methods related to setting
TCP socket options.

Handle errors in the case that an interface could not be resolved in an
IPv6 address on Windows. Tested using Wine with the loopback interface
disabled.

Have all instantiations of std.x.os.Socket on Windows instantiate an
overlapped socket descriptor. Fixes the '1ms read timeout' test in
std.x.net.tcp.Client. The test would previously deadlock, as read
timeouts only apply to overlapped sockets.

Windows documentation by default recommends that most instantiations of
sockets on Windows be overlapped sockets (s.t. they may operate in both
blocking or nonblocking mode when operated with WSA* syscalls). Refer to
the documentation for WSASocketA for more info.
History 2021-09-12 23:36:44 -04:00
..
darwin.zig std.os reorg: regression fixes to stack_t, and std.Thread 2021-09-01 17:54:07 -07:00
dragonfly.zig std.os reorg: regression fixes to stack_t, and std.Thread 2021-09-01 17:54:07 -07:00
emscripten.zig remove redundant license headers from zig standard library 2021-08-24 12:25:09 -07:00
freebsd.zig re-apply a commit dropped in this branch due to conflicts 2021-09-01 17:54:07 -07:00
fuchsia.zig remove redundant license headers from zig standard library 2021-08-24 12:25:09 -07:00
haiku.zig std.os reorg: regression fixes to stack_t, and std.Thread 2021-09-01 17:54:07 -07:00
hermit.zig std: reorganization that allows new usingnamespace semantics 2021-09-01 17:54:06 -07:00
linux.zig os: usingnamespace fixes for std.x.os.Socket and std.os.TCP 2021-09-12 23:36:44 -04:00
minix.zig remove redundant license headers from zig standard library 2021-08-24 12:25:09 -07:00
netbsd.zig std: update event loop for recent usingnamespace changes 2021-09-06 15:16:29 -04:00
openbsd.zig std.os reorg: regression fixes to stack_t, and std.Thread 2021-09-01 17:54:07 -07:00
solaris.zig remove redundant license headers from zig standard library 2021-08-24 12:25:09 -07:00
tokenizer.zig remove redundant license headers from zig standard library 2021-08-24 12:25:09 -07:00
wasi.zig std.os fixes to get the test suite passing again 2021-09-01 17:54:07 -07:00
windows.zig os: usingnamespace fixes for std.x.os.Socket and std.os.TCP 2021-09-12 23:36:44 -04:00