Skip to content

Conversation

@3405691582
Copy link
Member

We changed Swift to use OpaquePointer in Glibc since OpenBSD 7.8 snapshots now hide the type information for FILE. Therefore, the types for the standard stdio streams should (regrettably) be OpaquePointer, due to the well-discussed issue of losing type information for forward-declared C types.

Subsequently, this means we should be using OpaquePointer here also.

We changed Swift to use OpaquePointer in Glibc since OpenBSD 7.8
snapshots now hide the type information for FILE. Therefore, the types
for the standard stdio streams should (regrettably) be OpaquePointer,
due to the well-discussed issue of losing type information for
forward-declared C types.

Subsequently, this means we should be using OpaquePointer here also.
@3405691582
Copy link
Member Author

See swiftlang/swift#84478 for the accompanying change.

@3405691582
Copy link
Member Author

@swift-ci please test.

@finagolfin finagolfin merged commit c26cd00 into swiftlang:main Sep 25, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants