Max Desiatov
94090e1c5c
WIP: fix errors when building for Embedded Swift
...
rdar://159277249
2025-08-27 14:56:23 +01:00
LamTrinh.Dev
0ea6743c17
Fix spelling errors in some comments.
2025-08-11 00:56:26 +07:00
Guillaume Lessard
9226c72b3a
Merge pull request #232 from apple/availability-macros
...
Replace bespoke availability system
2025-07-30 17:10:32 -07:00
Guillaume Lessard
13ad3fe4ac
Update copyright dates
2025-07-30 14:29:52 -07:00
Guillaume Lessard
2610d66a52
This package requires Swift 5.9
...
Accordingly, these conditions would always be true
2025-07-30 14:29:52 -07:00
Guillaume Lessard
c4fef8b59a
Disable non-escapable API by feature flag
2025-07-30 09:21:05 -07:00
Rauhul Varma
9a1530813e
Replace bespoke availability system
...
Removes the script based availability system with the experimental
availability macro feature.
2025-07-30 08:40:08 -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
e1191b2ba5
Merge pull request #241 from jrflat/fix-ioring-release-build
...
Fix IORing release build
2025-07-28 14:30:41 -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
Jonathan Flat
8de80270cb
Fix WASI build (dirent, umask, errno and open flag tests)
2025-07-25 14:03:59 -06:00
David Smith
7f9dba80cf
Merge pull request #208 from apple/david/ioring
...
Add io_uring support to System
2025-07-12 00:39:04 +00: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
David Smith
779c9ac628
Fix misuse of _CANCEL_ANY, and add support for non-redicated cancellation
2025-07-11 16:50:58 +00:00
David Smith
2f6c4e0f03
Add support for non-IORING_FEAT_SINGLE_MMAP kernels
2025-07-11 16:14:36 +00:00
David Smith
d121081c01
More Ubuntu 22 workarounds. This should error at runtime rather than not compiling, since we don't have Linux version checks at compile time
2025-07-10 23:30:42 +00:00
David Smith
a6675d7e5c
timespec should be compatible here, let's try it to fix the Ubuntu 22 build
2025-07-10 23:22:11 +00:00
David Smith
329c5f59a2
Conditionalize IORing on compiler >= 6.2
2025-07-09 21:17:42 +00:00
David Smith
6dd0eba8e3
Merge branch 'david/ioring' of https://github.com/apple/swift-system into david/ioring
2025-07-09 20:53:28 +00:00
David Smith
4b70ffe375
Fix short submits and also fix the registration ops enum, which somehow stopped compiling overnight
2025-07-09 20:53:23 +00:00
David Smith
8757fae97c
Remove some stray commas the API breakage test complains about
2025-07-08 16:57:30 -07:00
David Smith
d2b78f801b
Remove unneeded defines
2025-07-08 23:53:50 +00:00
David Smith
d6687d2bbb
Add deleted file back
2025-07-08 16:51:24 -07:00
David Smith
528e7485ba
Document completion flags and disable ones we don't currently support
2025-07-08 16:38:21 -07:00
David Smith
55e55c1978
Add test and fix submission queue capacity check
2025-07-08 23:15:17 +00:00
David Smith
bc097e91dc
Remove more blocking enqueue infrastructure
2025-07-08 22:42:15 +00:00
David Smith
227a38f230
Remove blocking enqueue
2025-07-08 22:41:06 +00:00
David Smith
bbe2f1c192
Add doc comments, Span/MutableSpan support, unregistering registered fds, variants of submission operations that don't block, address various TODOs
2025-07-08 00:41:50 +00:00
David Smith
e580c13ca8
Merge branch 'david/ioring' of https://github.com/apple/swift-system into david/ioring
2025-07-04 00:11:17 +00:00
David Smith
a6149c215e
Cleanup, implement buffer unregistering, inline almost everything because we're not ABI stable on Linux
2025-07-04 00:09:19 +00:00
David Smith
0d4c6fc971
Fix Musl
2025-07-03 16:12:56 -07:00
David Smith
27ccce55db
Conditionalize IORing stuff for Linux
2025-07-03 16:04:52 -07:00
David Smith
f9c2a2b8e7
Work around io_uring.h in ways that will work on both versions
2025-06-18 23:08:45 +00:00
Owen Voorhees
595c862c19
Fix Windows path parsing when the package is built in release configuration
...
forceWindowsPaths can be used to force Windows path parsing both on and off.
Instead of defaulting it to false in release builds, we should not express any preference
2025-05-21 21:12:58 -07:00
David Smith
3d6cba22b6
Work around compiler bugs harder
2025-04-28 23:03:26 +00:00
David Smith
f5b8e02ba7
Merge remote-tracking branch 'origin/main' into david/ioring
2025-04-28 22:33:21 +00:00
David Smith
7e2f797fb4
Fix some errors on newer linux systems
2025-04-28 22:30:00 +00:00
Jake Petroules
5695a8831b
Transparently add the \\?\ prefix to Win32 calls for extended length path handling
...
On Windows, there is a built-in maximum path limitation of 260 characters under most conditions. This can be extended to 32767 characters under either of the following two conditions:
- Adding the longPathAware attribute to the executable's manifest AND enabling the LongPathsEnabled system-wide registry key or group policy.
- Ensuring fully qualified paths passed to Win32 APIs are prefixed with \\?\
Unfortunately, the former is not realistic for the Swift ecosystem, since it requires developers to have awareness of this specific Windows limitation, AND set longPathAware in their apps' manifest AND expect end users of those apps to change their system configuration.
Instead, this patch transparently prefixes all eligible paths in calls to Win32 APIs with the \\?\ prefix to allow them to work with paths longer than 260 characters without requiring the caller of System to manually prefix the paths.
See https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation for more info.
2025-04-23 14:52:03 -07:00
David Smith
a49ba8a8b3
Give flags a default value
2025-04-22 23:20:37 +00:00
David Smith
c47779fac0
Try making requests and completions nested types
2025-04-22 23:07:01 +00:00
David Smith
a98cd3f2da
Build fix and rename IOResource
2025-04-21 23:47:00 +00:00
David Smith
3760dc265a
Nest IOResource, and update proposal to match
2025-04-21 16:35:08 -07:00
David Smith
baa3d62569
API tweak
2025-04-21 23:26:14 +00:00
David Smith
ea77ef8a21
Minor cleanup
2025-04-21 23:24:09 +00:00