RKS
688716f8a2
Merge remote-tracking branch 'upstream/main' into codex/system402-refresh-20261020
2026-10-20 21:42:47 -04:00
Jonathan Flat
feb66db229
Merge remote-tracking branch 'origin/main' into automerge/merge-main-2026-10-17_09-08
2026-10-17 13:38:14 -06:00
RKS
a51425f6d8
Disfavor deprecated mutable write overloads
2026-10-16 22:42:35 -04:00
Jonathan Flat
f5fe750a57
Improve CSystem import handling
2026-10-12 19:39:51 -06:00
RKS
92481cc056
[IO_URING] Document immutable write requests
2026-10-06 12:39:41 -04:00
RKS
f0d63f4282
Merge remote-tracking branch 'origin/main' into codex/system-400-immutable-writes
2026-10-06 12:38:53 -04:00
Franz Busch
95ed6aa2a4
Address review comments
2026-10-06 10:21:52 +02:00
RKS
0eab740450
[IO_URING] Accept immutable buffers for unregistered writes
2026-10-05 22:39:32 -04:00
Franz Busch
cbf57d4575
[IO_URING] Keep the completion of failed IORing operations
...
When an operation failed, the blocking consume methods dropped its completion and only reported the `Errno`. The caller could not tell which request failed, since the `context` was lost. This breaks any user that matches completions to requests.
This PR makes `blockingConsumeCompletions` pass the completion of a failed operation together with its error. Errors of the ring itself, such as `.timeout`, are still passed without a completion. Additionally, `blockingConsumeCompletion(timeout:)` now returns the completion of a failed operation instead of throwing. It only throws errors of the ring itself.
I also added `Completion.error`, which is `nil` on success and the decoded `Errno` otherwise to make it easy to get to the error of a completion.
Fixes #364
Fixes #395
2026-10-05 20:59:39 +02:00
Jonathan Flat
74a7b6f618
Fix missing done in IORing.blockingConsumeCompletions
2026-09-30 15:59:05 -06:00
Franz Busch
b62bce1bc4
Merge pull request #273 from apple/fb-io-uring-poll-add
...
[IO_URING] Add support for `pollAdd` operation
2026-09-25 10:52:31 +02:00
Jonathan Flat
6843adad5a
Add missing @inlinable
2026-09-24 19:38:24 -06:00
Jonathan Flat
4699556133
Add unavailable/renamed hints for C names
2026-09-24 19:37:41 -06:00
Jonathan Flat
1c80f27aef
Remove PollEvents.allEvents and use internal Event enum for testing
2026-09-24 19:37:41 -06:00
Jonathan Flat
59b5659a1e
Make internal isMultiShot default match public API
2026-09-24 19:37:38 -06:00
Jonathan Flat
dc65a924d9
Doc comment updates
2026-09-24 19:36:21 -06:00
Franz Busch
3b8124e350
Smaller touch ups
2026-09-22 10:18:47 +02:00
Franz Busch
241fedcbbd
Address review feedback
2026-09-22 10:07:05 +02:00
Guillaume Lessard
d4373e36f6
Clarify .pollNval and add test reading from an invalid descriptor
2026-07-28 16:46:33 -07:00
Guillaume Lessard
4df226b098
Fix copyright notices
2026-07-28 16:46:33 -07:00
Guillaume Lessard
a2ca84e281
Round out PollEvents
2026-07-28 16:46:33 -07:00
Guillaume Lessard
75c85d47e7
Account for big-endian architectures for poll event encoding
2026-07-28 16:46:32 -07:00
Guillaume Lessard
5b7e24a6b1
Define a constant in Swift rather than in C
2026-07-28 16:46:31 -07:00
Guillaume Lessard
6baba54adb
Reflow or improve some doc-comments
2026-07-28 16:46:31 -07:00
Guillaume Lessard
5db65c3086
Add an explicit import
...
Necessary to use `timespec` in Swift 6 mode.
2026-07-28 10:27:25 -07:00
Franz Busch
2a069e401b
Update Sources/System/IORing/IORequest.swift
2026-07-27 16:26:21 -07:00
Franz Busch and Martin
e775d1bf59
Apply suggestion from @MarSe32m
...
Co-authored-by: Martin <sebastian.toivonen@gmail.com >
2026-07-27 16:26:21 -07:00
Franz Busch
ab11b74b39
[IO_URING] Add support for pollAdd operation
...
To observe events on file descriptors IO_URING supports the `pollAdd` operation. This is useful when you want to observe a file descriptor becoming ready to read or write
This PR adds a new `IORing.Request.PollEvents` option set to model the poll masks. Furthermore, it adds a new `static func pollAdd` to the `IORing.Request`.
We can now use IO_URING to poll for events on file descriptors.
2026-07-27 16:26:21 -07:00
Guillaume Lessard
03604ffcd9
Use typed error instead of rethrows
2026-07-13 10:40:41 -07:00
Guillaume Lessard
2d0912acba
Specify some omitted error types
2026-07-13 10:40:41 -07:00
Guillaume Lessard
73da907161
improve Errno handling for io_uring_register
2026-07-06 14:11:32 -07:00
Guillaume Lessard
124e17164c
improve Errno handling for io_uring_enter
2026-07-06 14:11:32 -07:00
Guillaume Lessard
d7ca4a9e4c
improve Errno handling for io_uring_enter2
2026-07-06 14:11:32 -07:00
Guillaume Lessard
76a2dc6162
Improve _blockingConsumeCompletionGuts
2026-06-27 11:24:37 -07:00
Guillaume Lessard
ebbbc31709
Merge pull request #310 from apple/release/1.6.0
2026-06-05 17:37:50 -07:00
David Smith
6fa5c8a6c1
Explain why this is a class
2026-06-04 16:05:44 -07:00
David Smith
2cae953181
Fix a crash when work is interleaved between prepare and submit in IORing
2026-06-04 16:05:28 -07:00
LamTrinh.Dev
0ea6743c17
Fix spelling errors in some comments.
2025-08-11 00:56:26 +07:00
Guillaume Lessard
c4fef8b59a
Disable non-escapable API by feature flag
2025-07-30 09:21:05 -07:00
Jonathan Flat
d32abd8c6e
Fix warning: will never be executed
2025-07-29 15:35:30 -06:00
Jonathan Flat
5fedb102b5
Fix IORing build for older Linux kernel versions
2025-07-29 14:24:17 -06:00
Jonathan Flat
a067a0751a
Merge pull request #242 from jrflat/fix-ioring-static-linux-sdk
...
Fix IORing static Linux SDK
2025-07-28 14:31:18 -06:00
Jonathan Flat
4f5b5fb40d
Fix IORing static Linux SDK
2025-07-28 12:08:37 -06:00
Jonathan Flat
5059730d24
Fix IORing release build
2025-07-28 10:52:35 -06:00
David Smith
9a046498d0
Try adding newlines to the ends of files to work around a compiler bug
2025-07-11 19:23:24 +00:00
David Smith
a56bcda3c1
Un-combine conditionals but flip their order. This should fix the Windows build with older compilers
2025-07-11 19:07:04 +00:00
David Smith
f7c05e1fb8
Combine platform conditionals
2025-07-11 18:53:55 +00:00
David Smith
7fc787e6ba
Move IORing files to a subdirectory
2025-07-11 17:00:32 +00:00