From 648c1c5d28f3c3b1da1acf326b733c47436007d1 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Sun, 14 Dec 2025 20:35:07 +0000 Subject: [PATCH] libc: Update macOS headers to SDK 26.2 --- lib/libc/darwin/SDKSettings.json | 2 +- lib/libc/darwin/libSystem.tbd | 31 ++++++++++--------- .../any-darwin-any/AvailabilityInternal.h | 20 ++++++------ .../any-darwin-any/AvailabilityVersions.h | 8 +++++ lib/libc/include/any-darwin-any/mach/port.h | 2 +- .../any-darwin-any/sys/_symbol_aliasing.h | 12 +++++++ 6 files changed, 48 insertions(+), 27 deletions(-) diff --git a/lib/libc/darwin/SDKSettings.json b/lib/libc/darwin/SDKSettings.json index 0c26e178fefd239f1a71849396470dc6c315d5cc..558b8e78c14dcf88fbf0594c143d4a6f71e4f717 100644 --- a/lib/libc/darwin/SDKSettings.json +++ b/lib/libc/darwin/SDKSettings.json @@ -1 +1 @@ -{"MinimalDisplayName":"26.1"} +{"MinimalDisplayName":"26.2"} diff --git a/lib/libc/darwin/libSystem.tbd b/lib/libc/darwin/libSystem.tbd index 2ff2446d16518aa955af01d925a579e2ce853224..57efb29c6cfce9cecdc753f6f1800db97b719877 100644 --- a/lib/libc/darwin/libSystem.tbd +++ b/lib/libc/darwin/libSystem.tbd @@ -400,7 +400,7 @@ tbd-version: 4 targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, arm64e-macos, arm64e-maccatalyst ] install-name: '/usr/lib/system/libcorecrypto.dylib' -current-version: 1922.40.14 +current-version: 1922.60.11 parent-umbrella: - targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, arm64e-macos, arm64e-maccatalyst ] @@ -1182,7 +1182,7 @@ tbd-version: 4 targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, arm64e-macos, arm64e-maccatalyst ] install-name: '/usr/lib/system/libsystem_asl.dylib' -current-version: 404 +current-version: 406 parent-umbrella: - targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, arm64e-macos, arm64e-maccatalyst ] @@ -1609,7 +1609,7 @@ tbd-version: 4 targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, arm64e-macos, arm64e-maccatalyst ] install-name: '/usr/lib/system/libsystem_configuration.dylib' -current-version: 1385.40.9 +current-version: 1385.60.3 parent-umbrella: - targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, arm64e-macos, arm64e-maccatalyst ] @@ -1927,7 +1927,7 @@ tbd-version: 4 targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, arm64e-macos, arm64e-maccatalyst ] install-name: '/usr/lib/system/libsystem_dnssd.dylib' -current-version: 2881.40.18 +current-version: 2881.60.4 parent-umbrella: - targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, arm64e-macos, arm64e-maccatalyst ] @@ -1964,16 +1964,17 @@ exports: tbd-version: 4 targets: [ x86_64-macos, arm64-macos, arm64e-macos ] install-name: '/usr/lib/system/libsystem_eligibility.dylib' -current-version: 286.40.9 +current-version: 286.60.23 parent-umbrella: - targets: [ x86_64-macos, arm64-macos, arm64e-macos ] umbrella: System exports: - targets: [ x86_64-macos, arm64-macos, arm64e-macos ] symbols: [ _os_eligibility_domain_for_name, _os_eligibility_dump_sysdiagnose_data_to_dir, - _os_eligibility_force_domain_answer, _os_eligibility_force_domain_set_answers, - _os_eligibility_get_all_domain_answers, _os_eligibility_get_domain_answer, - _os_eligibility_get_domain_notification_name, _os_eligibility_get_internal_state, + _os_eligibility_fetch_newest_policies, _os_eligibility_force_domain_answer, + _os_eligibility_force_domain_set_answers, _os_eligibility_get_all_domain_answers, + _os_eligibility_get_domain_answer, _os_eligibility_get_domain_notification_name, + _os_eligibility_get_error_description, _os_eligibility_get_internal_state, _os_eligibility_get_state_dump, _os_eligibility_precise_locations, _os_eligibility_reset_all_domains, _os_eligibility_reset_domain, _os_eligibility_set_input, _os_eligibility_set_test_mode ] @@ -2120,7 +2121,7 @@ tbd-version: 4 targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, arm64e-macos, arm64e-maccatalyst ] install-name: '/usr/lib/system/libsystem_kernel.dylib' -current-version: 12377.41.6 +current-version: 12377.61.12 parent-umbrella: - targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, arm64e-macos, arm64e-maccatalyst ] @@ -2860,7 +2861,7 @@ tbd-version: 4 targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, arm64e-macos, arm64e-maccatalyst ] install-name: '/usr/lib/system/libsystem_malloc.dylib' -current-version: 792.41.1 +current-version: 792.60.6 parent-umbrella: - targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, arm64e-macos, arm64e-maccatalyst ] @@ -3027,7 +3028,7 @@ tbd-version: 4 targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, arm64e-macos, arm64e-maccatalyst ] install-name: '/usr/lib/system/libsystem_platform.dylib' -current-version: 359.40.3 +current-version: 359.60.3 parent-umbrella: - targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, arm64e-macos, arm64e-maccatalyst ] @@ -3203,7 +3204,7 @@ tbd-version: 4 targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, arm64e-macos, arm64e-maccatalyst ] install-name: '/usr/lib/system/libsystem_sandbox.dylib' -current-version: 2680.41.1 +current-version: 2680.60.11 parent-umbrella: - targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, arm64e-macos, arm64e-maccatalyst ] @@ -3357,7 +3358,7 @@ tbd-version: 4 targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, arm64e-macos, arm64e-maccatalyst ] install-name: '/usr/lib/system/libsystem_trace.dylib' -current-version: 1815.40.20 +current-version: 1815.61.1 parent-umbrella: - targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, arm64e-macos, arm64e-maccatalyst ] @@ -3444,7 +3445,7 @@ exports: tbd-version: 4 targets: [ x86_64-macos, arm64-macos, arm64e-macos ] install-name: '/usr/lib/system/libsystem_trial.dylib' -current-version: 474.3 +current-version: 474.2 parent-umbrella: - targets: [ x86_64-macos, arm64-macos, arm64e-macos ] umbrella: System @@ -3487,7 +3488,7 @@ tbd-version: 4 targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, arm64e-macos, arm64e-maccatalyst ] install-name: '/usr/lib/system/libxpc.dylib' -current-version: 3089.41.2 +current-version: 3089.60.7 parent-umbrella: - targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, arm64e-macos, arm64e-maccatalyst ] diff --git a/lib/libc/include/any-darwin-any/AvailabilityInternal.h b/lib/libc/include/any-darwin-any/AvailabilityInternal.h index 6549f4df89d0bda643f5e0d3d4eeff8021137363..cc4bc48b4fae8b211122f806a55a1349611c258a 100644 --- a/lib/libc/include/any-darwin-any/AvailabilityInternal.h +++ b/lib/libc/include/any-darwin-any/AvailabilityInternal.h @@ -37,11 +37,11 @@ #if __has_builtin(__is_target_os) #if __is_target_os(macos) #define __MAC_OS_X_VERSION_MIN_REQUIRED __ENVIRONMENT_OS_VERSION_MIN_REQUIRED__ - #define __MAC_OS_X_VERSION_MAX_ALLOWED __MAC_26_1 + #define __MAC_OS_X_VERSION_MAX_ALLOWED __MAC_26_2 #endif #elif __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ #define __MAC_OS_X_VERSION_MIN_REQUIRED __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ - #define __MAC_OS_X_VERSION_MAX_ALLOWED __MAC_26_1 + #define __MAC_OS_X_VERSION_MAX_ALLOWED __MAC_26_2 #endif /* __has_builtin(__is_target_os) */ #endif /* defined(__has_builtin) */ #endif /* __MAC_OS_X_VERSION_MIN_REQUIRED */ @@ -51,11 +51,11 @@ #if __has_builtin(__is_target_os) #if __is_target_os(ios) #define __IPHONE_OS_VERSION_MIN_REQUIRED __ENVIRONMENT_OS_VERSION_MIN_REQUIRED__ - #define __IPHONE_OS_VERSION_MAX_ALLOWED __IPHONE_26_1 + #define __IPHONE_OS_VERSION_MAX_ALLOWED __IPHONE_26_2 #endif #elif __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ #define __IPHONE_OS_VERSION_MIN_REQUIRED __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ - #define __IPHONE_OS_VERSION_MAX_ALLOWED __IPHONE_26_1 + #define __IPHONE_OS_VERSION_MAX_ALLOWED __IPHONE_26_2 #endif /* __has_builtin(__is_target_os) */ #endif /* defined(__has_builtin) */ #endif /* __IPHONE_OS_VERSION_MIN_REQUIRED */ @@ -65,13 +65,13 @@ #if __has_builtin(__is_target_os) #if __is_target_os(watchos) #define __WATCH_OS_VERSION_MIN_REQUIRED __ENVIRONMENT_OS_VERSION_MIN_REQUIRED__ - #define __WATCH_OS_VERSION_MAX_ALLOWED __WATCHOS_26_1 + #define __WATCH_OS_VERSION_MAX_ALLOWED __WATCHOS_26_2 /* for compatibility with existing code. New code should use platform specific checks */ #define __IPHONE_OS_VERSION_MIN_REQUIRED __IPHONE_9_0 #endif #elif __ENVIRONMENT_WATCH_OS_VERSION_MIN_REQUIRED__ #define __WATCH_OS_VERSION_MIN_REQUIRED __ENVIRONMENT_WATCH_OS_VERSION_MIN_REQUIRED__ - #define __WATCH_OS_VERSION_MAX_ALLOWED __WATCHOS_26_1 + #define __WATCH_OS_VERSION_MAX_ALLOWED __WATCHOS_26_2 /* for compatibility with existing code. New code should use platform specific checks */ #define __IPHONE_OS_VERSION_MIN_REQUIRED __IPHONE_9_0 #endif /* __has_builtin(__is_target_os) */ @@ -83,13 +83,13 @@ #if __has_builtin(__is_target_os) #if __is_target_os(tvos) #define __TV_OS_VERSION_MIN_REQUIRED __ENVIRONMENT_OS_VERSION_MIN_REQUIRED__ - #define __TV_OS_VERSION_MAX_ALLOWED __TVOS_26_1 + #define __TV_OS_VERSION_MAX_ALLOWED __TVOS_26_2 /* for compatibility with existing code. New code should use platform specific checks */ #define __IPHONE_OS_VERSION_MIN_REQUIRED __IPHONE_9_0 #endif #elif __ENVIRONMENT_TV_OS_VERSION_MIN_REQUIRED__ #define __TV_OS_VERSION_MIN_REQUIRED __ENVIRONMENT_TV_OS_VERSION_MIN_REQUIRED__ - #define __TV_OS_VERSION_MAX_ALLOWED __TVOS_26_1 + #define __TV_OS_VERSION_MAX_ALLOWED __TVOS_26_2 /* for compatibility with existing code. New code should use platform specific checks */ #define __IPHONE_OS_VERSION_MIN_REQUIRED __IPHONE_9_0 #endif /* __has_builtin(__is_target_os) */ @@ -103,7 +103,7 @@ #if __has_builtin(__is_target_os) #if __is_target_os(driverkit) #define __DRIVERKIT_VERSION_MIN_REQUIRED __ENVIRONMENT_OS_VERSION_MIN_REQUIRED__ - #define __DRIVERKIT_VERSION_MAX_ALLOWED __DRIVERKIT_25_1 + #define __DRIVERKIT_VERSION_MAX_ALLOWED __DRIVERKIT_25_2 #endif #endif /* __has_builtin(__is_target_os) */ #endif /* defined(__has_builtin) */ @@ -114,7 +114,7 @@ #if __has_builtin(__is_target_os) #if __is_target_os(visionos) #define __VISION_OS_VERSION_MIN_REQUIRED __ENVIRONMENT_OS_VERSION_MIN_REQUIRED__ - #define __VISION_OS_VERSION_MAX_ALLOWED __VISIONOS_26_1 + #define __VISION_OS_VERSION_MAX_ALLOWED __VISIONOS_26_2 /* for compatibility with existing code. New code should use platform specific checks */ #define __IPHONE_OS_VERSION_MIN_REQUIRED __IPHONE_17_1 #endif diff --git a/lib/libc/include/any-darwin-any/AvailabilityVersions.h b/lib/libc/include/any-darwin-any/AvailabilityVersions.h index e974be52e68c963ec59ee59060b6193610936afc..11b59c4f338d246d4513a3f17c42f1fb1b4b3d19 100644 --- a/lib/libc/include/any-darwin-any/AvailabilityVersions.h +++ b/lib/libc/include/any-darwin-any/AvailabilityVersions.h @@ -98,6 +98,7 @@ #define __MAC_16_0 160000 #define __MAC_26_0 260000 #define __MAC_26_1 260100 +#define __MAC_26_2 260200 /* __MAC__NA is not defined to a value but is used as a token by macros to indicate that the API is unavailable */ #define __IPHONE_2_0 20000 @@ -190,6 +191,7 @@ #define __IPHONE_19_0 190000 #define __IPHONE_26_0 260000 #define __IPHONE_26_1 260100 +#define __IPHONE_26_2 260200 /* __IPHONE__NA is not defined to a value but is used as a token by macros to indicate that the API is unavailable */ #define __WATCHOS_1_0 10000 @@ -251,6 +253,7 @@ #define __WATCHOS_12_0 120000 #define __WATCHOS_26_0 260000 #define __WATCHOS_26_1 260100 +#define __WATCHOS_26_2 260200 /* __WATCHOS__NA is not defined to a value but is used as a token by macros to indicate that the API is unavailable */ #define __TVOS_9_0 90000 @@ -312,6 +315,7 @@ #define __TVOS_19_0 190000 #define __TVOS_26_0 260000 #define __TVOS_26_1 260100 +#define __TVOS_26_2 260200 /* __TVOS__NA is not defined to a value but is used as a token by macros to indicate that the API is unavailable */ #define __BRIDGEOS_2_0 20000 @@ -350,6 +354,7 @@ #define __BRIDGEOS_9_6 90600 #define __BRIDGEOS_10_0 100000 #define __BRIDGEOS_10_1 100100 +#define __BRIDGEOS_10_2 100200 #define __DRIVERKIT_19_0 190000 @@ -375,6 +380,7 @@ #define __DRIVERKIT_24_6 240600 #define __DRIVERKIT_25_0 250000 #define __DRIVERKIT_25_1 250100 +#define __DRIVERKIT_25_2 250200 /* __DRIVERKIT__NA is not defined to a value but is used as a token by macros to indicate that the API is unavailable */ #define __VISIONOS_1_0 10000 @@ -391,6 +397,7 @@ #define __VISIONOS_3_0 30000 #define __VISIONOS_26_0 260000 #define __VISIONOS_26_1 260100 +#define __VISIONOS_26_2 260200 /* __VISIONOS__NA is not defined to a value but is used as a token by macros to indicate that the API is unavailable */ @@ -482,6 +489,7 @@ #define MAC_OS_VERSION_16_0 __MAC_16_0 #define MAC_OS_VERSION_26_0 __MAC_26_0 #define MAC_OS_VERSION_26_1 __MAC_26_1 +#define MAC_OS_VERSION_26_2 __MAC_26_2 #endif /* #if (!defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE)) || defined(_DARWIN_C_SOURCE) */ diff --git a/lib/libc/include/any-darwin-any/mach/port.h b/lib/libc/include/any-darwin-any/mach/port.h index 8b04a51a8182ec4c21038b340ea22ab8e023f9ff..4d0fdcb1ca74411fc5db55a94f1df9dd76da6020 100644 --- a/lib/libc/include/any-darwin-any/mach/port.h +++ b/lib/libc/include/any-darwin-any/mach/port.h @@ -482,7 +482,7 @@ enum mach_port_guard_exception_codes { /* start of always non-fatal guards */ kGUARD_EXC_RCV_GUARDED_DESC = 0x00100000, /* for development only */ kGUARD_EXC_SERVICE_PORT_VIOLATION_NON_FATAL = 0x00100001, /* unused, for future sp defense enablement */ - kGUARD_EXC_PROVISIONAL_REPLY_PORT = 0x00100002, + kGUARD_EXC_PROVISIONAL_REPLY_PORT = 0x00100002, /* unused */ kGUARD_EXC_OOL_PORT_ARRAY_CREATION = 0x00100003, /* unused */ kGUARD_EXC_MOVE_PROVISIONAL_REPLY_PORT = 0x00100004, kGUARD_EXC_REPLY_PORT_SINGLE_SO_RIGHT = 0x00100005, diff --git a/lib/libc/include/any-darwin-any/sys/_symbol_aliasing.h b/lib/libc/include/any-darwin-any/sys/_symbol_aliasing.h index c1db55b9542baa25b6eaf2e12b717def6d7943a3..6e1fb045ea8cdd96629cd3258db4ca30a1c71df8 100644 --- a/lib/libc/include/any-darwin-any/sys/_symbol_aliasing.h +++ b/lib/libc/include/any-darwin-any/sys/_symbol_aliasing.h @@ -569,6 +569,12 @@ #define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_26_1(x) #endif +#if defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ >= 260200 +#define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_26_2(x) x +#else +#define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_26_2(x) +#endif + #if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1000 #define __DARWIN_ALIAS_STARTING_MAC___MAC_10_0(x) x #else @@ -1013,3 +1019,9 @@ #define __DARWIN_ALIAS_STARTING_MAC___MAC_26_1(x) #endif +#if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 260200 +#define __DARWIN_ALIAS_STARTING_MAC___MAC_26_2(x) x +#else +#define __DARWIN_ALIAS_STARTING_MAC___MAC_26_2(x) +#endif + -- 2.54.0