Guillaume Lessard
51f6be041f
Merge pull request #149 from Kyle-Ye/optimize/doc
...
Enable Swift Package Index documentation and add API doc link
2024-02-02 15:56:58 -08:00
Kyle and Max Desiatov
e49d2b9bd2
Update .spi.yml
...
Co-authored-by: Max Desiatov <m_desiatov@apple.com >
2024-01-22 17:23:31 +08:00
Kyle
c6b2119c81
Enable SPI documentation and add API doc link
2024-01-22 17:00:46 +08:00
Guillaume Lessard
9a812b5fef
Merge pull request #147 from glessard/availability
2023-10-13 22:11:51 -07:00
Guillaume Lessard
882466a730
apply missing availability attributes to Mach.Port
2023-10-13 18:55:23 -07:00
Guillaume Lessard
11f1c6da5a
Merge pull request #146 from glessard/availability
...
Update availability declarations for swift-system 1.1.0 API
2023-10-13 18:53:06 -07:00
Guillaume Lessard
b92be8a02a
Update availability declarations for swift-system 1.1.0 API
2023-10-13 10:21:57 -07:00
Guillaume Lessard
c81d5f35e1
Merge pull request #145 from glessard/reenable-mach-port
2023-10-12 19:40:03 -07:00
Guillaume Lessard
fb0efe832c
[gardening] finish cleaning up old test files
...
This should have been removed alongside XCTestManifests.swift
2023-10-12 15:02:31 -07:00
Guillaume Lessard
495f729347
[noncopyability] explicitly prevent a capture
...
This may be needed because of a bug involving resilient structs.
2023-10-12 15:01:08 -07:00
Guillaume Lessard
7654f14f8c
[gardening] add some more availability annotations
2023-10-11 14:28:43 -07:00
Guillaume Lessard
0e060b7a7a
Merge pull request #144 from kateinoigakukun/katei/fix-rename-typo
...
Fix typos in renaming message for `Errno`
2023-09-07 15:21:20 -07:00
Yuta Saito
1ccaee141c
Fix typos in renaming message for Errno
2023-09-05 11:36:08 -07:00
Guillaume Lessard
8a8552f617
Merge pull request #129 from glessard/reenable-mach-port
...
Re-enable Mach.Port
2023-08-16 16:04:53 -07:00
Guillaume Lessard
ad407249fe
make test expression return Void
...
- It can’t return `Mach.Port<SendRight>`, because a noncopyable type cannot currently be a generic type argument.
2023-08-16 13:34:41 -07:00
Guillaume Lessard and loffgren
faffb9a15a
Apply suggestions from code review
...
This better communicates the intention.
Co-authored-by: loffgren <117697138+loffgren@users.noreply.github.com >
2023-08-16 13:19:52 -07:00
Guillaume Lessard
547b2a5828
Merge pull request #141 from glessard/requirement-update
2023-08-16 11:52:22 -07:00
Guillaume Lessard
87e68fca36
declare Sendable conformances along with the types
...
- `Sendable` is fundamental, it is preferably not declared as an extension.
2023-08-16 11:19:06 -07:00
Guillaume Lessard
f32faad415
remove code depending on Swift older than 5.6
2023-08-16 11:02:51 -07:00
Guillaume Lessard
a3aff2f913
require Swift 5.6
2023-08-16 11:01:36 -07:00
Guillaume Lessard
8730f2cf25
[gardening] 80-column enforcement
2023-08-15 09:34:05 -07:00
Guillaume Lessard
65693b8b80
improve memory rebinding for mach_port_get_attributes call
2023-08-15 09:11:46 -07:00
Guillaume Lessard
f5edd720bd
clarify some tests
2023-08-11 18:03:24 -07:00
Guillaume Lessard
6189c1f553
fix copySendRight() for send rights that become dead names
2023-08-11 14:09:44 -07:00
Guillaume Lessard
e4d06ae3ea
simplify deinit
2023-08-10 15:35:27 -07:00
Guillaume Lessard
d259ef476e
test two-parameter withBorrowedName
2023-08-10 15:35:27 -07:00
Guillaume Lessard
5e03246e4e
test copies of dead mach port names
2023-08-10 15:32:19 -07:00
Guillaume Lessard
40b5b3068b
test all the relinquish() methods
2023-08-10 15:32:19 -07:00
Guillaume Lessard
e8bb779909
use inout conversion
...
- this is the situation where it is appropriate
2023-08-10 15:32:19 -07:00
Guillaume Lessard
6ee96ffdb5
modify consuming methods to call discard self
2023-08-09 15:58:56 -07:00
Guillaume Lessard
0539daa364
fix test of receive-right deallocation
2023-08-09 15:58:56 -07:00
Guillaume Lessard
669dcf2c25
ensure Mach.Port lives until the function returns
2023-08-09 15:58:56 -07:00
Guillaume Lessard
9123120c08
destroy Send rights with mach_port_deallocate
2023-08-09 15:58:56 -07:00
Guillaume Lessard
bf16d3da30
[test] use XCTAssertEqual or XCTAssertNotEqual
2023-08-09 15:58:56 -07:00
Daniel Loffgren
2df5b0b031
srdelta argument to mach_port_destruct should be zero
...
This should never have been -1, as there is no send right for
it to balance when `RightType.self == ReceiveRight.self`.
2023-08-09 15:58:56 -07:00
Guillaume Lessard
af4544c869
Re-enable Mach.Port
2023-08-09 15:58:56 -07:00
Saleem Abdulrasool
164fe8ce93
Merge pull request #136 from compnerd/singularity
...
Tests: avoid unnecessary duplication (NFCI)
2023-07-13 10:11:23 -07:00
Saleem Abdulrasool
e1ab868059
Tests: avoid unnecessary duplication (NFCI)
...
Rather than specialising the function with the same implementation,
prefer to use the `CInterop.PlatformUnicodeEncoding` to determine the
correct code point encoding. This allows us to share the implementation
across the platforms.
2023-07-13 10:00:45 -07:00
Saleem Abdulrasool
022a7fe638
Merge pull request #135 from compnerd/encoding
...
Tests: adjust the `FilePathTest.testFilePath` to build on Windows
2023-07-13 08:56:56 -07:00
Saleem Abdulrasool
32026456ba
Tests: adjust the FilePathTest.testFilePath to build on Windows
...
UTF-8 is not the universal encoding for file systems. Use a platform
specific invalid string encoding for testing the sequence. The internal
representation of a `FilePath` is dependent on the system, and Windows
uses UTF-16 as the base encoding for C interoperability. Adjust the
test to use an invalid sequence in the proper encoding. This allows the
tests to now build on Windows once again.
2023-07-13 08:42:12 -07:00
Max Desiatov
0062c82c90
Add support for Musl libc ( #133 )
...
Since Musl is sufficiently different from Glibc (see https://wiki.musl-libc.org/functional-differences-from-glibc.html ), it requires a different import, which now should be applied to files that have `import Glibc` in them.
2023-07-04 16:50:13 +01:00
Guillaume Lessard
4116b8cbfb
Merge pull request #131 from glessard/sendable-availability
...
Add availability attributes to `Sendable` conformances
2023-06-21 16:47:51 -07:00
Guillaume Lessard
adbf8d2856
Add availability attributes to Sendable conformances
2023-06-21 14:50:47 -07:00
Guillaume Lessard
a87eaf71f6
Merge pull request #130 from amartini51/abstracts
...
Fix abstracts to follow reference style
2023-06-21 14:11:40 -07:00
Alex Martini
1d1bef36c9
Fix abstracts to follow reference style.
...
- Use a present tense verb phrase
- Avoid repeating the symbol's name
2023-06-21 10:26:04 -07:00
Guillaume Lessard
a74751c99c
Merge pull request #128 from apple/maxd/fix-comment-typo
...
FilePathSyntax.swift: fix doc comment typo
2023-06-10 00:18:26 -07:00
Guillaume Lessard
1cbb2cbcc6
Merge pull request #127 from loffgren/no-tuple-api
2023-06-09 23:57:08 -07:00
Guillaume Lessard
7bcc01f0bf
deactivate Mach.Port
...
Will reactivate when the following issue is fixed:
https://github.com/apple/swift/issues/66299 (rdar://110496872)
2023-06-09 16:46:48 -07:00
Guillaume Lessard
6bbed6b199
update non-copyable type declaration syntax
2023-06-09 16:40:32 -07:00
Guillaume Lessard
2d6c6a82b3
import module correctly in test file
2023-06-09 16:40:32 -07:00