Franz Busch
95ed6aa2a4
Address review comments
2026-10-06 10:21:52 +02: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
c3b7f2a48e
Merge pull request #393 from jrflat/ioring-consume-completions-undone
...
Fix missing `done` in `IORing.blockingConsumeCompletions`
2026-10-02 10:36:45 -06:00
Jonathan Flat
74a7b6f618
Fix missing done in IORing.blockingConsumeCompletions
2026-09-30 15:59:05 -06:00
Guillaume Lessard
e6796eb47d
Merge branch 'release/1.8.x' into main
2026-09-25 15:03:14 -07:00
Guillaume Lessard
b0d4217c8c
[ci] update github actions ( #389 )
...
* [ci] update version of workflows dependencies
2026-09-25 14:58:42 -07:00
Paris
85e911cd30
Merge pull request #388 from apple/ospobot/code-of-conduct
...
Housekeeping: replace repo-level CODE_OF_CONDUCT
2026-09-25 12:22:16 -07:00
apple-ospo[bot]
65f43f5d57
Replace repo-level CODE_OF_CONDUCT file with the inherited org-wide Code of Conduct in .github repo.
2026-09-25 17:42:48 +00: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
1b452c2996
Merge pull request #375 from apple/dev/enable-member-import-visibility
2026-08-17 11:27:16 -07:00
Aryan Singh K. and Guillaume Lessard
869129b7bf
fix(MachPort): silence concurrency check for mach_task_self_ ( #379 )
...
Darwin.Mach's mach_task_self_ is a shared global; Swift 6.3
reports it as not concurrency-safe when imported. Use a
preconcurrency import for older Darwin SDKs.
Fixes #373
Co-authored-by: Guillaume Lessard <guillaume.lessard@apple.com >
1.8.1
2026-08-13 12:54:10 -07:00
Aryan Singh K.
5c2854d7bd
fix(wasi): use mock TLS for all non-threaded WASI targets ( #378 )
...
The gate os(WASI) && (swift(<6.1) || !_runtime) incorrectly falls
through to pthread APIs on Swift 6.1+ non-threaded WASI, where
pthread_* is not in scope. Guard solely on !_runtime.
Fixes #370
2026-08-12 11:08:01 -07:00
Guillaume Lessard
6dc13544bb
Merge branch 'release/1.8.x' into ‘main’
2026-08-11 13:49:06 -07:00
Guillaume Lessard
d0ef8d091d
[readme] update for 1.8.x branch
2026-08-11 13:46:15 -07:00
Guillaume Lessard
79b7490ae9
Hoist “import CSystem” above the platform-specific imports
2026-08-07 15:43:00 -07:00
Guillaume Lessard
c5c1a835d6
Explicitly import CSystem for wasi
2026-08-07 15:42:10 -07:00
Guillaume Lessard
27bc5e7e8d
Enable “MemberImportVisibility”
2026-08-07 14:40:11 -07:00
Guillaume Lessard
c49268ed91
Merge branch 'release/1.8.x' into dev/forward-merge-1.8.x
2026-08-06 09:52:52 -07:00
Guillaume Lessard
704705c5c5
Merge pull request #369 from apple/dev/swift6-language-mode
...
Enable Swift 6 language mode
1.8.0
2026-08-04 09:13:02 -07:00
Guillaume Lessard
16cfbd4f8b
Enable Swift 6 language mode
2026-07-30 07:33:23 -07:00
Guillaume Lessard
755a5b4b3d
Merge pull request #367 from apple/dev/linux-import-issue
...
Prepare for Swift 6 language mode
2026-07-30 07:18:05 -07:00
Guillaume Lessard
6485260369
[Windows] use Atomic to protect the backing store of umask()
2026-07-29 19:41:17 -07:00
Guillaume Lessard
d4e86324e9
Add availability macro support to CMake build
...
For now this heplfully silences warnings.
2026-07-29 19:41:17 -07:00
Guillaume Lessard
29b14a3025
Concurrency tweak for single-thread wasm
2026-07-29 19:41:17 -07:00
Guillaume Lessard
6a63f086f6
Merge branch 'release/1.7.0' into main
...
# Conflicts:
# Tests/SystemTests/FileOperationsTest.swift
2026-07-29 18:12:22 -07:00
Guillaume Lessard
b9e0ecaa60
[linux] remove @_implementationOnly import qualifiers
2026-07-29 09:28:38 -07:00
Guillaume Lessard
6e3259aec3
Better explain a skip condition
2026-07-28 16:51:19 -07:00
Guillaume Lessard
d4373e36f6
Clarify .pollNval and add test reading from an invalid descriptor
2026-07-28 16:46:33 -07:00
Guillaume Lessard
a6d4c153b7
Add test to demonstrate a POLLERR result
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
980a71f20c
Add test to show that PollEvents has too few values
2026-07-28 16:46:33 -07:00
Guillaume Lessard
bd49600d62
Prevent tests from hanging in the wrong conditions
2026-07-28 16:46:32 -07:00
Guillaume Lessard
0ecb080d5c
Test ready events in a better way
2026-07-28 16:46:32 -07:00
Guillaume Lessard
bed8e28860
Clean up permissively
2026-07-28 16:46:32 -07:00
Guillaume Lessard
2e81d94142
Add a test similar to the example in the pollAdd doc-comment
2026-07-28 16:46:32 -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
27b4a4a03a
Use XCTSkipIf to guard IORing tests
2026-07-28 16:46:31 -07:00
Guillaume Lessard
8ac955bde7
Merge pull request #365 from apple/dev/fix-imports
2026-07-28 12:47:38 -07:00
Guillaume Lessard
617edb8398
Move an import
...
In all other cases, the `import CSystem` happens before the platform-specific import. This makes this detail consistent.
2026-07-28 10:28:06 -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