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
Jonathan Flat
34f4970c1c
Build CSystem as a static library in CMake so shims.c is compiled
2026-05-29 12:48:43 -06: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
Jake Petroules
348b497836
Add overloads to cover dup3 and pipe2 POSIX APIs
...
This follows the existing pattern of wrapping dup/dup2 and pipe with FileDescriptor.duplicate and FileDescriptor.pipe, with additional overloads for passing the O_CLOEXEC and similar flags.
2026-05-20 09:58:46 -07:00
Jonathan Flat
51d396093d
[Implementation] Back-deploy CInterop.stat for Migration Compatibility ( #299 )
2026-03-02 18:17:36 -07:00
Kenta Kubo
cf6956a19a
Reduce the use of compile-time branching
2026-01-28 21:33:06 +09:00
Kenta Kubo
7c0af0ded6
Fix FreeBSD build
2026-01-28 00:02:14 +09:00
Guillaume Lessard
b0e5ec8932
MachPort inlinability fixes
...
When compiled with library resilience, `consuming` functions which `discard self` cannot also be `@inlinable`.
2026-01-21 09:10:29 -08:00
Guillaume Lessard
f6b96c3ba7
Merge pull request #279 from mairinkdev/main
...
Fix silent buffer size truncation in Windows pread/pwrite
2026-01-13 14:35:02 -08:00
Guillaume Lessard
7c6ad0fc39
Merge pull request #286 from apple/dev/fix-pread-truncation-windows-1.6.0
...
[Windows] fix pread/pwrite truncation
2026-01-13 13:53:28 -08:00
lee
13851a3421
Fix silent buffer size truncation in Windows pread/pwrite
2026-01-13 13:37:44 -08:00
AZero13
0dbbab4aa1
Fix HRESULT_FACILITY
...
HRESULT_FACILITY is >> 16 & 0x1fff, not <<
2026-01-13 12:41:47 -08:00
lee
766415499c
Fix silent buffer size truncation in Windows pread/pwrite
2026-01-07 11:37:16 -03:00
AZero13
0dcedcb7bb
Fix HRESULT_FACILITY
...
HRESULT_FACILITY is >> 16 & 0x1fff, not <<
2025-12-28 14:33:38 -05:00
Jonathan Flat
e133abb3e0
Fix Stat build on Android
2025-11-03 18:05:50 -07:00
Jonathan Flat
55350cd06d
Add availability to new CInterop typealiases
2025-11-02 22:31:37 -07:00
Jonathan Flat
87f8e49ba7
Assign rawValue instead of self
2025-10-30 14:11:45 -06:00
Jonathan Flat
c2e385e849
Remove commented-out code pt. 2
2025-10-29 12:01:13 -06:00
Jonathan Flat
4911642226
Add availability, fix CInterop availability issue on old Darwin platforms
2025-10-29 12:01:01 -06:00
Jonathan Flat
40e1deb663
Consolidate internal Stat functions
2025-10-29 11:47:32 -06:00
Jonathan Flat
eee0145671
Standardize on "file system"
2025-10-28 22:52:34 -06:00
Jonathan Flat
90dba1dc68
AT_SYMLINK_FOLLOW -> AT_SYMLINK_NOFOLLOW
2025-10-28 22:31:34 -06:00
Jonathan Flat
501bb7d052
Remove commented-out code for future directions
2025-10-28 22:30:47 -06:00
Jonathan Flat
98712f67f2
Remove _GNU_SOURCE define and AT_EMPTY_PATH for now
2025-10-06 13:32:29 -06:00
Jonathan Flat
2f5b12b854
Updates for proposal v3
2025-09-29 12:02:59 -06:00
Jonathan Flat
905f9f842d
Expose C timespec properties until UTCClock can be used
2025-09-29 11:34:04 -06:00
Jonathan Flat
a07696ace3
Fix AT_RESOLVE_BENEATH availability
2025-09-29 11:34:03 -06:00
Jonathan Flat
57d515e1d0
Stat implementation
2025-09-29 11:34:02 -06:00
Guillaume Lessard
478da393fa
Use new names for Swift 6 mode
2025-09-18 16:59:28 -07:00
Guillaume Lessard
4bbe3f3eeb
Merge pull request #261 from apple/release/1.6.0
...
Merge back tag 1.6.3
2025-09-18 11:41:27 -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
Jake Petroules
b2711a872a
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
2025-09-12 22:11:45 -07:00
LamTrinh.Dev
0ea6743c17
Fix spelling errors in some comments.
2025-08-11 00:56:26 +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
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