# System

**URL:** https://forums.swift.org/c/related-projects/system/68.md

[Latest](https://forums.swift.org/latest.md) · [Categories](https://forums.swift.org/categories.md) · [Tags](https://forums.swift.org/tags.md)

---

## [About the System category](https://forums.swift.org/t/about-the-system-category/40628)

<div class="topic-metadata">

**Author:** [@mishal\_shah](https://forums.swift.org/u/mishal_shah)\
**Replies:** 0

</div>

Swift System provides idiomatic interfaces to system calls and low-level currency types.

---

## [Pitch: SocketDescriptor](https://forums.swift.org/t/pitch-socketdescriptor/90148)

<div class="topic-metadata">

**Author:** [@Michael\_Ilseman](https://forums.swift.org/u/Michael_Ilseman)\
**Replies:** 13\
**Last updated:** [October 29, 2026, 10:50pm UTC](https://forums.swift.org/t/pitch-socketdescriptor/90148 "2026-10-29T22:50:16Z")

</div>

Hello, I'd like to pitch the start of socket support for \*nix-like platforms in System. gist. Socket Descriptors for Swift System Proposal: SYS-NNNN Authors: Michael Ilseman, Karoy Lorentey, Franz Busch Review Manager:…

---

## [\[Pitch\] A noncopyable Win32.FileHandle: ownership and closing](https://forums.swift.org/t/pitch-a-noncopyable-win32-filehandle-ownership-and-closing/90024)

<div class="topic-metadata">

**Author:** [@jrflat](https://forums.swift.org/u/jrflat)\
**Replies:** 32\
**Last updated:** [October 23, 2026, 6:20pm UTC](https://forums.swift.org/t/pitch-a-noncopyable-win32-filehandle-ownership-and-closing/90024 "2026-10-23T18:20:40Z")

</div>

Hi all, To continue with the proposals for Windows-native file system APIs, I'd like to pitch a noncopyable wrapper for HANDLE in the Win32 namespace. Later proposals build on this type for handle-based APIs. The full …

---

## [\[Pitch\] StatFS and supporting types](https://forums.swift.org/t/pitch-statfs-and-supporting-types/88151)

<div class="topic-metadata">

**Author:** [@jrflat](https://forums.swift.org/u/jrflat)\
**Replies:** 5\
**Last updated:** [October 21, 2026, 7:52pm UTC](https://forums.swift.org/t/pitch-statfs-and-supporting-types/88151 "2026-10-21T19:52:30Z")

</div>

Hi System enthusiasts! I'd like to pitch new Swift API for the statfs family of syscalls and supporting types. The following shows a proposed solution with Swift API to C mappings, then some topics for discussion. Feedb…

---

## [\[Pitch\] A \`Win32\` namespace and \`Win32.Error\` for System, with a roadmap for Windows-native file system APIs](https://forums.swift.org/t/pitch-a-win32-namespace-and-win32-error-for-system-with-a-roadmap-for-windows-native-file-system-apis/89844)

<div class="topic-metadata">

**Author:** [@jrflat](https://forums.swift.org/u/jrflat)\
**Replies:** 8\
**Last updated:** [October 2, 2026, 11:04pm UTC](https://forums.swift.org/t/pitch-a-win32-namespace-and-win32-error-for-system-with-a-roadmap-for-windows-native-file-system-apis/89844 "2026-10-02T23:04:59Z")

</div>

Hi System community! I'd like to pitch a series of proposals for Windows-native file system API in System, built on the Win32 base API and HANDLE rather than the C runtime's POSIX compatibility layer that backs FileDesc…

---

## [\`IORing\` now supports \`pollAdd\`](https://forums.swift.org/t/ioring-now-supports-polladd/89766)

<div class="topic-metadata">

**Author:** [@jrflat](https://forums.swift.org/u/jrflat)\
**Replies:** 0\
**Last updated:** [September 25, 2026, 5:07pm UTC](https://forums.swift.org/t/ioring-now-supports-polladd/89766 "2026-09-25T17:07:53Z")

</div>

Hi System enthusiasts, IORing now supports the pollAdd operation for observing events on a FileDescriptor. Thank you to @FranzBusch, @glessard, and @MarSe32m for the contributions! \[IO\_URING\] Add support for \`pollAdd\` o…

---

## [Swift System 1.7.0 released](https://forums.swift.org/t/swift-system-1-7-0-released/87325)

<div class="topic-metadata">

**Author:** [@glessard](https://forums.swift.org/u/glessard)\
**Replies:** 0\
**Last updated:** [June 11, 2026, 9:35pm UTC](https://forums.swift.org/t/swift-system-1-7-0-released/87325 "2026-06-11T21:35:03Z")

</div>

This release adds the implementations of two proposals: Stat and support for dup3 and pipe2. Additionally, swift-system 1.7.0 successfully builds and tests on more platforms, including Android and FreeBSD. This release…

---

## [Pitch: Span adoption in FileDescriptor I/O](https://forums.swift.org/t/pitch-span-adoption-in-filedescriptor-i-o/84323)

<div class="topic-metadata">

**Author:** [@Michael\_Ilseman](https://forums.swift.org/u/Michael_Ilseman)\
**Replies:** 5\
**Last updated:** [January 28, 2026, 10:50pm UTC](https://forums.swift.org/t/pitch-span-adoption-in-filedescriptor-i-o/84323 "2026-01-28T22:50:14Z")

</div>

Hello, I'd like to pitch adding Span family of overloads to read/write operations on FileDescriptor. You can see the gist here Span-based File I/O for Swift System Proposal: SYS-0007 Authors: Michael Ilseman, Guillaume…

---

## [Add remove() and removeDirectory() methods](https://forums.swift.org/t/add-remove-and-removedirectory-methods/83120)

<div class="topic-metadata">

**Author:** [@akshatsinha0](https://forums.swift.org/u/akshatsinha0)\
**Replies:** 16\
**Last updated:** [December 4, 2025, 2:24pm UTC](https://forums.swift.org/t/add-remove-and-removedirectory-methods/83120 "2025-12-04T14:24:19Z")

</div>

I've added two new methods to FilePath that make it easier to delete files and empty directories. The remove() method deletes a file at a given path, and the removedirectory() method deletes an empty directory. Both meth…

---

## [Swift System 1.6.0 released](https://forums.swift.org/t/swift-system-1-6-0-released/81294)

<div class="topic-metadata">

**Author:** [@David\_Smith](https://forums.swift.org/u/David_Smith)\
**Replies:** 1\
**Last updated:** [July 25, 2025, 6:20am UTC](https://forums.swift.org/t/swift-system-1-6-0-released/81294 "2025-07-25T06:20:31Z")

</div>

We have tagged a new minor-version release of swift-system, version 1.6.0 . This release adds preliminary io\_uring support on Linux, via the new IORing type. See \[PITCH\] Pitch v2 for io\_uring support in Swift System on …

---

## [Make FilePath,FilePath.Component and FilePath.Root adopt ExpressibleByStringInterpolation](https://forums.swift.org/t/make-filepath-filepath-component-and-filepath-root-adopt-expressiblebystringinterpolation/81103)

<div class="topic-metadata">

**Author:** [@zhiqiangj217](https://forums.swift.org/u/zhiqiangj217)\
**Replies:** 4\
**Last updated:** [July 14, 2025, 3:42pm UTC](https://forums.swift.org/t/make-filepath-filepath-component-and-filepath-root-adopt-expressiblebystringinterpolation/81103 "2025-07-14T15:42:41Z")

</div>

if we make FilePath adopt ExpressibleByStringInterpolation, we can use FilePath like this let filePath: FilePath = "/xx/\\(yy)"

---

## [Swift-system 1.4.0 released](https://forums.swift.org/t/swift-system-1-4-0-released/75470)

<div class="topic-metadata">

**Author:** [@glessard](https://forums.swift.org/u/glessard)\
**Replies:** 0\
**Last updated:** [October 19, 2024, 5:39am UTC](https://forums.swift.org/t/swift-system-1-4-0-released/75470 "2024-10-19T05:39:26Z")

</div>

We have tagged a new minor-version release of swift-system, version 1.4.0 . This release adds Sendable conformance to FilePath and its sub-components. It also adds an implementation of FileDescriptor's pipe() function f…

---

## [Plutil bug](https://forums.swift.org/t/plutil-bug/73691)

<div class="topic-metadata">

**Author:** [@plutil](https://forums.swift.org/u/plutil)\
**Replies:** 8\
**Last updated:** [August 13, 2024, 3:34pm UTC](https://forums.swift.org/t/plutil-bug/73691 "2024-08-13T15:34:30Z")

</div>

Hello, I'm using the 5.9.2 compiler and accompanying programs. I tried to use plutil to look at some binary plists recently that came from an iOS 15.8 device, and the plutil utility appears buggy: It seemingly doesn't …

---

## [\[API Review\] FilePath Syntactic APIs](https://forums.swift.org/t/api-review-filepath-syntactic-apis/43765)

<div class="topic-metadata">

**Author:** [@Michael\_Ilseman](https://forums.swift.org/u/Michael_Ilseman)\
**Replies:** 58\
**Last updated:** [January 27, 2021, 12:15am UTC](https://forums.swift.org/t/api-review-filepath-syntactic-apis/43765 "2021-01-27T00:15:54Z")

</div>

Hello everyone, I'd like to open up review of new FilePath APIs to a wide audience. The forums impose a character limit, so see the full text with extended rationale and future directions here. FilePath Syntactic Operat…

---

## [Swift-system 1.3.0 released](https://forums.swift.org/t/swift-system-1-3-0-released/71899)

<div class="topic-metadata">

**Author:** [@glessard](https://forums.swift.org/u/glessard)\
**Replies:** 2\
**Last updated:** [July 23, 2024, 9:33pm UTC](https://forums.swift.org/t/swift-system-1-3-0-released/71899 "2024-07-23T21:33:47Z")

</div>

We have tagged a new minor-version release of swift-system, version 1.3.0. This release primarily addresses a number of platform support issues, and now requires Swift 5.8. The package now builds on visionOS and can lin…

---

## [Detecting hotspot connection without internet](https://forums.swift.org/t/detecting-hotspot-connection-without-internet/72161)

<div class="topic-metadata">

**Author:** [@luchi2300](https://forums.swift.org/u/luchi2300)\
**Replies:** 5\
**Last updated:** [May 31, 2024, 5:09am UTC](https://forums.swift.org/t/detecting-hotspot-connection-without-internet/72161 "2024-05-31T05:09:08Z")

</div>

Is there an effective method for detecting if an app is connected to a hotspot without an internet connection? Apple addresses this challenge by attempting to access one of their websites, like https://captive.apple.com,…

---

## [Not understanding \`FilePath\` and string literals](https://forums.swift.org/t/not-understanding-filepath-and-string-literals/71588)

<div class="topic-metadata">

**Author:** [@taylorswift](https://forums.swift.org/u/taylorswift)\
**Replies:** 6\
**Last updated:** [May 3, 2024, 1:57am UTC](https://forums.swift.org/t/not-understanding-filepath-and-string-literals/71588 "2024-05-03T01:57:26Z")

</div>

i don’t really understand why this is allowed let executable:FilePath = ".build.aarch64/release/the-tool" let compressed:FilePath = ".build.aarch64/release/the-tool.gz" but not this let executable:FilePath = ".build.a…

---

## [Errno.current](https://forums.swift.org/t/errno-current/71348)

<div class="topic-metadata">

**Author:** [@taylorswift](https://forums.swift.org/u/taylorswift)\
**Replies:** 17\
**Last updated:** [April 28, 2024, 4:00pm UTC](https://forums.swift.org/t/errno-current/71348 "2024-04-28T16:00:10Z")

</div>

there are many missing APIs in the swift-system package, so i often find myself filling in gaps (e.g, mkfifo, statvfs, etc.) with private extensions. one issue i’ve run into is that swift-system does not expose access to…

---

## [Mach Port API](https://forums.swift.org/t/mach-port-api/61930)

<div class="topic-metadata">

**Author:** [@loffgren](https://forums.swift.org/u/loffgren)\
**Replies:** 20\
**Last updated:** [December 20, 2022, 1:20am UTC](https://forums.swift.org/t/mach-port-api/61930 "2022-12-20T01:20:58Z")

</div>

Hello everyone, Here is a proposal for a new interface to Mach Ports that I've been working on. If you'd like to dig in on the implementation details, there's a PR open on the Swift System repo. Swift Mach Port Interfa…

---

## [The use of FilePath](https://forums.swift.org/t/the-use-of-filepath/60940)

<div class="topic-metadata">

**Author:** [@ENorris](https://forums.swift.org/u/ENorris)\
**Replies:** 1\
**Last updated:** [October 19, 2022, 7:30pm UTC](https://forums.swift.org/t/the-use-of-filepath/60940 "2022-10-19T19:30:32Z")

</div>

I was going to add this topic to the FilePath API discussion but the forum warms me it is a zombie thread. Therefore I am creating this thread. Is this API more reliable that just comparing paths, or URLs. In my app we …

---

## [FilePath APIs are too safe](https://forums.swift.org/t/filepath-apis-are-too-safe/58801)

<div class="topic-metadata">

**Author:** [@taylorswift](https://forums.swift.org/u/taylorswift)\
**Replies:** 4\
**Last updated:** [July 11, 2022, 7:27pm UTC](https://forums.swift.org/t/filepath-apis-are-too-safe/58801 "2022-07-11T19:27:22Z")

</div>

sorry for the rant, but i was recently writing some python scripts, and had to fill in the swift-side parts, and i’m becoming aware of just how much less productive i am using SystemPackage’s APIs, compared to os.path. p…

---

## [Windows build is broken](https://forums.swift.org/t/windows-build-is-broken/58036)

<div class="topic-metadata">

**Author:** [@Karl](https://forums.swift.org/u/Karl)\
**Replies:** 15\
**Last updated:** [June 11, 2022, 10:31pm UTC](https://forums.swift.org/t/windows-build-is-broken/58036 "2022-06-11T22:31:14Z")

</div>

GitHub Issue D:\\a\\swift-url\\swift-url\\.build\\checkouts\\swift-system\\Sources\\System\\FileOperations.swift:445:7: error: cannot find 'system\_ftruncate' in scope :neutral\_face: I don't like it when my builds break because…

---

## [Current state of the swift-system project?](https://forums.swift.org/t/current-state-of-the-swift-system-project/56075)

<div class="topic-metadata">

**Author:** [@taylorswift](https://forums.swift.org/u/taylorswift)\
**Replies:** 8\
**Last updated:** [March 21, 2022, 1:43pm UTC](https://forums.swift.org/t/current-state-of-the-swift-system-project/56075 "2022-03-21T13:43:33Z")

</div>

hi all! i was just wondering what the current state of swift-system is. i’m finding a lot of my projects are starting to get bottlenecked by the lack of APIs that have not yet been implemented in SystemPackage. however, …

---

## [Preparing for System 1.0](https://forums.swift.org/t/preparing-for-system-1-0/51338)

<div class="topic-metadata">

**Author:** [@Michael\_Ilseman](https://forums.swift.org/u/Michael_Ilseman)\
**Replies:** 1\
**Last updated:** [September 1, 2021, 3:35pm UTC](https://forums.swift.org/t/preparing-for-system-1-0/51338 "2021-09-01T15:35:12Z")

</div>

Hello, like other packages such as Algorithms, Collections, and Numerics, System is preparing to tag its 1.0 release. This will make it easier for other libraries to depend on it. Unlike the other packages, System has be…

---

## [What's the right way to support both package and SDK versions of swift-system?](https://forums.swift.org/t/whats-the-right-way-to-support-both-package-and-sdk-versions-of-swift-system/50719)

<div class="topic-metadata">

**Author:** [@Karl](https://forums.swift.org/u/Karl)\
**Replies:** 4\
**Last updated:** [July 30, 2021, 10:41am UTC](https://forums.swift.org/t/whats-the-right-way-to-support-both-package-and-sdk-versions-of-swift-system/50719 "2021-07-30T10:41:42Z")

</div>

I'd like for my cross-platform project to use functionality from swift-system, but I'm not sure of the best way to do it. Right now, my idea is to have a target with a conditional dependency on the swift-system package,…

---

## [\[API Review\] FilePath Syntactic APIs - Version 2](https://forums.swift.org/t/api-review-filepath-syntactic-apis-version-2/44197)

<div class="topic-metadata">

**Author:** [@Michael\_Ilseman](https://forums.swift.org/u/Michael_Ilseman)\
**Replies:** 44\
**Last updated:** [June 5, 2021, 4:50am UTC](https://forums.swift.org/t/api-review-filepath-syntactic-apis-version-2/44197 "2021-06-05T04:50:50Z")

</div>

Hello everyone, I created a new thread for version 2 of the FilePath APIs. I received so much valuable insight in the other thread that I've incorporated into this design, so I thought it would be cleaner to make a new t…

---

## [Compiler Crashes When Building Swift System](https://forums.swift.org/t/compiler-crashes-when-building-swift-system/44516)

<div class="topic-metadata">

**Author:** [@LebJe](https://forums.swift.org/u/LebJe)\
**Replies:** 0\
**Last updated:** [February 6, 2021, 6:09pm UTC](https://forums.swift.org/t/compiler-crashes-when-building-swift-system/44516 "2021-02-06T18:09:12Z")

</div>

Compiler Crashes When Building Swift System Table of Contents Compiler Crashes When Building Swift System Reproduction Steps Compilation Output Linux Compilation Output Windows Compilation Output Created by gh-md…

---

## [Property wrapper for automatically closing file descriptors](https://forums.swift.org/t/property-wrapper-for-automatically-closing-file-descriptors/41324)

<div class="topic-metadata">

**Author:** [@tgymnich](https://forums.swift.org/u/tgymnich)\
**Replies:** 3\
**Last updated:** [February 6, 2021, 4:53am UTC](https://forums.swift.org/t/property-wrapper-for-automatically-closing-file-descriptors/41324 "2021-02-06T04:53:40Z")

</div>

Since FileDescriptor is not automatically closed on deinit, I would like to propose adding a property wrapper that automatically closes the wrapped file descriptor. Here is my first draft: public protocol Cloesable { …
