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
dd5313284d
[cmake] add new file to configuration
2026-07-27 16:26:22 -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
a9597cc068
Merge branch 'release/1.7.0' into main
2026-07-21 10:25:33 -07:00
Jonathan Flat
50688cacbd
Update Stat.generationNumber to UInt64
2026-07-21 10:07:16 -07:00
Jonathan Flat
7c072c0d97
Hash the same fields compared by ==
...
From the `hash(into:)` docs: "The components used for hashing must be the same as the components compared in your type’s == operator implementation."
2026-07-20 13:30:27 -06:00
Jonathan Flat
5d61ccdc7e
Remove @_alwaysEmitIntoClient from == and hash(into:)
...
The implementations of these functions are non-trivial, so remove the annotation to reduce client code size.
2026-07-20 11:48:41 -06:00
Jonathan Flat
2b266acf85
Don't compare padding/reserved fields for Stat equality
2026-07-17 15:15:09 -06:00
Guillaume Lessard
a6515006f5
Adjust availability macro
2026-07-13 10:56:30 -07:00
Guillaume Lessard
7edc09a749
Remove an accidental throw annotation
2026-07-13 10:56:05 -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
Owen Voorhees
16cdb0d008
Set -package-name in CMake build
2026-07-10 17:03:44 -07:00
Guillaume Lessard
e2ae946862
Merge branch 'release/1.7.0'
2026-07-09 12:55:43 -07:00
Guillaume Lessard
dda389ed2b
Fix cmake configuration
2026-07-07 16:23:09 -07:00
Guillaume Lessard
d3c632e868
Merge branch 'release/1.7.0'
2026-07-07 11:26:07 -07:00
Guillaume Lessard
38cd4aaf65
Merge pull request #336 from glessard/ioring-syscall-wrappers
...
Improve syscall wrappers for IORing
2026-07-07 10:11:37 -07:00
Minh Vu
41de235573
Add missing System CMake sources ( #325 )
2026-07-07 10:34:42 -06: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
Jake Petroules
e927959165
Enable .closeOnExec for FileDescriptor.open on Windows
...
Make OpenOptions.closeOnExec available on Windows, where it maps to
_O_CLOEXEC (O_NOINHERIT). The Windows open adapter already decodes
O_NOINHERIT into a non-inheritable handle, so this produces the
expected close-on-exec semantics. Also add the deprecated O_NOINHERIT
alias, matching the PipeOptions treatment from #312 .
2026-07-06 13:15:48 -07:00
Jake Petroules
a7e7c56fec
Enable .closeOnExec for FileDescriptor.open on Windows
...
Make OpenOptions.closeOnExec available on Windows, where it maps to
_O_CLOEXEC (O_NOINHERIT). The Windows open adapter already decodes
O_NOINHERIT into a non-inheritable handle, so this produces the
expected close-on-exec semantics. Also add the deprecated O_NOINHERIT
alias, matching the PipeOptions treatment from #312 .
2026-07-06 11:02:51 -07:00
Guillaume Lessard
76a2dc6162
Improve _blockingConsumeCompletionGuts
2026-06-27 11:24:37 -07:00
Aditya Singh
671bd1a573
Replace precondition with fatalError for missing permissions on .create ( #307 )
...
FileDescriptor.open traps when options contains .create but permissions
is nil. The previous precondition could elide its message in optimized
builds, leaving users to hunt through source to diagnose the crash.
Use fatalError with a descriptive message so the reason is always
present in the crash dump, and document the trapping behavior.
Fixes #78
2026-06-12 17:12:22 -07:00
Sarunas
c50ad26d06
fix: build with MemberImportVisibility
2026-06-12 15:00:50 -07:00
Kenta Kubo
360e6f70f0
Fix missing O_CLOFORK on older FreeBSD
2026-06-12 22:31:04 +09:00
Guillaume Lessard
e402d5fa38
Merge pull request #314 from apple/dev/typecast-1.7.x
...
System: remove unnecessary type casting
2026-06-11 13:50:16 -07:00
Saleem Abdulrasool
7e888c0cb4
System: remove unnecessary type casting
...
The compiler now imports these as their canonical type, allowing us to
directly use without the explicit type cast. Due to the floor of Swift
6.3, we must preserve the type cast values. Introduce an overlay to
explicitly cast the values in the older compilers.
2026-06-11 13:37:29 -07:00
Guillaume Lessard
d937d15735
Add clarifications to the doc-comments of the new overloads.
2026-06-11 13:22:29 -07:00
Guillaume Lessard
2cc89c12b3
Defer pipe buffering decision to the OS on Windows
2026-06-09 16:27:18 -07:00
Guillaume Lessard
e59002fa14
Add option-taking pipe() implementation for Windows
2026-06-09 16:27:18 -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
Guillaume Lessard
de8779fb3d
Update copyright headers
2026-05-26 16:21:28 -07:00
Guillaume Lessard
491b97c7c0
Complete implementation of SYS-0007
2026-05-20 10:01:11 -07:00
Guillaume Lessard
814d09c7ea
Improve doc-comments
2026-05-20 09:58:46 -07:00
Guillaume Lessard
61280ab365
Fix declaration inconsistencies
2026-05-20 09:58:46 -07:00
Guillaume Lessard
cc4afd1a71
Fix types of new static members of option sets
2026-05-20 09:58:46 -07:00