GasInfinity
1deb029a66
std: rename bit_set variants and deprecate the managed one.
...
* aliases and deprecates the previous names.
* also update callsites to use the non-deprecated declarations.
2026-04-27 16:46:26 +02:00
nektro
e73257dec2
lib/std: BitSet,EnumSet: replace initEmpty/initFull with decl literals ( #31469 )
...
Reviewed-on: https://codeberg.org/ziglang/zig/pulls/31469
Reviewed-by: Andrew Kelley <andrew@ziglang.org >
Co-authored-by: nektro <hello@nektro.net >
Co-committed-by: nektro <hello@nektro.net >
2026-04-05 05:12:13 +02:00
GasInfinity
1f79a9e4e3
feat(Io.net): add allow_broadcast to BindOptions
...
* and implement it in `Threaded`, `Uring` and `Kqueue`
2026-03-27 09:43:57 +01:00
Jacob Young
9ac1386c10
std.Io.Threaded: windows networking without ws2_32
2026-03-18 20:13:59 -04:00
Andrew Kelley
02142a54d2
std.Io: remove cancelation propagation assertions
...
While the general guidance remains useful, it is not the case that
error.Canceled will always pass across the Group task function boundary.
Remove the too-aggressive assertions and add unit test coverage.
Closes #30096
Closes #31340
Closes #31358
2026-02-28 05:07:54 +01:00
Andrew Kelley
d9fc7fa04d
std.Io: remove select function
...
This function works with a slice of futures and returns the index of a
completed one. This doesn't work very well in practice because it's
either too high level or too low level.
At the lower level we have Io.Batch for doing this kind of thing at the
Operation API layer.
At the higher level we have Io.Select which is a convenience wrapper
around an Io.Group and an Io.Queue.
2026-02-14 18:31:48 -08:00
Jacob Young
2fa1a78491
Io.Dispatch: introduce grand central dispatch io impl
2026-02-13 12:29:40 -05:00
Andrew Kelley
b600b6e5e0
std.posix: remove close function
2026-02-11 23:37:31 +01:00
angus
703df73f38
initialize mutex correctly in kqueue.zig
2026-02-07 14:19:29 +00:00
Andrew Kelley
d45f9aca14
std.Thread: delete Mutex.Recursive
...
Replaced by the lockStderr functions of std.Io. Trying to make
`std.process.stderr_thread_mutex` be a bridge across different Io
implementations didn't work in practice.
2026-02-03 20:46:25 -08:00
Andrew Kelley
ce89006035
std.Io.Kqueue: fix bitrot
2026-01-07 18:00:36 -08:00
Andrew Kelley
3961fe3de9
std: move posix.kevent to Io.Kqueue
2026-01-07 17:33:07 -08:00
Andrew Kelley
2c6304efc7
std: move posix.kqueue to Io.Kqueue.createFileDescriptor
2026-01-07 17:33:07 -08:00
Lukas Lalinsky
e8a2e6578a
Add std.Io.net.Stream.shutdown
2025-12-29 02:20:37 +01:00
Andrew Kelley
a8088306f6
std: rename other Dir "make" functions to "create"
2025-12-23 22:15:11 -08:00
Andrew Kelley
e1cf753db7
std: update fchmodat tests
2025-12-23 22:15:09 -08:00
Andrew Kelley
877032ec6a
std: reorganize realpath and process executable APIs
2025-12-23 22:15:08 -08:00
Andrew Kelley
03fd132b1c
std.Io: fix Group.wait unsoundness
...
Previously if a Group.wait was canceled, then a subsequent call to
wait() or cancel() would trip an assertion in the synchronization code.
2025-10-29 06:20:52 -07:00
Andrew Kelley
b39f3d294d
std.Io.Threaded: implement dirMakeOpenPath for WASI
...
and fix error code when file operation occurs on director handle
2025-10-29 06:20:52 -07:00
Andrew Kelley
ae86c0f529
std.Io: adjust concurrent error set
...
Now std.Io.Threaded can return error.ConcurrencyUnavailable rather than
asserting. This is handy for logic that wants to try a concurrent
implementation but then fall back to a synchronous one.
2025-10-29 06:20:51 -07:00
Andrew Kelley
5578c760a7
std.Io.Kqueue: implement wait queue per fd
...
Solves the issue when one kevent() call would clobber another if they
used the same file descriptor as an identifier.
2025-10-29 06:20:51 -07:00
Andrew Kelley
6a64c9b7c8
std.Io.Kqueue: add missing Thread deinit logic
2025-10-29 06:20:51 -07:00
Andrew Kelley
cc11dd1f87
std.Io.Kqueue: implement EAGAIN logic for netRead
2025-10-29 06:20:51 -07:00
Andrew Kelley
0497f88d39
std.Io.Kqueue: implement netRead
2025-10-29 06:20:51 -07:00
Andrew Kelley
f17c6bba57
std.Io.Kqueue: implement netConnect
2025-10-29 06:20:51 -07:00
Andrew Kelley
9d6750f01c
std.Io.Kqueue: implement netSend
2025-10-29 06:20:51 -07:00
Andrew Kelley
92b8378814
concurrent and await
2025-10-29 06:20:51 -07:00
Andrew Kelley
dd945bf1f8
one kqueue per thread
2025-10-29 06:20:51 -07:00
Andrew Kelley
df84dc18bc
add bind
2025-10-29 06:20:51 -07:00
Andrew Kelley
d6b0686b05
std.Io: add Kqueue implementation
2025-10-29 06:20:51 -07:00