zig/lib/std/zig
Andrew Kelley 35ce907c06 std.Io.net.HostName: move lookup to the interface
Unfortunately this can't be implemented "above the vtable" because
various operating systems don't provide low level DNS resolution
primitives such as just putting the list of nameservers in a file.

Without libc on Linux it works great though!

Anyway this also changes the API to be based on Io.Queue. By using a
large enough buffer, reusable code can be written that does not require
concurrent, yet takes advantage of responding to DNS queries as they
come in. I sketched out a new implementation of `HostName.connect` to
demonstrate this, but it will require an additional API (`Io.Select`) to
be implemented in a future commit.

This commit also introduces "uncancelable" variants for mutex locking,
waiting on a condition, and putting items into a queue.
2025-10-29 06:20:49 -07:00
..
Ast std.Io: delete GenericReader 2025-08-29 17:14:26 -07:00
c_translation zig fmt 2025-09-24 20:01:19 -07:00
llvm llvm.Builder: allow Metadata to reference metadata strings 2025-10-07 07:49:54 -04:00
system Fix stale reference bug in std.zig.system.resolveTargetQuery (#25713) 2025-10-28 10:17:09 +01:00
Ast.zig std.Io: delete GenericReader 2025-08-29 17:14:26 -07:00
AstGen.zig forbid trivial local address returned from functions (#25333) 2025-09-23 23:37:53 +00:00
AstRlAnnotate.zig AstGen: forward result type through unary float builtins 2025-08-28 15:46:12 +01:00
BuiltinFn.zig remove async and await keywords 2025-07-07 13:39:16 -07:00
Client.zig fuzzing: implement limited fuzzing 2025-09-24 12:46:48 +02:00
ErrorBundle.zig compiler: update for introduction of std.Io 2025-10-29 06:20:49 -07:00
LibCDirs.zig std.ArrayList: make unmanaged the default 2025-08-11 15:52:49 -07:00
LibCInstallation.zig remove all Oracle Solaris support 2025-10-27 07:35:38 -07:00
llvm.zig std.zig: finish updating to new I/O API 2025-07-19 19:57:37 -07:00
number_literal.zig Make 0e.0 and 0xp0 not crash 2024-07-03 02:53:37 -04:00
Parse.zig langref: sync with zig-spec grammar.peg 2025-08-21 17:12:38 +02:00
parser_test.zig add some new fuzz tests 2025-09-18 18:56:18 -04:00
perf_test.zig std.zig: finish updating to new I/O API 2025-07-19 19:57:37 -07:00
primitives.zig
Server.zig std.Build.Step.Run: many enhancements 2025-10-18 09:28:41 +01:00
string_literal.zig std.fmt: delete deprecated APIs 2025-08-31 12:49:18 -07:00
system.zig std.Io.net.HostName: move lookup to the interface 2025-10-29 06:20:49 -07:00
target.zig chore: make std.zig.target.intByteSize return an u16 2025-10-27 11:13:25 +01:00
tokenizer.zig add some new fuzz tests 2025-09-18 18:56:18 -04:00
WindowsSdk.zig rework std.Io.Writer.Allocating to support runtime-known alignment 2025-08-30 00:48:50 -07:00
Zir.zig frontend: replace elem_val_node with elem_ptr_load 2025-09-20 18:33:00 -07:00
Zoir.zig std.zig.Ast: improve type safety 2025-03-07 22:22:01 +01:00
ZonGen.zig std.Io: delete GenericReader 2025-08-29 17:14:26 -07:00