857 Commits
Author SHA1 Message Date
Jonathan Flat 4f1a3aceb1 Merge pull request #433 from apple/automerge/merge-main-2026-11-20_09-06
Merge `release/1.9.x` into `main`
2026-11-20 08:37:19 -08:00
Charles Zablit 1dc5cdc944 Merge pull request #417 from charles-zablit/cz/cmake/cmp0157
[CMake] Require CMake 3.29 to enable CMP0157
2026-11-19 12:07:29 +00:00
Guillaume Lessard 781b0cfab5 Remove testNotInSlashTmp()
This test was very dependent on details of the testing environment, and failed or succeeded according to details we don't seem to control in CI. In the end, this test was only reliable on macOS at desk. Accordingly,
we delete it.
2026-11-18 16:05:03 -08:00
hxperlandClaude Opus 5 e96ba28879 Unbacktick the target parameter name so DocC recognises it
`FileDescriptor.duplicate(as:retryOnInterrupt:)` writes its first
parameter entry as ``- `target`:`` rather than `- target:`. DocC matches
parameter documentation by the bare identifier, so the backticked entry
is not associated with the parameter: the description is dropped from
the rendered parameter list and DocC reports the parameter as
undocumented.

The `duplicate(as:options:retryOnInterrupt:)` overload twenty lines
below documents the same parameter without backticks, which is what
this changes the first overload to match.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MDv2d3fEYCVWGpu7AgD4qq
2026-11-18 16:03:46 -08:00
Jonathan Flat c0e3eea428 Merge pull request #430 from apple/automerge/merge-main-2026-11-18_09-06 2026-11-18 08:37:43 -07:00
Guillaume Lessard 53b1815f41 Test pipe2 with O_CLOFORK on FreeBSD 2026-11-17 15:48:00 -08:00
Guillaume Lessard 8e71dd3e0d Fix tests when testing with an SDK mismatch 2026-11-17 15:48:00 -08:00
Rick Newton-Rogers 677e51f1f2 Bump swiftlang/github-workflows to 0.0.18
The new workflows use macOS Golden Gate rather than macOS Tahoe by default.
2026-11-17 15:48:00 -08:00
Jonathan Flat cf29202fc7 Merge pull request #427 from apple/automerge/merge-main-2026-11-15_09-05
Merge `release/1.9.x` into `main`
2026-11-15 14:00:11 -07:00
Guillaume Lessard 406f7634f1 Merge pull request #424 from heckj/fix-setuid-setgid-doc-references
Point setUserID and setGroupID docs at the chmod(2) man page
2026-11-13 16:59:55 -08:00
Joe Heck 1da023b4ca Point setUserID and setGroupID docs at the chmod(2) man page
The docs for FilePermissions.setUserID and setGroupID referred to the setuid(2) and setgid(2) man pages. Those pages describe system calls that change a process's IDs. The permission bits are documented in chmod(2) as S_ISUID and S_ISGID. This matches how saveText already refers to S_ISVTX.
2026-11-13 15:46:58 -08:00
Jonathan Flat abc83c2de1 Merge pull request #422 from apple/automerge/merge-main-2026-11-13_09-06
Merge `release/1.9.x` into `main`
2026-11-13 11:18:20 -07:00
Charles Zablit 2949c1bfcb [CI] Install CMake 4.0.2 for CMake validation 2026-11-13 16:56:07 +01:00
Charles Zablit fa6a245b37 [CMake] Require CMake 3.29 to enable CMP0157 2026-11-13 16:55:10 +01:00
Guillaume Lessard 640e5755b5 Merge pull request #421 from 100lalitahegde-eng/fix-156-thread-safe-strerror
Use a thread-safe strerror in Errno.description
1.9.0
2026-11-12 10:22:43 -08:00
Lalita Hegade 1c44ed678c Copy strerror message directly into the String buffer
Use String(unsafeUninitializedCapacity:initializingUTF8With:), through
the existing backwards-compatible helper, so the message is written
straight into the string's storage instead of a stack buffer that is
then copied. Also update the copyright year range of Errno.swift.

musl's message for an unknown error number doesn't include the number,
so skip that check when building against Musl, as on WASI.
2026-11-12 08:13:35 +01:00
Lalita Hegade 6c5077b2d2 Report truncated strerror messages as ERANGE on every platform
strerror_s on Windows and bionic's strerror_r truncate without
returning an error, so detect a full buffer in the shim instead.
Also avoid the deprecated String(cString:) array overload in the test.
2026-11-11 22:12:05 +01:00
Jonathan Flat 762c819b0f Merge pull request #420 from apple/automerge/merge-main-2026-11-11_09-06
Merge `release/1.9.x` into `main`
2026-11-11 10:02:22 -07:00
Lalita Hegade 013178c00e Use a thread-safe strerror in Errno.description
strerror(3) isn't guaranteed to be thread-safe: for an unknown error
number, it may format the message into a static buffer shared by all
threads, so concurrent calls to Errno.description could return each
other's text.

