Skip to content

Commit 4c93e5b

Browse files
Fix the comment about the posix_spawn_file_actions_addchdir support state (#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.
1 parent cb4ee87 commit 4c93e5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: Sources/CoreFoundation/CFPlatform.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -2287,9 +2287,10 @@ CF_EXPORT int _CFPosixSpawnFileActionsChdir(_CFPosixSpawnFileActionsRef file_act
22872287
// Glibc versions prior to 2.29 don't support posix_spawn_file_actions_addchdir_np, impacting:
22882288
// - Amazon Linux 2 (EoL mid-2025)
22892289
return ENOSYS;
2290-
#elif defined(__OpenBSD__)
2290+
#elif defined(__OpenBSD__) || defined(__QNX__)
22912291
// Currently missing as of:
22922292
// - OpenBSD 7.5 (April 2024)
2293+
// - QNX 8 (December 2023)
22932294
return ENOSYS;
22942295
#elif defined(__GLIBC__) || TARGET_OS_DARWIN || defined(__FreeBSD__) || (defined(__ANDROID__) && __ANDROID_API__ >= 34) || defined(__musl__)
22952296
// Pre-standard posix_spawn_file_actions_addchdir_np version available in:
@@ -2304,7 +2305,6 @@ CF_EXPORT int _CFPosixSpawnFileActionsChdir(_CFPosixSpawnFileActionsRef file_act
23042305
// Standardized posix_spawn_file_actions_addchdir version (POSIX.1-2024, June 2024) available in:
23052306
// - Solaris 11.4 (August 2018)
23062307
// - NetBSD 10.0 (March 2024)
2307-
// - QNX 8 (December 2023)
23082308
return posix_spawn_file_actions_addchdir((posix_spawn_file_actions_t *)file_actions, path);
23092309
#endif
23102310
}

0 commit comments

Comments
 (0)