Rauhul Varma
0ff423fe26
update method name
2023-06-16 22:23:25 -07:00
Rauhul Varma
7661e95acf
Flesh out and better organize stat.h
2023-06-16 22:14:28 -07:00
Rauhul Varma
3b62b88701
move things around
2023-06-10 23:44:01 -07:00
Rauhul Varma
3536697660
WIP: Ideas for stat.h interface
2023-06-10 22:17:07 -07:00
Rauhul Varma
ffc90f58de
Signal definitions
2023-06-10 22:16:19 -07:00
Rauhul Varma
55d9da0dcd
Add protocol conformances
2023-06-10 22:16:19 -07:00
Rauhul Varma
539134c24b
WIP: time.h and sys/time.h coverage
2023-06-10 22:16:19 -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
Daniel Loffgren
5b1b4cab56
Remove allocatePortRightPair(), as move only types are not permitted in tuples
2023-06-09 16:40:32 -07:00
Max Desiatov
7c6609eaca
FilePathSyntax.swift: fix doc comment typo
...
`Appliations` -> `Applications`
2023-06-01 17:01:30 +01:00
Karoy Lorentey
aabb8d0019
Merge pull request #123 from lorentey/update-gitignore
...
Update gitignore
2023-04-10 17:02:04 -07:00
Karoy Lorentey
f059b4bfb3
Merge pull request #125 from compnerd/arm64
...
build: add ARM64 for mapping on Windows
2023-03-02 11:37:14 -08:00
Karoy Lorentey
64486e7d26
Merge pull request #124 from lorentey/tweak-availability-declarations
...
Fix expand-availability syntax not to interfere with doc comment parsing
2023-03-02 11:34:38 -08:00
Saleem Abdulrasool
9674a9fee8
build: add ARM64 for mapping on Windows
...
Windows uses `ARM64` for `CMAKE_SYSTEM_PROCESSOR` which doesn't match
the current spellings.
2023-03-02 10:56:49 -08:00
Karoy Lorentey
bb6ab43e44
Update availability declarations
2023-03-01 18:10:40 -08:00
Karoy Lorentey
e86702b34a
Fix expand-availability syntax not to interfere with doc comment parsing
...
This was our previous convention:
/// Fiddle with the thing.
/*System 0.0.2*/
public func foo()
/// Fiddle with the thing.
/*System 0.0.2, @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)*/
public func foo()
/// Fiddle with the thing.
/*System 0.0.2*/@available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
public func foo()
Unfortunately, regular comments in between a declaration and its
preceding doc comments interfere with documentation tools.
Change things to the style below instead:
/// Fiddle with the thing.
@available(/*System 0.0.2*/macOS 10, *)
public func foo()
/// Fiddle with the thing.
@available(/*SwiftSystem 0.0.2: macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0*/macOS 10, *)
public func foo()
/// Fiddle with the thing.
@available(/*SwiftSystem 0.0.2*/macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
public func foo()
Unfortunately, `@available(*)` isn’t valid syntax, so we have to
add a dummy “macOS 10” version spec. It should have no actual effect.
2023-03-01 18:10:38 -08:00
Karoy Lorentey
cee9335aeb
Update gitignore
2023-03-01 16:29:39 -08:00
Karoy Lorentey
f572e4becb
Merge pull request #122 from lorentey/inlinable-mach-ports
...
Mach: Avoid non-inlinable generics where possible
2023-02-28 18:22:00 -08:00
Karoy Lorentey
e708e4adda
Mach: Avoid non-inlinable generics where possible
...
- Leave Ports as non-frozen for now, but expose its two stored
properties.
- Make most members inlinable. The core initializers and the
deinitializer must remain opaque for now.
- Mark the empty `MachPortRight` types as `@frozen` — these are
markers, not carrying any data.
rdar://106057781
2023-02-28 17:05:18 -08:00
Karoy Lorentey
cc96d40bee
Merge pull request #76 from apple/lorentey/post-back-ios15-system
...
Update package with changes from recent ABI stable releases
2023-02-28 16:13:44 -08:00
loffgren
9cdaaa356e
Merge pull request #121 from loffgren/machport_fixes
...
Mach.Port: Tidiness
2023-02-22 09:55:03 -08:00
Daniel Loffgren
16c7885387
Move public annotations from extensions down to each function explicitly
2023-02-21 16:03:31 -08:00
Alex Martini
08e9abe4e6
Merge pull request #119 from amartini51/doc_comment_placement
...
Fix doc comment placement
2023-02-14 11:23:02 -08:00
Daniel Loffgren
0fb71dd6ad
Fit all function signatures within 80 cols
2023-02-13 23:53:06 -08:00
Daniel Loffgren
16a2775645
Annotate entire Mach namespace as being available in System 1.3.0
2023-02-13 17:53:42 -08:00
Daniel Loffgren
7c11f19259
Add System 1.3.0 to expand-availability.py
2023-02-13 17:53:03 -08:00
Daniel Loffgren
13bf719c29
Freeze the Mach namespace, as it should only ever be used as a namespace
2023-02-10 18:04:55 -08:00
Daniel Loffgren
3750b96b2e
name and context should have leading underscores
2023-02-10 18:03:31 -08:00
Daniel Loffgren
12baba9706
machPrecondition should have a leading underscore
2023-02-10 17:59:16 -08:00
Alex Martini
2c2a831f66
Remove blank lines at the end of doc comments.
2023-01-31 12:35:33 -08:00
Alex Martini
deb56e1ad2
Keep doc comments immediately before declarations.
...
If there's anything between them, DocC doesn't recognize that the doc
comment belongs to the declaration that comes after the interruption,
resulting in that declaration being undocumented.
2023-01-31 12:07:17 -08:00
Karoy Lorentey
a2bf0d5708
Merge pull request #118 from apple/maxd/fix-5.7-errors
2023-01-10 09:40:44 -08:00
Max Desiatov
b5e330163a
MachPortTests: fix build issues with Swift 5.7
2023-01-05 14:35:22 +00:00
Max Desiatov
3f66dfbaf8
MachPort: fix build issues with Swift 5.7
...
It seems that `#if $MoveOnly` check has no effect on Swift 5.7, so we should check whether Swift 5.8 or later are available first.
Resolves #117 .
2023-01-05 10:58:04 +00:00
Karoy Lorentey
ccea4eed1a
Merge pull request #116 from loffgren/machports
...
Add Mach.Port
2022-12-22 18:15:38 -08:00
Daniel Loffgren
700b8f867e
Use two space indentation
2022-12-22 18:01:40 -08:00
loffgren and Karoy Lorentey
d129f62ce9
Use Markdown code voice for initializer comment
...
Co-authored-by: Karoy Lorentey <klorentey@apple.com >
2022-12-22 17:12:26 -08:00
loffgren and Michael Ilseman
ae6b1f24a9
Remove space before inheritance colon
...
Co-authored-by: Michael Ilseman <michael.ilseman@gmail.com >
2022-12-22 14:52:36 -08:00
Daniel Loffgren
47feb93a38
Add a test that ensures makeSendOnce is creating unique send-once rights
2022-12-21 13:43:26 -08:00
Daniel Loffgren
6a9ebce259
Add public annotations where applicable
2022-12-21 13:20:38 -08:00
Daniel Loffgren
7f4560f022
Remove unnecessary RightTypes for Mach.Ports being constructed inline with a return
2022-12-21 13:12:13 -08:00
Daniel Loffgren
6dd57fe3a9
Add a friendly precondition message for the MACH_PORT_NULL check
2022-12-21 12:57:25 -08:00
Daniel Loffgren
551d7b897f
Use mach_port_destruct() to deinit receive rights eliminating the second syscall, and use mach_port_mod_refs() for all other right types to get a free type check at deinit time
...
mach_port_mod_refs() requires the type of right being modified. So,
MACH_PORT_DEAD must be identified as a separate type. As this is
something that shouldn't be possible for receive rights, preconditions
have also been added to protect against this particular error.
2022-12-21 12:53:47 -08:00
Daniel Loffgren
296374ecef
Label tuple contents for allocatePortPair() and relinquish()
2022-12-21 11:46:06 -08:00
Daniel Loffgren
213165ab72
size should be the number of natural_t's
2022-12-20 15:45:17 -08:00
Daniel Loffgren
bd036acda6
Storage should be initialized to MACH_PORT_NULL, rather than 0
2022-12-20 15:45:17 -08:00