Guillaume Lessard
96c5f3b852
Merge branch 'release/1.7.0' into dev/mergeback-1.7.x
2026-06-13 09:18:51 -07:00
Minh Vu
776989a955
Install missing CSystem headers ( #323 )
2026-06-13 09:09:41 -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
Guillaume Lessard
abcf8e31b3
Merge pull request #321 from apple/dev/member-visibility-build-1.7.x
...
[1.7.0] Fix package build with MemberImportVisibility enabled
2026-06-12 15:22:05 -07:00
Jonathan Flat
0a3460f369
[1.7.0] Fix Stat MemberImportVisibility regression and add test ( #320 )
...
* Fix Stat MemberImportVisibility regression and add test
* Remove Android from the MIV test
2026-06-12 18:21:14 -04: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
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