Skip to content

Fix OpenBSD clause. #5160

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 24, 2025
Merged

Fix OpenBSD clause. #5160

merged 1 commit into from
Jan 24, 2025

Conversation

3405691582
Copy link
Member

OpenBSD, as the comment string in _CFPosixSpawnFileActionsChdir says, doesn't have posix_spawn_file_actions_addchdir. Therefore, don't link against it; just return ENOSYS like other similarly situated platforms do.

OpenBSD, as the comment string in _CFPosixSpawnFileActionsChdir says,
doesn't have posix_spawn_file_actions_addchdir. Therefore, don't link
against it; just return ENOSYS like other similarly situated platforms
do.
@parkera
Copy link
Contributor

parkera commented Jan 21, 2025

@swift-ci please test

@parkera parkera requested a review from jmschonfeld January 21, 2025 20:34
Copy link
Contributor

@parkera parkera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems fine to me.

@3405691582
Copy link
Member Author

I think the Linux ci failure is unrelated, please re-run on my behalf.

@jmschonfeld
Copy link
Contributor

@swift-ci please test Linux platform

@3405691582
Copy link
Member Author

Please merge on my behalf if there are no other blockers, thank you!

@parkera parkera merged commit 0129358 into swiftlang:main Jan 24, 2025
2 checks passed
jakepetroules added a commit that referenced this pull request Mar 22, 2025
…tate

The refactoring in #5160 moved a comment around such that it appeared as if QNX supports this function - it does not. Clarify the situation.
@@ -2300,8 +2304,6 @@ CF_EXPORT int _CFPosixSpawnFileActionsChdir(_CFPosixSpawnFileActionsRef file_act
// Standardized posix_spawn_file_actions_addchdir version (POSIX.1-2024, June 2024) available in:
// - Solaris 11.4 (August 2018)
// - NetBSD 10.0 (March 2024)
// Currently missing as of:
// - OpenBSD 7.5 (April 2024)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a heads up, this adjustment of the comment made it look confusingly like QNX 8 supports posix_spawn_file_actions_addchdir (it does not). Got confused when I came back to look... fixing in #5192

parkera pushed a commit that referenced this pull request Mar 24, 2025
…tate (#5192)

The refactoring in #5160 moved a comment around such that it appeared as if QNX supports this function - it does not. Clarify the situation.
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.

4 participants