Add a csystem_strerror_r shim to CSystem that writes into a
caller-provided buffer. It hides the difference between the XSI
strerror_r (Darwin, BSDs, musl, WASI) and the GNU variant that glibc
and bionic provide under _GNU_SOURCE, and uses strerror_s on Windows.
Errno.description now formats into a stack buffer through this shim.

Also add tests for Errno.description, which were a TODO.

Fixes #156
2026-11-11 17:46:01 +01:00
Jonathan Flat 70505cf6fc Merge pull request #419 from jrflat/windows-test-typed-winsdk-constants 2026-11-10 16:25:19 -07:00
Jonathan Flat d1b4ed40f2 Merge pull request #418 from apple/automerge/merge-main-2026-11-05_09-07
Merge `release/1.9.x` into `main`
2026-11-05 10:16:45 -07:00
Jonathan Flat 20dddc22ed Fix Windows test build with typed WinSDK constants 2026-11-05 10:10:29 -07:00
Guillaume Lessard f6105a8be1 Remove trapping operations from test 2026-11-04 16:35:26 -08:00
Guillaume Lessard 65df702254 Implement FilePathComponentsTest’s testRRC() 2026-11-04 16:35:26 -08:00
Ugur Toprakdeviren 77882a1fc8 fix(FilePath.ComponentView): prevent trailing separator when replacing suffix 2026-11-04 15:21:12 -08:00
Jonathan Flat 402eb4b586 Merge pull request #414 from jrflat/statfs-availability
Update StatFS availability to 1.9.0
2026-11-04 15:38:26 -07:00
Guillaume Lessard 7f6a009cc4 Merge pull request #413 from apple/require-swift-6.2
Require Swift 6.2
2026-11-04 14:30:51 -08:00
Jonathan Flat 8f2745da9a Merge pull request #415 from jrflat/automerger-1.9.x
Update automergers to run from 1.8.x to 1.9.x to main
2026-11-04 15:28:58 -07:00
Guillaume Lessard 74c1ef0581 Require Swift 6.2 2026-11-04 14:00:17 -08:00
Jonathan Flat 6dbc60a373 Update automergers to run from 1.8.x to 1.9.x to main 2026-11-04 14:39:33 -07:00
Jonathan Flat 443e03c16f Update StatFS availability to 1.9.0 2026-11-04 14:25:26 -07:00
Guillaume Lessard 1e6e65ede7 Merge pull request #409 from finagolfin/ci
Spruce up CI config
2026-11-04 13:12:53 -08:00
Jonathan Flat 90a005db2f Merge pull request #361 from jrflat/statfs-implementation
[Implementation] StatFS and supporting types
2026-11-04 12:54:26 -07:00
Jonathan Flat 98517ef93b Merge pull request #362 from jrflat/statfs-proposal
[Proposal] StatFS and supporting types
2026-11-04 12:53:58 -07:00
Jonathan Flat f28e22fbc1 Clarify we'll use the modern @export(implementation) spelling once possible 2026-11-04 12:41:08 -07:00
Finagolfin e16b3f1066 Spruce up CI config 2026-10-28 16:51:05 +05:30
Jonathan Flat a3e9687c91 Merge pull request #402 from rksharma-owg/codex/system-400-immutable-writes
[IO_URING] Accept immutable buffers for unregistered writes
2026-10-21 17:58:55 -06:00
Jonathan Flat b1f3496e31 Move table to doc comment, other comment updates 2026-10-21 13:49:53 -06:00
Jonathan Flat 15479b53b9 Merge branch 'main' into statfs-implementation 2026-10-21 13:07:09 -06:00
RKS 688716f8a2 Merge remote-tracking branch 'upstream/main' into codex/system402-refresh-20261020 2026-10-20 21:42:47 -04:00
Guillaume Lessard 6374a4ab3a Merge pull request #407 from apple/automerge/merge-main-2026-10-17_09-08 2026-10-18 17:22:18 -07:00
Jonathan Flat feb66db229 Merge remote-tracking branch 'origin/main' into automerge/merge-main-2026-10-17_09-08 2026-10-17 13:38:14 -06:00
RKS a51425f6d8 Disfavor deprecated mutable write overloads 2026-10-16 22:42:35 -04:00
RKS da235b4503 Test inferred rebased write buffers on current main 2026-10-16 22:36:43 -04:00
Jonathan Flat 86fdc1dd1d Merge pull request #406 from jrflat/automerger
Add automerger workflow from release/1.8.x to main
2026-10-16 17:26:22 -06:00
Jonathan Flat d0f7d75929 Add automerger workflow from release/1.8.x to main 2026-10-16 17:12:07 -06:00
Jonathan Flat f325ebf78f Merge pull request #391 from jrflat/improve-csystem-import-handling-v2
Improve CSystem import handling
2026-10-16 15:24:40 -06:00
Jonathan Flat 4179b2cce5 Remove CSystemFreeBSD.h, too 2026-10-12 19:39:54 -06:00
Jonathan Flat f5fe750a57 Improve CSystem import handling 2026-10-12 19:39:51 -06:00
Jonathan Flat 9bf5df3d10 v4: Add FileSystemTypeName wrapper 2026-10-12 16:59:19 -06:00