David Smith
02481e0daa
More import fixes
2025-02-11 21:06:16 +00:00
David Smith
7107a570b4
Fix import visibility
2025-02-11 21:01:49 +00:00
David Smith
fdbcecab0b
Eliminate internal locking and add multiple consume support
2025-02-06 00:42:21 +00:00
David Smith
e5fdf9ea96
Remove managed abstractions for now
2025-02-06 00:41:30 +00:00
David Smith
55fd6e7150
Add support for timeout-on-wait to IORing, don't have tests yet
2024-12-12 01:20:24 +00:00
David Smith
7ea32aefce
More refactoring, and working timeout support on ManagedIORing
2024-12-11 23:00:50 +00:00
David Smith
ef94a37193
Refactoring, and give up on resources being noncopyable structs
2024-12-05 03:11:11 +00:00
David Smith
f369347b73
Fix mismerge
2024-10-28 17:25:31 -07:00
David Smith
1a3e37d791
Fix mismerge
2024-10-28 17:24:46 -07:00
David Smith
a9f92a6e31
Delete stray Package.resolved changes
2024-10-28 17:23:25 -07:00
David Smith
6f793cfe60
Merge branch 'main' into david/ioring
2024-10-29 00:21:42 +00:00
David Smith
fcb0b69df6
Merge branch 'main' into david/ioring
2024-10-28 17:20:36 -07:00
David Smith
822e4814d1
Adopt isolation parameters
2024-10-28 23:49:37 +00:00
David Smith
32966f975d
It builds again! With some horrible hacks
2024-10-28 23:43:59 +00:00
David Smith
10c070abd6
WIP, more ~Copyable adoption
2024-10-28 20:00:07 +00:00
David Smith
60299362ed
One more noncopyable struct
2024-10-24 21:27:22 +00:00
David Smith
baab9b26b7
Starting to move to noncopyable structs, and away from swift-atomics
2024-10-24 21:21:07 +00:00
Guillaume Lessard
fbd61a676d
Merge pull request #207 from glessard/merge-1.4.0-into-main
...
Merge 1.4.0 into main
2024-10-18 22:39:45 -07:00
Guillaume Lessard
f21f6a8866
Merge branch 'release/1.4.0' into merge-1.4.0-into-main
...
# Conflicts:
# .gitignore
# .swiftci/5_10_ubuntu2204
# .swiftci/5_8_ubuntu2204
# .swiftci/5_9_ubuntu2204
# .swiftci/nightly_6_0_macos
# .swiftci/nightly_6_0_ubuntu2204
# .swiftci/nightly_main_macos
# .swiftci/nightly_main_ubuntu2204
# .swiftci/nightly_main_windows
# Package.swift
# Sources/System/FileOperations.swift
# Sources/System/FilePath/FilePath.swift
# Sources/System/Internals/WindowsSyscallAdapters.swift
2024-10-17 17:24:38 -07:00
Guillaume Lessard
c8a44d836f
Merge pull request #206 from glessard/1.4.0-readme
...
[1.4.0] Updates to the README file
1.4.0
2024-10-17 16:12:10 -07:00
Guillaume Lessard
b80d743dab
Update README.md
2024-10-17 15:52:41 -07:00
Guillaume Lessard
eeeb81d0cd
[readme] update usage example, reword stability
2024-10-17 15:14:38 -07:00
Guillaume Lessard
234e15320e
Merge pull request #204 from glessard/1.4.0-ci-adjustment
...
[1.4.0] Swift 5.8 is not supported on this branch
2024-10-17 15:01:46 -07:00
Guillaume Lessard
154cbf7c95
Merge pull request #205 from glessard/1.4.0-pipe-correction
...
[windows] expose pipe’s buffer size parameter
2024-10-17 14:57:49 -07:00
Guillaume Lessard
3f4e7cb45c
[windows] expose pipe’s buffer size parameter
2024-10-17 14:31:37 -07:00
Guillaume Lessard
11d481252d
[1.4.0] Updates to the README file
2024-10-17 13:17:08 -07:00
Guillaume Lessard
2e8f58ac41
[1.4.0] Swift 5.8 is not supported on this branch
2024-10-17 08:49:29 -07:00
Guillaume Lessard
5cd7eade6d
Merge pull request #203 from glessard/systemstring-tweaks-1.4.0
...
[1.4.0] SystemString consistency improvements
2024-10-16 23:25:29 -07:00
Guillaume Lessard
b2d4917ebe
Update copyright notices
2024-10-16 23:09:09 -07:00
Guillaume Lessard
d96435c72b
Rename withSystemChars
...
- `withNullTerminatedSystemChars` makes it clear that the null-termination is included. Operations where the null-termination is included should be obvious.
2024-10-16 23:09:09 -07:00
Guillaume Lessard
95784d018f
Fix behaviour of withCodeUnits()
...
- The original implementation includes a trailing zero with the full collection, but the implementation for a slice does not. As a result, given a `let s: SystemString`, `s.string` was not equal to `s[…].string`
2024-10-16 23:09:09 -07:00
Guillaume Lessard
448bef7c38
Test SystemString.string property consistency
2024-10-16 23:09:09 -07:00
Guillaume Lessard
69e737de3d
Generate SystemString.string consistently
...
- SystemString.string and Slice<SystemString>.string should be generated in the same manner. Now they are.
2024-10-16 23:09:09 -07:00
Guillaume Lessard
afeecb6c28
Merge pull request #201 from glessard/32-are-too-few-bits-1.4.0
...
[1.4.0] fix a 32-bit overflow issue
2024-10-16 18:30:16 -07:00
Guillaume Lessard
69eee996ac
Merge pull request #202 from glessard/platform-support-1.4.0
...
[1.4.0] cherry-pick platform support changes
2024-10-16 18:29:59 -07:00
Finagolfin
209dfeacb8
Import new Android overlay
...
Use Bionic module instead where possible
2024-10-16 18:22:35 -07:00
Finagolfin
b2b60a6b94
Android: DIR* is an OpaquePointer in Bionic too
2024-10-16 18:22:19 -07:00
Max Desiatov
e11703d915
Add support for WASILibc module ( #159 )
...
Quoting the [wasi.dev landing page](https://wasi.dev ):
> The WebAssembly System Interface (WASI) is a group of standard API specifications for software compiled to the W3C WebAssembly (Wasm) standard. WASI is designed to provide a secure standard interface for applications that can be compiled to Wasm from any language, and that may run anywhere—from browsers to clouds to embedded devices.
Currently support for WASI in Swift is based on [`wasi-libc`](https://github.com/WebAssembly/wasi-libc ).
Adding support for `wasi-libc` mostly amounted to excluding unsupported errnos, adding TLS dictionary storage shim for single-threaded environment, and adding constants in C headers for macros that Clang importer currently doesn't support.
Co-authored-by: Guillaume Lessard <guillaume.lessard@apple.com >
# Conflicts:
# Sources/System/FileOperations.swift
# Sources/System/Internals/Syscalls.swift
2024-10-16 18:22:19 -07:00
Guillaume Lessard
8df901cb24
fix a 32-bit overflow issue
...
- ensures compatibility with watchOS
2024-10-16 17:57:36 -07:00
Guillaume Lessard
938fda53e2
Merge pull request #200 from glessard/private-aeic-init-removal-1.4.0
...
[1.4.0] backport #191
2024-10-16 17:41:50 -07:00
Guillaume Lessard
e7ffa45882
Remove private-and-@_aEIC initializers
...
These were just passthroughs.
2024-10-16 17:38:24 -07:00
Guillaume Lessard
607542a559
Merge pull request #198 from glessard/1.4.0-backport-158&176
2024-10-16 17:28:28 -07:00
Guillaume Lessard
b9e4d2b2ba
Remove more accidentally public functions
2024-10-16 17:03:59 -07:00
Guillaume Lessard
473b493ab0
Merge pull request #199 from glessard/1.4.0-backport-193
...
Add support for macCatalyst
2024-10-16 14:15:25 -07:00
George Barnett
9eb1f34cbf
Add support for macCatalyst
...
Building swift-system for macCatalyst fails as there is no import of the
Darwin module.
# Conflicts:
# Package.swift
2024-10-16 14:00:47 -07:00
Guillaume Lessard
7a18b4bf34
Merge pull request #193 from glbrntt/mac-catalyst
...
Add support for macCatalyst
2024-10-16 13:57:03 -07:00
Alastair Houghton
6c64372b85
[Windows] Add a comment to explain the O_RDONLY/O_WRONLY/O_RDWR logic.
...
The values of these flags on Windows do not overlap, and more
particularly, `O_RDONLY` is actually zero on Windows, which means we
cannot test for it by AND-ing.
2024-10-14 16:01:01 -07:00
Alastair Houghton
3a4e2f8071
[Windows] Fix tests.
...
We need to use `@testable` when importing `SystemPackage` in order to
let us test the `internal` functions.
Also, use `NUL` instead of `/dev/null`, and generate random bytes in a
file instead of reading from `/dev/random`.
2024-10-14 16:01:01 -07:00
Alastair Houghton
53471ce33b
[Windows] Fix a problem with opening files read only.
...
`_O_RDONLY` is zero, so we can't test for it by AND-ing.
2024-10-14 16:01:01 -07:00
Alastair Houghton
f1d7eb52c6
Remove accidentally public functions.
...
These can't be new API as they haven't been reviewed.
2024-10-14 16:01:01 -07:00