Guillaume Lessard
395a77f0aa
Merge pull request #260 from apple/eng/PR-duplicate-as-release/1.6.0
...
[1.6] Fix: FileDescriptor.duplicate(as:) returns an invalid file descriptor on Windows
1.6.3
2025-09-15 10:31:53 -07:00
Jake Petroules
b1618475cc
[1.6] Fix: FileDescriptor.duplicate(as:) returns an invalid file descriptor on Windows
...
FileDescriptor.duplicate(as:) is backed by dup2 on Unix, and _dup2 on Windows.
On Unix, dup2 returns its second argument. On Windows, _dup2 instead returns
0 on success and -1 on error. This results in the newly returned FileDescriptor
object always containing a '0' file descriptor rather than the newly created
file descriptor, in violation of the documented behavior.
Account for the platform difference in the syscall wrapper to fix this.
Closes #192
(cherry picked from commit b2711a872a )
2025-09-15 10:16:15 -07:00
Guillaume Lessard
890830fff1
Merge pull request #254 from jrflat/fix-generic-int-typedefs-1.6.0
1.6.2
2025-08-03 17:11:41 -07:00
Jonathan Flat
a5f13c77b8
Fix typedef errors on platforms with _ASM_GENERIC_INT headers
2025-08-03 11:24:24 -06: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
d9d138a88e
Merge pull request #250 from glessard/five-nine-required
...
[gardening] Swift 5.9 is required
2025-07-30 16:08:07 -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
e0d9cb0638
Merge pull request #249 from glessard/feature-flag-condition
...
Gate 6.2 features by feature flag
2025-07-30 09:46:08 -07:00
Guillaume Lessard
c4fef8b59a
Disable non-escapable API by feature flag
2025-07-30 09:21:05 -07:00
Rauhul Varma
f97a80426c
update readme
2025-07-30 08:53:33 -07:00
Rauhul Varma
e5198c2b2d
disable 16.0 and 16.1
2025-07-30 08:50:14 -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
Guillaume Lessard
b63d24d465
Merge pull request #248 from glessard/updates-1.6.1
...
Updates for 1.6.1 tag
1.6.1
2025-07-29 23:11:20 -07:00
Guillaume Lessard
a717516d69
Merge branch 'main' into updates-1.6.1
2025-07-29 18:50:55 -07:00
Jonathan Flat
d89ca1d511
Merge pull request #247 from jrflat/ioring-for-older-kernels
...
Fix IORing build for older Linux kernels
2025-07-29 19:38:33 -06:00
Jonathan Flat
d32abd8c6e
Fix warning: will never be executed
2025-07-29 15:35:30 -06:00
Guillaume Lessard
d75acaac3a
[ci] expand github actions
2025-07-29 14:26:38 -06:00
Jonathan Flat
5fedb102b5
Fix IORing build for older Linux kernel versions
2025-07-29 14:24:17 -06:00
Guillaume Lessard
960067d31a
Merge pull request #245 from glessard/update-readme-main
...
Update README
2025-07-29 11:06:18 -07:00
Guillaume Lessard
0bb855ac35
Merge pull request #244 from glessard/update-readme-1.6.x
...
Update README
2025-07-29 08:10:23 -07:00
Guillaume Lessard
3f68d42246
Update Readme
2025-07-28 17:42:40 -07:00
Guillaume Lessard
c72c758953
Update Readme
2025-07-28 17:41:23 -07: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
c7eaf63462
Merge pull request #239 from jrflat/fix-wasi-build
...
Fix WASI build (dirent, umask, errno and open flag tests)
2025-07-28 12:18:40 -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
41daa93a5d
Merge pull request #235 from apple/merge-1.5.0-into-main
...
Merge 1.5.0 into main
1.6.0
2025-07-24 22:18:56 +00:00
David Smith
2adb6b41cc
Merge branch 'release/1.5.0' into merge-1.5.0-into-main
2025-07-24 14:29:18 -07:00
Guillaume Lessard
6ee9a58c36
Merge pull request #234 from azarovalex/fix-api-docs
...
Fix API documentation links in README.md
2025-07-14 15:18:35 -07: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
08ed962064
Don't abort the test if we can't open /proc/sys/kernel/io_uring_disabled
2025-07-11 23:05:26 +00:00
David Smith
08ea3343a5
Merge branch 'david/ioring' of https://github.com/apple/swift-system into david/ioring
2025-07-11 22:42:41 +00:00
David Smith
a66176f518
Only run IORing tests if io_uring support is enabled
2025-07-11 22:42:35 +00:00
David Smith
33b58a8110
Fix excludes harder
2025-07-11 13:44:46 -07:00
David Smith
52d9c99a94
Fix excludes
2025-07-11 13:42:49 -07:00
David Smith
b93169b8e2
Work around windows bugs harder
2025-07-11 20:37:23 +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