| author | |
| committer | |
| log | c907866d55dd92352e26f7501e5a441210bedaba |
| tree | d467b32ee6212cb992853d849df3e66075f61bbf |
| parent | 1a08c83eb3a6c739c75b8ec3eb291ac15a69ed7a |
107 files changed, 1986 insertions(+), 959 deletions(-)
lib/libc/darwin/SDKSettings.json+1-1| ... | ... | @@ -1 +1 @@ |
| 1 | {"MinimalDisplayName":"15.2"} | |
| 1 | {"MinimalDisplayName":"15.5"} |
lib/libc/darwin/libSystem.tbd+274-260| ... | ... | @@ -71,7 +71,7 @@ tbd-version: 4 |
| 71 | 71 | targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, |
| 72 | 72 | arm64e-macos, arm64e-maccatalyst ] |
| 73 | 73 | install-name: '/usr/lib/system/libcommonCrypto.dylib' |
| 74 | current-version: 65535.60.1 | |
| 74 | current-version: 65535 | |
| 75 | 75 | parent-umbrella: |
| 76 | 76 | - targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, |
| 77 | 77 | arm64e-macos, arm64e-maccatalyst ] |
| ... | ... | @@ -399,7 +399,7 @@ tbd-version: 4 |
| 399 | 399 | targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, |
| 400 | 400 | arm64e-macos, arm64e-maccatalyst ] |
| 401 | 401 | install-name: '/usr/lib/system/libcorecrypto.dylib' |
| 402 | current-version: 1736.60.68 | |
| 402 | current-version: 1736.120.5 | |
| 403 | 403 | parent-umbrella: |
| 404 | 404 | - targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, |
| 405 | 405 | arm64e-macos, arm64e-maccatalyst ] |
| ... | ... | @@ -715,11 +715,12 @@ exports: |
| 715 | 715 | _ccspake_mac_hkdf_cmac_aes128_sha256, _ccspake_mac_hkdf_hmac_sha256, |
| 716 | 716 | _ccspake_mac_hkdf_hmac_sha512, _ccspake_mac_verify_and_get_session_key, |
| 717 | 717 | _ccspake_prover_init, _ccspake_prover_initialize, _ccspake_reduce_w, |
| 718 | _ccspake_sizeof_ctx, _ccspake_sizeof_point, _ccspake_sizeof_w, | |
| 719 | _ccspake_verifier_init, _ccspake_verifier_initialize, _ccsrp_client_process_challenge, | |
| 720 | _ccsrp_client_set_noUsernameInX, _ccsrp_client_start_authentication, | |
| 721 | _ccsrp_client_verify_session, _ccsrp_ctx_init, _ccsrp_ctx_init_option, | |
| 722 | _ccsrp_ctx_init_with_size_option, _ccsrp_exchange_size, _ccsrp_generate_salt_and_verification, | |
| 718 | _ccspake_reduce_w_RFC9383, _ccspake_sizeof_ctx, _ccspake_sizeof_point, | |
| 719 | _ccspake_sizeof_w, _ccspake_verifier_init, _ccspake_verifier_initialize, | |
| 720 | _ccsrp_client_process_challenge, _ccsrp_client_set_noUsernameInX, | |
| 721 | _ccsrp_client_start_authentication, _ccsrp_client_verify_session, | |
| 722 | _ccsrp_ctx_init, _ccsrp_ctx_init_option, _ccsrp_ctx_init_with_size_option, | |
| 723 | _ccsrp_exchange_size, _ccsrp_generate_salt_and_verification, | |
| 723 | 724 | _ccsrp_generate_verifier, _ccsrp_get_premaster_secret, _ccsrp_get_session_key, |
| 724 | 725 | _ccsrp_get_session_key_length, _ccsrp_gp_rfc5054_1024, _ccsrp_gp_rfc5054_2048, |
| 725 | 726 | _ccsrp_gp_rfc5054_3072, _ccsrp_gp_rfc5054_4096, _ccsrp_gp_rfc5054_8192, |
| ... | ... | @@ -769,7 +770,7 @@ tbd-version: 4 |
| 769 | 770 | targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, |
| 770 | 771 | arm64e-macos, arm64e-maccatalyst ] |
| 771 | 772 | install-name: '/usr/lib/system/libdispatch.dylib' |
| 772 | current-version: 1504.60.7 | |
| 773 | current-version: 1521.120.4 | |
| 773 | 774 | parent-umbrella: |
| 774 | 775 | - targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, |
| 775 | 776 | arm64e-macos, arm64e-maccatalyst ] |
| ... | ... | @@ -951,43 +952,42 @@ exports: |
| 951 | 952 | __dyld_find_foreign_type_protocol_conformance_on_disk, __dyld_find_pointer_hash_table_entry, |
| 952 | 953 | __dyld_find_protocol_conformance, __dyld_find_protocol_conformance_on_disk, |
| 953 | 954 | __dyld_find_unwind_sections, __dyld_for_each_objc_class, __dyld_for_each_objc_protocol, |
| 954 | __dyld_for_objc_header_opt_ro, __dyld_for_objc_header_opt_rw, | |
| 955 | __dyld_fork_child, __dyld_get_dlopen_image_header, __dyld_get_image_header, | |
| 956 | __dyld_get_image_name, __dyld_get_image_slide, __dyld_get_image_uuid, | |
| 957 | __dyld_get_image_vmaddr_slide, __dyld_get_objc_selector, __dyld_get_prog_image_header, | |
| 958 | __dyld_get_shared_cache_range, __dyld_get_shared_cache_uuid, | |
| 959 | __dyld_get_swift_prespecialized_data, __dyld_has_fix_for_radar, | |
| 960 | __dyld_has_preoptimized_swift_protocol_conformances, __dyld_image_count, | |
| 961 | __dyld_images_for_addresses, __dyld_initializer, __dyld_is_memory_immutable, | |
| 962 | __dyld_is_objc_constant, __dyld_is_preoptimized_objc_image_loaded, | |
| 955 | __dyld_for_each_prewarming_range, __dyld_for_objc_header_opt_ro, | |
| 956 | __dyld_for_objc_header_opt_rw, __dyld_fork_child, __dyld_get_dlopen_image_header, | |
| 957 | __dyld_get_image_header, __dyld_get_image_name, __dyld_get_image_slide, | |
| 958 | __dyld_get_image_uuid, __dyld_get_image_vmaddr_slide, __dyld_get_objc_selector, | |
| 959 | __dyld_get_prog_image_header, __dyld_get_shared_cache_range, | |
| 960 | __dyld_get_shared_cache_uuid, __dyld_get_swift_prespecialized_data, | |
| 961 | __dyld_has_fix_for_radar, __dyld_has_preoptimized_swift_protocol_conformances, | |
| 962 | __dyld_image_count, __dyld_images_for_addresses, __dyld_initializer, | |
| 963 | __dyld_is_memory_immutable, __dyld_is_objc_constant, __dyld_is_preoptimized_objc_image_loaded, | |
| 963 | 964 | __dyld_is_pseudodylib, __dyld_launch_mode, __dyld_lookup_section_info, |
| 964 | __dyld_missing_symbol_abort, __dyld_objc_class_count, __dyld_objc_notify_register, | |
| 965 | __dyld_objc_register_callbacks, __dyld_objc_uses_large_shared_cache, | |
| 966 | __dyld_process_info_create, __dyld_process_info_for_each_image, | |
| 967 | __dyld_process_info_for_each_segment, __dyld_process_info_get_aot_cache, | |
| 968 | __dyld_process_info_get_cache, __dyld_process_info_get_platform, | |
| 969 | __dyld_process_info_get_state, __dyld_process_info_notify, | |
| 970 | __dyld_process_info_notify_main, __dyld_process_info_notify_release, | |
| 971 | __dyld_process_info_notify_retain, __dyld_process_info_release, | |
| 972 | __dyld_process_info_retain, __dyld_pseudodylib_deregister, | |
| 965 | __dyld_objc_class_count, __dyld_objc_notify_register, __dyld_objc_register_callbacks, | |
| 966 | __dyld_objc_uses_large_shared_cache, __dyld_process_info_create, | |
| 967 | __dyld_process_info_for_each_image, __dyld_process_info_for_each_segment, | |
| 968 | __dyld_process_info_get_aot_cache, __dyld_process_info_get_cache, | |
| 969 | __dyld_process_info_get_platform, __dyld_process_info_get_state, | |
| 970 | __dyld_process_info_notify, __dyld_process_info_notify_main, | |
| 971 | __dyld_process_info_notify_release, __dyld_process_info_notify_retain, | |
| 972 | __dyld_process_info_release, __dyld_process_info_retain, __dyld_pseudodylib_deregister, | |
| 973 | 973 | __dyld_pseudodylib_deregister_callbacks, __dyld_pseudodylib_register, |
| 974 | 974 | __dyld_pseudodylib_register_callbacks, __dyld_register_dlsym_notifier, |
| 975 | 975 | __dyld_register_driverkit_main, __dyld_register_for_bulk_image_loads, |
| 976 | 976 | __dyld_register_for_image_loads, __dyld_register_func_for_add_image, |
| 977 | 977 | __dyld_register_func_for_remove_image, __dyld_shared_cache_contains_path, |
| 978 | 978 | __dyld_shared_cache_is_locally_built, __dyld_shared_cache_optimized, |
| 979 | __dyld_shared_cache_real_path, __dyld_swift_optimizations_version, | |
| 980 | __dyld_visit_objc_classes, __tlv_atexit, __tlv_bootstrap, | |
| 981 | __tlv_exit, _dladdr, _dlclose, _dlerror, _dlopen, _dlopen_audited, | |
| 982 | _dlopen_from, _dlopen_preflight, _dlsym, _dyldVersionNumber, | |
| 983 | _dyldVersionString, _dyld_dynamic_interpose, _dyld_for_each_installed_shared_cache, | |
| 984 | _dyld_for_each_installed_shared_cache_with_system_path, _dyld_get_active_platform, | |
| 985 | _dyld_get_base_platform, _dyld_get_image_versions, _dyld_get_min_os_version, | |
| 986 | _dyld_get_program_min_os_version, _dyld_get_program_minos_version_token, | |
| 987 | _dyld_get_program_sdk_version, _dyld_get_program_sdk_version_token, | |
| 988 | _dyld_get_sdk_version, _dyld_has_inserted_or_interposing_libraries, | |
| 989 | _dyld_image_content_for_section, _dyld_image_content_for_segment, | |
| 990 | _dyld_image_copy_uuid, _dyld_image_for_each_section_info, | |
| 979 | __dyld_shared_cache_real_path, __dyld_stack_bottom, __dyld_stack_range, | |
| 980 | __dyld_stack_top, __dyld_swift_optimizations_version, __dyld_visit_objc_classes, | |
| 981 | __tlv_atexit, __tlv_bootstrap, __tlv_exit, _dladdr, _dlclose, | |
| 982 | _dlerror, _dlopen, _dlopen_audited, _dlopen_from, _dlopen_preflight, | |
| 983 | _dlsym, _dyldVersionNumber, _dyldVersionString, _dyld_dynamic_interpose, | |
| 984 | _dyld_for_each_installed_shared_cache, _dyld_for_each_installed_shared_cache_with_system_path, | |
| 985 | _dyld_get_active_platform, _dyld_get_base_platform, _dyld_get_image_versions, | |
| 986 | _dyld_get_min_os_version, _dyld_get_program_min_os_version, | |
| 987 | _dyld_get_program_minos_version_token, _dyld_get_program_sdk_version, | |
| 988 | _dyld_get_program_sdk_version_token, _dyld_get_sdk_version, | |
| 989 | _dyld_has_inserted_or_interposing_libraries, _dyld_image_content_for_section, | |
| 990 | _dyld_image_content_for_segment, _dyld_image_copy_uuid, _dyld_image_for_each_section_info, | |
| 991 | 991 | _dyld_image_for_each_segment_info, _dyld_image_get_file_path, |
| 992 | 992 | _dyld_image_get_installname, _dyld_image_header_containing_address, |
| 993 | 993 | _dyld_image_local_nlist_content_4Symbolication, _dyld_image_path_containing_address, |
| ... | ... | @@ -1011,7 +1011,8 @@ exports: |
| 1011 | 1011 | _macho_cpu_type_for_arch_name, _macho_dylib_install_name, |
| 1012 | 1012 | _macho_for_each_defined_rpath, _macho_for_each_dependent_dylib, |
| 1013 | 1013 | _macho_for_each_exported_symbol, _macho_for_each_imported_symbol, |
| 1014 | _macho_for_each_slice, _macho_for_each_slice_in_fd, dyld_stub_binder ] | |
| 1014 | _macho_for_each_slice, _macho_for_each_slice_in_fd, _macho_source_version, | |
| 1015 | dyld_stub_binder ] | |
| 1015 | 1016 | - targets: [ x86_64-macos, arm64-macos, arm64e-macos ] |
| 1016 | 1017 | symbols: [ _NSAddImage, _NSAddLibrary, _NSAddLibraryWithSearching, _NSAddressOfSymbol, |
| 1017 | 1018 | _NSCreateObjectFileImageFromFile, _NSCreateObjectFileImageFromMemory, |
| ... | ... | @@ -1051,7 +1052,7 @@ exports: |
| 1051 | 1052 | tbd-version: 4 |
| 1052 | 1053 | targets: [ x86_64-macos, arm64-macos, arm64e-macos ] |
| 1053 | 1054 | install-name: '/usr/lib/system/libmacho.dylib' |
| 1054 | current-version: 1022.1 | |
| 1055 | current-version: 1024.3 | |
| 1055 | 1056 | parent-umbrella: |
| 1056 | 1057 | - targets: [ x86_64-macos, arm64-macos, arm64e-macos ] |
| 1057 | 1058 | umbrella: System |
| ... | ... | @@ -1091,7 +1092,7 @@ tbd-version: 4 |
| 1091 | 1092 | targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, |
| 1092 | 1093 | arm64e-macos, arm64e-maccatalyst ] |
| 1093 | 1094 | install-name: '/usr/lib/system/libquarantine.dylib' |
| 1094 | current-version: 181.60.2 | |
| 1095 | current-version: 181.120.2 | |
| 1095 | 1096 | parent-umbrella: |
| 1096 | 1097 | - targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, |
| 1097 | 1098 | arm64e-macos, arm64e-maccatalyst ] |
| ... | ... | @@ -1137,7 +1138,7 @@ tbd-version: 4 |
| 1137 | 1138 | targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, |
| 1138 | 1139 | arm64e-macos, arm64e-maccatalyst ] |
| 1139 | 1140 | install-name: '/usr/lib/system/libremovefile.dylib' |
| 1140 | current-version: 75 | |
| 1141 | current-version: 81 | |
| 1141 | 1142 | parent-umbrella: |
| 1142 | 1143 | - targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, |
| 1143 | 1144 | arm64e-macos, arm64e-maccatalyst ] |
| ... | ... | @@ -1147,9 +1148,9 @@ exports: |
| 1147 | 1148 | arm64e-macos, arm64e-maccatalyst ] |
| 1148 | 1149 | symbols: [ ___removefile_init_random, ___removefile_random_char, ___removefile_randomize_buffer, |
| 1149 | 1150 | ___removefile_rename_unlink, ___removefile_sunlink, ___removefile_tree_walker, |
| 1150 | _removefile, _removefile_cancel, _removefile_state_alloc, | |
| 1151 | _removefile_state_free, _removefile_state_get, _removefile_state_set, | |
| 1152 | _removefileat ] | |
| 1151 | ___removefile_tree_walker_slim, _removefile, _removefile_cancel, | |
| 1152 | _removefile_state_alloc, _removefile_state_free, _removefile_state_get, | |
| 1153 | _removefile_state_set, _removefileat ] | |
| 1153 | 1154 | --- !tapi-tbd |
| 1154 | 1155 | tbd-version: 4 |
| 1155 | 1156 | targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, |
| ... | ... | @@ -1236,7 +1237,7 @@ tbd-version: 4 |
| 1236 | 1237 | targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, |
| 1237 | 1238 | arm64e-macos, arm64e-maccatalyst ] |
| 1238 | 1239 | install-name: '/usr/lib/system/libsystem_blocks.dylib' |
| 1239 | current-version: 95 | |
| 1240 | current-version: 96 | |
| 1240 | 1241 | parent-umbrella: |
| 1241 | 1242 | - targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, |
| 1242 | 1243 | arm64e-macos, arm64e-maccatalyst ] |
| ... | ... | @@ -1255,7 +1256,7 @@ tbd-version: 4 |
| 1255 | 1256 | targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, |
| 1256 | 1257 | arm64e-macos, arm64e-maccatalyst ] |
| 1257 | 1258 | install-name: '/usr/lib/system/libsystem_c.dylib' |
| 1258 | current-version: 1669.60.4 | |
| 1259 | current-version: 1698.100.8 | |
| 1259 | 1260 | parent-umbrella: |
| 1260 | 1261 | - targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, |
| 1261 | 1262 | arm64e-macos, arm64e-maccatalyst ] |
| ... | ... | @@ -1324,7 +1325,7 @@ exports: |
| 1324 | 1325 | ___toupper_l, ___trailz_D2A, ___ulp_D2A, ___ungetc, ___ungetwc, |
| 1325 | 1326 | ___vsnprintf_chk, ___vsprintf_chk, ___wcwidth, ___wcwidth_l, |
| 1326 | 1327 | ___xlocale_C_collate, __allocenvstate, __atexit_receipt, __c_locale, |
| 1327 | __cleanup, __closeutx, __copyenv, __cthread_init_routine, | |
| 1328 | __cleanup, __closeutx, __collate_lookup, __copyenv, __cthread_init_routine, | |
| 1328 | 1329 | __deallocenvstate, __endutxent, __flockfile_debug_stub, __fseeko, |
| 1329 | 1330 | __ftello, __fwalk, __getenvp, __getutxent, __getutxid, __getutxline, |
| 1330 | 1331 | __inet_aton_check, __init_clock_port, __int_to_time, __libc_fork_child, |
| ... | ... | @@ -1476,51 +1477,52 @@ exports: |
| 1476 | 1477 | _sradixsort, _srand, _srand48, _sranddev, _srandom, _srandomdev, |
| 1477 | 1478 | _sscanf, _sscanf_l, _stat_with_subsystem, _statvfs, _statx_np, |
| 1478 | 1479 | _stpcpy, _stpncpy, _stravis, _strcasecmp, _strcasecmp_l, _strcasestr, |
| 1479 | _strcasestr_l, _strcat, _strcoll, _strcoll_l, _strcspn, _strdup, | |
| 1480 | _strenvisx, _strerror, _strerror_r, _strfmon, _strfmon_l, | |
| 1481 | _strftime, _strftime_l, _strmode, _strncasecmp, _strncasecmp_l, | |
| 1482 | _strncat, _strndup, _strnstr, _strnunvis, _strnunvisx, _strnvis, | |
| 1483 | _strnvisx, _strpbrk, _strptime, _strptime_l, _strrchr, _strsenvisx, | |
| 1484 | _strsep, _strsignal, _strsignal_r, _strsnvis, _strsnvisx, | |
| 1485 | _strspn, _strsvis, _strsvisx, _strtod, _strtod_l, _strtoencf16, | |
| 1486 | _strtoencf32, _strtoencf64, _strtoencf64x, _strtof, _strtof_l, | |
| 1487 | _strtofflags, _strtoimax, _strtoimax_l, _strtok, _strtok_r, | |
| 1488 | _strtol, _strtol_l, _strtold, _strtold_l, _strtoll, _strtoll_l, | |
| 1489 | _strtonum, _strtoq, _strtoq_l, _strtoul, _strtoul_l, _strtoull, | |
| 1490 | _strtoull_l, _strtoumax, _strtoumax_l, _strtouq, _strtouq_l, | |
| 1491 | _strunvis, _strunvisx, _strvis, _strvisx, _strxfrm, _strxfrm_l, | |
| 1492 | _suboptarg, _svis, _swab, _swprintf, _swprintf_l, _swscanf, | |
| 1493 | _swscanf_l, _sxprintf, _sxprintf_exec, _sync_volume_np, _sys_errlist, | |
| 1494 | _sys_nerr, _sys_siglist, _sys_signame, _sysconf, _sysctl, | |
| 1495 | _sysctlbyname, _sysctlnametomib, _system, '_system$NOCANCEL', | |
| 1496 | _tcdrain, '_tcdrain$NOCANCEL', _tcflow, _tcflush, _tcgetattr, | |
| 1497 | _tcgetpgrp, _tcgetsid, _tcsendbreak, _tcsetattr, _tcsetpgrp, | |
| 1498 | _tdelete, _telldir, _tempnam, _tfind, _thread_stack_async_pcs, | |
| 1499 | _thread_stack_pcs, _time, _time2posix, _timegm, _timelocal, | |
| 1500 | _timeoff, _times, _timespec_get, _timezone, _timingsafe_bcmp, | |
| 1501 | _tmpfile, _tmpnam, _toascii, _tolower, _tolower_l, _toupper, | |
| 1502 | _toupper_l, _towctrans, _towctrans_l, _towlower, _towlower_l, | |
| 1503 | _towupper, _towupper_l, _tre_ast_new_catenation, _tre_ast_new_iter, | |
| 1504 | _tre_ast_new_literal, _tre_ast_new_node, _tre_ast_new_union, | |
| 1505 | _tre_compile, _tre_fill_pmatch, _tre_free, _tre_mem_alloc_impl, | |
| 1506 | _tre_mem_destroy, _tre_mem_new_impl, _tre_parse, _tre_stack_destroy, | |
| 1507 | _tre_stack_new, _tre_stack_num_objects, _tre_tnfa_run_backtrack, | |
| 1508 | _tre_tnfa_run_parallel, _tsearch, _ttyname, _ttyname_r, _ttyslot, | |
| 1509 | _twalk, _tzname, _tzset, _tzsetwall, _ualarm, _ulimit, _umaskx_np, | |
| 1510 | _uname, _ungetc, _ungetwc, _ungetwc_l, _unlockpt, _unsetenv, | |
| 1511 | _unvis, _uselocale, _usleep, '_usleep$NOCANCEL', _utime, _utmpxname, | |
| 1512 | _uuid_clear, _uuid_compare, _uuid_copy, _uuid_generate, _uuid_generate_random, | |
| 1513 | _uuid_generate_time, _uuid_is_null, _uuid_pack, _uuid_parse, | |
| 1514 | _uuid_unpack, _uuid_unparse, _uuid_unparse_lower, _uuid_unparse_upper, | |
| 1515 | _vasprintf, _vasprintf_l, _vasxprintf, _vasxprintf_exec, _vdprintf, | |
| 1516 | _vdprintf_l, _vdxprintf, _vdxprintf_exec, _verr, _verrc, _verrx, | |
| 1517 | _vfork, _vfprintf, _vfprintf_l, _vfscanf, _vfscanf_l, _vfwprintf, | |
| 1518 | _vfwprintf_l, _vfwscanf, _vfwscanf_l, _vfxprintf, _vfxprintf_exec, | |
| 1519 | _vis, _vprintf, _vprintf_l, _vscanf, _vscanf_l, _vsnprintf, | |
| 1520 | _vsnprintf_l, _vsprintf, _vsprintf_l, _vsscanf, _vsscanf_l, | |
| 1521 | _vswprintf, _vswprintf_l, _vswscanf, _vswscanf_l, _vsxprintf, | |
| 1522 | _vsxprintf_exec, _vwarn, _vwarnc, _vwarnx, _vwprintf, _vwprintf_l, | |
| 1523 | _vwscanf, _vwscanf_l, _vxprintf, _vxprintf_exec, _wait, '_wait$NOCANCEL', | |
| 1480 | _strcasestr_l, _strcat, _strchrnul, _strcoll, _strcoll_l, | |
| 1481 | _strcspn, _strdup, _strenvisx, _strerror, _strerror_r, _strfmon, | |
| 1482 | _strfmon_l, _strftime, _strftime_l, _strmode, _strncasecmp, | |
| 1483 | _strncasecmp_l, _strncat, _strndup, _strnstr, _strnunvis, | |
| 1484 | _strnunvisx, _strnvis, _strnvisx, _strpbrk, _strptime, _strptime_l, | |
| 1485 | _strrchr, _strsenvisx, _strsep, _strsignal, _strsignal_r, | |
| 1486 | _strsnvis, _strsnvisx, _strspn, _strsvis, _strsvisx, _strtod, | |
| 1487 | _strtod_l, _strtoencf16, _strtoencf32, _strtoencf64, _strtoencf64x, | |
| 1488 | _strtof, _strtof_l, _strtofflags, _strtoimax, _strtoimax_l, | |
| 1489 | _strtok, _strtok_r, _strtol, _strtol_l, _strtold, _strtold_l, | |
| 1490 | _strtoll, _strtoll_l, _strtonum, _strtoq, _strtoq_l, _strtoul, | |
| 1491 | _strtoul_l, _strtoull, _strtoull_l, _strtoumax, _strtoumax_l, | |
| 1492 | _strtouq, _strtouq_l, _strunvis, _strunvisx, _strvis, _strvisx, | |
| 1493 | _strxfrm, _strxfrm_l, _suboptarg, _svis, _swab, _swprintf, | |
| 1494 | _swprintf_l, _swscanf, _swscanf_l, _sxprintf, _sxprintf_exec, | |
| 1495 | _sync_volume_np, _sys_errlist, _sys_nerr, _sys_siglist, _sys_signame, | |
| 1496 | _sysconf, _sysctl, _sysctlbyname, _sysctlnametomib, _system, | |
| 1497 | '_system$NOCANCEL', _tcdrain, '_tcdrain$NOCANCEL', _tcflow, | |
| 1498 | _tcflush, _tcgetattr, _tcgetpgrp, _tcgetsid, _tcsendbreak, | |
| 1499 | _tcsetattr, _tcsetpgrp, _tdelete, _telldir, _tempnam, _tfind, | |
| 1500 | _thread_stack_async_pcs, _thread_stack_pcs, _time, _time2posix, | |
| 1501 | _timegm, _timelocal, _timeoff, _times, _timespec_get, _timezone, | |
| 1502 | _timingsafe_bcmp, _tmpfile, _tmpnam, _toascii, _tolower, _tolower_l, | |
| 1503 | _toupper, _toupper_l, _towctrans, _towctrans_l, _towlower, | |
| 1504 | _towlower_l, _towupper, _towupper_l, _tre_ast_new_catenation, | |
| 1505 | _tre_ast_new_iter, _tre_ast_new_literal, _tre_ast_new_node, | |
| 1506 | _tre_ast_new_union, _tre_compile, _tre_fill_pmatch, _tre_free, | |
| 1507 | _tre_mem_alloc_impl, _tre_mem_destroy, _tre_mem_new_impl, | |
| 1508 | _tre_parse, _tre_stack_destroy, _tre_stack_new, _tre_stack_num_objects, | |
| 1509 | _tre_tnfa_run_backtrack, _tre_tnfa_run_parallel, _tsearch, | |
| 1510 | _ttyname, _ttyname_r, _ttyslot, _twalk, _tzname, _tzset, _tzsetwall, | |
| 1511 | _ualarm, _ulimit, _umaskx_np, _uname, _ungetc, _ungetwc, _ungetwc_l, | |
| 1512 | _unlockpt, _unsetenv, _unvis, _uselocale, _usleep, '_usleep$NOCANCEL', | |
| 1513 | _utime, _utmpxname, _uuid_clear, _uuid_compare, _uuid_copy, | |
| 1514 | _uuid_generate, _uuid_generate_random, _uuid_generate_time, | |
| 1515 | _uuid_is_null, _uuid_pack, _uuid_parse, _uuid_unpack, _uuid_unparse, | |
| 1516 | _uuid_unparse_lower, _uuid_unparse_upper, _vasprintf, _vasprintf_l, | |
| 1517 | _vasxprintf, _vasxprintf_exec, _vdprintf, _vdprintf_l, _vdxprintf, | |
| 1518 | _vdxprintf_exec, _verr, _verrc, _verrx, _vfork, _vfprintf, | |
| 1519 | _vfprintf_l, _vfscanf, _vfscanf_l, _vfwprintf, _vfwprintf_l, | |
| 1520 | _vfwscanf, _vfwscanf_l, _vfxprintf, _vfxprintf_exec, _vis, | |
| 1521 | _vprintf, _vprintf_l, _vscanf, _vscanf_l, _vsnprintf, _vsnprintf_l, | |
| 1522 | _vsprintf, _vsprintf_l, _vsscanf, _vsscanf_l, _vswprintf, | |
| 1523 | _vswprintf_l, _vswscanf, _vswscanf_l, _vsxprintf, _vsxprintf_exec, | |
| 1524 | _vwarn, _vwarnc, _vwarnx, _vwprintf, _vwprintf_l, _vwscanf, | |
| 1525 | _vwscanf_l, _vxprintf, _vxprintf_exec, _wait, '_wait$NOCANCEL', | |
| 1524 | 1526 | _wait3, _waitpid, '_waitpid$NOCANCEL', _warn, _warnc, _warnx, |
| 1525 | 1527 | _wcpcpy, _wcpncpy, _wcrtomb, _wcrtomb_l, _wcscasecmp, _wcscasecmp_l, |
| 1526 | 1528 | _wcscat, _wcschr, _wcscmp, _wcscoll, _wcscoll_l, _wcscpy, |
| ... | ... | @@ -1550,7 +1552,7 @@ tbd-version: 4 |
| 1550 | 1552 | targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, |
| 1551 | 1553 | arm64e-macos, arm64e-maccatalyst ] |
| 1552 | 1554 | install-name: '/usr/lib/system/libsystem_collections.dylib' |
| 1553 | current-version: 1669.60.4 | |
| 1555 | current-version: 1698.100.8 | |
| 1554 | 1556 | parent-umbrella: |
| 1555 | 1557 | - targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, |
| 1556 | 1558 | arm64e-macos, arm64e-maccatalyst ] |
| ... | ... | @@ -1580,7 +1582,7 @@ tbd-version: 4 |
| 1580 | 1582 | targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, |
| 1581 | 1583 | arm64e-macos, arm64e-maccatalyst ] |
| 1582 | 1584 | install-name: '/usr/lib/system/libsystem_configuration.dylib' |
| 1583 | current-version: 1351 | |
| 1585 | current-version: 1351.120.3 | |
| 1584 | 1586 | parent-umbrella: |
| 1585 | 1587 | - targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, |
| 1586 | 1588 | arm64e-macos, arm64e-maccatalyst ] |
| ... | ... | @@ -1614,7 +1616,8 @@ parent-umbrella: |
| 1614 | 1616 | exports: |
| 1615 | 1617 | - targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, |
| 1616 | 1618 | arm64e-macos, arm64e-maccatalyst ] |
| 1617 | symbols: [ _CMFSSEAM_DEFAULT, _CONTAINER_NOTIFY_USER_INVALIDATED, _CONTAINER_PERSONA_CURRENT, | |
| 1619 | symbols: [ _CMCONTAINERSEAM_DEFAULT, _CMFSSEAM_DEFAULT, _CMPWDSEAM_DEFAULT, | |
| 1620 | _CONTAINER_NOTIFY_USER_INVALIDATED, _CONTAINER_PERSONA_CURRENT, | |
| 1618 | 1621 | _CONTAINER_PERSONA_PRIMARY, __container_init, __container_query_get_servicing_pid, |
| 1619 | 1622 | __container_references_get_servicing_pid, __container_traverse_continuation_create, |
| 1620 | 1623 | __container_traverse_continuation_free, __container_traverse_continuation_pop, |
| ... | ... | @@ -1691,6 +1694,7 @@ exports: |
| 1691 | 1694 | _container_get_path, _container_get_persona_unique_string, |
| 1692 | 1695 | _container_get_uid, _container_get_unique_path_component, |
| 1693 | 1696 | _container_get_user_managed_assets_relative_path, _container_group_container_identifiers_for_current_user, |
| 1697 | _container_info_delete, _container_info_modify, _container_info_put, | |
| 1694 | 1698 | _container_internal_get_first_boot_uuid, _container_invalidate_code_signing_cache, |
| 1695 | 1699 | _container_is_equal, _container_is_new, _container_is_transient, |
| 1696 | 1700 | _container_log_client_fault_logging_is_enabled, _container_log_error, |
| ... | ... | @@ -1728,8 +1732,9 @@ exports: |
| 1728 | 1732 | _container_persona_collect_all_ids, _container_persona_convert_unique_string_to_persona_uid, |
| 1729 | 1733 | _container_persona_foreach, _container_process_restored_container, |
| 1730 | 1734 | _container_pwd_copy_user_home_path, _container_pwd_for_name, |
| 1731 | _container_pwd_for_uid, _container_query_copy, _container_query_count_results, | |
| 1732 | _container_query_create, _container_query_create_from_container, | |
| 1735 | _container_pwd_for_uid, _container_pwd_get_cached_current_user_home_path, | |
| 1736 | _container_pwd_get_mobile_user_uid, _container_query_copy, | |
| 1737 | _container_query_count_results, _container_query_create, _container_query_create_from_container, | |
| 1733 | 1738 | _container_query_free, _container_query_get_last_error, _container_query_get_single_result, |
| 1734 | 1739 | _container_query_iterate_results_sync, _container_query_iterate_results_with_identifier_sync, |
| 1735 | 1740 | _container_query_iterate_results_with_subquery_sync, _container_query_operation_set_client, |
| ... | ... | @@ -1742,8 +1747,10 @@ exports: |
| 1742 | 1747 | _container_regenerate_uuid, _container_repair_user_data, _container_replace, |
| 1743 | 1748 | _container_retry_test, _container_sandbox_extension_consume, |
| 1744 | 1749 | _container_sandbox_extension_revoke, _container_sandbox_issue_custom_extension, |
| 1745 | _container_sandbox_issue_extension, _container_seam_fs_ensure_lazy_loaded, | |
| 1746 | _container_seam_fs_reset, _container_seam_fs_set_common, _container_serialize_copy_deserialized_reference, | |
| 1750 | _container_sandbox_issue_extension, _container_seam_container_reset, | |
| 1751 | _container_seam_container_set_common, _container_seam_fs_ensure_lazy_loaded, | |
| 1752 | _container_seam_fs_reset, _container_seam_fs_set_common, _container_seam_pwd_reset, | |
| 1753 | _container_seam_pwd_set_common, _container_serialize_copy_deserialized_reference, | |
| 1747 | 1754 | _container_serialize_copy_serialized_reference, _container_set_code_signing_info_for_identifier, |
| 1748 | 1755 | _container_set_data_protection_for_current_user, _container_set_info_value, |
| 1749 | 1756 | _container_set_test_lock, _container_stage_shared_system_content, |
| ... | ... | @@ -1777,7 +1784,8 @@ exports: |
| 1777 | 1784 | _container_xpc_send_sync_message_with_object, _container_xpc_set_client_context_during_block, |
| 1778 | 1785 | _container_xpc_set_incoming_reply_preprocess_block, _container_xpc_set_outgoing_message_postprocess_block, |
| 1779 | 1786 | _container_xpc_set_outgoing_message_send_block, _container_xpc_set_use_shared_connection, |
| 1780 | _container_xpc_shared_copy_connection, _gCMFSSeam ] | |
| 1787 | _container_xpc_shared_copy_connection, _gCMContainerSeam, | |
| 1788 | _gCMFSSeam, _gCMPWDSeam ] | |
| 1781 | 1789 | - targets: [ x86_64-maccatalyst, arm64-maccatalyst, arm64e-maccatalyst ] |
| 1782 | 1790 | symbols: [ _CONTAINER_CURRENT_MOBILE_UID, _CONTAINER_INSTALLATION_UID, |
| 1783 | 1791 | _CONTAINER_SYSTEM_UID, _container_create_or_lookup, _container_create_or_lookup_app_group_paths, |
| ... | ... | @@ -1871,7 +1879,7 @@ tbd-version: 4 |
| 1871 | 1879 | targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, |
| 1872 | 1880 | arm64e-macos, arm64e-maccatalyst ] |
| 1873 | 1881 | install-name: '/usr/lib/system/libsystem_dnssd.dylib' |
| 1874 | current-version: 2559.60.39 | |
| 1882 | current-version: 2600.120.12 | |
| 1875 | 1883 | parent-umbrella: |
| 1876 | 1884 | - targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, |
| 1877 | 1885 | arm64e-macos, arm64e-maccatalyst ] |
| ... | ... | @@ -1908,17 +1916,17 @@ exports: |
| 1908 | 1916 | tbd-version: 4 |
| 1909 | 1917 | targets: [ x86_64-macos, arm64-macos, arm64e-macos ] |
| 1910 | 1918 | install-name: '/usr/lib/system/libsystem_eligibility.dylib' |
| 1911 | current-version: 160.60.1 | |
| 1919 | current-version: 181.120.32 | |
| 1912 | 1920 | parent-umbrella: |
| 1913 | 1921 | - targets: [ x86_64-macos, arm64-macos, arm64e-macos ] |
| 1914 | 1922 | umbrella: System |
| 1915 | 1923 | exports: |
| 1916 | 1924 | - targets: [ x86_64-macos, arm64-macos, arm64e-macos ] |
| 1917 | symbols: [ _load_eligibility_plist, _os_eligibility_domain_for_name, | |
| 1918 | _os_eligibility_dump_sysdiagnose_data_to_dir, _os_eligibility_force_domain_answer, | |
| 1919 | _os_eligibility_force_domain_set_answers, _os_eligibility_get_all_domain_answers, | |
| 1920 | _os_eligibility_get_domain_answer, _os_eligibility_get_domain_notification_name, | |
| 1921 | _os_eligibility_get_internal_state, _os_eligibility_get_state_dump, | |
| 1925 | symbols: [ _os_eligibility_domain_for_name, _os_eligibility_dump_sysdiagnose_data_to_dir, | |
| 1926 | _os_eligibility_force_domain_answer, _os_eligibility_force_domain_set_answers, | |
| 1927 | _os_eligibility_get_all_domain_answers, _os_eligibility_get_domain_answer, | |
| 1928 | _os_eligibility_get_domain_notification_name, _os_eligibility_get_internal_state, | |
| 1929 | _os_eligibility_get_state_dump, _os_eligibility_precise_locations, | |
| 1922 | 1930 | _os_eligibility_reset_all_domains, _os_eligibility_reset_domain, |
| 1923 | 1931 | _os_eligibility_set_input, _os_eligibility_set_test_mode ] |
| 1924 | 1932 | --- !tapi-tbd |
| ... | ... | @@ -1926,7 +1934,7 @@ tbd-version: 4 |
| 1926 | 1934 | targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, |
| 1927 | 1935 | arm64e-macos, arm64e-maccatalyst ] |
| 1928 | 1936 | install-name: '/usr/lib/system/libsystem_featureflags.dylib' |
| 1929 | current-version: 94 | |
| 1937 | current-version: 97 | |
| 1930 | 1938 | parent-umbrella: |
| 1931 | 1939 | - targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, |
| 1932 | 1940 | arm64e-macos, arm64e-maccatalyst ] |
| ... | ... | @@ -2064,7 +2072,7 @@ tbd-version: 4 |
| 2064 | 2072 | targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, |
| 2065 | 2073 | arm64e-macos, arm64e-maccatalyst ] |
| 2066 | 2074 | install-name: '/usr/lib/system/libsystem_kernel.dylib' |
| 2067 | current-version: 11215.61.3 | |
| 2075 | current-version: 11417.121.6 | |
| 2068 | 2076 | parent-umbrella: |
| 2069 | 2077 | - targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, |
| 2070 | 2078 | arm64e-macos, arm64e-maccatalyst ] |
| ... | ... | @@ -2114,20 +2122,21 @@ exports: |
| 2114 | 2122 | ___open_extended, ___open_nocancel, ___openat, ___openat_dprotected_np, |
| 2115 | 2123 | ___openat_nocancel, ___os_nexus_flow_add, ___os_nexus_flow_del, |
| 2116 | 2124 | ___os_nexus_get_llink_info, ___os_nexus_ifattach, ___os_nexus_ifdetach, |
| 2117 | ___persona, ___pipe, ___poll_nocancel, ___posix_spawn, ___pread_nocancel, | |
| 2118 | ___preadv_nocancel, ___proc_info, ___proc_info_extended_id, | |
| 2119 | ___process_policy, ___pselect, ___pselect_nocancel, ___psynch_cvbroad, | |
| 2120 | ___psynch_cvclrprepost, ___psynch_cvsignal, ___psynch_cvwait, | |
| 2121 | ___psynch_mutexdrop, ___psynch_mutexwait, ___psynch_rw_downgrade, | |
| 2122 | ___psynch_rw_longrdlock, ___psynch_rw_rdlock, ___psynch_rw_unlock, | |
| 2123 | ___psynch_rw_unlock2, ___psynch_rw_upgrade, ___psynch_rw_wrlock, | |
| 2124 | ___psynch_rw_yieldwrlock, ___pthread_canceled, ___pthread_chdir, | |
| 2125 | ___pthread_fchdir, ___pthread_kill, ___pthread_markcancel, | |
| 2126 | ___pthread_sigmask, ___ptrace, ___pwrite_nocancel, ___pwritev_nocancel, | |
| 2127 | ___read_nocancel, ___readv_nocancel, ___reboot, ___record_system_event, | |
| 2128 | ___recvfrom, ___recvfrom_nocancel, ___recvmsg, ___recvmsg_nocancel, | |
| 2129 | ___rename, ___renameat, ___renameatx_np, ___rmdir, ___sandbox_me, | |
| 2130 | ___sandbox_mm, ___sandbox_ms, ___sandbox_msp, ___select, ___select_nocancel, | |
| 2125 | ___oslog_coproc, ___oslog_coproc_reg, ___persona, ___pipe, | |
| 2126 | ___poll_nocancel, ___posix_spawn, ___pread_nocancel, ___preadv_nocancel, | |
| 2127 | ___proc_info, ___proc_info_extended_id, ___process_policy, | |
| 2128 | ___pselect, ___pselect_nocancel, ___psynch_cvbroad, ___psynch_cvclrprepost, | |
| 2129 | ___psynch_cvsignal, ___psynch_cvwait, ___psynch_mutexdrop, | |
| 2130 | ___psynch_mutexwait, ___psynch_rw_downgrade, ___psynch_rw_longrdlock, | |
| 2131 | ___psynch_rw_rdlock, ___psynch_rw_unlock, ___psynch_rw_unlock2, | |
| 2132 | ___psynch_rw_upgrade, ___psynch_rw_wrlock, ___psynch_rw_yieldwrlock, | |
| 2133 | ___pthread_canceled, ___pthread_chdir, ___pthread_fchdir, | |
| 2134 | ___pthread_kill, ___pthread_markcancel, ___pthread_sigmask, | |
| 2135 | ___ptrace, ___pwrite_nocancel, ___pwritev_nocancel, ___read_nocancel, | |
| 2136 | ___readv_nocancel, ___reboot, ___record_system_event, ___recvfrom, | |
| 2137 | ___recvfrom_nocancel, ___recvmsg, ___recvmsg_nocancel, ___rename, | |
| 2138 | ___renameat, ___renameatx_np, ___rmdir, ___sandbox_me, ___sandbox_mm, | |
| 2139 | ___sandbox_ms, ___sandbox_msp, ___select, ___select_nocancel, | |
| 2131 | 2140 | ___sem_open, ___sem_wait_nocancel, ___semctl, ___semsys, ___semwait_signal, |
| 2132 | 2141 | ___semwait_signal_nocancel, ___sendmsg, ___sendmsg_nocancel, |
| 2133 | 2142 | ___sendto, ___sendto_nocancel, ___setattrlist, ___setlogin, |
| ... | ... | @@ -2182,23 +2191,23 @@ exports: |
| 2182 | 2191 | __kernelrpc_mach_vm_protect_trap, __kernelrpc_mach_vm_purgable_control, |
| 2183 | 2192 | __kernelrpc_mach_vm_purgable_control_trap, __kernelrpc_mach_vm_read, |
| 2184 | 2193 | __kernelrpc_mach_vm_remap, __kernelrpc_mach_vm_remap_new, |
| 2185 | __kernelrpc_mach_voucher_extract_attr_recipe, __kernelrpc_task_set_port_space, | |
| 2186 | __kernelrpc_thread_policy, __kernelrpc_thread_policy_set, | |
| 2187 | __kernelrpc_thread_set_policy, __kernelrpc_vm_map, __kernelrpc_vm_purgable_control, | |
| 2188 | __kernelrpc_vm_read, __kernelrpc_vm_remap, __kernelrpc_vm_remap_new, | |
| 2189 | __mach_errors, __mach_fork_child, __mach_snprintf, __mach_vsnprintf, | |
| 2190 | __os_alloc_once_table, __os_xbs_chrooted, __register_gethostuuid_callback, | |
| 2191 | __thread_set_tsd_base, _abort_with_payload, _abort_with_reason, | |
| 2192 | _accept, '_accept$NOCANCEL', _access, _accessx_np, _acct, | |
| 2193 | _act_get_state, _act_set_state, _adjtime, _aio_cancel, _aio_error, | |
| 2194 | _aio_fsync, _aio_read, _aio_return, _aio_suspend, '_aio_suspend$NOCANCEL', | |
| 2195 | _aio_write, _audit, _audit_session_join, _audit_session_port, | |
| 2196 | _audit_session_self, _auditctl, _auditon, _bind, _bootstrap_port, | |
| 2197 | _cerror, _cerror_nocancel, _change_fdguard_np, _chdir, _chflags, | |
| 2198 | _chmod, _chown, _chroot, _clock_alarm, _clock_alarm_reply, | |
| 2199 | _clock_get_attributes, _clock_get_time, _clock_set_attributes, | |
| 2200 | _clock_set_time, _clock_sleep, _clock_sleep_trap, _clonefile, | |
| 2201 | _clonefileat, _close, '_close$NOCANCEL', _coalition_create, | |
| 2194 | __kernelrpc_mach_vm_update_pointers_with_remote_tags, __kernelrpc_mach_voucher_extract_attr_recipe, | |
| 2195 | __kernelrpc_task_set_port_space, __kernelrpc_thread_policy, | |
| 2196 | __kernelrpc_thread_policy_set, __kernelrpc_thread_set_policy, | |
| 2197 | __kernelrpc_vm_map, __kernelrpc_vm_purgable_control, __kernelrpc_vm_read, | |
| 2198 | __kernelrpc_vm_remap, __kernelrpc_vm_remap_new, __mach_errors, | |
| 2199 | __mach_fork_child, __mach_snprintf, __mach_vsnprintf, __os_alloc_once_table, | |
| 2200 | __os_xbs_chrooted, __register_gethostuuid_callback, __thread_set_tsd_base, | |
| 2201 | _abort_with_payload, _abort_with_reason, _accept, '_accept$NOCANCEL', | |
| 2202 | _access, _accessx_np, _acct, _act_get_state, _act_set_state, | |
| 2203 | _adjtime, _aio_cancel, _aio_error, _aio_fsync, _aio_read, | |
| 2204 | _aio_return, _aio_suspend, '_aio_suspend$NOCANCEL', _aio_write, | |
| 2205 | _audit, _audit_session_join, _audit_session_port, _audit_session_self, | |
| 2206 | _auditctl, _auditon, _bind, _bootstrap_port, _cerror, _cerror_nocancel, | |
| 2207 | _change_fdguard_np, _chdir, _chflags, _chmod, _chown, _chroot, | |
| 2208 | _clock_alarm, _clock_alarm_reply, _clock_get_attributes, _clock_get_time, | |
| 2209 | _clock_set_attributes, _clock_set_time, _clock_sleep, _clock_sleep_trap, | |
| 2210 | _clonefile, _clonefileat, _close, '_close$NOCANCEL', _coalition_create, | |
| 2202 | 2211 | _coalition_info_debug_info, _coalition_info_resource_usage, |
| 2203 | 2212 | _coalition_info_set_efficiency, _coalition_info_set_name, |
| 2204 | 2213 | _coalition_ledger_set_logical_writes_limit, _coalition_policy_get, |
| ... | ... | @@ -2211,20 +2220,21 @@ exports: |
| 2211 | 2220 | _exception_raise_state_identity, _exchangedata, _exclaves_audio_buffer_copyout, |
| 2212 | 2221 | _exclaves_audio_buffer_copyout_with_status, _exclaves_audio_buffer_create, |
| 2213 | 2222 | _exclaves_boot, _exclaves_endpoint_call, _exclaves_inbound_buffer_copyin, |
| 2214 | _exclaves_inbound_buffer_create, _exclaves_launch_conclave, | |
| 2215 | _exclaves_lookup_service, _exclaves_named_buffer_copyin, _exclaves_named_buffer_copyout, | |
| 2216 | _exclaves_named_buffer_create, _exclaves_notification_create, | |
| 2217 | _exclaves_outbound_buffer_copyout, _exclaves_outbound_buffer_create, | |
| 2218 | _exclaves_sensor_create, _exclaves_sensor_start, _exclaves_sensor_status, | |
| 2219 | _exclaves_sensor_stop, _execve, _faccessat, _fchdir, _fchflags, | |
| 2220 | _fchmod, _fchmodat, _fchown, _fchownat, _fclonefileat, _fcntl, | |
| 2221 | '_fcntl$NOCANCEL', _fdatasync, _ffsctl, _fgetattrlist, _fgetxattr, | |
| 2222 | _fhopen, _fileport_makefd, _fileport_makeport, _flistxattr, | |
| 2223 | _flock, _fmount, _fpathconf, _freadlink, _fremovexattr, _fs_snapshot_create, | |
| 2224 | _fs_snapshot_delete, _fs_snapshot_list, _fs_snapshot_mount, | |
| 2225 | _fs_snapshot_rename, _fs_snapshot_revert, _fs_snapshot_root, | |
| 2226 | _fsctl, _fsetattrlist, _fsetxattr, _fsgetpath, _fsgetpath_ext, | |
| 2227 | _fstat, _fstat64, _fstatat, _fstatat64, _fstatfs, _fstatfs64, | |
| 2223 | _exclaves_inbound_buffer_create, _exclaves_indicator_min_on_time, | |
| 2224 | _exclaves_launch_conclave, _exclaves_lookup_service, _exclaves_named_buffer_copyin, | |
| 2225 | _exclaves_named_buffer_copyout, _exclaves_named_buffer_create, | |
| 2226 | _exclaves_notification_create, _exclaves_outbound_buffer_copyout, | |
| 2227 | _exclaves_outbound_buffer_create, _exclaves_sensor_create, | |
| 2228 | _exclaves_sensor_start, _exclaves_sensor_status, _exclaves_sensor_stop, | |
| 2229 | _execve, _faccessat, _fchdir, _fchflags, _fchmod, _fchmodat, | |
| 2230 | _fchown, _fchownat, _fclonefileat, _fcntl, '_fcntl$NOCANCEL', | |
| 2231 | _fdatasync, _ffsctl, _fgetattrlist, _fgetxattr, _fhopen, _fileport_makefd, | |
| 2232 | _fileport_makeport, _flistxattr, _flock, _fmount, _fpathconf, | |
| 2233 | _freadlink, _fremovexattr, _fs_snapshot_create, _fs_snapshot_delete, | |
| 2234 | _fs_snapshot_list, _fs_snapshot_mount, _fs_snapshot_rename, | |
| 2235 | _fs_snapshot_revert, _fs_snapshot_root, _fsctl, _fsetattrlist, | |
| 2236 | _fsetxattr, _fsgetpath, _fsgetpath_ext, _fstat, _fstat64, | |
| 2237 | _fstatat, _fstatat64, _fstatfs, _fstatfs64, _fstatfs_ext, | |
| 2228 | 2238 | _fsync, '_fsync$NOCANCEL', _ftruncate, _futimens, _futimes, |
| 2229 | 2239 | _getattrlist, _getattrlistat, _getattrlistbulk, _getaudit, |
| 2230 | 2240 | _getaudit_addr, _getauid, _getdirentries, _getdirentriesattr, |
| ... | ... | @@ -2302,18 +2312,20 @@ exports: |
| 2302 | 2312 | _mach_thread_self, _mach_thread_special_port_description, |
| 2303 | 2313 | _mach_thread_special_port_for_id, _mach_timebase_info, _mach_timebase_info_trap, |
| 2304 | 2314 | _mach_vm_allocate, _mach_vm_behavior_set, _mach_vm_copy, _mach_vm_deallocate, |
| 2305 | _mach_vm_deferred_reclamation_buffer_init, _mach_vm_deferred_reclamation_buffer_synchronize, | |
| 2306 | _mach_vm_deferred_reclamation_buffer_update_reclaimable_bytes, | |
| 2315 | _mach_vm_deferred_reclamation_buffer_allocate, _mach_vm_deferred_reclamation_buffer_flush, | |
| 2316 | _mach_vm_deferred_reclamation_buffer_resize, _mach_vm_deferred_reclamation_buffer_update_reclaimable_bytes, | |
| 2307 | 2317 | _mach_vm_inherit, _mach_vm_machine_attribute, _mach_vm_map, |
| 2308 | 2318 | _mach_vm_msync, _mach_vm_page_info, _mach_vm_page_query, _mach_vm_page_range_query, |
| 2309 | 2319 | _mach_vm_protect, _mach_vm_purgable_control, _mach_vm_range_create, |
| 2310 | 2320 | _mach_vm_read, _mach_vm_read_list, _mach_vm_read_overwrite, |
| 2311 | _mach_vm_reclaim_is_available, _mach_vm_reclaim_is_reclaimed, | |
| 2312 | _mach_vm_reclaim_mark_free, _mach_vm_reclaim_mark_free_with_id, | |
| 2313 | _mach_vm_reclaim_mark_used, _mach_vm_reclaim_ringbuffer_init, | |
| 2314 | _mach_vm_reclaim_synchronize, _mach_vm_reclaim_update_kernel_accounting, | |
| 2321 | _mach_vm_reclaim_is_reusable, _mach_vm_reclaim_query_state, | |
| 2322 | _mach_vm_reclaim_ring_allocate, _mach_vm_reclaim_ring_capacity, | |
| 2323 | _mach_vm_reclaim_ring_flush, _mach_vm_reclaim_ring_resize, | |
| 2324 | _mach_vm_reclaim_round_capacity, _mach_vm_reclaim_try_cancel, | |
| 2325 | _mach_vm_reclaim_try_enter, _mach_vm_reclaim_update_kernel_accounting, | |
| 2315 | 2326 | _mach_vm_region, _mach_vm_region_recurse, _mach_vm_remap, |
| 2316 | _mach_vm_remap_new, _mach_vm_wire, _mach_vm_write, _mach_voucher_attr_command, | |
| 2327 | _mach_vm_remap_new, _mach_vm_update_pointers_with_remote_tags, | |
| 2328 | _mach_vm_wire, _mach_vm_write, _mach_voucher_attr_command, | |
| 2317 | 2329 | _mach_voucher_deallocate, _mach_voucher_debug_info, _mach_voucher_extract_all_attr_recipes, |
| 2318 | 2330 | _mach_voucher_extract_attr_content, _mach_voucher_extract_attr_recipe, |
| 2319 | 2331 | _mach_voucher_extract_attr_recipe_trap, _mach_wait_until, |
| ... | ... | @@ -2360,6 +2372,7 @@ exports: |
| 2360 | 2372 | _os_channel_sync, _os_channel_tx_ring, _os_channel_write_attr, |
| 2361 | 2373 | _os_copy_and_inet_checksum, _os_cpu_copy_in_cksum, _os_cpu_in_cksum, |
| 2362 | 2374 | _os_cpu_in_cksum_mbuf, _os_fault_with_payload, _os_inet_checksum, |
| 2375 | _os_log_coprocessor_as_kernel, _os_log_coprocessor_register_as_kernel, | |
| 2363 | 2376 | _os_nexus_attr_clone, _os_nexus_attr_create, _os_nexus_attr_destroy, |
| 2364 | 2377 | _os_nexus_attr_get, _os_nexus_attr_set, _os_nexus_controller_add_traffic_rule, |
| 2365 | 2378 | _os_nexus_controller_alloc_provider_instance, _os_nexus_controller_bind_provider_instance, |
| ... | ... | @@ -2498,8 +2511,8 @@ exports: |
| 2498 | 2511 | _stackshot_config_set_delta_timestamp, _stackshot_config_set_flags, |
| 2499 | 2512 | _stackshot_config_set_pagetable_mask, _stackshot_config_set_pid, |
| 2500 | 2513 | _stackshot_config_set_size_hint, _stat, _stat64, _statfs, |
| 2501 | _statfs64, _swapon, _swtch, _swtch_pri, _symlink, _symlinkat, | |
| 2502 | _sync, _syscall, _syscall_thread_switch, _system_get_sfi_window, | |
| 2514 | _statfs64, _statfs_ext, _swapon, _swtch, _swtch_pri, _symlink, | |
| 2515 | _symlinkat, _sync, _syscall, _syscall_thread_switch, _system_get_sfi_window, | |
| 2503 | 2516 | _system_override, _system_set_sfi_window, _system_version_compat_mode, |
| 2504 | 2517 | _task_assign, _task_assign_default, _task_create, _task_create_identity_token, |
| 2505 | 2518 | _task_dyld_process_info_notify_deregister, _task_dyld_process_info_notify_get, |
| ... | ... | @@ -2569,7 +2582,7 @@ tbd-version: 4 |
| 2569 | 2582 | targets: [ x86_64-macos, x86_64-maccatalyst, x86_64h-macos, x86_64h-maccatalyst, |
| 2570 | 2583 | arm64-macos, arm64-maccatalyst, arm64e-macos, arm64e-maccatalyst ] |
| 2571 | 2584 | install-name: '/usr/lib/system/libsystem_m.dylib' |
| 2572 | current-version: 3289 | |
| 2585 | current-version: 3291.100.4 | |
| 2573 | 2586 | parent-umbrella: |
| 2574 | 2587 | - targets: [ x86_64-macos, x86_64-maccatalyst, x86_64h-macos, x86_64h-maccatalyst, |
| 2575 | 2588 | arm64-macos, arm64-maccatalyst, arm64e-macos, arm64e-maccatalyst ] |
| ... | ... | @@ -2791,7 +2804,7 @@ tbd-version: 4 |
| 2791 | 2804 | targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, |
| 2792 | 2805 | arm64e-macos, arm64e-maccatalyst ] |
| 2793 | 2806 | install-name: '/usr/lib/system/libsystem_malloc.dylib' |
| 2794 | current-version: 657.60.21 | |
| 2807 | current-version: 715.120.13 | |
| 2795 | 2808 | parent-umbrella: |
| 2796 | 2809 | - targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, |
| 2797 | 2810 | arm64e-macos, arm64e-maccatalyst ] |
| ... | ... | @@ -2803,11 +2816,11 @@ exports: |
| 2803 | 2816 | ___malloc_late_init, __malloc_fork_child, __malloc_fork_parent, |
| 2804 | 2817 | __malloc_fork_prepare, __malloc_no_asl_log, __os_cpu_number_override, |
| 2805 | 2818 | _aligned_alloc, _calloc, _free, _mag_set_thread_index, _malloc, |
| 2806 | _malloc_check_counter, _malloc_check_each, _malloc_check_start, | |
| 2807 | _malloc_claimed_address, _malloc_create_legacy_default_zone, | |
| 2808 | _malloc_create_zone, _malloc_debug, _malloc_default_purgeable_zone, | |
| 2809 | _malloc_default_zone, _malloc_destroy_zone, _malloc_engaged_nano, | |
| 2810 | _malloc_engaged_secure_allocator, _malloc_enter_process_memory_limit_warn_mode, | |
| 2819 | _malloc_allows_internal_security_4test, _malloc_check_counter, | |
| 2820 | _malloc_check_each, _malloc_check_start, _malloc_claimed_address, | |
| 2821 | _malloc_create_legacy_default_zone, _malloc_create_zone, _malloc_debug, | |
| 2822 | _malloc_default_purgeable_zone, _malloc_default_zone, _malloc_destroy_zone, | |
| 2823 | _malloc_engaged_nano, _malloc_engaged_secure_allocator, _malloc_enter_process_memory_limit_warn_mode, | |
| 2811 | 2824 | _malloc_error, _malloc_freezedry, _malloc_get_all_zones, _malloc_get_thread_options, |
| 2812 | 2825 | _malloc_get_wrapped_zone, _malloc_get_zone_name, _malloc_good_size, |
| 2813 | 2826 | _malloc_jumpstart, _malloc_logger, _malloc_make_nonpurgeable, |
| ... | ... | @@ -2865,7 +2878,7 @@ exports: |
| 2865 | 2878 | _NEHelperCopyXPCEndpointForIdentityProxyExtended, _NEHelperGetAppTrackerDomains, |
| 2866 | 2879 | _NEHelperGetIKESocket, _NEHelperGetIKESocketWithResult, _NEHelperGetKernelControlSocket, |
| 2867 | 2880 | _NEHelperGetKernelControlSocketExtended, _NEHelperGetNECPSessionFD, |
| 2868 | _NEHelperGetPFKeySocket, _NEHelperHandleConfigurationsChangedBySC, | |
| 2881 | _NEHelperGetPFKeySocket, _NEHelperGetPid, _NEHelperHandleConfigurationsChangedBySC, | |
| 2869 | 2882 | _NEHelperInit, _NEHelperInterfaceCreate, _NEHelperInterfaceDestroy, |
| 2870 | 2883 | _NEHelperInterfaceRemoveAddress, _NEHelperInterfaceSetAddress, |
| 2871 | 2884 | _NEHelperInterfaceSetAddressWithLifetime, _NEHelperInterfaceSetDelegate, |
| ... | ... | @@ -2936,7 +2949,7 @@ tbd-version: 4 |
| 2936 | 2949 | targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, |
| 2937 | 2950 | arm64e-macos, arm64e-maccatalyst ] |
| 2938 | 2951 | install-name: '/usr/lib/system/libsystem_notify.dylib' |
| 2939 | current-version: 327.60.1 | |
| 2952 | current-version: 342 | |
| 2940 | 2953 | parent-umbrella: |
| 2941 | 2954 | - targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, |
| 2942 | 2955 | arm64e-macos, arm64e-maccatalyst ] |
| ... | ... | @@ -2956,7 +2969,7 @@ tbd-version: 4 |
| 2956 | 2969 | targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, |
| 2957 | 2970 | arm64e-macos, arm64e-maccatalyst ] |
| 2958 | 2971 | install-name: '/usr/lib/system/libsystem_platform.dylib' |
| 2959 | current-version: 340.60.2 | |
| 2972 | current-version: 349 | |
| 2960 | 2973 | parent-umbrella: |
| 2961 | 2974 | - targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, |
| 2962 | 2975 | arm64e-macos, arm64e-maccatalyst ] |
| ... | ... | @@ -3011,6 +3024,7 @@ exports: |
| 3011 | 3024 | __simple_vdprintf, __simple_vesprintf, __simple_vsprintf, |
| 3012 | 3025 | __spin_lock, __spin_lock_try, __spin_unlock, _ffs, _ffsl, |
| 3013 | 3026 | _ffsll, _fls, _flsl, _flsll, _getcontext, _longjmp, _makecontext, |
| 3027 | _os_apt_msg_async_task_running_4swift, _os_apt_msg_async_task_waiting_on_4swift, | |
| 3014 | 3028 | _os_lock_lock, _os_lock_trylock, _os_lock_unlock, _os_log_simple_now, |
| 3015 | 3029 | _os_log_simple_type_from_asl, _os_sync_wait_on_address, _os_sync_wait_on_address_with_deadline, |
| 3016 | 3030 | _os_sync_wait_on_address_with_timeout, _os_sync_wake_by_address_all, |
| ... | ... | @@ -3033,7 +3047,7 @@ tbd-version: 4 |
| 3033 | 3047 | targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, |
| 3034 | 3048 | arm64e-macos, arm64e-maccatalyst ] |
| 3035 | 3049 | install-name: '/usr/lib/system/libsystem_pthread.dylib' |
| 3036 | current-version: 535 | |
| 3050 | current-version: 536 | |
| 3037 | 3051 | parent-umbrella: |
| 3038 | 3052 | - targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, |
| 3039 | 3053 | arm64e-macos, arm64e-maccatalyst ] |
| ... | ... | @@ -3129,7 +3143,7 @@ tbd-version: 4 |
| 3129 | 3143 | targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, |
| 3130 | 3144 | arm64e-macos, arm64e-maccatalyst ] |
| 3131 | 3145 | install-name: '/usr/lib/system/libsystem_sandbox.dylib' |
| 3132 | current-version: 2401.61.2 | |
| 3146 | current-version: 2401.121.3 | |
| 3133 | 3147 | parent-umbrella: |
| 3134 | 3148 | - targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, |
| 3135 | 3149 | arm64e-macos, arm64e-maccatalyst ] |
| ... | ... | @@ -3142,10 +3156,9 @@ exports: |
| 3142 | 3156 | _SANDBOX_CHECK_ALLOW_APPROVAL, _SANDBOX_CHECK_CANONICAL, _SANDBOX_CHECK_NOFOLLOW, |
| 3143 | 3157 | _SANDBOX_CHECK_NO_APPROVAL, _SANDBOX_CHECK_NO_REPORT, _SANDBOX_CHECK_POSIX_READABLE, |
| 3144 | 3158 | _SANDBOX_CHECK_POSIX_WRITEABLE, _SANDBOX_EXTENSION_CANONICAL, |
| 3145 | _SANDBOX_EXTENSION_DEFAULT, _SANDBOX_EXTENSION_MAGIC, _SANDBOX_EXTENSION_NOFOLLOW, | |
| 3146 | _SANDBOX_EXTENSION_NOFOLLOW_ANY, _SANDBOX_EXTENSION_NO_REPORT, | |
| 3147 | _SANDBOX_EXTENSION_NO_STORAGE_CLASS, _SANDBOX_EXTENSION_PREFIXMATCH, | |
| 3148 | _SANDBOX_EXTENSION_UNRESOLVED, __amkrtemp, __sandbox_enter_notify_libxpc, | |
| 3159 | _SANDBOX_EXTENSION_DEFAULT, _SANDBOX_EXTENSION_NOFOLLOW, _SANDBOX_EXTENSION_NOFOLLOW_ANY, | |
| 3160 | _SANDBOX_EXTENSION_NO_REPORT, _SANDBOX_EXTENSION_NO_STORAGE_CLASS, | |
| 3161 | _SANDBOX_EXTENSION_PREFIXMATCH, __amkrtemp, __sandbox_enter_notify_libxpc, | |
| 3149 | 3162 | __sandbox_in_a_container, __sandbox_register_app_bundle_0, |
| 3150 | 3163 | __sandbox_register_app_bundle_1, _kSBXProfileNoInternet, _kSBXProfileNoNetwork, |
| 3151 | 3164 | _kSBXProfileNoWrite, _kSBXProfileNoWriteExceptTemporary, _kSBXProfilePureComputation, |
| ... | ... | @@ -3176,15 +3189,13 @@ exports: |
| 3176 | 3189 | _sandbox_extension_issue_generic_to_process, _sandbox_extension_issue_generic_to_process_by_pid, |
| 3177 | 3190 | _sandbox_extension_issue_iokit_registry_entry_class, _sandbox_extension_issue_iokit_registry_entry_class_to_process, |
| 3178 | 3191 | _sandbox_extension_issue_iokit_registry_entry_class_to_process_by_pid, |
| 3179 | _sandbox_extension_issue_iokit_user_client_class, _sandbox_extension_issue_mach, | |
| 3180 | _sandbox_extension_issue_mach_to_process, _sandbox_extension_issue_mach_to_process_by_pid, | |
| 3181 | _sandbox_extension_issue_posix_ipc, _sandbox_extension_issue_related_file_to_process, | |
| 3192 | _sandbox_extension_issue_mach, _sandbox_extension_issue_mach_to_process, | |
| 3193 | _sandbox_extension_issue_mach_to_process_by_pid, _sandbox_extension_issue_related_file_to_process, | |
| 3182 | 3194 | _sandbox_extension_reap, _sandbox_extension_release, _sandbox_extension_release_and_detect_last_reference, |
| 3183 | 3195 | _sandbox_extension_release_file, _sandbox_extension_update_file, |
| 3184 | 3196 | _sandbox_extension_update_file_by_fileid, _sandbox_free_error, |
| 3185 | 3197 | _sandbox_get_container_expected, _sandbox_init, _sandbox_init_from_pid, |
| 3186 | _sandbox_init_with_extensions, _sandbox_init_with_parameters, | |
| 3187 | _sandbox_issue_extension, _sandbox_issue_fs_extension, _sandbox_issue_fs_rw_extension, | |
| 3198 | _sandbox_init_with_parameters, _sandbox_issue_fs_extension, | |
| 3188 | 3199 | _sandbox_issue_mach_extension, _sandbox_message_filter_query, |
| 3189 | 3200 | _sandbox_message_filter_release, _sandbox_message_filter_retain, |
| 3190 | 3201 | _sandbox_note, _sandbox_passthrough_access, _sandbox_proc_getcontainer, |
| ... | ... | @@ -3239,13 +3250,14 @@ exports: |
| 3239 | 3250 | ___asan_get_report_pc, ___asan_get_report_sp, ___asan_get_shadow_mapping, |
| 3240 | 3251 | ___asan_locate_address, ___asan_report_present, __sanitizers_init, |
| 3241 | 3252 | _sanitizers_address_on_report, _sanitizers_diagnose_memory_error, |
| 3242 | _sanitizers_report_globals ] | |
| 3253 | _sanitizers_report_globals, _sanitizers_testonly_diagnose_error, | |
| 3254 | _sanitizers_testonly_get_shadow_address ] | |
| 3243 | 3255 | --- !tapi-tbd |
| 3244 | 3256 | tbd-version: 4 |
| 3245 | 3257 | targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, |
| 3246 | 3258 | arm64e-macos, arm64e-maccatalyst ] |
| 3247 | 3259 | install-name: '/usr/lib/system/libsystem_secinit.dylib' |
| 3248 | current-version: 153.60.1 | |
| 3260 | current-version: 153.100.10 | |
| 3249 | 3261 | parent-umbrella: |
| 3250 | 3262 | - targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, |
| 3251 | 3263 | arm64e-macos, arm64e-maccatalyst ] |
| ... | ... | @@ -3278,7 +3290,7 @@ tbd-version: 4 |
| 3278 | 3290 | targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, |
| 3279 | 3291 | arm64e-macos, arm64e-maccatalyst ] |
| 3280 | 3292 | install-name: '/usr/lib/system/libsystem_trace.dylib' |
| 3281 | current-version: 1612.60.27 | |
| 3293 | current-version: 1643.120.5 | |
| 3282 | 3294 | parent-umbrella: |
| 3283 | 3295 | - targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, |
| 3284 | 3296 | arm64e-macos, arm64e-maccatalyst ] |
| ... | ... | @@ -3315,10 +3327,10 @@ exports: |
| 3315 | 3327 | __os_trace_set_mode_for_pid, __os_trace_strdup, __os_trace_sysprefsdir_path, |
| 3316 | 3328 | __os_trace_update_with_datavolume_4launchd, __os_trace_with_buffer, |
| 3317 | 3329 | __os_trace_write, __os_trace_writev, __os_trace_zalloc, _amfi_check_dyld_policy_for_pid, |
| 3318 | _amfi_check_dyld_policy_self, _amfi_load_trust_cache, _os_activity_apply, | |
| 3319 | _os_activity_apply_f, _os_activity_diagnostic_for_pid, _os_activity_end, | |
| 3320 | _os_activity_for_task_thread, _os_activity_for_thread, _os_activity_get_active, | |
| 3321 | _os_activity_get_identifier, _os_activity_iterate_activities, | |
| 3330 | _amfi_check_dyld_policy_self, _amfi_load_trust_cache, _amfi_unload_trust_cache, | |
| 3331 | _os_activity_apply, _os_activity_apply_f, _os_activity_diagnostic_for_pid, | |
| 3332 | _os_activity_end, _os_activity_for_task_thread, _os_activity_for_thread, | |
| 3333 | _os_activity_get_active, _os_activity_get_identifier, _os_activity_iterate_activities, | |
| 3322 | 3334 | _os_activity_iterate_breadcrumbs, _os_activity_iterate_messages, |
| 3323 | 3335 | _os_activity_iterate_processes, _os_activity_messages_for_thread, |
| 3324 | 3336 | _os_activity_scope_enter, _os_activity_scope_leave, _os_log_backtrace_copy_description, |
| ... | ... | @@ -3348,7 +3360,7 @@ tbd-version: 4 |
| 3348 | 3360 | targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, |
| 3349 | 3361 | arm64e-macos, arm64e-maccatalyst ] |
| 3350 | 3362 | install-name: '/usr/lib/system/libunwind.dylib' |
| 3351 | current-version: 1800.85 | |
| 3363 | current-version: 1900.125 | |
| 3352 | 3364 | parent-umbrella: |
| 3353 | 3365 | - targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, |
| 3354 | 3366 | arm64e-macos, arm64e-maccatalyst ] |
| ... | ... | @@ -3369,8 +3381,8 @@ exports: |
| 3369 | 3381 | ___unw_remove_find_dynamic_unwind_sections, _unw_get_fpreg, |
| 3370 | 3382 | _unw_get_proc_info, _unw_get_proc_name, _unw_get_reg, _unw_getcontext, |
| 3371 | 3383 | _unw_init_local, _unw_is_fpreg, _unw_is_signal_frame, _unw_iterate_dwarf_unwind_cache, |
| 3372 | _unw_local_addr_space, _unw_regname, _unw_resume, _unw_set_fpreg, | |
| 3373 | _unw_set_reg, _unw_step ] | |
| 3384 | _unw_local_addr_space, _unw_regname, _unw_resume, _unw_resume_with_frames_walked, | |
| 3385 | _unw_set_fpreg, _unw_set_reg, _unw_step ] | |
| 3374 | 3386 | - targets: [ arm64-macos, arm64-maccatalyst, arm64e-macos, arm64e-maccatalyst ] |
| 3375 | 3387 | symbols: [ ___unw_is_pointer_auth_enabled ] |
| 3376 | 3388 | --- !tapi-tbd |
| ... | ... | @@ -3378,7 +3390,7 @@ tbd-version: 4 |
| 3378 | 3390 | targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, |
| 3379 | 3391 | arm64e-macos, arm64e-maccatalyst ] |
| 3380 | 3392 | install-name: '/usr/lib/system/libxpc.dylib' |
| 3381 | current-version: 2866.60.21 | |
| 3393 | current-version: 2894.121.3 | |
| 3382 | 3394 | parent-umbrella: |
| 3383 | 3395 | - targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, |
| 3384 | 3396 | arm64e-macos, arm64e-maccatalyst ] |
| ... | ... | @@ -3426,13 +3438,14 @@ exports: |
| 3426 | 3438 | __availability_version_check, __launch_job_query_routine, |
| 3427 | 3439 | __launch_job_routine, __launch_job_routine_async, __launch_msg2, |
| 3428 | 3440 | __launch_server_test_routine, __launch_service_stats_copy_4ppse_impl, |
| 3429 | __launch_service_stats_copy_impl, __libxpc_initializer, __spawn_via_launchd, | |
| 3430 | __system_ios_support_version_copy_string_sysctl, __system_version_copy_string_plist, | |
| 3431 | __system_version_copy_string_sysctl, __system_version_fallback, | |
| 3432 | __system_version_parse_string, __system_version_plist_path, | |
| 3433 | __vproc_get_last_exit_status, __vproc_grab_subset, __vproc_kickstart_by_label, | |
| 3434 | __vproc_log, __vproc_log_error, __vproc_logv, __vproc_pid_is_managed, | |
| 3435 | __vproc_post_fork_ping, __vproc_send_signal_by_label, __vproc_set_global_on_demand, | |
| 3441 | __launch_service_stats_copy_impl, __launch_trial_factors_routine, | |
| 3442 | __libxpc_initializer, __spawn_via_launchd, __system_ios_support_version_copy_string_sysctl, | |
| 3443 | __system_version_copy_string_plist, __system_version_copy_string_sysctl, | |
| 3444 | __system_version_fallback, __system_version_parse_string, | |
| 3445 | __system_version_plist_path, __vproc_get_last_exit_status, | |
| 3446 | __vproc_grab_subset, __vproc_kickstart_by_label, __vproc_log, | |
| 3447 | __vproc_log_error, __vproc_logv, __vproc_pid_is_managed, __vproc_post_fork_ping, | |
| 3448 | __vproc_send_signal_by_label, __vproc_set_global_on_demand, | |
| 3436 | 3449 | __vproc_standby_begin, __vproc_standby_count, __vproc_standby_end, |
| 3437 | 3450 | __vproc_standby_timeout, __vproc_transaction_begin, __vproc_transaction_count, |
| 3438 | 3451 | __vproc_transaction_count_for_pid, __vproc_transaction_end, |
| ... | ... | @@ -3521,7 +3534,8 @@ exports: |
| 3521 | 3534 | _launch_service_stats_enable, _launch_service_stats_enable_4ppse, |
| 3522 | 3535 | _launch_service_stats_is_enabled, _launch_service_stats_is_enabled_4ppse, |
| 3523 | 3536 | _launch_set_service_enabled, _launch_set_system_service_enabled, |
| 3524 | _launch_socket_service_check_in, _launch_userspace_reboot_with_purpose, | |
| 3537 | _launch_socket_service_check_in, _launch_trial_factors_active_reload, | |
| 3538 | _launch_urgent_log_submission_completed, _launch_userspace_reboot_with_purpose, | |
| 3525 | 3539 | _launch_version_for_user_service_4coresim, _launch_wait, _launchd_close, |
| 3526 | 3540 | _launchd_fdopen, _launchd_getfd, _launchd_msg_recv, _launchd_msg_send, |
| 3527 | 3541 | _load_launchd_jobs_at_loginwindow_prompt, _mpm_uncork_fork, |
| ... | ... | @@ -3541,41 +3555,41 @@ exports: |
| 3541 | 3555 | _xpc_activity_set_completion_status, _xpc_activity_set_criteria, |
| 3542 | 3556 | _xpc_activity_set_network_threshold, _xpc_activity_set_state, |
| 3543 | 3557 | _xpc_activity_should_be_data_budgeted, _xpc_activity_should_defer, |
| 3544 | _xpc_activity_unregister, _xpc_add_bundle, _xpc_add_bundles_for_domain, | |
| 3545 | _xpc_array_append_value, _xpc_array_apply, _xpc_array_apply_f, | |
| 3546 | _xpc_array_copy_mach_send, _xpc_array_create, _xpc_array_create_connection, | |
| 3547 | _xpc_array_create_empty, _xpc_array_dup_fd, _xpc_array_get_array, | |
| 3548 | _xpc_array_get_bool, _xpc_array_get_count, _xpc_array_get_data, | |
| 3549 | _xpc_array_get_date, _xpc_array_get_dictionary, _xpc_array_get_double, | |
| 3550 | _xpc_array_get_int64, _xpc_array_get_pointer, _xpc_array_get_string, | |
| 3551 | _xpc_array_get_uint64, _xpc_array_get_uuid, _xpc_array_get_value, | |
| 3552 | _xpc_array_set_bool, _xpc_array_set_connection, _xpc_array_set_data, | |
| 3553 | _xpc_array_set_date, _xpc_array_set_double, _xpc_array_set_fd, | |
| 3554 | _xpc_array_set_int64, _xpc_array_set_mach_send, _xpc_array_set_pointer, | |
| 3555 | _xpc_array_set_string, _xpc_array_set_uint64, _xpc_array_set_uuid, | |
| 3556 | _xpc_array_set_value, _xpc_atfork_child, _xpc_atfork_parent, | |
| 3557 | _xpc_atfork_prepare, _xpc_binprefs_add, _xpc_binprefs_alloc, | |
| 3558 | _xpc_binprefs_copy, _xpc_binprefs_copy_description, _xpc_binprefs_count, | |
| 3559 | _xpc_binprefs_cpu_subtype, _xpc_binprefs_cpu_type, _xpc_binprefs_equal, | |
| 3560 | _xpc_binprefs_init, _xpc_binprefs_is_noop, _xpc_binprefs_set_psattr, | |
| 3561 | _xpc_bool_create, _xpc_bool_get_value, _xpc_bs_main, _xpc_bundle_copy_info_dictionary, | |
| 3562 | _xpc_bundle_copy_normalized_cryptex_path, _xpc_bundle_copy_resource_path, | |
| 3563 | _xpc_bundle_copy_services, _xpc_bundle_create, _xpc_bundle_create_from_origin, | |
| 3564 | _xpc_bundle_create_main, _xpc_bundle_get_error, _xpc_bundle_get_executable_path, | |
| 3565 | _xpc_bundle_get_info_dictionary, _xpc_bundle_get_path, _xpc_bundle_get_property, | |
| 3566 | _xpc_bundle_get_xpcservice_dictionary, _xpc_bundle_populate, | |
| 3567 | _xpc_bundle_resolve, _xpc_bundle_resolve_on_queue, _xpc_bundle_resolve_sync, | |
| 3568 | _xpc_coalition_copy_info, _xpc_coalition_history_pipe_async, | |
| 3569 | _xpc_connection_activate, _xpc_connection_cancel, _xpc_connection_copy_bundle_id, | |
| 3570 | _xpc_connection_copy_entitlement_value, _xpc_connection_copy_invalidation_reason, | |
| 3571 | _xpc_connection_create, _xpc_connection_create_bs_service_listener, | |
| 3572 | _xpc_connection_create_from_endpoint, _xpc_connection_create_listener, | |
| 3573 | _xpc_connection_create_mach_service, _xpc_connection_enable_sim2host_4sim, | |
| 3574 | _xpc_connection_enable_termination_imminent_event, _xpc_connection_get_asid, | |
| 3575 | _xpc_connection_get_audit_token, _xpc_connection_get_bs_type, | |
| 3576 | _xpc_connection_get_context, _xpc_connection_get_egid, _xpc_connection_get_euid, | |
| 3577 | _xpc_connection_get_filter_policy_id_4test, _xpc_connection_get_instance, | |
| 3578 | _xpc_connection_get_name, _xpc_connection_get_peer_instance, | |
| 3558 | _xpc_activity_unregister, _xpc_add_bundle, _xpc_add_bundle_with_lwcr, | |
| 3559 | _xpc_add_bundles_for_domain, _xpc_array_append_value, _xpc_array_apply, | |
| 3560 | _xpc_array_apply_f, _xpc_array_copy_mach_send, _xpc_array_create, | |
| 3561 | _xpc_array_create_connection, _xpc_array_create_empty, _xpc_array_dup_fd, | |
| 3562 | _xpc_array_get_array, _xpc_array_get_bool, _xpc_array_get_count, | |
| 3563 | _xpc_array_get_data, _xpc_array_get_date, _xpc_array_get_dictionary, | |
| 3564 | _xpc_array_get_double, _xpc_array_get_int64, _xpc_array_get_pointer, | |
| 3565 | _xpc_array_get_string, _xpc_array_get_uint64, _xpc_array_get_uuid, | |
| 3566 | _xpc_array_get_value, _xpc_array_set_bool, _xpc_array_set_connection, | |
| 3567 | _xpc_array_set_data, _xpc_array_set_date, _xpc_array_set_double, | |
| 3568 | _xpc_array_set_fd, _xpc_array_set_int64, _xpc_array_set_mach_send, | |
| 3569 | _xpc_array_set_pointer, _xpc_array_set_string, _xpc_array_set_uint64, | |
| 3570 | _xpc_array_set_uuid, _xpc_array_set_value, _xpc_atfork_child, | |
| 3571 | _xpc_atfork_parent, _xpc_atfork_prepare, _xpc_binprefs_add, | |
| 3572 | _xpc_binprefs_alloc, _xpc_binprefs_copy, _xpc_binprefs_copy_description, | |
| 3573 | _xpc_binprefs_count, _xpc_binprefs_cpu_subtype, _xpc_binprefs_cpu_type, | |
| 3574 | _xpc_binprefs_equal, _xpc_binprefs_init, _xpc_binprefs_is_noop, | |
| 3575 | _xpc_binprefs_set_psattr, _xpc_bool_create, _xpc_bool_get_value, | |
| 3576 | _xpc_bs_main, _xpc_bundle_copy_info_dictionary, _xpc_bundle_copy_normalized_cryptex_path, | |
| 3577 | _xpc_bundle_copy_resource_path, _xpc_bundle_copy_services, | |
| 3578 | _xpc_bundle_create, _xpc_bundle_create_from_origin, _xpc_bundle_create_main, | |
| 3579 | _xpc_bundle_get_error, _xpc_bundle_get_executable_path, _xpc_bundle_get_info_dictionary, | |
| 3580 | _xpc_bundle_get_path, _xpc_bundle_get_property, _xpc_bundle_get_xpcservice_dictionary, | |
| 3581 | _xpc_bundle_populate, _xpc_bundle_resolve, _xpc_bundle_resolve_on_queue, | |
| 3582 | _xpc_bundle_resolve_sync, _xpc_coalition_copy_info, _xpc_coalition_history_pipe_async, | |
| 3583 | _xpc_connection_activate, _xpc_connection_bs_seal_listener, | |
| 3584 | _xpc_connection_cancel, _xpc_connection_copy_bundle_id, _xpc_connection_copy_entitlement_value, | |
| 3585 | _xpc_connection_copy_invalidation_reason, _xpc_connection_create, | |
| 3586 | _xpc_connection_create_bs_service_listener, _xpc_connection_create_from_endpoint, | |
| 3587 | _xpc_connection_create_listener, _xpc_connection_create_mach_service, | |
| 3588 | _xpc_connection_enable_sim2host_4sim, _xpc_connection_enable_termination_imminent_event, | |
| 3589 | _xpc_connection_get_asid, _xpc_connection_get_audit_token, | |
| 3590 | _xpc_connection_get_bs_type, _xpc_connection_get_context, | |
| 3591 | _xpc_connection_get_egid, _xpc_connection_get_euid, _xpc_connection_get_filter_policy_id_4test, | |
| 3592 | _xpc_connection_get_instance, _xpc_connection_get_name, _xpc_connection_get_peer_instance, | |
| 3579 | 3593 | _xpc_connection_get_pid, _xpc_connection_is_extension, _xpc_connection_kill, |
| 3580 | 3594 | _xpc_connection_resume, _xpc_connection_send_barrier, _xpc_connection_send_message, |
| 3581 | 3595 | _xpc_connection_send_message_with_reply, _xpc_connection_send_message_with_reply_sync, |
| ... | ... | @@ -3680,26 +3694,26 @@ exports: |
| 3680 | 3694 | _xpc_service_instance_set_endpoint, _xpc_service_instance_set_environment, |
| 3681 | 3695 | _xpc_service_instance_set_finalizer_f, _xpc_service_instance_set_jetsam_properties, |
| 3682 | 3696 | _xpc_service_instance_set_path, _xpc_service_instance_set_start_suspended, |
| 3683 | _xpc_service_kickstart, _xpc_service_kickstart_with_flags, | |
| 3684 | _xpc_service_set_attach_handler, _xpc_session_activate, _xpc_session_cancel, | |
| 3685 | _xpc_session_copy_description, _xpc_session_create_mach_service, | |
| 3686 | _xpc_session_create_xpc_endpoint, _xpc_session_create_xpc_service, | |
| 3687 | _xpc_session_send_message, _xpc_session_send_message_with_reply_async, | |
| 3688 | _xpc_session_send_message_with_reply_sync, _xpc_session_set_cancel_handler, | |
| 3689 | _xpc_session_set_incoming_message_handler, _xpc_session_set_instance, | |
| 3690 | _xpc_session_set_peer_code_signing_requirement, _xpc_session_set_target_queue, | |
| 3691 | _xpc_session_set_target_user_session_uid, _xpc_set_event, | |
| 3692 | _xpc_set_event_state, _xpc_set_event_stream_handler, _xpc_set_event_with_flags, | |
| 3693 | _xpc_set_idle_handler, _xpc_shmem_create, _xpc_shmem_create_readonly, | |
| 3694 | _xpc_shmem_get_length, _xpc_shmem_map, _xpc_strerror, _xpc_string_create, | |
| 3695 | _xpc_string_create_no_copy, _xpc_string_create_with_format, | |
| 3696 | _xpc_string_create_with_format_and_arguments, _xpc_string_get_length, | |
| 3697 | _xpc_string_get_string_ptr, _xpc_test_symbols_exported, _xpc_track_activity, | |
| 3698 | _xpc_transaction_begin, _xpc_transaction_end, _xpc_transaction_exit_clean, | |
| 3699 | _xpc_transaction_interrupt_clean_exit, _xpc_transaction_try_exit_clean, | |
| 3700 | _xpc_transactions_enable, _xpc_traverse_serialized_data, _xpc_type_get_name, | |
| 3701 | _xpc_uint64_create, _xpc_uint64_get_value, _xpc_user_sessions_enabled, | |
| 3702 | _xpc_user_sessions_get_foreground_uid, _xpc_user_sessions_get_session_uid, | |
| 3703 | _xpc_uuid_create, _xpc_uuid_get_bytes ] | |
| 3697 | _xpc_service_instance_set_use_sec_transition_shims, _xpc_service_kickstart, | |
| 3698 | _xpc_service_kickstart_with_flags, _xpc_service_set_attach_handler, | |
| 3699 | _xpc_session_activate, _xpc_session_cancel, _xpc_session_copy_description, | |
| 3700 | _xpc_session_create_mach_service, _xpc_session_create_xpc_endpoint, | |
| 3701 | _xpc_session_create_xpc_service, _xpc_session_send_message, | |
| 3702 | _xpc_session_send_message_with_reply_async, _xpc_session_send_message_with_reply_sync, | |
| 3703 | _xpc_session_set_cancel_handler, _xpc_session_set_incoming_message_handler, | |
| 3704 | _xpc_session_set_instance, _xpc_session_set_peer_code_signing_requirement, | |
| 3705 | _xpc_session_set_target_queue, _xpc_session_set_target_user_session_uid, | |
| 3706 | _xpc_set_event, _xpc_set_event_state, _xpc_set_event_stream_handler, | |
| 3707 | _xpc_set_event_with_flags, _xpc_set_idle_handler, _xpc_shmem_create, | |
| 3708 | _xpc_shmem_create_readonly, _xpc_shmem_get_length, _xpc_shmem_map, | |
| 3709 | _xpc_strerror, _xpc_string_create, _xpc_string_create_no_copy, | |
| 3710 | _xpc_string_create_with_format, _xpc_string_create_with_format_and_arguments, | |
| 3711 | _xpc_string_get_length, _xpc_string_get_string_ptr, _xpc_test_symbols_exported, | |
| 3712 | _xpc_track_activity, _xpc_transaction_begin, _xpc_transaction_end, | |
| 3713 | _xpc_transaction_exit_clean, _xpc_transaction_interrupt_clean_exit, | |
| 3714 | _xpc_transaction_try_exit_clean, _xpc_transactions_enable, | |
| 3715 | _xpc_traverse_serialized_data, _xpc_type_get_name, _xpc_uint64_create, | |
| 3716 | _xpc_uint64_get_value, _xpc_user_sessions_enabled, _xpc_user_sessions_get_foreground_uid, | |
| 3717 | _xpc_user_sessions_get_session_uid, _xpc_uuid_create, _xpc_uuid_get_bytes ] | |
| 3704 | 3718 | objc-classes: [ OS_xpc_object ] |
| 3705 | 3719 | ... |
lib/libc/include/any-macos-any/AssertMacros.h+3| ... | ... | @@ -133,6 +133,9 @@ |
| 133 | 133 | * |
| 134 | 134 | * If you do not define DEBUG_ASSERT_PRODUCTION_CODE, the default value 1 will be used |
| 135 | 135 | * (production code = no assertion code and no messages). |
| 136 | * | |
| 137 | * If you are building with modules modules this must be defined via a commandline | |
| 138 | * flag (i.e. -DDEBUG_ASSERT_PRODUCTION_CODE=1) in order to work correctly. | |
| 136 | 139 | */ |
| 137 | 140 | #ifndef DEBUG_ASSERT_PRODUCTION_CODE |
| 138 | 141 | #define DEBUG_ASSERT_PRODUCTION_CODE !DEBUG |
lib/libc/include/any-macos-any/Availability.h+85-17| ... | ... | @@ -26,8 +26,8 @@ |
| 26 | 26 | /* |
| 27 | 27 | These macros are for use in OS header files. They enable function prototypes |
| 28 | 28 | and Objective-C methods to be tagged with the OS version in which they |
| 29 | were first available; and, if applicable, the OS version in which they | |
| 30 | became deprecated. | |
| 29 | were first available; and, if applicable, the OS versions in which they | |
| 30 | became deprecated and obsoleted. | |
| 31 | 31 | |
| 32 | 32 | The desktop Mac OS X and iOS each have different version numbers. |
| 33 | 33 | The __OSX_AVAILABLE_STARTING() macro allows you to specify both the desktop |
| ... | ... | @@ -135,25 +135,38 @@ |
| 135 | 135 | #ifndef __API_TO_BE_DEPRECATED_MACOS |
| 136 | 136 | #define __API_TO_BE_DEPRECATED_MACOS 100000 |
| 137 | 137 | #endif |
| 138 | #ifndef __API_TO_BE_DEPRECATED_MACOSAPPLICATIONEXTENSION | |
| 139 | #define __API_TO_BE_DEPRECATED_MACOSAPPLICATIONEXTENSION 100000 | |
| 140 | #endif | |
| 138 | 141 | |
| 139 | 142 | #ifndef __API_TO_BE_DEPRECATED_IOS |
| 140 | 143 | #define __API_TO_BE_DEPRECATED_IOS 100000 |
| 141 | 144 | #endif |
| 145 | #ifndef __API_TO_BE_DEPRECATED_IOSAPPLICATIONEXTENSION | |
| 146 | #define __API_TO_BE_DEPRECATED_IOSAPPLICATIONEXTENSION 100000 | |
| 147 | #endif | |
| 142 | 148 | #ifndef __API_TO_BE_DEPRECATED_MACCATALYST |
| 143 | 149 | #define __API_TO_BE_DEPRECATED_MACCATALYST 100000 |
| 144 | 150 | #endif |
| 151 | #ifndef __API_TO_BE_DEPRECATED_MACCATALYSTAPPLICATIONEXTENSION | |
| 152 | #define __API_TO_BE_DEPRECATED_MACCATALYSTAPPLICATIONEXTENSION 100000 | |
| 153 | #endif | |
| 145 | 154 | |
| 146 | 155 | #ifndef __API_TO_BE_DEPRECATED_WATCHOS |
| 147 | 156 | #define __API_TO_BE_DEPRECATED_WATCHOS 100000 |
| 148 | 157 | #endif |
| 158 | #ifndef __API_TO_BE_DEPRECATED_WATCHOSAPPLICATIONEXTENSION | |
| 159 | #define __API_TO_BE_DEPRECATED_WATCHOSAPPLICATIONEXTENSION 100000 | |
| 160 | #endif | |
| 149 | 161 | |
| 150 | 162 | #ifndef __API_TO_BE_DEPRECATED_TVOS |
| 151 | 163 | #define __API_TO_BE_DEPRECATED_TVOS 100000 |
| 152 | 164 | #endif |
| 165 | #ifndef __API_TO_BE_DEPRECATED_TVOSAPPLICATIONEXTENSION | |
| 166 | #define __API_TO_BE_DEPRECATED_TVOSAPPLICATIONEXTENSION 100000 | |
| 167 | #endif | |
| 153 | 168 | |
| 154 | #ifndef __API_TO_BE_DEPRECATED_BRIDGEOS | |
| 155 | 169 | |
| 156 | #endif | |
| 157 | 170 | |
| 158 | 171 | #ifndef __API_TO_BE_DEPRECATED_DRIVERKIT |
| 159 | 172 | #define __API_TO_BE_DEPRECATED_DRIVERKIT 100000 |
| ... | ... | @@ -162,11 +175,18 @@ |
| 162 | 175 | #ifndef __API_TO_BE_DEPRECATED_VISIONOS |
| 163 | 176 | #define __API_TO_BE_DEPRECATED_VISIONOS 100000 |
| 164 | 177 | #endif |
| 178 | #ifndef __API_TO_BE_DEPRECATED_VISIONOSAPPLICATIONEXTENSION | |
| 179 | #define __API_TO_BE_DEPRECATED_VISIONOSAPPLICATIONEXTENSION 100000 | |
| 180 | #endif | |
| 165 | 181 | |
| 166 | 182 | #ifndef __API_TO_BE_DEPRECATED_EXCLAVEKIT |
| 167 | 183 | |
| 168 | 184 | #endif |
| 169 | 185 | |
| 186 | #ifndef __API_TO_BE_DEPRECATED_KERNELKIT | |
| 187 | #define __API_TO_BE_DEPRECATED_KERNELKIT 100000 | |
| 188 | #endif | |
| 189 | ||
| 170 | 190 | |
| 171 | 191 | |
| 172 | 192 | #ifndef __OPEN_SOURCE__ |
| ... | ... | @@ -424,7 +444,9 @@ |
| 424 | 444 | * Use to specify the release that a particular API became available. |
| 425 | 445 | * |
| 426 | 446 | * Platform names: |
| 427 | * macos, ios, tvos, watchos | |
| 447 | * macos, macOSApplicationExtension, macCatalyst, macCatalystApplicationExtension, | |
| 448 | * ios, iOSApplicationExtension, tvos, tvOSApplicationExtension, watchos, | |
| 449 | * watchOSApplicationExtension, driverkit, visionos, visionOSApplicationExtension | |
| 428 | 450 | * |
| 429 | 451 | * Examples: |
| 430 | 452 | * __API_AVAILABLE(macos(10.10)) |
| ... | ... | @@ -432,36 +454,48 @@ |
| 432 | 454 | * __API_AVAILABLE(macos(10.4), ios(8.0), watchos(2.0), tvos(10.0)) |
| 433 | 455 | * __API_AVAILABLE(driverkit(19.0)) |
| 434 | 456 | */ |
| 435 | #define __API_AVAILABLE(...) __API_AVAILABLE_GET_MACRO(__VA_ARGS__,__API_AVAILABLE8,__API_AVAILABLE7,__API_AVAILABLE6,__API_AVAILABLE5,__API_AVAILABLE4,__API_AVAILABLE3,__API_AVAILABLE2,__API_AVAILABLE1,__API_AVAILABLE0,0)(__VA_ARGS__) | |
| 457 | #define __API_AVAILABLE(...) __API_AVAILABLE_GET_MACRO_93585900(__VA_ARGS__,__API_AVAILABLE15,__API_AVAILABLE14,__API_AVAILABLE13,__API_AVAILABLE12,__API_AVAILABLE11,__API_AVAILABLE10,__API_AVAILABLE9,__API_AVAILABLE8,__API_AVAILABLE7,__API_AVAILABLE6,__API_AVAILABLE5,__API_AVAILABLE4,__API_AVAILABLE3,__API_AVAILABLE2,__API_AVAILABLE1,__API_AVAILABLE0,0)(__VA_ARGS__) | |
| 436 | 458 | |
| 437 | #define __API_AVAILABLE_BEGIN(...) _Pragma("clang attribute push") __API_AVAILABLE_BEGIN_GET_MACRO(__VA_ARGS__,__API_AVAILABLE_BEGIN8,__API_AVAILABLE_BEGIN7,__API_AVAILABLE_BEGIN6,__API_AVAILABLE_BEGIN5,__API_AVAILABLE_BEGIN4,__API_AVAILABLE_BEGIN3,__API_AVAILABLE_BEGIN2,__API_AVAILABLE_BEGIN1,__API_AVAILABLE_BEGIN0,0)(__VA_ARGS__) | |
| 459 | #define __API_AVAILABLE_BEGIN(...) _Pragma("clang attribute push") __API_AVAILABLE_BEGIN_GET_MACRO_93585900(__VA_ARGS__,__API_AVAILABLE_BEGIN15,__API_AVAILABLE_BEGIN14,__API_AVAILABLE_BEGIN13,__API_AVAILABLE_BEGIN12,__API_AVAILABLE_BEGIN11,__API_AVAILABLE_BEGIN10,__API_AVAILABLE_BEGIN9,__API_AVAILABLE_BEGIN8,__API_AVAILABLE_BEGIN7,__API_AVAILABLE_BEGIN6,__API_AVAILABLE_BEGIN5,__API_AVAILABLE_BEGIN4,__API_AVAILABLE_BEGIN3,__API_AVAILABLE_BEGIN2,__API_AVAILABLE_BEGIN1,__API_AVAILABLE_BEGIN0,0)(__VA_ARGS__) | |
| 438 | 460 | #define __API_AVAILABLE_END _Pragma("clang attribute pop") |
| 439 | 461 | |
| 440 | 462 | /* |
| 441 | 463 | * API Deprecations |
| 442 | 464 | * |
| 443 | * Use to specify the release that a particular API became unavailable. | |
| 465 | * Use to specify the release that a particular API became deprecated. | |
| 444 | 466 | * |
| 445 | 467 | * Platform names: |
| 446 | * macos, ios, tvos, watchos | |
| 468 | * macos, macOSApplicationExtension, macCatalyst, macCatalystApplicationExtension, | |
| 469 | * ios, iOSApplicationExtension, tvos, tvOSApplicationExtension, watchos, | |
| 470 | * watchOSApplicationExtension, driverkit, visionos, visionOSApplicationExtension | |
| 447 | 471 | * |
| 448 | 472 | * Examples: |
| 449 | 473 | * |
| 450 | * __API_DEPRECATED("No longer supported", macos(10.4, 10.8)) | |
| 451 | * __API_DEPRECATED("No longer supported", macos(10.4, 10.8), ios(2.0, 3.0), watchos(2.0, 3.0), tvos(9.0, 10.0)) | |
| 474 | * __API_DEPRECATED("Deprecated", macos(10.4, 10.8)) | |
| 475 | * __API_DEPRECATED("Deprecated", macos(10.4, 10.8), ios(2.0, 3.0), watchos(2.0, 3.0), tvos(9.0, 10.0)) | |
| 452 | 476 | * |
| 453 | 477 | * __API_DEPRECATED_WITH_REPLACEMENT("-setName:", tvos(10.0, 10.4), ios(9.0, 10.0)) |
| 454 | 478 | * __API_DEPRECATED_WITH_REPLACEMENT("SomeClassName", macos(10.4, 10.6), watchos(2.0, 3.0)) |
| 455 | 479 | */ |
| 456 | #define __API_DEPRECATED(...) __API_DEPRECATED_MSG_GET_MACRO(__VA_ARGS__,__API_DEPRECATED_MSG8,__API_DEPRECATED_MSG7,__API_DEPRECATED_MSG6,__API_DEPRECATED_MSG5,__API_DEPRECATED_MSG4,__API_DEPRECATED_MSG3,__API_DEPRECATED_MSG2,__API_DEPRECATED_MSG1,__API_DEPRECATED_MSG0,0,0)(__VA_ARGS__) | |
| 457 | #define __API_DEPRECATED_WITH_REPLACEMENT(...) __API_DEPRECATED_REP_GET_MACRO(__VA_ARGS__,__API_DEPRECATED_REP8,__API_DEPRECATED_REP7,__API_DEPRECATED_REP6,__API_DEPRECATED_REP5,__API_DEPRECATED_REP4,__API_DEPRECATED_REP3,__API_DEPRECATED_REP2,__API_DEPRECATED_REP1,__API_DEPRECATED_REP0,0,0)(__VA_ARGS__) | |
| 480 | #define __API_DEPRECATED(...) __API_DEPRECATED_MSG_GET_MACRO_93585900(__VA_ARGS__,__API_DEPRECATED_MSG15,__API_DEPRECATED_MSG14,__API_DEPRECATED_MSG13,__API_DEPRECATED_MSG12,__API_DEPRECATED_MSG11,__API_DEPRECATED_MSG10,__API_DEPRECATED_MSG9,__API_DEPRECATED_MSG8,__API_DEPRECATED_MSG7,__API_DEPRECATED_MSG6,__API_DEPRECATED_MSG5,__API_DEPRECATED_MSG4,__API_DEPRECATED_MSG3,__API_DEPRECATED_MSG2,__API_DEPRECATED_MSG1,__API_DEPRECATED_MSG0,0,0)(__VA_ARGS__) | |
| 481 | #define __API_DEPRECATED_WITH_REPLACEMENT(...) __API_DEPRECATED_REP_GET_MACRO_93585900(__VA_ARGS__,__API_DEPRECATED_REP15,__API_DEPRECATED_REP14,__API_DEPRECATED_REP13,__API_DEPRECATED_REP12,__API_DEPRECATED_REP11,__API_DEPRECATED_REP10,__API_DEPRECATED_REP9,__API_DEPRECATED_REP8,__API_DEPRECATED_REP7,__API_DEPRECATED_REP6,__API_DEPRECATED_REP5,__API_DEPRECATED_REP4,__API_DEPRECATED_REP3,__API_DEPRECATED_REP2,__API_DEPRECATED_REP1,__API_DEPRECATED_REP0,0,0)(__VA_ARGS__) | |
| 458 | 482 | |
| 459 | #define __API_DEPRECATED_BEGIN(...) _Pragma("clang attribute push") __API_DEPRECATED_BEGIN_GET_MACRO(__VA_ARGS__,__API_DEPRECATED_BEGIN8,__API_DEPRECATED_BEGIN7,__API_DEPRECATED_BEGIN6,__API_DEPRECATED_BEGIN5,__API_DEPRECATED_BEGIN4,__API_DEPRECATED_BEGIN3,__API_DEPRECATED_BEGIN2,__API_DEPRECATED_BEGIN1,__API_DEPRECATED_BEGIN0,0,0)(__VA_ARGS__) | |
| 483 | #define __API_DEPRECATED_BEGIN(...) _Pragma("clang attribute push") __API_DEPRECATED_BEGIN_GET_MACRO_93585900(__VA_ARGS__,__API_DEPRECATED_BEGIN15,__API_DEPRECATED_BEGIN14,__API_DEPRECATED_BEGIN13,__API_DEPRECATED_BEGIN12,__API_DEPRECATED_BEGIN11,__API_DEPRECATED_BEGIN10,__API_DEPRECATED_BEGIN9,__API_DEPRECATED_BEGIN8,__API_DEPRECATED_BEGIN7,__API_DEPRECATED_BEGIN6,__API_DEPRECATED_BEGIN5,__API_DEPRECATED_BEGIN4,__API_DEPRECATED_BEGIN3,__API_DEPRECATED_BEGIN2,__API_DEPRECATED_BEGIN1,__API_DEPRECATED_BEGIN0,0,0)(__VA_ARGS__) | |
| 460 | 484 | #define __API_DEPRECATED_END _Pragma("clang attribute pop") |
| 461 | 485 | |
| 462 | #define __API_DEPRECATED_WITH_REPLACEMENT_BEGIN(...) _Pragma("clang attribute push") __API_DEPRECATED_WITH_REPLACEMENT_BEGIN_GET_MACRO(__VA_ARGS__,__API_DEPRECATED_WITH_REPLACEMENT_BEGIN8,__API_DEPRECATED_WITH_REPLACEMENT_BEGIN7,__API_DEPRECATED_WITH_REPLACEMENT_BEGIN6,__API_DEPRECATED_WITH_REPLACEMENT_BEGIN5,__API_DEPRECATED_WITH_REPLACEMENT_BEGIN4,__API_DEPRECATED_WITH_REPLACEMENT_BEGIN3,__API_DEPRECATED_WITH_REPLACEMENT_BEGIN2,__API_DEPRECATED_WITH_REPLACEMENT_BEGIN1,__API_DEPRECATED_WITH_REPLACEMENT_BEGIN0,0,0)(__VA_ARGS__) | |
| 486 | #define __API_DEPRECATED_WITH_REPLACEMENT_BEGIN(...) _Pragma("clang attribute push") __API_DEPRECATED_WITH_REPLACEMENT_BEGIN_GET_MACRO_93585900(__VA_ARGS__,__API_DEPRECATED_WITH_REPLACEMENT_BEGIN15,__API_DEPRECATED_WITH_REPLACEMENT_BEGIN14,__API_DEPRECATED_WITH_REPLACEMENT_BEGIN13,__API_DEPRECATED_WITH_REPLACEMENT_BEGIN12,__API_DEPRECATED_WITH_REPLACEMENT_BEGIN11,__API_DEPRECATED_WITH_REPLACEMENT_BEGIN10,__API_DEPRECATED_WITH_REPLACEMENT_BEGIN9,__API_DEPRECATED_WITH_REPLACEMENT_BEGIN8,__API_DEPRECATED_WITH_REPLACEMENT_BEGIN7,__API_DEPRECATED_WITH_REPLACEMENT_BEGIN6,__API_DEPRECATED_WITH_REPLACEMENT_BEGIN5,__API_DEPRECATED_WITH_REPLACEMENT_BEGIN4,__API_DEPRECATED_WITH_REPLACEMENT_BEGIN3,__API_DEPRECATED_WITH_REPLACEMENT_BEGIN2,__API_DEPRECATED_WITH_REPLACEMENT_BEGIN1,__API_DEPRECATED_WITH_REPLACEMENT_BEGIN0,0,0)(__VA_ARGS__) | |
| 463 | 487 | #define __API_DEPRECATED_WITH_REPLACEMENT_END _Pragma("clang attribute pop") |
| 464 | 488 | |
| 489 | ||
| 490 | #define __API_OBSOLETED(...) __API_OBSOLETED_MSG_GET_MACRO_93585900(__VA_ARGS__,__API_OBSOLETED_MSG15,__API_OBSOLETED_MSG14,__API_OBSOLETED_MSG13,__API_OBSOLETED_MSG12,__API_OBSOLETED_MSG11,__API_OBSOLETED_MSG10,__API_OBSOLETED_MSG9,__API_OBSOLETED_MSG8,__API_OBSOLETED_MSG7,__API_OBSOLETED_MSG6,__API_OBSOLETED_MSG5,__API_OBSOLETED_MSG4,__API_OBSOLETED_MSG3,__API_OBSOLETED_MSG2,__API_OBSOLETED_MSG1,__API_OBSOLETED_MSG0,0,0)(__VA_ARGS__) | |
| 491 | #define __API_OBSOLETED_WITH_REPLACEMENT(...) __API_OBSOLETED_REP_GET_MACRO_93585900(__VA_ARGS__,__API_OBSOLETED_REP15,__API_OBSOLETED_REP14,__API_OBSOLETED_REP13,__API_OBSOLETED_REP12,__API_OBSOLETED_REP11,__API_OBSOLETED_REP10,__API_OBSOLETED_REP9,__API_OBSOLETED_REP8,__API_OBSOLETED_REP7,__API_OBSOLETED_REP6,__API_OBSOLETED_REP5,__API_OBSOLETED_REP4,__API_OBSOLETED_REP3,__API_OBSOLETED_REP2,__API_OBSOLETED_REP1,__API_OBSOLETED_REP0,0,0)(__VA_ARGS__) | |
| 492 | ||
| 493 | #define __API_OBSOLETED_BEGIN(...) _Pragma("clang attribute push") __API_OBSOLETED_BEGIN_GET_MACRO_93585900(__VA_ARGS__,__API_OBSOLETED_BEGIN15,__API_OBSOLETED_BEGIN14,__API_OBSOLETED_BEGIN13,__API_OBSOLETED_BEGIN12,__API_OBSOLETED_BEGIN11,__API_OBSOLETED_BEGIN10,__API_OBSOLETED_BEGIN9,__API_OBSOLETED_BEGIN8,__API_OBSOLETED_BEGIN7,__API_OBSOLETED_BEGIN6,__API_OBSOLETED_BEGIN5,__API_OBSOLETED_BEGIN4,__API_OBSOLETED_BEGIN3,__API_OBSOLETED_BEGIN2,__API_OBSOLETED_BEGIN1,__API_OBSOLETED_BEGIN0,0,0)(__VA_ARGS__) | |
| 494 | #define __API_OBSOLETED_END _Pragma("clang attribute pop") | |
| 495 | ||
| 496 | #define __API_OBSOLETED_WITH_REPLACEMENT_BEGIN(...) _Pragma("clang attribute push") __API_OBSOLETED_WITH_REPLACEMENT_BEGIN_GET_MACRO_93585900(__VA_ARGS__,__API_OBSOLETED_WITH_REPLACEMENT_BEGIN15,__API_OBSOLETED_WITH_REPLACEMENT_BEGIN14,__API_OBSOLETED_WITH_REPLACEMENT_BEGIN13,__API_OBSOLETED_WITH_REPLACEMENT_BEGIN12,__API_OBSOLETED_WITH_REPLACEMENT_BEGIN11,__API_OBSOLETED_WITH_REPLACEMENT_BEGIN10,__API_OBSOLETED_WITH_REPLACEMENT_BEGIN9,__API_OBSOLETED_WITH_REPLACEMENT_BEGIN8,__API_OBSOLETED_WITH_REPLACEMENT_BEGIN7,__API_OBSOLETED_WITH_REPLACEMENT_BEGIN6,__API_OBSOLETED_WITH_REPLACEMENT_BEGIN5,__API_OBSOLETED_WITH_REPLACEMENT_BEGIN4,__API_OBSOLETED_WITH_REPLACEMENT_BEGIN3,__API_OBSOLETED_WITH_REPLACEMENT_BEGIN2,__API_OBSOLETED_WITH_REPLACEMENT_BEGIN1,__API_OBSOLETED_WITH_REPLACEMENT_BEGIN0,0,0)(__VA_ARGS__) | |
| 497 | #define __API_OBSOLETED_WITH_REPLACEMENT_END _Pragma("clang attribute pop") | |
| 498 | ||
| 465 | 499 | /* |
| 466 | 500 | * API Unavailability |
| 467 | 501 | * Use to specify that an API is unavailable for a particular platform. |
| ... | ... | @@ -470,9 +504,9 @@ |
| 470 | 504 | * __API_UNAVAILABLE(macos) |
| 471 | 505 | * __API_UNAVAILABLE(watchos, tvos) |
| 472 | 506 | */ |
| 473 | #define __API_UNAVAILABLE(...) __API_UNAVAILABLE_GET_MACRO(__VA_ARGS__,__API_UNAVAILABLE8,__API_UNAVAILABLE7,__API_UNAVAILABLE6,__API_UNAVAILABLE5,__API_UNAVAILABLE4,__API_UNAVAILABLE3,__API_UNAVAILABLE2,__API_UNAVAILABLE1,__API_UNAVAILABLE0,0)(__VA_ARGS__) | |
| 507 | #define __API_UNAVAILABLE(...) __API_UNAVAILABLE_GET_MACRO_93585900(__VA_ARGS__,__API_UNAVAILABLE15,__API_UNAVAILABLE14,__API_UNAVAILABLE13,__API_UNAVAILABLE12,__API_UNAVAILABLE11,__API_UNAVAILABLE10,__API_UNAVAILABLE9,__API_UNAVAILABLE8,__API_UNAVAILABLE7,__API_UNAVAILABLE6,__API_UNAVAILABLE5,__API_UNAVAILABLE4,__API_UNAVAILABLE3,__API_UNAVAILABLE2,__API_UNAVAILABLE1,__API_UNAVAILABLE0,0)(__VA_ARGS__) | |
| 474 | 508 | |
| 475 | #define __API_UNAVAILABLE_BEGIN(...) _Pragma("clang attribute push") __API_UNAVAILABLE_BEGIN_GET_MACRO(__VA_ARGS__,__API_UNAVAILABLE_BEGIN8,__API_UNAVAILABLE_BEGIN7,__API_UNAVAILABLE_BEGIN6,__API_UNAVAILABLE_BEGIN5,__API_UNAVAILABLE_BEGIN4,__API_UNAVAILABLE_BEGIN3,__API_UNAVAILABLE_BEGIN2,__API_UNAVAILABLE_BEGIN1,__API_UNAVAILABLE_BEGIN0,0)(__VA_ARGS__) | |
| 509 | #define __API_UNAVAILABLE_BEGIN(...) _Pragma("clang attribute push") __API_UNAVAILABLE_BEGIN_GET_MACRO_93585900(__VA_ARGS__,__API_UNAVAILABLE_BEGIN15,__API_UNAVAILABLE_BEGIN14,__API_UNAVAILABLE_BEGIN13,__API_UNAVAILABLE_BEGIN12,__API_UNAVAILABLE_BEGIN11,__API_UNAVAILABLE_BEGIN10,__API_UNAVAILABLE_BEGIN9,__API_UNAVAILABLE_BEGIN8,__API_UNAVAILABLE_BEGIN7,__API_UNAVAILABLE_BEGIN6,__API_UNAVAILABLE_BEGIN5,__API_UNAVAILABLE_BEGIN4,__API_UNAVAILABLE_BEGIN3,__API_UNAVAILABLE_BEGIN2,__API_UNAVAILABLE_BEGIN1,__API_UNAVAILABLE_BEGIN0,0)(__VA_ARGS__) | |
| 476 | 510 | #define __API_UNAVAILABLE_END _Pragma("clang attribute pop") |
| 477 | 511 | #endif /* __has_attribute(availability) */ |
| 478 | 512 | #endif /* #if defined(__has_feature) && defined(__has_attribute) */ |
| ... | ... | @@ -517,6 +551,30 @@ |
| 517 | 551 | #define __API_DEPRECATED_WITH_REPLACEMENT_END(...) |
| 518 | 552 | #endif |
| 519 | 553 | |
| 554 | #ifndef __API_OBSOLETED | |
| 555 | #define __API_OBSOLETED(...) | |
| 556 | #endif | |
| 557 | ||
| 558 | #ifndef __API_OBSOLETED_BEGIN | |
| 559 | #define __API_OBSOLETED_BEGIN(...) | |
| 560 | #endif | |
| 561 | ||
| 562 | #ifndef __API_OBSOLETED_END | |
| 563 | #define __API_OBSOLETED_END(...) | |
| 564 | #endif | |
| 565 | ||
| 566 | #ifndef __API_OBSOLETED_WITH_REPLACEMENT | |
| 567 | #define __API_OBSOLETED_WITH_REPLACEMENT(...) | |
| 568 | #endif | |
| 569 | ||
| 570 | #ifndef __API_OBSOLETED_WITH_REPLACEMENT_BEGIN | |
| 571 | #define __API_OBSOLETED_WITH_REPLACEMENT_BEGIN(...) | |
| 572 | #endif | |
| 573 | ||
| 574 | #ifndef __API_OBSOLETED_WITH_REPLACEMENT_END | |
| 575 | #define __API_OBSOLETED_WITH_REPLACEMENT_END(...) | |
| 576 | #endif | |
| 577 | ||
| 520 | 578 | #ifndef __API_UNAVAILABLE |
| 521 | 579 | #define __API_UNAVAILABLE(...) |
| 522 | 580 | #endif |
| ... | ... | @@ -555,3 +613,13 @@ |
| 555 | 613 | |
| 556 | 614 | #endif /* __AVAILABILITY__ */ |
| 557 | 615 | |
| 616 | #ifndef __OPEN_SOURCE__ | |
| 617 | // This is explicitly outside the header guard | |
| 618 | #ifndef __AVAILABILITY_VERSIONS_VERSION_HASH | |
| 619 | #define __AVAILABILITY_VERSIONS_VERSION_HASH 93585900U | |
| 620 | #define __AVAILABILITY_VERSIONS_VERSION_STRING "Local" | |
| 621 | #define __AVAILABILITY_FILE "Availability.h" | |
| 622 | #elif __AVAILABILITY_VERSIONS_VERSION_HASH != 93585900U | |
| 623 | #pragma GCC error "Already found AvailabilityVersions version " __AVAILABILITY_FILE " from " __AVAILABILITY_VERSIONS_VERSION_STRING ", which is incompatible with Availability.h from Local. Mixing and matching Availability from different SDKs is not supported" | |
| 624 | #endif /* __AVAILABILITY_VERSIONS_VERSION_HASH */ | |
| 625 | #endif /* __OPEN_SOURCE__ */ |
lib/libc/include/any-macos-any/AvailabilityInternal.h+237-78| ... | ... | @@ -36,11 +36,11 @@ |
| 36 | 36 | #if defined(__has_builtin) && __has_builtin(__is_target_os) |
| 37 | 37 | #if __is_target_os(macos) |
| 38 | 38 | #define __MAC_OS_X_VERSION_MIN_REQUIRED __ENVIRONMENT_OS_VERSION_MIN_REQUIRED__ |
| 39 | #define __MAC_OS_X_VERSION_MAX_ALLOWED __MAC_15_2 | |
| 39 | #define __MAC_OS_X_VERSION_MAX_ALLOWED __MAC_15_5 | |
| 40 | 40 | #endif |
| 41 | 41 | #elif __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ |
| 42 | 42 | #define __MAC_OS_X_VERSION_MIN_REQUIRED __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ |
| 43 | #define __MAC_OS_X_VERSION_MAX_ALLOWED __MAC_15_2 | |
| 43 | #define __MAC_OS_X_VERSION_MAX_ALLOWED __MAC_15_5 | |
| 44 | 44 | #endif /* __has_builtin(__is_target_os) && __is_target_os(macos) */ |
| 45 | 45 | #endif /* __MAC_OS_X_VERSION_MIN_REQUIRED */ |
| 46 | 46 | |
| ... | ... | @@ -48,11 +48,11 @@ |
| 48 | 48 | #if defined(__has_builtin) && __has_builtin(__is_target_os) |
| 49 | 49 | #if __is_target_os(ios) |
| 50 | 50 | #define __IPHONE_OS_VERSION_MIN_REQUIRED __ENVIRONMENT_OS_VERSION_MIN_REQUIRED__ |
| 51 | #define __IPHONE_OS_VERSION_MAX_ALLOWED __IPHONE_18_2 | |
| 51 | #define __IPHONE_OS_VERSION_MAX_ALLOWED __IPHONE_18_5 | |
| 52 | 52 | #endif |
| 53 | 53 | #elif __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ |
| 54 | 54 | #define __IPHONE_OS_VERSION_MIN_REQUIRED __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ |
| 55 | #define __IPHONE_OS_VERSION_MAX_ALLOWED __IPHONE_18_2 | |
| 55 | #define __IPHONE_OS_VERSION_MAX_ALLOWED __IPHONE_18_5 | |
| 56 | 56 | #endif /* __has_builtin(__is_target_os) && __is_target_os(ios) */ |
| 57 | 57 | #endif /* __IPHONE_OS_VERSION_MIN_REQUIRED */ |
| 58 | 58 | |
| ... | ... | @@ -60,13 +60,13 @@ |
| 60 | 60 | #if defined(__has_builtin) && __has_builtin(__is_target_os) |
| 61 | 61 | #if __is_target_os(watchos) |
| 62 | 62 | #define __WATCH_OS_VERSION_MIN_REQUIRED __ENVIRONMENT_OS_VERSION_MIN_REQUIRED__ |
| 63 | #define __WATCH_OS_VERSION_MAX_ALLOWED __WATCHOS_11_2 | |
| 63 | #define __WATCH_OS_VERSION_MAX_ALLOWED __WATCHOS_11_5 | |
| 64 | 64 | /* for compatibility with existing code. New code should use platform specific checks */ |
| 65 | 65 | #define __IPHONE_OS_VERSION_MIN_REQUIRED __IPHONE_9_0 |
| 66 | 66 | #endif |
| 67 | 67 | #elif __ENVIRONMENT_WATCH_OS_VERSION_MIN_REQUIRED__ |
| 68 | 68 | #define __WATCH_OS_VERSION_MIN_REQUIRED __ENVIRONMENT_WATCH_OS_VERSION_MIN_REQUIRED__ |
| 69 | #define __WATCH_OS_VERSION_MAX_ALLOWED __WATCHOS_11_2 | |
| 69 | #define __WATCH_OS_VERSION_MAX_ALLOWED __WATCHOS_11_5 | |
| 70 | 70 | /* for compatibility with existing code. New code should use platform specific checks */ |
| 71 | 71 | #define __IPHONE_OS_VERSION_MIN_REQUIRED __IPHONE_9_0 |
| 72 | 72 | #endif /* __has_builtin(__is_target_os) && __is_target_os(watchos) */ |
| ... | ... | @@ -76,34 +76,25 @@ |
| 76 | 76 | #if defined(__has_builtin) && __has_builtin(__is_target_os) |
| 77 | 77 | #if __is_target_os(tvos) |
| 78 | 78 | #define __TV_OS_VERSION_MIN_REQUIRED __ENVIRONMENT_OS_VERSION_MIN_REQUIRED__ |
| 79 | #define __TV_OS_VERSION_MAX_ALLOWED __TVOS_18_2 | |
| 79 | #define __TV_OS_VERSION_MAX_ALLOWED __TVOS_18_5 | |
| 80 | 80 | /* for compatibility with existing code. New code should use platform specific checks */ |
| 81 | 81 | #define __IPHONE_OS_VERSION_MIN_REQUIRED __IPHONE_9_0 |
| 82 | 82 | #endif |
| 83 | 83 | #elif __ENVIRONMENT_TV_OS_VERSION_MIN_REQUIRED__ |
| 84 | 84 | #define __TV_OS_VERSION_MIN_REQUIRED __ENVIRONMENT_TV_OS_VERSION_MIN_REQUIRED__ |
| 85 | #define __TV_OS_VERSION_MAX_ALLOWED __TVOS_18_2 | |
| 85 | #define __TV_OS_VERSION_MAX_ALLOWED __TVOS_18_5 | |
| 86 | 86 | /* for compatibility with existing code. New code should use platform specific checks */ |
| 87 | 87 | #define __IPHONE_OS_VERSION_MIN_REQUIRED __IPHONE_9_0 |
| 88 | 88 | #endif /* __has_builtin(__is_target_os) && __is_target_os(tvos) */ |
| 89 | 89 | #endif /* __TV_OS_VERSION_MIN_REQUIRED */ |
| 90 | 90 | |
| 91 | #ifndef __BRIDGE_OS_VERSION_MIN_REQUIRED | |
| 92 | #if defined(__has_builtin) && __has_builtin(__is_target_os) | |
| 93 | #if __is_target_os(bridgeos) | |
| 94 | #define __BRIDGE_OS_VERSION_MIN_REQUIRED __ENVIRONMENT_OS_VERSION_MIN_REQUIRED__ | |
| 95 | #define __BRIDGE_OS_VERSION_MAX_ALLOWED __BRIDGEOS_9_2 | |
| 96 | /* for compatibility with existing code. New code should use platform specific checks */ | |
| 97 | #define __IPHONE_OS_VERSION_MIN_REQUIRED __IPHONE_11_0 | |
| 98 | #endif | |
| 99 | #endif | |
| 100 | #endif /* __BRIDGE_OS_VERSION_MIN_REQUIRED */ | |
| 91 | ||
| 101 | 92 | |
| 102 | 93 | #ifndef __DRIVERKIT_VERSION_MIN_REQUIRED |
| 103 | 94 | #if defined(__has_builtin) && __has_builtin(__is_target_os) |
| 104 | 95 | #if __is_target_os(driverkit) |
| 105 | 96 | #define __DRIVERKIT_VERSION_MIN_REQUIRED __ENVIRONMENT_OS_VERSION_MIN_REQUIRED__ |
| 106 | #define __DRIVERKIT_VERSION_MAX_ALLOWED __DRIVERKIT_24_2 | |
| 97 | #define __DRIVERKIT_VERSION_MAX_ALLOWED __DRIVERKIT_24_5 | |
| 107 | 98 | #endif |
| 108 | 99 | #endif /* __has_builtin(__is_target_os) && __is_target_os(driverkit) */ |
| 109 | 100 | #endif /* __DRIVERKIT_VERSION_MIN_REQUIRED */ |
| ... | ... | @@ -112,7 +103,7 @@ |
| 112 | 103 | #if defined(__has_builtin) && __has_builtin(__is_target_os) |
| 113 | 104 | #if __is_target_os(visionos) |
| 114 | 105 | #define __VISION_OS_VERSION_MIN_REQUIRED __ENVIRONMENT_OS_VERSION_MIN_REQUIRED__ |
| 115 | #define __VISION_OS_VERSION_MAX_ALLOWED __VISIONOS_2_2 | |
| 106 | #define __VISION_OS_VERSION_MAX_ALLOWED __VISIONOS_2_5 | |
| 116 | 107 | /* for compatibility with existing code. New code should use platform specific checks */ |
| 117 | 108 | #define __IPHONE_OS_VERSION_MIN_REQUIRED __IPHONE_17_1 |
| 118 | 109 | #endif |
| ... | ... | @@ -120,25 +111,6 @@ |
| 120 | 111 | #endif /* __VISION_OS_VERSION_MIN_REQUIRED */ |
| 121 | 112 | |
| 122 | 113 | |
| 123 | //FIXME: Workaround for rdar://116062344 | |
| 124 | #ifndef __VISION_OS_VERSION_MIN_REQUIRED | |
| 125 | #if defined(__has_builtin) && __has_builtin(__is_target_os) | |
| 126 | #if __is_target_os(xros) | |
| 127 | #define __VISION_OS_VERSION_MIN_REQUIRED __ENVIRONMENT_OS_VERSION_MIN_REQUIRED__ | |
| 128 | // Hardcoded these since until compiler fix for rdar://116062344 will land | |
| 129 | #if defined(__VISIONOS_2_0) | |
| 130 | #define __VISION_OS_VERSION_MAX_ALLOWED __VISIONOS_2_0 | |
| 131 | #elif defined(__VISIONOS_1_1) | |
| 132 | #define __VISION_OS_VERSION_MAX_ALLOWED __VISIONOS_1_1 | |
| 133 | #elif defined(__VISIONOS_1_0) | |
| 134 | #define __VISION_OS_VERSION_MAX_ALLOWED __VISIONOS_1_0 | |
| 135 | #endif | |
| 136 | /* for compatibility with existing code. New code should use platform specific checks */ | |
| 137 | #define __IPHONE_OS_VERSION_MIN_REQUIRED __IPHONE_17_1 | |
| 138 | #endif | |
| 139 | #endif /* __has_builtin(__is_target_os) && __is_target_os(visionos) */ | |
| 140 | #endif /* __VISION_OS_VERSION_MIN_REQUIRED */ | |
| 141 | ||
| 142 | 114 | #ifndef __OPEN_SOURCE__ |
| 143 | 115 | |
| 144 | 116 | #endif /* __OPEN_SOURCE__ */ |
| ... | ... | @@ -175,41 +147,70 @@ |
| 175 | 147 | #if __has_attribute(availability) |
| 176 | 148 | #define __API_AVAILABLE_PLATFORM_macos(x) macos,introduced=x |
| 177 | 149 | #define __API_DEPRECATED_PLATFORM_macos(x,y) macos,introduced=x,deprecated=y |
| 150 | #define __API_OBSOLETED_PLATFORM_macos(x,y,z) macos,introduced=x,deprecated=y,obsoleted=z | |
| 178 | 151 | #define __API_UNAVAILABLE_PLATFORM_macos macos,unavailable |
| 179 | 152 | #define __API_AVAILABLE_PLATFORM_macosx(x) macos,introduced=x |
| 180 | 153 | #define __API_DEPRECATED_PLATFORM_macosx(x,y) macos,introduced=x,deprecated=y |
| 154 | #define __API_OBSOLETED_PLATFORM_macosx(x,y,z) macos,introduced=x,deprecated=y,obsoleted=z | |
| 181 | 155 | #define __API_UNAVAILABLE_PLATFORM_macosx macos,unavailable |
| 156 | #define __API_AVAILABLE_PLATFORM_macOSApplicationExtension(x) macOSApplicationExtension,introduced=x | |
| 157 | #define __API_DEPRECATED_PLATFORM_macOSApplicationExtension(x,y) macOSApplicationExtension,introduced=x,deprecated=y | |
| 158 | #define __API_OBSOLETED_PLATFORM_macOSApplicationExtension(x,y,z) macOSApplicationExtension,introduced=x,deprecated=y,obsoleted=z | |
| 159 | #define __API_UNAVAILABLE_PLATFORM_macOSApplicationExtension macOSApplicationExtension,unavailable | |
| 182 | 160 | #define __API_AVAILABLE_PLATFORM_ios(x) ios,introduced=x |
| 183 | 161 | #define __API_DEPRECATED_PLATFORM_ios(x,y) ios,introduced=x,deprecated=y |
| 162 | #define __API_OBSOLETED_PLATFORM_ios(x,y,z) ios,introduced=x,deprecated=y,obsoleted=z | |
| 184 | 163 | #define __API_UNAVAILABLE_PLATFORM_ios ios,unavailable |
| 164 | #define __API_AVAILABLE_PLATFORM_iOSApplicationExtension(x) iOSApplicationExtension,introduced=x | |
| 165 | #define __API_DEPRECATED_PLATFORM_iOSApplicationExtension(x,y) iOSApplicationExtension,introduced=x,deprecated=y | |
| 166 | #define __API_OBSOLETED_PLATFORM_iOSApplicationExtension(x,y,z) iOSApplicationExtension,introduced=x,deprecated=y,obsoleted=z | |
| 167 | #define __API_UNAVAILABLE_PLATFORM_iOSApplicationExtension iOSApplicationExtension,unavailable | |
| 185 | 168 | #define __API_AVAILABLE_PLATFORM_macCatalyst(x) macCatalyst,introduced=x |
| 186 | 169 | #define __API_DEPRECATED_PLATFORM_macCatalyst(x,y) macCatalyst,introduced=x,deprecated=y |
| 170 | #define __API_OBSOLETED_PLATFORM_macCatalyst(x,y,z) macCatalyst,introduced=x,deprecated=y,obsoleted=z | |
| 187 | 171 | #define __API_UNAVAILABLE_PLATFORM_macCatalyst macCatalyst,unavailable |
| 188 | #define __API_AVAILABLE_PLATFORM_macCatalyst(x) macCatalyst,introduced=x | |
| 189 | #define __API_DEPRECATED_PLATFORM_macCatalyst(x,y) macCatalyst,introduced=x,deprecated=y | |
| 190 | #define __API_UNAVAILABLE_PLATFORM_macCatalyst macCatalyst,unavailable | |
| 172 | #define __API_AVAILABLE_PLATFORM_macCatalystApplicationExtension(x) macCatalystApplicationExtension,introduced=x | |
| 173 | #define __API_DEPRECATED_PLATFORM_macCatalystApplicationExtension(x,y) macCatalystApplicationExtension,introduced=x,deprecated=y | |
| 174 | #define __API_OBSOLETED_PLATFORM_macCatalystApplicationExtension(x,y,z) macCatalystApplicationExtension,introduced=x,deprecated=y,obsoleted=z | |
| 175 | #define __API_UNAVAILABLE_PLATFORM_macCatalystApplicationExtension macCatalystApplicationExtension,unavailable | |
| 191 | 176 | #define __API_AVAILABLE_PLATFORM_watchos(x) watchos,introduced=x |
| 192 | 177 | #define __API_DEPRECATED_PLATFORM_watchos(x,y) watchos,introduced=x,deprecated=y |
| 178 | #define __API_OBSOLETED_PLATFORM_watchos(x,y,z) watchos,introduced=x,deprecated=y,obsoleted=z | |
| 193 | 179 | #define __API_UNAVAILABLE_PLATFORM_watchos watchos,unavailable |
| 180 | #define __API_AVAILABLE_PLATFORM_watchOSApplicationExtension(x) watchOSApplicationExtension,introduced=x | |
| 181 | #define __API_DEPRECATED_PLATFORM_watchOSApplicationExtension(x,y) watchOSApplicationExtension,introduced=x,deprecated=y | |
| 182 | #define __API_OBSOLETED_PLATFORM_watchOSApplicationExtension(x,y,z) watchOSApplicationExtension,introduced=x,deprecated=y,obsoleted=z | |
| 183 | #define __API_UNAVAILABLE_PLATFORM_watchOSApplicationExtension watchOSApplicationExtension,unavailable | |
| 194 | 184 | #define __API_AVAILABLE_PLATFORM_tvos(x) tvos,introduced=x |
| 195 | 185 | #define __API_DEPRECATED_PLATFORM_tvos(x,y) tvos,introduced=x,deprecated=y |
| 186 | #define __API_OBSOLETED_PLATFORM_tvos(x,y,z) tvos,introduced=x,deprecated=y,obsoleted=z | |
| 196 | 187 | #define __API_UNAVAILABLE_PLATFORM_tvos tvos,unavailable |
| 197 | ||
| 198 | ||
| 199 | ||
| 188 | #define __API_AVAILABLE_PLATFORM_tvOSApplicationExtension(x) tvOSApplicationExtension,introduced=x | |
| 189 | #define __API_DEPRECATED_PLATFORM_tvOSApplicationExtension(x,y) tvOSApplicationExtension,introduced=x,deprecated=y | |
| 190 | #define __API_OBSOLETED_PLATFORM_tvOSApplicationExtension(x,y,z) tvOSApplicationExtension,introduced=x,deprecated=y,obsoleted=z | |
| 191 | #define __API_UNAVAILABLE_PLATFORM_tvOSApplicationExtension tvOSApplicationExtension,unavailable | |
| 192 | ||
| 200 | 193 | #define __API_AVAILABLE_PLATFORM_driverkit(x) driverkit,introduced=x |
| 201 | 194 | #define __API_DEPRECATED_PLATFORM_driverkit(x,y) driverkit,introduced=x,deprecated=y |
| 195 | #define __API_OBSOLETED_PLATFORM_driverkit(x,y,z) driverkit,introduced=x,deprecated=y,obsoleted=z | |
| 202 | 196 | #define __API_UNAVAILABLE_PLATFORM_driverkit driverkit,unavailable |
| 203 | 197 | #define __API_AVAILABLE_PLATFORM_visionos(x) visionos,introduced=x |
| 204 | 198 | #define __API_DEPRECATED_PLATFORM_visionos(x,y) visionos,introduced=x,deprecated=y |
| 199 | #define __API_OBSOLETED_PLATFORM_visionos(x,y,z) visionos,introduced=x,deprecated=y,obsoleted=z | |
| 205 | 200 | #define __API_UNAVAILABLE_PLATFORM_visionos visionos,unavailable |
| 206 | #define __API_AVAILABLE_PLATFORM_xros(x) visionos,introduced=x | |
| 207 | #define __API_DEPRECATED_PLATFORM_xros(x,y) visionos,introduced=x,deprecated=y | |
| 208 | #define __API_UNAVAILABLE_PLATFORM_xros visionos,unavailable | |
| 201 | #define __API_AVAILABLE_PLATFORM_visionOSApplicationExtension(x) visionOSApplicationExtension,introduced=x | |
| 202 | #define __API_DEPRECATED_PLATFORM_visionOSApplicationExtension(x,y) visionOSApplicationExtension,introduced=x,deprecated=y | |
| 203 | #define __API_OBSOLETED_PLATFORM_visionOSApplicationExtension(x,y,z) visionOSApplicationExtension,introduced=x,deprecated=y,obsoleted=z | |
| 204 | #define __API_UNAVAILABLE_PLATFORM_visionOSApplicationExtension visionOSApplicationExtension,unavailable | |
| 209 | 205 | |
| 206 | #define __API_UNAVAILABLE_PLATFORM_kernelkit kernelkit,unavailable | |
| 210 | 207 | #endif /* __has_attribute(availability) */ |
| 211 | 208 | #endif /* defined(__has_feature) && defined(__has_attribute) */ |
| 212 | 209 | |
| 210 | #ifndef __OPEN_SOURCE__ | |
| 211 | ||
| 212 | #endif /* __OPEN_SOURCE__ */ | |
| 213 | ||
| 213 | 214 | #if defined(__has_feature) && defined(__has_attribute) |
| 214 | 215 | #if __has_attribute(availability) |
| 215 | 216 | #define __API_APPLY_TO any(record, enum, enum_constant, function, objc_method, objc_category, objc_protocol, objc_interface, objc_property, type_alias, variable, field) |
| ... | ... | @@ -239,7 +240,14 @@ |
| 239 | 240 | #define __API_AVAILABLE6(arg0,arg1,arg2,arg3,arg4,arg5,arg6) __API_A(arg0) __API_A(arg1) __API_A(arg2) __API_A(arg3) __API_A(arg4) __API_A(arg5) __API_A(arg6) |
| 240 | 241 | #define __API_AVAILABLE7(arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7) __API_A(arg0) __API_A(arg1) __API_A(arg2) __API_A(arg3) __API_A(arg4) __API_A(arg5) __API_A(arg6) __API_A(arg7) |
| 241 | 242 | #define __API_AVAILABLE8(arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8) __API_A(arg0) __API_A(arg1) __API_A(arg2) __API_A(arg3) __API_A(arg4) __API_A(arg5) __API_A(arg6) __API_A(arg7) __API_A(arg8) |
| 242 | #define __API_AVAILABLE_GET_MACRO(_0,_1,_2,_3,_4,_5,_6,_7,_8,NAME,...) NAME | |
| 243 | #define __API_AVAILABLE9(arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9) __API_A(arg0) __API_A(arg1) __API_A(arg2) __API_A(arg3) __API_A(arg4) __API_A(arg5) __API_A(arg6) __API_A(arg7) __API_A(arg8) __API_A(arg9) | |
| 244 | #define __API_AVAILABLE10(arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10) __API_A(arg0) __API_A(arg1) __API_A(arg2) __API_A(arg3) __API_A(arg4) __API_A(arg5) __API_A(arg6) __API_A(arg7) __API_A(arg8) __API_A(arg9) __API_A(arg10) | |
| 245 | #define __API_AVAILABLE11(arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11) __API_A(arg0) __API_A(arg1) __API_A(arg2) __API_A(arg3) __API_A(arg4) __API_A(arg5) __API_A(arg6) __API_A(arg7) __API_A(arg8) __API_A(arg9) __API_A(arg10) __API_A(arg11) | |
| 246 | #define __API_AVAILABLE12(arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12) __API_A(arg0) __API_A(arg1) __API_A(arg2) __API_A(arg3) __API_A(arg4) __API_A(arg5) __API_A(arg6) __API_A(arg7) __API_A(arg8) __API_A(arg9) __API_A(arg10) __API_A(arg11) __API_A(arg12) | |
| 247 | #define __API_AVAILABLE13(arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13) __API_A(arg0) __API_A(arg1) __API_A(arg2) __API_A(arg3) __API_A(arg4) __API_A(arg5) __API_A(arg6) __API_A(arg7) __API_A(arg8) __API_A(arg9) __API_A(arg10) __API_A(arg11) __API_A(arg12) __API_A(arg13) | |
| 248 | #define __API_AVAILABLE14(arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14) __API_A(arg0) __API_A(arg1) __API_A(arg2) __API_A(arg3) __API_A(arg4) __API_A(arg5) __API_A(arg6) __API_A(arg7) __API_A(arg8) __API_A(arg9) __API_A(arg10) __API_A(arg11) __API_A(arg12) __API_A(arg13) __API_A(arg14) | |
| 249 | #define __API_AVAILABLE15(arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14,arg15) __API_A(arg0) __API_A(arg1) __API_A(arg2) __API_A(arg3) __API_A(arg4) __API_A(arg5) __API_A(arg6) __API_A(arg7) __API_A(arg8) __API_A(arg9) __API_A(arg10) __API_A(arg11) __API_A(arg12) __API_A(arg13) __API_A(arg14) __API_A(arg15) | |
| 250 | #define __API_AVAILABLE_GET_MACRO_93585900(_0,_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11,_12,_13,_14,_15,NAME,...) NAME | |
| 243 | 251 | |
| 244 | 252 | #define __API_A_BEGIN(x) _Pragma(__API_RANGE_STRINGIFY (clang attribute (__attribute__((availability(__API_AVAILABLE_PLATFORM_##x))), apply_to = __API_APPLY_TO))) |
| 245 | 253 | |
| ... | ... | @@ -252,7 +260,14 @@ |
| 252 | 260 | #define __API_AVAILABLE_BEGIN6(arg0,arg1,arg2,arg3,arg4,arg5,arg6) __API_A_BEGIN(arg0) __API_A_BEGIN(arg1) __API_A_BEGIN(arg2) __API_A_BEGIN(arg3) __API_A_BEGIN(arg4) __API_A_BEGIN(arg5) __API_A_BEGIN(arg6) |
| 253 | 261 | #define __API_AVAILABLE_BEGIN7(arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7) __API_A_BEGIN(arg0) __API_A_BEGIN(arg1) __API_A_BEGIN(arg2) __API_A_BEGIN(arg3) __API_A_BEGIN(arg4) __API_A_BEGIN(arg5) __API_A_BEGIN(arg6) __API_A_BEGIN(arg7) |
| 254 | 262 | #define __API_AVAILABLE_BEGIN8(arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8) __API_A_BEGIN(arg0) __API_A_BEGIN(arg1) __API_A_BEGIN(arg2) __API_A_BEGIN(arg3) __API_A_BEGIN(arg4) __API_A_BEGIN(arg5) __API_A_BEGIN(arg6) __API_A_BEGIN(arg7) __API_A_BEGIN(arg8) |
| 255 | #define __API_AVAILABLE_BEGIN_GET_MACRO(_0,_1,_2,_3,_4,_5,_6,_7,_8,NAME,...) NAME | |
| 263 | #define __API_AVAILABLE_BEGIN9(arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9) __API_A_BEGIN(arg0) __API_A_BEGIN(arg1) __API_A_BEGIN(arg2) __API_A_BEGIN(arg3) __API_A_BEGIN(arg4) __API_A_BEGIN(arg5) __API_A_BEGIN(arg6) __API_A_BEGIN(arg7) __API_A_BEGIN(arg8) __API_A_BEGIN(arg9) | |
| 264 | #define __API_AVAILABLE_BEGIN10(arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10) __API_A_BEGIN(arg0) __API_A_BEGIN(arg1) __API_A_BEGIN(arg2) __API_A_BEGIN(arg3) __API_A_BEGIN(arg4) __API_A_BEGIN(arg5) __API_A_BEGIN(arg6) __API_A_BEGIN(arg7) __API_A_BEGIN(arg8) __API_A_BEGIN(arg9) __API_A_BEGIN(arg10) | |
| 265 | #define __API_AVAILABLE_BEGIN11(arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11) __API_A_BEGIN(arg0) __API_A_BEGIN(arg1) __API_A_BEGIN(arg2) __API_A_BEGIN(arg3) __API_A_BEGIN(arg4) __API_A_BEGIN(arg5) __API_A_BEGIN(arg6) __API_A_BEGIN(arg7) __API_A_BEGIN(arg8) __API_A_BEGIN(arg9) __API_A_BEGIN(arg10) __API_A_BEGIN(arg11) | |
| 266 | #define __API_AVAILABLE_BEGIN12(arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12) __API_A_BEGIN(arg0) __API_A_BEGIN(arg1) __API_A_BEGIN(arg2) __API_A_BEGIN(arg3) __API_A_BEGIN(arg4) __API_A_BEGIN(arg5) __API_A_BEGIN(arg6) __API_A_BEGIN(arg7) __API_A_BEGIN(arg8) __API_A_BEGIN(arg9) __API_A_BEGIN(arg10) __API_A_BEGIN(arg11) __API_A_BEGIN(arg12) | |
| 267 | #define __API_AVAILABLE_BEGIN13(arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13) __API_A_BEGIN(arg0) __API_A_BEGIN(arg1) __API_A_BEGIN(arg2) __API_A_BEGIN(arg3) __API_A_BEGIN(arg4) __API_A_BEGIN(arg5) __API_A_BEGIN(arg6) __API_A_BEGIN(arg7) __API_A_BEGIN(arg8) __API_A_BEGIN(arg9) __API_A_BEGIN(arg10) __API_A_BEGIN(arg11) __API_A_BEGIN(arg12) __API_A_BEGIN(arg13) | |
| 268 | #define __API_AVAILABLE_BEGIN14(arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14) __API_A_BEGIN(arg0) __API_A_BEGIN(arg1) __API_A_BEGIN(arg2) __API_A_BEGIN(arg3) __API_A_BEGIN(arg4) __API_A_BEGIN(arg5) __API_A_BEGIN(arg6) __API_A_BEGIN(arg7) __API_A_BEGIN(arg8) __API_A_BEGIN(arg9) __API_A_BEGIN(arg10) __API_A_BEGIN(arg11) __API_A_BEGIN(arg12) __API_A_BEGIN(arg13) __API_A_BEGIN(arg14) | |
| 269 | #define __API_AVAILABLE_BEGIN15(arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14,arg15) __API_A_BEGIN(arg0) __API_A_BEGIN(arg1) __API_A_BEGIN(arg2) __API_A_BEGIN(arg3) __API_A_BEGIN(arg4) __API_A_BEGIN(arg5) __API_A_BEGIN(arg6) __API_A_BEGIN(arg7) __API_A_BEGIN(arg8) __API_A_BEGIN(arg9) __API_A_BEGIN(arg10) __API_A_BEGIN(arg11) __API_A_BEGIN(arg12) __API_A_BEGIN(arg13) __API_A_BEGIN(arg14) __API_A_BEGIN(arg15) | |
| 270 | #define __API_AVAILABLE_BEGIN_GET_MACRO_93585900(_0,_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11,_12,_13,_14,_15,NAME,...) NAME | |
| 256 | 271 | |
| 257 | 272 | |
| 258 | 273 | |
| ... | ... | @@ -267,7 +282,14 @@ |
| 267 | 282 | #define __API_DEPRECATED_MSG6(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6) __API_D(msg,arg0) __API_D(msg,arg1) __API_D(msg,arg2) __API_D(msg,arg3) __API_D(msg,arg4) __API_D(msg,arg5) __API_D(msg,arg6) |
| 268 | 283 | #define __API_DEPRECATED_MSG7(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7) __API_D(msg,arg0) __API_D(msg,arg1) __API_D(msg,arg2) __API_D(msg,arg3) __API_D(msg,arg4) __API_D(msg,arg5) __API_D(msg,arg6) __API_D(msg,arg7) |
| 269 | 284 | #define __API_DEPRECATED_MSG8(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8) __API_D(msg,arg0) __API_D(msg,arg1) __API_D(msg,arg2) __API_D(msg,arg3) __API_D(msg,arg4) __API_D(msg,arg5) __API_D(msg,arg6) __API_D(msg,arg7) __API_D(msg,arg8) |
| 270 | #define __API_DEPRECATED_MSG_GET_MACRO(_0,_1,_2,_3,_4,_5,_6,_7,_8,_9,NAME,...) NAME | |
| 285 | #define __API_DEPRECATED_MSG9(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9) __API_D(msg,arg0) __API_D(msg,arg1) __API_D(msg,arg2) __API_D(msg,arg3) __API_D(msg,arg4) __API_D(msg,arg5) __API_D(msg,arg6) __API_D(msg,arg7) __API_D(msg,arg8) __API_D(msg,arg9) | |
| 286 | #define __API_DEPRECATED_MSG10(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10) __API_D(msg,arg0) __API_D(msg,arg1) __API_D(msg,arg2) __API_D(msg,arg3) __API_D(msg,arg4) __API_D(msg,arg5) __API_D(msg,arg6) __API_D(msg,arg7) __API_D(msg,arg8) __API_D(msg,arg9) __API_D(msg,arg10) | |
| 287 | #define __API_DEPRECATED_MSG11(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11) __API_D(msg,arg0) __API_D(msg,arg1) __API_D(msg,arg2) __API_D(msg,arg3) __API_D(msg,arg4) __API_D(msg,arg5) __API_D(msg,arg6) __API_D(msg,arg7) __API_D(msg,arg8) __API_D(msg,arg9) __API_D(msg,arg10) __API_D(msg,arg11) | |
| 288 | #define __API_DEPRECATED_MSG12(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12) __API_D(msg,arg0) __API_D(msg,arg1) __API_D(msg,arg2) __API_D(msg,arg3) __API_D(msg,arg4) __API_D(msg,arg5) __API_D(msg,arg6) __API_D(msg,arg7) __API_D(msg,arg8) __API_D(msg,arg9) __API_D(msg,arg10) __API_D(msg,arg11) __API_D(msg,arg12) | |
| 289 | #define __API_DEPRECATED_MSG13(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13) __API_D(msg,arg0) __API_D(msg,arg1) __API_D(msg,arg2) __API_D(msg,arg3) __API_D(msg,arg4) __API_D(msg,arg5) __API_D(msg,arg6) __API_D(msg,arg7) __API_D(msg,arg8) __API_D(msg,arg9) __API_D(msg,arg10) __API_D(msg,arg11) __API_D(msg,arg12) __API_D(msg,arg13) | |
| 290 | #define __API_DEPRECATED_MSG14(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14) __API_D(msg,arg0) __API_D(msg,arg1) __API_D(msg,arg2) __API_D(msg,arg3) __API_D(msg,arg4) __API_D(msg,arg5) __API_D(msg,arg6) __API_D(msg,arg7) __API_D(msg,arg8) __API_D(msg,arg9) __API_D(msg,arg10) __API_D(msg,arg11) __API_D(msg,arg12) __API_D(msg,arg13) __API_D(msg,arg14) | |
| 291 | #define __API_DEPRECATED_MSG15(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14,arg15) __API_D(msg,arg0) __API_D(msg,arg1) __API_D(msg,arg2) __API_D(msg,arg3) __API_D(msg,arg4) __API_D(msg,arg5) __API_D(msg,arg6) __API_D(msg,arg7) __API_D(msg,arg8) __API_D(msg,arg9) __API_D(msg,arg10) __API_D(msg,arg11) __API_D(msg,arg12) __API_D(msg,arg13) __API_D(msg,arg14) __API_D(msg,arg15) | |
| 292 | #define __API_DEPRECATED_MSG_GET_MACRO_93585900(_0,_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11,_12,_13,_14,_15,_16,NAME,...) NAME | |
| 271 | 293 | |
| 272 | 294 | #define __API_D_BEGIN(msg, x) _Pragma(__API_RANGE_STRINGIFY (clang attribute (__attribute__((availability(__API_DEPRECATED_PLATFORM_##x,message=msg))), apply_to = __API_APPLY_TO))) |
| 273 | 295 | |
| ... | ... | @@ -280,41 +302,152 @@ |
| 280 | 302 | #define __API_DEPRECATED_BEGIN6(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6) __API_D_BEGIN(msg,arg0) __API_D_BEGIN(msg,arg1) __API_D_BEGIN(msg,arg2) __API_D_BEGIN(msg,arg3) __API_D_BEGIN(msg,arg4) __API_D_BEGIN(msg,arg5) __API_D_BEGIN(msg,arg6) |
| 281 | 303 | #define __API_DEPRECATED_BEGIN7(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7) __API_D_BEGIN(msg,arg0) __API_D_BEGIN(msg,arg1) __API_D_BEGIN(msg,arg2) __API_D_BEGIN(msg,arg3) __API_D_BEGIN(msg,arg4) __API_D_BEGIN(msg,arg5) __API_D_BEGIN(msg,arg6) __API_D_BEGIN(msg,arg7) |
| 282 | 304 | #define __API_DEPRECATED_BEGIN8(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8) __API_D_BEGIN(msg,arg0) __API_D_BEGIN(msg,arg1) __API_D_BEGIN(msg,arg2) __API_D_BEGIN(msg,arg3) __API_D_BEGIN(msg,arg4) __API_D_BEGIN(msg,arg5) __API_D_BEGIN(msg,arg6) __API_D_BEGIN(msg,arg7) __API_D_BEGIN(msg,arg8) |
| 283 | #define __API_DEPRECATED_BEGIN_GET_MACRO(_0,_1,_2,_3,_4,_5,_6,_7,_8,_9,NAME,...) NAME | |
| 305 | #define __API_DEPRECATED_BEGIN9(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9) __API_D_BEGIN(msg,arg0) __API_D_BEGIN(msg,arg1) __API_D_BEGIN(msg,arg2) __API_D_BEGIN(msg,arg3) __API_D_BEGIN(msg,arg4) __API_D_BEGIN(msg,arg5) __API_D_BEGIN(msg,arg6) __API_D_BEGIN(msg,arg7) __API_D_BEGIN(msg,arg8) __API_D_BEGIN(msg,arg9) | |
| 306 | #define __API_DEPRECATED_BEGIN10(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10) __API_D_BEGIN(msg,arg0) __API_D_BEGIN(msg,arg1) __API_D_BEGIN(msg,arg2) __API_D_BEGIN(msg,arg3) __API_D_BEGIN(msg,arg4) __API_D_BEGIN(msg,arg5) __API_D_BEGIN(msg,arg6) __API_D_BEGIN(msg,arg7) __API_D_BEGIN(msg,arg8) __API_D_BEGIN(msg,arg9) __API_D_BEGIN(msg,arg10) | |
| 307 | #define __API_DEPRECATED_BEGIN11(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11) __API_D_BEGIN(msg,arg0) __API_D_BEGIN(msg,arg1) __API_D_BEGIN(msg,arg2) __API_D_BEGIN(msg,arg3) __API_D_BEGIN(msg,arg4) __API_D_BEGIN(msg,arg5) __API_D_BEGIN(msg,arg6) __API_D_BEGIN(msg,arg7) __API_D_BEGIN(msg,arg8) __API_D_BEGIN(msg,arg9) __API_D_BEGIN(msg,arg10) __API_D_BEGIN(msg,arg11) | |
| 308 | #define __API_DEPRECATED_BEGIN12(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12) __API_D_BEGIN(msg,arg0) __API_D_BEGIN(msg,arg1) __API_D_BEGIN(msg,arg2) __API_D_BEGIN(msg,arg3) __API_D_BEGIN(msg,arg4) __API_D_BEGIN(msg,arg5) __API_D_BEGIN(msg,arg6) __API_D_BEGIN(msg,arg7) __API_D_BEGIN(msg,arg8) __API_D_BEGIN(msg,arg9) __API_D_BEGIN(msg,arg10) __API_D_BEGIN(msg,arg11) __API_D_BEGIN(msg,arg12) | |
| 309 | #define __API_DEPRECATED_BEGIN13(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13) __API_D_BEGIN(msg,arg0) __API_D_BEGIN(msg,arg1) __API_D_BEGIN(msg,arg2) __API_D_BEGIN(msg,arg3) __API_D_BEGIN(msg,arg4) __API_D_BEGIN(msg,arg5) __API_D_BEGIN(msg,arg6) __API_D_BEGIN(msg,arg7) __API_D_BEGIN(msg,arg8) __API_D_BEGIN(msg,arg9) __API_D_BEGIN(msg,arg10) __API_D_BEGIN(msg,arg11) __API_D_BEGIN(msg,arg12) __API_D_BEGIN(msg,arg13) | |
| 310 | #define __API_DEPRECATED_BEGIN14(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14) __API_D_BEGIN(msg,arg0) __API_D_BEGIN(msg,arg1) __API_D_BEGIN(msg,arg2) __API_D_BEGIN(msg,arg3) __API_D_BEGIN(msg,arg4) __API_D_BEGIN(msg,arg5) __API_D_BEGIN(msg,arg6) __API_D_BEGIN(msg,arg7) __API_D_BEGIN(msg,arg8) __API_D_BEGIN(msg,arg9) __API_D_BEGIN(msg,arg10) __API_D_BEGIN(msg,arg11) __API_D_BEGIN(msg,arg12) __API_D_BEGIN(msg,arg13) __API_D_BEGIN(msg,arg14) | |
| 311 | #define __API_DEPRECATED_BEGIN15(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14,arg15) __API_D_BEGIN(msg,arg0) __API_D_BEGIN(msg,arg1) __API_D_BEGIN(msg,arg2) __API_D_BEGIN(msg,arg3) __API_D_BEGIN(msg,arg4) __API_D_BEGIN(msg,arg5) __API_D_BEGIN(msg,arg6) __API_D_BEGIN(msg,arg7) __API_D_BEGIN(msg,arg8) __API_D_BEGIN(msg,arg9) __API_D_BEGIN(msg,arg10) __API_D_BEGIN(msg,arg11) __API_D_BEGIN(msg,arg12) __API_D_BEGIN(msg,arg13) __API_D_BEGIN(msg,arg14) __API_D_BEGIN(msg,arg15) | |
| 312 | #define __API_DEPRECATED_BEGIN_GET_MACRO_93585900(_0,_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11,_12,_13,_14,_15,_16,NAME,...) NAME | |
| 284 | 313 | |
| 285 | 314 | #if __has_feature(attribute_availability_with_replacement) |
| 286 | #define __API_R(rep,x) __attribute__((availability(__API_DEPRECATED_PLATFORM_##x,replacement=rep))) | |
| 315 | #define __API_DR(rep,x) __attribute__((availability(__API_DEPRECATED_PLATFORM_##x,replacement=rep))) | |
| 287 | 316 | #else |
| 288 | #define __API_R(rep,x) __attribute__((availability(__API_DEPRECATED_PLATFORM_##x))) | |
| 317 | #define __API_DR(rep,x) __attribute__((availability(__API_DEPRECATED_PLATFORM_##x))) | |
| 289 | 318 | #endif |
| 290 | 319 | |
| 291 | #define __API_DEPRECATED_REP0(msg,arg0) __API_R(msg,arg0) | |
| 292 | #define __API_DEPRECATED_REP1(msg,arg0,arg1) __API_R(msg,arg0) __API_R(msg,arg1) | |
| 293 | #define __API_DEPRECATED_REP2(msg,arg0,arg1,arg2) __API_R(msg,arg0) __API_R(msg,arg1) __API_R(msg,arg2) | |
| 294 | #define __API_DEPRECATED_REP3(msg,arg0,arg1,arg2,arg3) __API_R(msg,arg0) __API_R(msg,arg1) __API_R(msg,arg2) __API_R(msg,arg3) | |
| 295 | #define __API_DEPRECATED_REP4(msg,arg0,arg1,arg2,arg3,arg4) __API_R(msg,arg0) __API_R(msg,arg1) __API_R(msg,arg2) __API_R(msg,arg3) __API_R(msg,arg4) | |
| 296 | #define __API_DEPRECATED_REP5(msg,arg0,arg1,arg2,arg3,arg4,arg5) __API_R(msg,arg0) __API_R(msg,arg1) __API_R(msg,arg2) __API_R(msg,arg3) __API_R(msg,arg4) __API_R(msg,arg5) | |
| 297 | #define __API_DEPRECATED_REP6(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6) __API_R(msg,arg0) __API_R(msg,arg1) __API_R(msg,arg2) __API_R(msg,arg3) __API_R(msg,arg4) __API_R(msg,arg5) __API_R(msg,arg6) | |
| 298 | #define __API_DEPRECATED_REP7(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7) __API_R(msg,arg0) __API_R(msg,arg1) __API_R(msg,arg2) __API_R(msg,arg3) __API_R(msg,arg4) __API_R(msg,arg5) __API_R(msg,arg6) __API_R(msg,arg7) | |
| 299 | #define __API_DEPRECATED_REP8(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8) __API_R(msg,arg0) __API_R(msg,arg1) __API_R(msg,arg2) __API_R(msg,arg3) __API_R(msg,arg4) __API_R(msg,arg5) __API_R(msg,arg6) __API_R(msg,arg7) __API_R(msg,arg8) | |
| 300 | #define __API_DEPRECATED_REP_GET_MACRO(_0,_1,_2,_3,_4,_5,_6,_7,_8,_9,NAME,...) NAME | |
| 320 | #define __API_DEPRECATED_REP0(msg,arg0) __API_DR(msg,arg0) | |
| 321 | #define __API_DEPRECATED_REP1(msg,arg0,arg1) __API_DR(msg,arg0) __API_DR(msg,arg1) | |
| 322 | #define __API_DEPRECATED_REP2(msg,arg0,arg1,arg2) __API_DR(msg,arg0) __API_DR(msg,arg1) __API_DR(msg,arg2) | |
| 323 | #define __API_DEPRECATED_REP3(msg,arg0,arg1,arg2,arg3) __API_DR(msg,arg0) __API_DR(msg,arg1) __API_DR(msg,arg2) __API_DR(msg,arg3) | |
| 324 | #define __API_DEPRECATED_REP4(msg,arg0,arg1,arg2,arg3,arg4) __API_DR(msg,arg0) __API_DR(msg,arg1) __API_DR(msg,arg2) __API_DR(msg,arg3) __API_DR(msg,arg4) | |
| 325 | #define __API_DEPRECATED_REP5(msg,arg0,arg1,arg2,arg3,arg4,arg5) __API_DR(msg,arg0) __API_DR(msg,arg1) __API_DR(msg,arg2) __API_DR(msg,arg3) __API_DR(msg,arg4) __API_DR(msg,arg5) | |
| 326 | #define __API_DEPRECATED_REP6(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6) __API_DR(msg,arg0) __API_DR(msg,arg1) __API_DR(msg,arg2) __API_DR(msg,arg3) __API_DR(msg,arg4) __API_DR(msg,arg5) __API_DR(msg,arg6) | |
| 327 | #define __API_DEPRECATED_REP7(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7) __API_DR(msg,arg0) __API_DR(msg,arg1) __API_DR(msg,arg2) __API_DR(msg,arg3) __API_DR(msg,arg4) __API_DR(msg,arg5) __API_DR(msg,arg6) __API_DR(msg,arg7) | |
| 328 | #define __API_DEPRECATED_REP8(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8) __API_DR(msg,arg0) __API_DR(msg,arg1) __API_DR(msg,arg2) __API_DR(msg,arg3) __API_DR(msg,arg4) __API_DR(msg,arg5) __API_DR(msg,arg6) __API_DR(msg,arg7) __API_DR(msg,arg8) | |
| 329 | #define __API_DEPRECATED_REP9(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9) __API_DR(msg,arg0) __API_DR(msg,arg1) __API_DR(msg,arg2) __API_DR(msg,arg3) __API_DR(msg,arg4) __API_DR(msg,arg5) __API_DR(msg,arg6) __API_DR(msg,arg7) __API_DR(msg,arg8) __API_DR(msg,arg9) | |
| 330 | #define __API_DEPRECATED_REP10(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10) __API_DR(msg,arg0) __API_DR(msg,arg1) __API_DR(msg,arg2) __API_DR(msg,arg3) __API_DR(msg,arg4) __API_DR(msg,arg5) __API_DR(msg,arg6) __API_DR(msg,arg7) __API_DR(msg,arg8) __API_DR(msg,arg9) __API_DR(msg,arg10) | |
| 331 | #define __API_DEPRECATED_REP11(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11) __API_DR(msg,arg0) __API_DR(msg,arg1) __API_DR(msg,arg2) __API_DR(msg,arg3) __API_DR(msg,arg4) __API_DR(msg,arg5) __API_DR(msg,arg6) __API_DR(msg,arg7) __API_DR(msg,arg8) __API_DR(msg,arg9) __API_DR(msg,arg10) __API_DR(msg,arg11) | |
| 332 | #define __API_DEPRECATED_REP12(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12) __API_DR(msg,arg0) __API_DR(msg,arg1) __API_DR(msg,arg2) __API_DR(msg,arg3) __API_DR(msg,arg4) __API_DR(msg,arg5) __API_DR(msg,arg6) __API_DR(msg,arg7) __API_DR(msg,arg8) __API_DR(msg,arg9) __API_DR(msg,arg10) __API_DR(msg,arg11) __API_DR(msg,arg12) | |
| 333 | #define __API_DEPRECATED_REP13(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13) __API_DR(msg,arg0) __API_DR(msg,arg1) __API_DR(msg,arg2) __API_DR(msg,arg3) __API_DR(msg,arg4) __API_DR(msg,arg5) __API_DR(msg,arg6) __API_DR(msg,arg7) __API_DR(msg,arg8) __API_DR(msg,arg9) __API_DR(msg,arg10) __API_DR(msg,arg11) __API_DR(msg,arg12) __API_DR(msg,arg13) | |
| 334 | #define __API_DEPRECATED_REP14(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14) __API_DR(msg,arg0) __API_DR(msg,arg1) __API_DR(msg,arg2) __API_DR(msg,arg3) __API_DR(msg,arg4) __API_DR(msg,arg5) __API_DR(msg,arg6) __API_DR(msg,arg7) __API_DR(msg,arg8) __API_DR(msg,arg9) __API_DR(msg,arg10) __API_DR(msg,arg11) __API_DR(msg,arg12) __API_DR(msg,arg13) __API_DR(msg,arg14) | |
| 335 | #define __API_DEPRECATED_REP15(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14,arg15) __API_DR(msg,arg0) __API_DR(msg,arg1) __API_DR(msg,arg2) __API_DR(msg,arg3) __API_DR(msg,arg4) __API_DR(msg,arg5) __API_DR(msg,arg6) __API_DR(msg,arg7) __API_DR(msg,arg8) __API_DR(msg,arg9) __API_DR(msg,arg10) __API_DR(msg,arg11) __API_DR(msg,arg12) __API_DR(msg,arg13) __API_DR(msg,arg14) __API_DR(msg,arg15) | |
| 336 | #define __API_DEPRECATED_REP_GET_MACRO_93585900(_0,_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11,_12,_13,_14,_15,_16,NAME,...) NAME | |
| 301 | 337 | |
| 302 | 338 | #if __has_feature(attribute_availability_with_replacement) |
| 303 | #define __API_R_BEGIN(rep,x) _Pragma(__API_RANGE_STRINGIFY (clang attribute (__attribute__((availability(__API_DEPRECATED_PLATFORM_##x,replacement=rep))), apply_to = __API_APPLY_TO))) | |
| 339 | #define __API_DR_BEGIN(rep,x) _Pragma(__API_RANGE_STRINGIFY (clang attribute (__attribute__((availability(__API_DEPRECATED_PLATFORM_##x,replacement=rep))), apply_to = __API_APPLY_TO))) | |
| 304 | 340 | #else |
| 305 | #define __API_R_BEGIN(rep,x) _Pragma(__API_RANGE_STRINGIFY (clang attribute (__attribute__((availability(__API_DEPRECATED_PLATFORM_##x))), apply_to = __API_APPLY_TO))) | |
| 341 | #define __API_DR_BEGIN(rep,x) _Pragma(__API_RANGE_STRINGIFY (clang attribute (__attribute__((availability(__API_DEPRECATED_PLATFORM_##x))), apply_to = __API_APPLY_TO))) | |
| 306 | 342 | #endif |
| 307 | 343 | |
| 308 | #define __API_DEPRECATED_WITH_REPLACEMENT_BEGIN0(msg,arg0) __API_R_BEGIN(msg,arg0) | |
| 309 | #define __API_DEPRECATED_WITH_REPLACEMENT_BEGIN1(msg,arg0,arg1) __API_R_BEGIN(msg,arg0) __API_R_BEGIN(msg,arg1) | |
| 310 | #define __API_DEPRECATED_WITH_REPLACEMENT_BEGIN2(msg,arg0,arg1,arg2) __API_R_BEGIN(msg,arg0) __API_R_BEGIN(msg,arg1) __API_R_BEGIN(msg,arg2) | |
| 311 | #define __API_DEPRECATED_WITH_REPLACEMENT_BEGIN3(msg,arg0,arg1,arg2,arg3) __API_R_BEGIN(msg,arg0) __API_R_BEGIN(msg,arg1) __API_R_BEGIN(msg,arg2) __API_R_BEGIN(msg,arg3) | |
| 312 | #define __API_DEPRECATED_WITH_REPLACEMENT_BEGIN4(msg,arg0,arg1,arg2,arg3,arg4) __API_R_BEGIN(msg,arg0) __API_R_BEGIN(msg,arg1) __API_R_BEGIN(msg,arg2) __API_R_BEGIN(msg,arg3) __API_R_BEGIN(msg,arg4) | |
| 313 | #define __API_DEPRECATED_WITH_REPLACEMENT_BEGIN5(msg,arg0,arg1,arg2,arg3,arg4,arg5) __API_R_BEGIN(msg,arg0) __API_R_BEGIN(msg,arg1) __API_R_BEGIN(msg,arg2) __API_R_BEGIN(msg,arg3) __API_R_BEGIN(msg,arg4) __API_R_BEGIN(msg,arg5) | |
| 314 | #define __API_DEPRECATED_WITH_REPLACEMENT_BEGIN6(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6) __API_R_BEGIN(msg,arg0) __API_R_BEGIN(msg,arg1) __API_R_BEGIN(msg,arg2) __API_R_BEGIN(msg,arg3) __API_R_BEGIN(msg,arg4) __API_R_BEGIN(msg,arg5) __API_R_BEGIN(msg,arg6) | |
| 315 | #define __API_DEPRECATED_WITH_REPLACEMENT_BEGIN7(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7) __API_R_BEGIN(msg,arg0) __API_R_BEGIN(msg,arg1) __API_R_BEGIN(msg,arg2) __API_R_BEGIN(msg,arg3) __API_R_BEGIN(msg,arg4) __API_R_BEGIN(msg,arg5) __API_R_BEGIN(msg,arg6) __API_R_BEGIN(msg,arg7) | |
| 316 | #define __API_DEPRECATED_WITH_REPLACEMENT_BEGIN8(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8) __API_R_BEGIN(msg,arg0) __API_R_BEGIN(msg,arg1) __API_R_BEGIN(msg,arg2) __API_R_BEGIN(msg,arg3) __API_R_BEGIN(msg,arg4) __API_R_BEGIN(msg,arg5) __API_R_BEGIN(msg,arg6) __API_R_BEGIN(msg,arg7) __API_R_BEGIN(msg,arg8) | |
| 317 | #define __API_DEPRECATED_WITH_REPLACEMENT_BEGIN_GET_MACRO(_0,_1,_2,_3,_4,_5,_6,_7,_8,_9,NAME,...) NAME | |
| 344 | #define __API_DEPRECATED_WITH_REPLACEMENT_BEGIN0(msg,arg0) __API_DR_BEGIN(msg,arg0) | |
| 345 | #define __API_DEPRECATED_WITH_REPLACEMENT_BEGIN1(msg,arg0,arg1) __API_DR_BEGIN(msg,arg0) __API_DR_BEGIN(msg,arg1) | |
| 346 | #define __API_DEPRECATED_WITH_REPLACEMENT_BEGIN2(msg,arg0,arg1,arg2) __API_DR_BEGIN(msg,arg0) __API_DR_BEGIN(msg,arg1) __API_DR_BEGIN(msg,arg2) | |
| 347 | #define __API_DEPRECATED_WITH_REPLACEMENT_BEGIN3(msg,arg0,arg1,arg2,arg3) __API_DR_BEGIN(msg,arg0) __API_DR_BEGIN(msg,arg1) __API_DR_BEGIN(msg,arg2) __API_DR_BEGIN(msg,arg3) | |
| 348 | #define __API_DEPRECATED_WITH_REPLACEMENT_BEGIN4(msg,arg0,arg1,arg2,arg3,arg4) __API_DR_BEGIN(msg,arg0) __API_DR_BEGIN(msg,arg1) __API_DR_BEGIN(msg,arg2) __API_DR_BEGIN(msg,arg3) __API_DR_BEGIN(msg,arg4) | |
| 349 | #define __API_DEPRECATED_WITH_REPLACEMENT_BEGIN5(msg,arg0,arg1,arg2,arg3,arg4,arg5) __API_DR_BEGIN(msg,arg0) __API_DR_BEGIN(msg,arg1) __API_DR_BEGIN(msg,arg2) __API_DR_BEGIN(msg,arg3) __API_DR_BEGIN(msg,arg4) __API_DR_BEGIN(msg,arg5) | |
| 350 | #define __API_DEPRECATED_WITH_REPLACEMENT_BEGIN6(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6) __API_DR_BEGIN(msg,arg0) __API_DR_BEGIN(msg,arg1) __API_DR_BEGIN(msg,arg2) __API_DR_BEGIN(msg,arg3) __API_DR_BEGIN(msg,arg4) __API_DR_BEGIN(msg,arg5) __API_DR_BEGIN(msg,arg6) | |
| 351 | #define __API_DEPRECATED_WITH_REPLACEMENT_BEGIN7(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7) __API_DR_BEGIN(msg,arg0) __API_DR_BEGIN(msg,arg1) __API_DR_BEGIN(msg,arg2) __API_DR_BEGIN(msg,arg3) __API_DR_BEGIN(msg,arg4) __API_DR_BEGIN(msg,arg5) __API_DR_BEGIN(msg,arg6) __API_DR_BEGIN(msg,arg7) | |
| 352 | #define __API_DEPRECATED_WITH_REPLACEMENT_BEGIN8(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8) __API_DR_BEGIN(msg,arg0) __API_DR_BEGIN(msg,arg1) __API_DR_BEGIN(msg,arg2) __API_DR_BEGIN(msg,arg3) __API_DR_BEGIN(msg,arg4) __API_DR_BEGIN(msg,arg5) __API_DR_BEGIN(msg,arg6) __API_DR_BEGIN(msg,arg7) __API_DR_BEGIN(msg,arg8) | |
| 353 | #define __API_DEPRECATED_WITH_REPLACEMENT_BEGIN9(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9) __API_DR_BEGIN(msg,arg0) __API_DR_BEGIN(msg,arg1) __API_DR_BEGIN(msg,arg2) __API_DR_BEGIN(msg,arg3) __API_DR_BEGIN(msg,arg4) __API_DR_BEGIN(msg,arg5) __API_DR_BEGIN(msg,arg6) __API_DR_BEGIN(msg,arg7) __API_DR_BEGIN(msg,arg8) __API_DR_BEGIN(msg,arg9) | |
| 354 | #define __API_DEPRECATED_WITH_REPLACEMENT_BEGIN10(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10) __API_DR_BEGIN(msg,arg0) __API_DR_BEGIN(msg,arg1) __API_DR_BEGIN(msg,arg2) __API_DR_BEGIN(msg,arg3) __API_DR_BEGIN(msg,arg4) __API_DR_BEGIN(msg,arg5) __API_DR_BEGIN(msg,arg6) __API_DR_BEGIN(msg,arg7) __API_DR_BEGIN(msg,arg8) __API_DR_BEGIN(msg,arg9) __API_DR_BEGIN(msg,arg10) | |
| 355 | #define __API_DEPRECATED_WITH_REPLACEMENT_BEGIN11(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11) __API_DR_BEGIN(msg,arg0) __API_DR_BEGIN(msg,arg1) __API_DR_BEGIN(msg,arg2) __API_DR_BEGIN(msg,arg3) __API_DR_BEGIN(msg,arg4) __API_DR_BEGIN(msg,arg5) __API_DR_BEGIN(msg,arg6) __API_DR_BEGIN(msg,arg7) __API_DR_BEGIN(msg,arg8) __API_DR_BEGIN(msg,arg9) __API_DR_BEGIN(msg,arg10) __API_DR_BEGIN(msg,arg11) | |
| 356 | #define __API_DEPRECATED_WITH_REPLACEMENT_BEGIN12(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12) __API_DR_BEGIN(msg,arg0) __API_DR_BEGIN(msg,arg1) __API_DR_BEGIN(msg,arg2) __API_DR_BEGIN(msg,arg3) __API_DR_BEGIN(msg,arg4) __API_DR_BEGIN(msg,arg5) __API_DR_BEGIN(msg,arg6) __API_DR_BEGIN(msg,arg7) __API_DR_BEGIN(msg,arg8) __API_DR_BEGIN(msg,arg9) __API_DR_BEGIN(msg,arg10) __API_DR_BEGIN(msg,arg11) __API_DR_BEGIN(msg,arg12) | |
| 357 | #define __API_DEPRECATED_WITH_REPLACEMENT_BEGIN13(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13) __API_DR_BEGIN(msg,arg0) __API_DR_BEGIN(msg,arg1) __API_DR_BEGIN(msg,arg2) __API_DR_BEGIN(msg,arg3) __API_DR_BEGIN(msg,arg4) __API_DR_BEGIN(msg,arg5) __API_DR_BEGIN(msg,arg6) __API_DR_BEGIN(msg,arg7) __API_DR_BEGIN(msg,arg8) __API_DR_BEGIN(msg,arg9) __API_DR_BEGIN(msg,arg10) __API_DR_BEGIN(msg,arg11) __API_DR_BEGIN(msg,arg12) __API_DR_BEGIN(msg,arg13) | |
| 358 | #define __API_DEPRECATED_WITH_REPLACEMENT_BEGIN14(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14) __API_DR_BEGIN(msg,arg0) __API_DR_BEGIN(msg,arg1) __API_DR_BEGIN(msg,arg2) __API_DR_BEGIN(msg,arg3) __API_DR_BEGIN(msg,arg4) __API_DR_BEGIN(msg,arg5) __API_DR_BEGIN(msg,arg6) __API_DR_BEGIN(msg,arg7) __API_DR_BEGIN(msg,arg8) __API_DR_BEGIN(msg,arg9) __API_DR_BEGIN(msg,arg10) __API_DR_BEGIN(msg,arg11) __API_DR_BEGIN(msg,arg12) __API_DR_BEGIN(msg,arg13) __API_DR_BEGIN(msg,arg14) | |
| 359 | #define __API_DEPRECATED_WITH_REPLACEMENT_BEGIN15(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14,arg15) __API_DR_BEGIN(msg,arg0) __API_DR_BEGIN(msg,arg1) __API_DR_BEGIN(msg,arg2) __API_DR_BEGIN(msg,arg3) __API_DR_BEGIN(msg,arg4) __API_DR_BEGIN(msg,arg5) __API_DR_BEGIN(msg,arg6) __API_DR_BEGIN(msg,arg7) __API_DR_BEGIN(msg,arg8) __API_DR_BEGIN(msg,arg9) __API_DR_BEGIN(msg,arg10) __API_DR_BEGIN(msg,arg11) __API_DR_BEGIN(msg,arg12) __API_DR_BEGIN(msg,arg13) __API_DR_BEGIN(msg,arg14) __API_DR_BEGIN(msg,arg15) | |
| 360 | #define __API_DEPRECATED_WITH_REPLACEMENT_BEGIN_GET_MACRO_93585900(_0,_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11,_12,_13,_14,_15,_16,NAME,...) NAME | |
| 361 | ||
| 362 | ||
| 363 | ||
| 364 | #define __API_O(msg,x) __attribute__((availability(__API_OBSOLETED_PLATFORM_##x,message=msg))) | |
| 365 | ||
| 366 | #define __API_OBSOLETED_MSG0(msg,arg0) __API_O(msg,arg0) | |
| 367 | #define __API_OBSOLETED_MSG1(msg,arg0,arg1) __API_O(msg,arg0) __API_O(msg,arg1) | |
| 368 | #define __API_OBSOLETED_MSG2(msg,arg0,arg1,arg2) __API_O(msg,arg0) __API_O(msg,arg1) __API_O(msg,arg2) | |
| 369 | #define __API_OBSOLETED_MSG3(msg,arg0,arg1,arg2,arg3) __API_O(msg,arg0) __API_O(msg,arg1) __API_O(msg,arg2) __API_O(msg,arg3) | |
| 370 | #define __API_OBSOLETED_MSG4(msg,arg0,arg1,arg2,arg3,arg4) __API_O(msg,arg0) __API_O(msg,arg1) __API_O(msg,arg2) __API_O(msg,arg3) __API_O(msg,arg4) | |
| 371 | #define __API_OBSOLETED_MSG5(msg,arg0,arg1,arg2,arg3,arg4,arg5) __API_O(msg,arg0) __API_O(msg,arg1) __API_O(msg,arg2) __API_O(msg,arg3) __API_O(msg,arg4) __API_O(msg,arg5) | |
| 372 | #define __API_OBSOLETED_MSG6(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6) __API_O(msg,arg0) __API_O(msg,arg1) __API_O(msg,arg2) __API_O(msg,arg3) __API_O(msg,arg4) __API_O(msg,arg5) __API_O(msg,arg6) | |
| 373 | #define __API_OBSOLETED_MSG7(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7) __API_O(msg,arg0) __API_O(msg,arg1) __API_O(msg,arg2) __API_O(msg,arg3) __API_O(msg,arg4) __API_O(msg,arg5) __API_O(msg,arg6) __API_O(msg,arg7) | |
| 374 | #define __API_OBSOLETED_MSG8(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8) __API_O(msg,arg0) __API_O(msg,arg1) __API_O(msg,arg2) __API_O(msg,arg3) __API_O(msg,arg4) __API_O(msg,arg5) __API_O(msg,arg6) __API_O(msg,arg7) __API_O(msg,arg8) | |
| 375 | #define __API_OBSOLETED_MSG9(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9) __API_O(msg,arg0) __API_O(msg,arg1) __API_O(msg,arg2) __API_O(msg,arg3) __API_O(msg,arg4) __API_O(msg,arg5) __API_O(msg,arg6) __API_O(msg,arg7) __API_O(msg,arg8) __API_O(msg,arg9) | |
| 376 | #define __API_OBSOLETED_MSG10(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10) __API_O(msg,arg0) __API_O(msg,arg1) __API_O(msg,arg2) __API_O(msg,arg3) __API_O(msg,arg4) __API_O(msg,arg5) __API_O(msg,arg6) __API_O(msg,arg7) __API_O(msg,arg8) __API_O(msg,arg9) __API_O(msg,arg10) | |
| 377 | #define __API_OBSOLETED_MSG11(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11) __API_O(msg,arg0) __API_O(msg,arg1) __API_O(msg,arg2) __API_O(msg,arg3) __API_O(msg,arg4) __API_O(msg,arg5) __API_O(msg,arg6) __API_O(msg,arg7) __API_O(msg,arg8) __API_O(msg,arg9) __API_O(msg,arg10) __API_O(msg,arg11) | |
| 378 | #define __API_OBSOLETED_MSG12(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12) __API_O(msg,arg0) __API_O(msg,arg1) __API_O(msg,arg2) __API_O(msg,arg3) __API_O(msg,arg4) __API_O(msg,arg5) __API_O(msg,arg6) __API_O(msg,arg7) __API_O(msg,arg8) __API_O(msg,arg9) __API_O(msg,arg10) __API_O(msg,arg11) __API_O(msg,arg12) | |
| 379 | #define __API_OBSOLETED_MSG13(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13) __API_O(msg,arg0) __API_O(msg,arg1) __API_O(msg,arg2) __API_O(msg,arg3) __API_O(msg,arg4) __API_O(msg,arg5) __API_O(msg,arg6) __API_O(msg,arg7) __API_O(msg,arg8) __API_O(msg,arg9) __API_O(msg,arg10) __API_O(msg,arg11) __API_O(msg,arg12) __API_O(msg,arg13) | |
| 380 | #define __API_OBSOLETED_MSG14(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14) __API_O(msg,arg0) __API_O(msg,arg1) __API_O(msg,arg2) __API_O(msg,arg3) __API_O(msg,arg4) __API_O(msg,arg5) __API_O(msg,arg6) __API_O(msg,arg7) __API_O(msg,arg8) __API_O(msg,arg9) __API_O(msg,arg10) __API_O(msg,arg11) __API_O(msg,arg12) __API_O(msg,arg13) __API_O(msg,arg14) | |
| 381 | #define __API_OBSOLETED_MSG15(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14,arg15) __API_O(msg,arg0) __API_O(msg,arg1) __API_O(msg,arg2) __API_O(msg,arg3) __API_O(msg,arg4) __API_O(msg,arg5) __API_O(msg,arg6) __API_O(msg,arg7) __API_O(msg,arg8) __API_O(msg,arg9) __API_O(msg,arg10) __API_O(msg,arg11) __API_O(msg,arg12) __API_O(msg,arg13) __API_O(msg,arg14) __API_O(msg,arg15) | |
| 382 | #define __API_OBSOLETED_MSG_GET_MACRO_93585900(_0,_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11,_12,_13,_14,_15,_16,NAME,...) NAME | |
| 383 | ||
| 384 | #define __API_O_BEGIN(msg, x, y) _Pragma(__API_RANGE_STRINGIFY (clang attribute (__attribute__((availability(__API_OBSOLETED_PLATFORM_##x,message=msg))), apply_to = __API_APPLY_TO))) | |
| 385 | ||
| 386 | #define __API_OBSOLETED_BEGIN0(msg,arg0) __API_O_BEGIN(msg,arg0) | |
| 387 | #define __API_OBSOLETED_BEGIN1(msg,arg0,arg1) __API_O_BEGIN(msg,arg0) __API_O_BEGIN(msg,arg1) | |
| 388 | #define __API_OBSOLETED_BEGIN2(msg,arg0,arg1,arg2) __API_O_BEGIN(msg,arg0) __API_O_BEGIN(msg,arg1) __API_O_BEGIN(msg,arg2) | |
| 389 | #define __API_OBSOLETED_BEGIN3(msg,arg0,arg1,arg2,arg3) __API_O_BEGIN(msg,arg0) __API_O_BEGIN(msg,arg1) __API_O_BEGIN(msg,arg2) __API_O_BEGIN(msg,arg3) | |
| 390 | #define __API_OBSOLETED_BEGIN4(msg,arg0,arg1,arg2,arg3,arg4) __API_O_BEGIN(msg,arg0) __API_O_BEGIN(msg,arg1) __API_O_BEGIN(msg,arg2) __API_O_BEGIN(msg,arg3) __API_O_BEGIN(msg,arg4) | |
| 391 | #define __API_OBSOLETED_BEGIN5(msg,arg0,arg1,arg2,arg3,arg4,arg5) __API_O_BEGIN(msg,arg0) __API_O_BEGIN(msg,arg1) __API_O_BEGIN(msg,arg2) __API_O_BEGIN(msg,arg3) __API_O_BEGIN(msg,arg4) __API_O_BEGIN(msg,arg5) | |
| 392 | #define __API_OBSOLETED_BEGIN6(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6) __API_O_BEGIN(msg,arg0) __API_O_BEGIN(msg,arg1) __API_O_BEGIN(msg,arg2) __API_O_BEGIN(msg,arg3) __API_O_BEGIN(msg,arg4) __API_O_BEGIN(msg,arg5) __API_O_BEGIN(msg,arg6) | |
| 393 | #define __API_OBSOLETED_BEGIN7(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7) __API_O_BEGIN(msg,arg0) __API_O_BEGIN(msg,arg1) __API_O_BEGIN(msg,arg2) __API_O_BEGIN(msg,arg3) __API_O_BEGIN(msg,arg4) __API_O_BEGIN(msg,arg5) __API_O_BEGIN(msg,arg6) __API_O_BEGIN(msg,arg7) | |
| 394 | #define __API_OBSOLETED_BEGIN8(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8) __API_O_BEGIN(msg,arg0) __API_O_BEGIN(msg,arg1) __API_O_BEGIN(msg,arg2) __API_O_BEGIN(msg,arg3) __API_O_BEGIN(msg,arg4) __API_O_BEGIN(msg,arg5) __API_O_BEGIN(msg,arg6) __API_O_BEGIN(msg,arg7) __API_O_BEGIN(msg,arg8) | |
| 395 | #define __API_OBSOLETED_BEGIN9(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9) __API_O_BEGIN(msg,arg0) __API_O_BEGIN(msg,arg1) __API_O_BEGIN(msg,arg2) __API_O_BEGIN(msg,arg3) __API_O_BEGIN(msg,arg4) __API_O_BEGIN(msg,arg5) __API_O_BEGIN(msg,arg6) __API_O_BEGIN(msg,arg7) __API_O_BEGIN(msg,arg8) __API_O_BEGIN(msg,arg9) | |
| 396 | #define __API_OBSOLETED_BEGIN10(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10) __API_O_BEGIN(msg,arg0) __API_O_BEGIN(msg,arg1) __API_O_BEGIN(msg,arg2) __API_O_BEGIN(msg,arg3) __API_O_BEGIN(msg,arg4) __API_O_BEGIN(msg,arg5) __API_O_BEGIN(msg,arg6) __API_O_BEGIN(msg,arg7) __API_O_BEGIN(msg,arg8) __API_O_BEGIN(msg,arg9) __API_O_BEGIN(msg,arg10) | |
| 397 | #define __API_OBSOLETED_BEGIN11(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11) __API_O_BEGIN(msg,arg0) __API_O_BEGIN(msg,arg1) __API_O_BEGIN(msg,arg2) __API_O_BEGIN(msg,arg3) __API_O_BEGIN(msg,arg4) __API_O_BEGIN(msg,arg5) __API_O_BEGIN(msg,arg6) __API_O_BEGIN(msg,arg7) __API_O_BEGIN(msg,arg8) __API_O_BEGIN(msg,arg9) __API_O_BEGIN(msg,arg10) __API_O_BEGIN(msg,arg11) | |
| 398 | #define __API_OBSOLETED_BEGIN12(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12) __API_O_BEGIN(msg,arg0) __API_O_BEGIN(msg,arg1) __API_O_BEGIN(msg,arg2) __API_O_BEGIN(msg,arg3) __API_O_BEGIN(msg,arg4) __API_O_BEGIN(msg,arg5) __API_O_BEGIN(msg,arg6) __API_O_BEGIN(msg,arg7) __API_O_BEGIN(msg,arg8) __API_O_BEGIN(msg,arg9) __API_O_BEGIN(msg,arg10) __API_O_BEGIN(msg,arg11) __API_O_BEGIN(msg,arg12) | |
| 399 | #define __API_OBSOLETED_BEGIN13(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13) __API_O_BEGIN(msg,arg0) __API_O_BEGIN(msg,arg1) __API_O_BEGIN(msg,arg2) __API_O_BEGIN(msg,arg3) __API_O_BEGIN(msg,arg4) __API_O_BEGIN(msg,arg5) __API_O_BEGIN(msg,arg6) __API_O_BEGIN(msg,arg7) __API_O_BEGIN(msg,arg8) __API_O_BEGIN(msg,arg9) __API_O_BEGIN(msg,arg10) __API_O_BEGIN(msg,arg11) __API_O_BEGIN(msg,arg12) __API_O_BEGIN(msg,arg13) | |
| 400 | #define __API_OBSOLETED_BEGIN14(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14) __API_O_BEGIN(msg,arg0) __API_O_BEGIN(msg,arg1) __API_O_BEGIN(msg,arg2) __API_O_BEGIN(msg,arg3) __API_O_BEGIN(msg,arg4) __API_O_BEGIN(msg,arg5) __API_O_BEGIN(msg,arg6) __API_O_BEGIN(msg,arg7) __API_O_BEGIN(msg,arg8) __API_O_BEGIN(msg,arg9) __API_O_BEGIN(msg,arg10) __API_O_BEGIN(msg,arg11) __API_O_BEGIN(msg,arg12) __API_O_BEGIN(msg,arg13) __API_O_BEGIN(msg,arg14) | |
| 401 | #define __API_OBSOLETED_BEGIN15(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14,arg15) __API_O_BEGIN(msg,arg0) __API_O_BEGIN(msg,arg1) __API_O_BEGIN(msg,arg2) __API_O_BEGIN(msg,arg3) __API_O_BEGIN(msg,arg4) __API_O_BEGIN(msg,arg5) __API_O_BEGIN(msg,arg6) __API_O_BEGIN(msg,arg7) __API_O_BEGIN(msg,arg8) __API_O_BEGIN(msg,arg9) __API_O_BEGIN(msg,arg10) __API_O_BEGIN(msg,arg11) __API_O_BEGIN(msg,arg12) __API_O_BEGIN(msg,arg13) __API_O_BEGIN(msg,arg14) __API_O_BEGIN(msg,arg15) | |
| 402 | #define __API_OBSOLETED_BEGIN_GET_MACRO_93585900(_0,_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11,_12,_13,_14,_15,_16,NAME,...) NAME | |
| 403 | ||
| 404 | #if __has_feature(attribute_availability_with_replacement) | |
| 405 | #define __API_OR(rep,x) __attribute__((availability(__API_OBSOLETED_PLATFORM_##x,replacement=rep))) | |
| 406 | #else | |
| 407 | #define __API_OR(rep,x) __attribute__((availability(__API_OBSOLETED_PLATFORM_##x))) | |
| 408 | #endif | |
| 409 | ||
| 410 | #define __API_OBSOLETED_REP0(msg,arg0) __API_OR(msg,arg0) | |
| 411 | #define __API_OBSOLETED_REP1(msg,arg0,arg1) __API_OR(msg,arg0) __API_OR(msg,arg1) | |
| 412 | #define __API_OBSOLETED_REP2(msg,arg0,arg1,arg2) __API_OR(msg,arg0) __API_OR(msg,arg1) __API_OR(msg,arg2) | |
| 413 | #define __API_OBSOLETED_REP3(msg,arg0,arg1,arg2,arg3) __API_OR(msg,arg0) __API_OR(msg,arg1) __API_OR(msg,arg2) __API_OR(msg,arg3) | |
| 414 | #define __API_OBSOLETED_REP4(msg,arg0,arg1,arg2,arg3,arg4) __API_OR(msg,arg0) __API_OR(msg,arg1) __API_OR(msg,arg2) __API_OR(msg,arg3) __API_OR(msg,arg4) | |
| 415 | #define __API_OBSOLETED_REP5(msg,arg0,arg1,arg2,arg3,arg4,arg5) __API_OR(msg,arg0) __API_OR(msg,arg1) __API_OR(msg,arg2) __API_OR(msg,arg3) __API_OR(msg,arg4) __API_OR(msg,arg5) | |
| 416 | #define __API_OBSOLETED_REP6(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6) __API_OR(msg,arg0) __API_OR(msg,arg1) __API_OR(msg,arg2) __API_OR(msg,arg3) __API_OR(msg,arg4) __API_OR(msg,arg5) __API_OR(msg,arg6) | |
| 417 | #define __API_OBSOLETED_REP7(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7) __API_OR(msg,arg0) __API_OR(msg,arg1) __API_OR(msg,arg2) __API_OR(msg,arg3) __API_OR(msg,arg4) __API_OR(msg,arg5) __API_OR(msg,arg6) __API_OR(msg,arg7) | |
| 418 | #define __API_OBSOLETED_REP8(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8) __API_OR(msg,arg0) __API_OR(msg,arg1) __API_OR(msg,arg2) __API_OR(msg,arg3) __API_OR(msg,arg4) __API_OR(msg,arg5) __API_OR(msg,arg6) __API_OR(msg,arg7) __API_OR(msg,arg8) | |
| 419 | #define __API_OBSOLETED_REP9(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9) __API_OR(msg,arg0) __API_OR(msg,arg1) __API_OR(msg,arg2) __API_OR(msg,arg3) __API_OR(msg,arg4) __API_OR(msg,arg5) __API_OR(msg,arg6) __API_OR(msg,arg7) __API_OR(msg,arg8) __API_OR(msg,arg9) | |
| 420 | #define __API_OBSOLETED_REP10(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10) __API_OR(msg,arg0) __API_OR(msg,arg1) __API_OR(msg,arg2) __API_OR(msg,arg3) __API_OR(msg,arg4) __API_OR(msg,arg5) __API_OR(msg,arg6) __API_OR(msg,arg7) __API_OR(msg,arg8) __API_OR(msg,arg9) __API_OR(msg,arg10) | |
| 421 | #define __API_OBSOLETED_REP11(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11) __API_OR(msg,arg0) __API_OR(msg,arg1) __API_OR(msg,arg2) __API_OR(msg,arg3) __API_OR(msg,arg4) __API_OR(msg,arg5) __API_OR(msg,arg6) __API_OR(msg,arg7) __API_OR(msg,arg8) __API_OR(msg,arg9) __API_OR(msg,arg10) __API_OR(msg,arg11) | |
| 422 | #define __API_OBSOLETED_REP12(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12) __API_OR(msg,arg0) __API_OR(msg,arg1) __API_OR(msg,arg2) __API_OR(msg,arg3) __API_OR(msg,arg4) __API_OR(msg,arg5) __API_OR(msg,arg6) __API_OR(msg,arg7) __API_OR(msg,arg8) __API_OR(msg,arg9) __API_OR(msg,arg10) __API_OR(msg,arg11) __API_OR(msg,arg12) | |
| 423 | #define __API_OBSOLETED_REP13(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13) __API_OR(msg,arg0) __API_OR(msg,arg1) __API_OR(msg,arg2) __API_OR(msg,arg3) __API_OR(msg,arg4) __API_OR(msg,arg5) __API_OR(msg,arg6) __API_OR(msg,arg7) __API_OR(msg,arg8) __API_OR(msg,arg9) __API_OR(msg,arg10) __API_OR(msg,arg11) __API_OR(msg,arg12) __API_OR(msg,arg13) | |
| 424 | #define __API_OBSOLETED_REP14(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14) __API_OR(msg,arg0) __API_OR(msg,arg1) __API_OR(msg,arg2) __API_OR(msg,arg3) __API_OR(msg,arg4) __API_OR(msg,arg5) __API_OR(msg,arg6) __API_OR(msg,arg7) __API_OR(msg,arg8) __API_OR(msg,arg9) __API_OR(msg,arg10) __API_OR(msg,arg11) __API_OR(msg,arg12) __API_OR(msg,arg13) __API_OR(msg,arg14) | |
| 425 | #define __API_OBSOLETED_REP15(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14,arg15) __API_OR(msg,arg0) __API_OR(msg,arg1) __API_OR(msg,arg2) __API_OR(msg,arg3) __API_OR(msg,arg4) __API_OR(msg,arg5) __API_OR(msg,arg6) __API_OR(msg,arg7) __API_OR(msg,arg8) __API_OR(msg,arg9) __API_OR(msg,arg10) __API_OR(msg,arg11) __API_OR(msg,arg12) __API_OR(msg,arg13) __API_OR(msg,arg14) __API_OR(msg,arg15) | |
| 426 | #define __API_OBSOLETED_REP_GET_MACRO_93585900(_0,_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11,_12,_13,_14,_15,_16,NAME,...) NAME | |
| 427 | ||
| 428 | #if __has_feature(attribute_availability_with_replacement) | |
| 429 | #define __API_OR_BEGIN(rep,x) _Pragma(__API_RANGE_STRINGIFY (clang attribute (__attribute__((availability(__API_OBSOLETED_PLATFORM_##x,replacement=rep))), apply_to = __API_APPLY_TO))) | |
| 430 | #else | |
| 431 | #define __API_OR_BEGIN(rep,x) _Pragma(__API_RANGE_STRINGIFY (clang attribute (__attribute__((availability(__API_OBSOLETED_PLATFORM_##x))), apply_to = __API_APPLY_TO))) | |
| 432 | #endif | |
| 433 | ||
| 434 | #define __API_OBSOLETED_WITH_REPLACEMENT_BEGIN0(msg,arg0) __API_R_BEGIN(msg,arg0) | |
| 435 | #define __API_OBSOLETED_WITH_REPLACEMENT_BEGIN1(msg,arg0,arg1) __API_R_BEGIN(msg,arg0) __API_R_BEGIN(msg,arg1) | |
| 436 | #define __API_OBSOLETED_WITH_REPLACEMENT_BEGIN2(msg,arg0,arg1,arg2) __API_R_BEGIN(msg,arg0) __API_R_BEGIN(msg,arg1) __API_R_BEGIN(msg,arg2) | |
| 437 | #define __API_OBSOLETED_WITH_REPLACEMENT_BEGIN3(msg,arg0,arg1,arg2,arg3) __API_R_BEGIN(msg,arg0) __API_R_BEGIN(msg,arg1) __API_R_BEGIN(msg,arg2) __API_R_BEGIN(msg,arg3) | |
| 438 | #define __API_OBSOLETED_WITH_REPLACEMENT_BEGIN4(msg,arg0,arg1,arg2,arg3,arg4) __API_R_BEGIN(msg,arg0) __API_R_BEGIN(msg,arg1) __API_R_BEGIN(msg,arg2) __API_R_BEGIN(msg,arg3) __API_R_BEGIN(msg,arg4) | |
| 439 | #define __API_OBSOLETED_WITH_REPLACEMENT_BEGIN5(msg,arg0,arg1,arg2,arg3,arg4,arg5) __API_R_BEGIN(msg,arg0) __API_R_BEGIN(msg,arg1) __API_R_BEGIN(msg,arg2) __API_R_BEGIN(msg,arg3) __API_R_BEGIN(msg,arg4) __API_R_BEGIN(msg,arg5) | |
| 440 | #define __API_OBSOLETED_WITH_REPLACEMENT_BEGIN6(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6) __API_R_BEGIN(msg,arg0) __API_R_BEGIN(msg,arg1) __API_R_BEGIN(msg,arg2) __API_R_BEGIN(msg,arg3) __API_R_BEGIN(msg,arg4) __API_R_BEGIN(msg,arg5) __API_R_BEGIN(msg,arg6) | |
| 441 | #define __API_OBSOLETED_WITH_REPLACEMENT_BEGIN7(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7) __API_R_BEGIN(msg,arg0) __API_R_BEGIN(msg,arg1) __API_R_BEGIN(msg,arg2) __API_R_BEGIN(msg,arg3) __API_R_BEGIN(msg,arg4) __API_R_BEGIN(msg,arg5) __API_R_BEGIN(msg,arg6) __API_R_BEGIN(msg,arg7) | |
| 442 | #define __API_OBSOLETED_WITH_REPLACEMENT_BEGIN8(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8) __API_R_BEGIN(msg,arg0) __API_R_BEGIN(msg,arg1) __API_R_BEGIN(msg,arg2) __API_R_BEGIN(msg,arg3) __API_R_BEGIN(msg,arg4) __API_R_BEGIN(msg,arg5) __API_R_BEGIN(msg,arg6) __API_R_BEGIN(msg,arg7) __API_R_BEGIN(msg,arg8) | |
| 443 | #define __API_OBSOLETED_WITH_REPLACEMENT_BEGIN9(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9) __API_R_BEGIN(msg,arg0) __API_R_BEGIN(msg,arg1) __API_R_BEGIN(msg,arg2) __API_R_BEGIN(msg,arg3) __API_R_BEGIN(msg,arg4) __API_R_BEGIN(msg,arg5) __API_R_BEGIN(msg,arg6) __API_R_BEGIN(msg,arg7) __API_R_BEGIN(msg,arg8) __API_R_BEGIN(msg,arg9) | |
| 444 | #define __API_OBSOLETED_WITH_REPLACEMENT_BEGIN10(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10) __API_R_BEGIN(msg,arg0) __API_R_BEGIN(msg,arg1) __API_R_BEGIN(msg,arg2) __API_R_BEGIN(msg,arg3) __API_R_BEGIN(msg,arg4) __API_R_BEGIN(msg,arg5) __API_R_BEGIN(msg,arg6) __API_R_BEGIN(msg,arg7) __API_R_BEGIN(msg,arg8) __API_R_BEGIN(msg,arg9) __API_R_BEGIN(msg,arg10) | |
| 445 | #define __API_OBSOLETED_WITH_REPLACEMENT_BEGIN11(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11) __API_R_BEGIN(msg,arg0) __API_R_BEGIN(msg,arg1) __API_R_BEGIN(msg,arg2) __API_R_BEGIN(msg,arg3) __API_R_BEGIN(msg,arg4) __API_R_BEGIN(msg,arg5) __API_R_BEGIN(msg,arg6) __API_R_BEGIN(msg,arg7) __API_R_BEGIN(msg,arg8) __API_R_BEGIN(msg,arg9) __API_R_BEGIN(msg,arg10) __API_R_BEGIN(msg,arg11) | |
| 446 | #define __API_OBSOLETED_WITH_REPLACEMENT_BEGIN12(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12) __API_R_BEGIN(msg,arg0) __API_R_BEGIN(msg,arg1) __API_R_BEGIN(msg,arg2) __API_R_BEGIN(msg,arg3) __API_R_BEGIN(msg,arg4) __API_R_BEGIN(msg,arg5) __API_R_BEGIN(msg,arg6) __API_R_BEGIN(msg,arg7) __API_R_BEGIN(msg,arg8) __API_R_BEGIN(msg,arg9) __API_R_BEGIN(msg,arg10) __API_R_BEGIN(msg,arg11) __API_R_BEGIN(msg,arg12) | |
| 447 | #define __API_OBSOLETED_WITH_REPLACEMENT_BEGIN13(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13) __API_R_BEGIN(msg,arg0) __API_R_BEGIN(msg,arg1) __API_R_BEGIN(msg,arg2) __API_R_BEGIN(msg,arg3) __API_R_BEGIN(msg,arg4) __API_R_BEGIN(msg,arg5) __API_R_BEGIN(msg,arg6) __API_R_BEGIN(msg,arg7) __API_R_BEGIN(msg,arg8) __API_R_BEGIN(msg,arg9) __API_R_BEGIN(msg,arg10) __API_R_BEGIN(msg,arg11) __API_R_BEGIN(msg,arg12) __API_R_BEGIN(msg,arg13) | |
| 448 | #define __API_OBSOLETED_WITH_REPLACEMENT_BEGIN14(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14) __API_R_BEGIN(msg,arg0) __API_R_BEGIN(msg,arg1) __API_R_BEGIN(msg,arg2) __API_R_BEGIN(msg,arg3) __API_R_BEGIN(msg,arg4) __API_R_BEGIN(msg,arg5) __API_R_BEGIN(msg,arg6) __API_R_BEGIN(msg,arg7) __API_R_BEGIN(msg,arg8) __API_R_BEGIN(msg,arg9) __API_R_BEGIN(msg,arg10) __API_R_BEGIN(msg,arg11) __API_R_BEGIN(msg,arg12) __API_R_BEGIN(msg,arg13) __API_R_BEGIN(msg,arg14) | |
| 449 | #define __API_OBSOLETED_WITH_REPLACEMENT_BEGIN15(msg,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14,arg15) __API_R_BEGIN(msg,arg0) __API_R_BEGIN(msg,arg1) __API_R_BEGIN(msg,arg2) __API_R_BEGIN(msg,arg3) __API_R_BEGIN(msg,arg4) __API_R_BEGIN(msg,arg5) __API_R_BEGIN(msg,arg6) __API_R_BEGIN(msg,arg7) __API_R_BEGIN(msg,arg8) __API_R_BEGIN(msg,arg9) __API_R_BEGIN(msg,arg10) __API_R_BEGIN(msg,arg11) __API_R_BEGIN(msg,arg12) __API_R_BEGIN(msg,arg13) __API_R_BEGIN(msg,arg14) __API_R_BEGIN(msg,arg15) | |
| 450 | #define __API_OBSOLETED_WITH_REPLACEMENT_BEGIN_GET_MACRO_93585900(_0,_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11,_12,_13,_14,_15,_16,NAME,...) NAME | |
| 318 | 451 | |
| 319 | 452 | /* |
| 320 | 453 | * API Unavailability |
| ... | ... | @@ -336,7 +469,14 @@ |
| 336 | 469 | #define __API_UNAVAILABLE6(arg0,arg1,arg2,arg3,arg4,arg5,arg6) __API_U(arg0) __API_U(arg1) __API_U(arg2) __API_U(arg3) __API_U(arg4) __API_U(arg5) __API_U(arg6) |
| 337 | 470 | #define __API_UNAVAILABLE7(arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7) __API_U(arg0) __API_U(arg1) __API_U(arg2) __API_U(arg3) __API_U(arg4) __API_U(arg5) __API_U(arg6) __API_U(arg7) |
| 338 | 471 | #define __API_UNAVAILABLE8(arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8) __API_U(arg0) __API_U(arg1) __API_U(arg2) __API_U(arg3) __API_U(arg4) __API_U(arg5) __API_U(arg6) __API_U(arg7) __API_U(arg8) |
| 339 | #define __API_UNAVAILABLE_GET_MACRO(_0,_1,_2,_3,_4,_5,_6,_7,_8,NAME,...) NAME | |
| 472 | #define __API_UNAVAILABLE9(arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9) __API_U(arg0) __API_U(arg1) __API_U(arg2) __API_U(arg3) __API_U(arg4) __API_U(arg5) __API_U(arg6) __API_U(arg7) __API_U(arg8) __API_U(arg9) | |
| 473 | #define __API_UNAVAILABLE10(arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10) __API_U(arg0) __API_U(arg1) __API_U(arg2) __API_U(arg3) __API_U(arg4) __API_U(arg5) __API_U(arg6) __API_U(arg7) __API_U(arg8) __API_U(arg9) __API_U(arg10) | |
| 474 | #define __API_UNAVAILABLE11(arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11) __API_U(arg0) __API_U(arg1) __API_U(arg2) __API_U(arg3) __API_U(arg4) __API_U(arg5) __API_U(arg6) __API_U(arg7) __API_U(arg8) __API_U(arg9) __API_U(arg10) __API_U(arg11) | |
| 475 | #define __API_UNAVAILABLE12(arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12) __API_U(arg0) __API_U(arg1) __API_U(arg2) __API_U(arg3) __API_U(arg4) __API_U(arg5) __API_U(arg6) __API_U(arg7) __API_U(arg8) __API_U(arg9) __API_U(arg10) __API_U(arg11) __API_U(arg12) | |
| 476 | #define __API_UNAVAILABLE13(arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13) __API_U(arg0) __API_U(arg1) __API_U(arg2) __API_U(arg3) __API_U(arg4) __API_U(arg5) __API_U(arg6) __API_U(arg7) __API_U(arg8) __API_U(arg9) __API_U(arg10) __API_U(arg11) __API_U(arg12) __API_U(arg13) | |
| 477 | #define __API_UNAVAILABLE14(arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14) __API_U(arg0) __API_U(arg1) __API_U(arg2) __API_U(arg3) __API_U(arg4) __API_U(arg5) __API_U(arg6) __API_U(arg7) __API_U(arg8) __API_U(arg9) __API_U(arg10) __API_U(arg11) __API_U(arg12) __API_U(arg13) __API_U(arg14) | |
| 478 | #define __API_UNAVAILABLE15(arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14,arg15) __API_U(arg0) __API_U(arg1) __API_U(arg2) __API_U(arg3) __API_U(arg4) __API_U(arg5) __API_U(arg6) __API_U(arg7) __API_U(arg8) __API_U(arg9) __API_U(arg10) __API_U(arg11) __API_U(arg12) __API_U(arg13) __API_U(arg14) __API_U(arg15) | |
| 479 | #define __API_UNAVAILABLE_GET_MACRO_93585900(_0,_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11,_12,_13,_14,_15,NAME,...) NAME | |
| 340 | 480 | |
| 341 | 481 | #define __API_U_BEGIN(x) _Pragma(__API_RANGE_STRINGIFY (clang attribute (__attribute__((availability(__API_UNAVAILABLE_PLATFORM_##x))), apply_to = __API_APPLY_TO))) |
| 342 | 482 | |
| ... | ... | @@ -349,7 +489,14 @@ |
| 349 | 489 | #define __API_UNAVAILABLE_BEGIN6(arg0,arg1,arg2,arg3,arg4,arg5,arg6) __API_U_BEGIN(arg0) __API_U_BEGIN(arg1) __API_U_BEGIN(arg2) __API_U_BEGIN(arg3) __API_U_BEGIN(arg4) __API_U_BEGIN(arg5) __API_U_BEGIN(arg6) |
| 350 | 490 | #define __API_UNAVAILABLE_BEGIN7(arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7) __API_U_BEGIN(arg0) __API_U_BEGIN(arg1) __API_U_BEGIN(arg2) __API_U_BEGIN(arg3) __API_U_BEGIN(arg4) __API_U_BEGIN(arg5) __API_U_BEGIN(arg6) __API_U_BEGIN(arg7) |
| 351 | 491 | #define __API_UNAVAILABLE_BEGIN8(arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8) __API_U_BEGIN(arg0) __API_U_BEGIN(arg1) __API_U_BEGIN(arg2) __API_U_BEGIN(arg3) __API_U_BEGIN(arg4) __API_U_BEGIN(arg5) __API_U_BEGIN(arg6) __API_U_BEGIN(arg7) __API_U_BEGIN(arg8) |
| 352 | #define __API_UNAVAILABLE_BEGIN_GET_MACRO(_0,_1,_2,_3,_4,_5,_6,_7,_8,NAME,...) NAME | |
| 492 | #define __API_UNAVAILABLE_BEGIN9(arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9) __API_U_BEGIN(arg0) __API_U_BEGIN(arg1) __API_U_BEGIN(arg2) __API_U_BEGIN(arg3) __API_U_BEGIN(arg4) __API_U_BEGIN(arg5) __API_U_BEGIN(arg6) __API_U_BEGIN(arg7) __API_U_BEGIN(arg8) __API_U_BEGIN(arg9) | |
| 493 | #define __API_UNAVAILABLE_BEGIN10(arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10) __API_U_BEGIN(arg0) __API_U_BEGIN(arg1) __API_U_BEGIN(arg2) __API_U_BEGIN(arg3) __API_U_BEGIN(arg4) __API_U_BEGIN(arg5) __API_U_BEGIN(arg6) __API_U_BEGIN(arg7) __API_U_BEGIN(arg8) __API_U_BEGIN(arg9) __API_U_BEGIN(arg10) | |
| 494 | #define __API_UNAVAILABLE_BEGIN11(arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11) __API_U_BEGIN(arg0) __API_U_BEGIN(arg1) __API_U_BEGIN(arg2) __API_U_BEGIN(arg3) __API_U_BEGIN(arg4) __API_U_BEGIN(arg5) __API_U_BEGIN(arg6) __API_U_BEGIN(arg7) __API_U_BEGIN(arg8) __API_U_BEGIN(arg9) __API_U_BEGIN(arg10) __API_U_BEGIN(arg11) | |
| 495 | #define __API_UNAVAILABLE_BEGIN12(arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12) __API_U_BEGIN(arg0) __API_U_BEGIN(arg1) __API_U_BEGIN(arg2) __API_U_BEGIN(arg3) __API_U_BEGIN(arg4) __API_U_BEGIN(arg5) __API_U_BEGIN(arg6) __API_U_BEGIN(arg7) __API_U_BEGIN(arg8) __API_U_BEGIN(arg9) __API_U_BEGIN(arg10) __API_U_BEGIN(arg11) __API_U_BEGIN(arg12) | |
| 496 | #define __API_UNAVAILABLE_BEGIN13(arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13) __API_U_BEGIN(arg0) __API_U_BEGIN(arg1) __API_U_BEGIN(arg2) __API_U_BEGIN(arg3) __API_U_BEGIN(arg4) __API_U_BEGIN(arg5) __API_U_BEGIN(arg6) __API_U_BEGIN(arg7) __API_U_BEGIN(arg8) __API_U_BEGIN(arg9) __API_U_BEGIN(arg10) __API_U_BEGIN(arg11) __API_U_BEGIN(arg12) __API_U_BEGIN(arg13) | |
| 497 | #define __API_UNAVAILABLE_BEGIN14(arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14) __API_U_BEGIN(arg0) __API_U_BEGIN(arg1) __API_U_BEGIN(arg2) __API_U_BEGIN(arg3) __API_U_BEGIN(arg4) __API_U_BEGIN(arg5) __API_U_BEGIN(arg6) __API_U_BEGIN(arg7) __API_U_BEGIN(arg8) __API_U_BEGIN(arg9) __API_U_BEGIN(arg10) __API_U_BEGIN(arg11) __API_U_BEGIN(arg12) __API_U_BEGIN(arg13) __API_U_BEGIN(arg14) | |
| 498 | #define __API_UNAVAILABLE_BEGIN15(arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14,arg15) __API_U_BEGIN(arg0) __API_U_BEGIN(arg1) __API_U_BEGIN(arg2) __API_U_BEGIN(arg3) __API_U_BEGIN(arg4) __API_U_BEGIN(arg5) __API_U_BEGIN(arg6) __API_U_BEGIN(arg7) __API_U_BEGIN(arg8) __API_U_BEGIN(arg9) __API_U_BEGIN(arg10) __API_U_BEGIN(arg11) __API_U_BEGIN(arg12) __API_U_BEGIN(arg13) __API_U_BEGIN(arg14) __API_U_BEGIN(arg15) | |
| 499 | #define __API_UNAVAILABLE_BEGIN_GET_MACRO_93585900(_0,_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11,_12,_13,_14,_15,NAME,...) NAME | |
| 353 | 500 | |
| 354 | 501 | #endif /* __has_attribute(availability) */ |
| 355 | 502 | #endif /* #if defined(__has_feature) && defined(__has_attribute) */ |
| ... | ... | @@ -375,3 +522,15 @@ |
| 375 | 522 | #endif |
| 376 | 523 | |
| 377 | 524 | #endif /* __AVAILABILITY_INTERNAL__ */ |
| 525 | ||
| 526 | ||
| 527 | #ifndef __OPEN_SOURCE__ | |
| 528 | // This is explicitly outside the header guard | |
| 529 | #ifndef __AVAILABILITY_VERSIONS_VERSION_HASH | |
| 530 | #define __AVAILABILITY_VERSIONS_VERSION_HASH 93585900U | |
| 531 | #define __AVAILABILITY_VERSIONS_VERSION_STRING "Local" | |
| 532 | #define __AVAILABILITY_FILE "AvailabilityInternal.h" | |
| 533 | #elif __AVAILABILITY_VERSIONS_VERSION_HASH != 93585900U | |
| 534 | #pragma GCC error "Already found AvailabilityVersions version " __AVAILABILITY_FILE " from " __AVAILABILITY_VERSIONS_VERSION_STRING ", which is incompatible with AvailabilityInternal.h from Local. Mixing and matching Availability from different SDKs is not supported" | |
| 535 | #endif /* __AVAILABILITY_VERSIONS_VERSION_HASH */ | |
| 536 | #endif /* __OPEN_SOURCE__ */ |
lib/libc/include/any-macos-any/AvailabilityVersions.h+50| ... | ... | @@ -80,15 +80,21 @@ |
| 80 | 80 | #define __MAC_13_4 130400 |
| 81 | 81 | #define __MAC_13_5 130500 |
| 82 | 82 | #define __MAC_13_6 130600 |
| 83 | #define __MAC_13_7 130700 | |
| 83 | 84 | #define __MAC_14_0 140000 |
| 84 | 85 | #define __MAC_14_1 140100 |
| 85 | 86 | #define __MAC_14_2 140200 |
| 86 | 87 | #define __MAC_14_3 140300 |
| 87 | 88 | #define __MAC_14_4 140400 |
| 88 | 89 | #define __MAC_14_5 140500 |
| 90 | #define __MAC_14_6 140600 | |
| 91 | #define __MAC_14_7 140700 | |
| 89 | 92 | #define __MAC_15_0 150000 |
| 90 | 93 | #define __MAC_15_1 150100 |
| 91 | 94 | #define __MAC_15_2 150200 |
| 95 | #define __MAC_15_3 150300 | |
| 96 | #define __MAC_15_4 150400 | |
| 97 | #define __MAC_15_5 150500 | |
| 92 | 98 | /* __MAC__NA is not defined to a value but is used as a token by macros to indicate that the API is unavailable */ |
| 93 | 99 | |
| 94 | 100 | #define __IPHONE_2_0 20000 |
| ... | ... | @@ -171,9 +177,14 @@ |
| 171 | 177 | #define __IPHONE_17_3 170300 |
| 172 | 178 | #define __IPHONE_17_4 170400 |
| 173 | 179 | #define __IPHONE_17_5 170500 |
| 180 | #define __IPHONE_17_6 170600 | |
| 181 | #define __IPHONE_17_7 170700 | |
| 174 | 182 | #define __IPHONE_18_0 180000 |
| 175 | 183 | #define __IPHONE_18_1 180100 |
| 176 | 184 | #define __IPHONE_18_2 180200 |
| 185 | #define __IPHONE_18_3 180300 | |
| 186 | #define __IPHONE_18_4 180400 | |
| 187 | #define __IPHONE_18_5 180500 | |
| 177 | 188 | /* __IPHONE__NA is not defined to a value but is used as a token by macros to indicate that the API is unavailable */ |
| 178 | 189 | |
| 179 | 190 | #define __WATCHOS_1_0 10000 |
| ... | ... | @@ -223,9 +234,14 @@ |
| 223 | 234 | #define __WATCHOS_10_3 100300 |
| 224 | 235 | #define __WATCHOS_10_4 100400 |
| 225 | 236 | #define __WATCHOS_10_5 100500 |
| 237 | #define __WATCHOS_10_6 100600 | |
| 238 | #define __WATCHOS_10_7 100700 | |
| 226 | 239 | #define __WATCHOS_11_0 110000 |
| 227 | 240 | #define __WATCHOS_11_1 110100 |
| 228 | 241 | #define __WATCHOS_11_2 110200 |
| 242 | #define __WATCHOS_11_3 110300 | |
| 243 | #define __WATCHOS_11_4 110400 | |
| 244 | #define __WATCHOS_11_5 110500 | |
| 229 | 245 | /* __WATCHOS__NA is not defined to a value but is used as a token by macros to indicate that the API is unavailable */ |
| 230 | 246 | |
| 231 | 247 | #define __TVOS_9_0 90000 |
| ... | ... | @@ -276,9 +292,13 @@ |
| 276 | 292 | #define __TVOS_17_3 170300 |
| 277 | 293 | #define __TVOS_17_4 170400 |
| 278 | 294 | #define __TVOS_17_5 170500 |
| 295 | #define __TVOS_17_6 170600 | |
| 279 | 296 | #define __TVOS_18_0 180000 |
| 280 | 297 | #define __TVOS_18_1 180100 |
| 281 | 298 | #define __TVOS_18_2 180200 |
| 299 | #define __TVOS_18_3 180300 | |
| 300 | #define __TVOS_18_4 180400 | |
| 301 | #define __TVOS_18_5 180500 | |
| 282 | 302 | /* __TVOS__NA is not defined to a value but is used as a token by macros to indicate that the API is unavailable */ |
| 283 | 303 | |
| 284 | 304 | #define __BRIDGEOS_2_0 20000 |
| ... | ... | @@ -308,9 +328,13 @@ |
| 308 | 328 | #define __BRIDGEOS_8_3 80300 |
| 309 | 329 | #define __BRIDGEOS_8_4 80400 |
| 310 | 330 | #define __BRIDGEOS_8_5 80500 |
| 331 | #define __BRIDGEOS_8_6 80600 | |
| 311 | 332 | #define __BRIDGEOS_9_0 90000 |
| 312 | 333 | #define __BRIDGEOS_9_1 90100 |
| 313 | 334 | #define __BRIDGEOS_9_2 90200 |
| 335 | #define __BRIDGEOS_9_3 90300 | |
| 336 | #define __BRIDGEOS_9_4 90400 | |
| 337 | #define __BRIDGEOS_9_5 90500 | |
| 314 | 338 | |
| 315 | 339 | |
| 316 | 340 | #define __DRIVERKIT_19_0 190000 |
| ... | ... | @@ -326,21 +350,31 @@ |
| 326 | 350 | #define __DRIVERKIT_23_3 230300 |
| 327 | 351 | #define __DRIVERKIT_23_4 230400 |
| 328 | 352 | #define __DRIVERKIT_23_5 230500 |
| 353 | #define __DRIVERKIT_23_6 230600 | |
| 329 | 354 | #define __DRIVERKIT_24_0 240000 |
| 330 | 355 | #define __DRIVERKIT_24_1 240100 |
| 331 | 356 | #define __DRIVERKIT_24_2 240200 |
| 357 | #define __DRIVERKIT_24_3 240300 | |
| 358 | #define __DRIVERKIT_24_4 240400 | |
| 359 | #define __DRIVERKIT_24_5 240500 | |
| 332 | 360 | /* __DRIVERKIT__NA is not defined to a value but is used as a token by macros to indicate that the API is unavailable */ |
| 333 | 361 | |
| 334 | 362 | #define __VISIONOS_1_0 10000 |
| 335 | 363 | #define __VISIONOS_1_1 10100 |
| 336 | 364 | #define __VISIONOS_1_2 10200 |
| 365 | #define __VISIONOS_1_3 10300 | |
| 337 | 366 | #define __VISIONOS_2_0 20000 |
| 338 | 367 | #define __VISIONOS_2_1 20100 |
| 339 | 368 | #define __VISIONOS_2_2 20200 |
| 369 | #define __VISIONOS_2_3 20300 | |
| 370 | #define __VISIONOS_2_4 20400 | |
| 371 | #define __VISIONOS_2_5 20500 | |
| 340 | 372 | /* __VISIONOS__NA is not defined to a value but is used as a token by macros to indicate that the API is unavailable */ |
| 341 | 373 | |
| 342 | 374 | |
| 343 | 375 | |
| 376 | /* __KERNELKIT__NA is not defined to a value but is used as a token by macros to indicate that the API is unavailable */ | |
| 377 | ||
| 344 | 378 | |
| 345 | 379 | #ifndef __OPEN_SOURCE__ |
| 346 | 380 | |
| ... | ... | @@ -408,17 +442,33 @@ |
| 408 | 442 | #define MAC_OS_VERSION_13_4 __MAC_13_4 |
| 409 | 443 | #define MAC_OS_VERSION_13_5 __MAC_13_5 |
| 410 | 444 | #define MAC_OS_VERSION_13_6 __MAC_13_6 |
| 445 | #define MAC_OS_VERSION_13_7 __MAC_13_7 | |
| 411 | 446 | #define MAC_OS_VERSION_14_0 __MAC_14_0 |
| 412 | 447 | #define MAC_OS_VERSION_14_1 __MAC_14_1 |
| 413 | 448 | #define MAC_OS_VERSION_14_2 __MAC_14_2 |
| 414 | 449 | #define MAC_OS_VERSION_14_3 __MAC_14_3 |
| 415 | 450 | #define MAC_OS_VERSION_14_4 __MAC_14_4 |
| 416 | 451 | #define MAC_OS_VERSION_14_5 __MAC_14_5 |
| 452 | #define MAC_OS_VERSION_14_6 __MAC_14_6 | |
| 453 | #define MAC_OS_VERSION_14_7 __MAC_14_7 | |
| 417 | 454 | #define MAC_OS_VERSION_15_0 __MAC_15_0 |
| 418 | 455 | #define MAC_OS_VERSION_15_1 __MAC_15_1 |
| 419 | 456 | #define MAC_OS_VERSION_15_2 __MAC_15_2 |
| 457 | #define MAC_OS_VERSION_15_3 __MAC_15_3 | |
| 458 | #define MAC_OS_VERSION_15_4 __MAC_15_4 | |
| 459 | #define MAC_OS_VERSION_15_5 __MAC_15_5 | |
| 420 | 460 | |
| 421 | 461 | #endif /* #if (!defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE)) || defined(_DARWIN_C_SOURCE) */ |
| 422 | 462 | |
| 423 | 463 | #endif /* __AVAILABILITY_VERSIONS__ */ |
| 424 | 464 | |
| 465 | #ifndef __OPEN_SOURCE__ | |
| 466 | // This is explicitly outside the header guard | |
| 467 | #ifndef __AVAILABILITY_VERSIONS_VERSION_HASH | |
| 468 | #define __AVAILABILITY_VERSIONS_VERSION_HASH 93585900U | |
| 469 | #define __AVAILABILITY_VERSIONS_VERSION_STRING "Local" | |
| 470 | #define __AVAILABILITY_FILE "AvailabilityVersions.h" | |
| 471 | #elif __AVAILABILITY_VERSIONS_VERSION_HASH != 93585900U | |
| 472 | #pragma GCC error "Already found AvailabilityVersions version " __AVAILABILITY_FILE " from " __AVAILABILITY_VERSIONS_VERSION_STRING ", which is incompatible with AvailabilityVersions.h from Local. Mixing and matching Availability from different SDKs is not supported" | |
| 473 | #endif /* __AVAILABILITY_VERSIONS_VERSION_HASH */ | |
| 474 | #endif /* __OPEN_SOURCE__ */ |
lib/libc/include/any-macos-any/Block.h+6-20| ... | ... | @@ -18,12 +18,6 @@ |
| 18 | 18 | # endif |
| 19 | 19 | #endif |
| 20 | 20 | |
| 21 | #if __has_include(<Availability.h>) | |
| 22 | #include <Availability.h> | |
| 23 | #else | |
| 24 | #define __OSX_AVAILABLE_STARTING(m,i) | |
| 25 | #endif | |
| 26 | ||
| 27 | 21 | #include <TargetConditionals.h> |
| 28 | 22 | #include <sys/cdefs.h> |
| 29 | 23 | |
| ... | ... | @@ -34,28 +28,20 @@ extern "C" { |
| 34 | 28 | // Create a heap based copy of a Block or simply add a reference to an existing one. |
| 35 | 29 | // This must be paired with Block_release to recover memory, even when running |
| 36 | 30 | // under Objective-C Garbage Collection. |
| 37 | BLOCK_EXPORT void *__single _Block_copy(const void *__single aBlock) | |
| 38 | __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_2); | |
| 31 | BLOCK_EXPORT void *__single _Block_copy(const void *__single aBlock); | |
| 39 | 32 | |
| 40 | 33 | // Lose the reference, and if heap based and last reference, recover the memory |
| 41 | BLOCK_EXPORT void _Block_release(const void *__single aBlock) | |
| 42 | __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_2); | |
| 43 | ||
| 34 | BLOCK_EXPORT void _Block_release(const void *__single aBlock); | |
| 44 | 35 | |
| 45 | 36 | // Used by the compiler. Do not call this function yourself. |
| 46 | BLOCK_EXPORT void _Block_object_assign(void *, const void *, const int) | |
| 47 | __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_2); | |
| 37 | BLOCK_EXPORT void _Block_object_assign(void *, const void *, const int); | |
| 48 | 38 | |
| 49 | 39 | // Used by the compiler. Do not call this function yourself. |
| 50 | BLOCK_EXPORT void _Block_object_dispose(const void *, const int) | |
| 51 | __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_2); | |
| 40 | BLOCK_EXPORT void _Block_object_dispose(const void *, const int); | |
| 52 | 41 | |
| 53 | 42 | // Used by the compiler. Do not use these variables yourself. |
| 54 | BLOCK_EXPORT void * _NSConcreteGlobalBlock[32] | |
| 55 | __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_2); | |
| 56 | BLOCK_EXPORT void * _NSConcreteStackBlock[32] | |
| 57 | __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_2); | |
| 58 | ||
| 43 | BLOCK_EXPORT void * _NSConcreteGlobalBlock[32]; | |
| 44 | BLOCK_EXPORT void * _NSConcreteStackBlock[32]; | |
| 59 | 45 | |
| 60 | 46 | #if __cplusplus |
| 61 | 47 | } |
lib/libc/include/any-macos-any/TargetConditionals.h+1-1| ... | ... | @@ -175,7 +175,7 @@ |
| 175 | 175 | |
| 176 | 176 | |
| 177 | 177 | /* "-target=arm64e-apple-xros1.0[-simulator]" */ |
| 178 | #if __is_target_vendor(apple) && __is_target_os(xros) | |
| 178 | #if __is_target_vendor(apple) && __is_target_os(xros) && (!__is_target_environment(exclavekit) && !__is_target_environment(exclavecore)) | |
| 179 | 179 | #define TARGET_OS_MAC 1 |
| 180 | 180 | #define TARGET_OS_IPHONE 1 |
| 181 | 181 |
lib/libc/include/any-macos-any/___wctype.h+3| ... | ... | @@ -56,11 +56,14 @@ |
| 56 | 56 | #define ___WCTYPE_H_ |
| 57 | 57 | |
| 58 | 58 | #include <sys/cdefs.h> |
| 59 | #include <_bounds.h> | |
| 59 | 60 | #include <_types.h> |
| 60 | 61 | |
| 61 | 62 | #include <sys/_types/_wint_t.h> |
| 62 | 63 | #include <_types/_wctype_t.h> |
| 63 | 64 | |
| 65 | _LIBC_SINGLE_BY_DEFAULT() | |
| 66 | ||
| 64 | 67 | #ifndef WEOF |
| 65 | 68 | #define WEOF			__DARWIN_WEOF |
| 66 | 69 | #endif |
lib/libc/include/any-macos-any/__xlocale.h+3-2| ... | ... | @@ -25,10 +25,11 @@ |
| 25 | 25 | #define __XLOCALE_H_ |
| 26 | 26 | |
| 27 | 27 | #include <sys/cdefs.h> |
| 28 | #include <_bounds.h> | |
| 28 | 29 | #include <_mb_cur_max.h> |
| 30 | #include <_types/_locale_t.h> | |
| 29 | 31 | |
| 30 | struct _xlocale; /* forward reference */ | |
| 31 | typedef struct _xlocale *		locale_t; | |
| 32 | _LIBC_SINGLE_BY_DEFAULT() | |
| 32 | 33 | |
| 33 | 34 | __BEGIN_DECLS |
| 34 | 35 | int		___mb_cur_max_l(locale_t); |
lib/libc/include/any-macos-any/_abort.h+3| ... | ... | @@ -25,6 +25,9 @@ |
| 25 | 25 | #define __ABORT_H_ |
| 26 | 26 | |
| 27 | 27 | #include <sys/cdefs.h> |
| 28 | #include <_bounds.h> | |
| 29 | ||
| 30 | _LIBC_SINGLE_BY_DEFAULT() | |
| 28 | 31 | |
| 29 | 32 | __BEGIN_DECLS |
| 30 | 33 | void	 abort(void) __cold __dead2; |
lib/libc/include/any-macos-any/_assert.h+4-1| ... | ... | @@ -43,6 +43,9 @@ |
| 43 | 43 | #define __ASSERT_H_ |
| 44 | 44 | |
| 45 | 45 | #include <sys/cdefs.h> |
| 46 | #include <_bounds.h> | |
| 47 | ||
| 48 | _LIBC_SINGLE_BY_DEFAULT() | |
| 46 | 49 | |
| 47 | 50 | #ifndef __GNUC__ |
| 48 | 51 | |
| ... | ... | @@ -69,7 +72,7 @@ __END_DECLS |
| 69 | 72 | #else |
| 70 | 73 | /* 8462256: modified __assert_rtn() replaces deprecated __eprintf() */ |
| 71 | 74 | #define __assert(e, file, line) \ |
| 72 | 	__assert_rtn ((const char *)-1L, file, line, e) | |
| 75 | 	__assert_rtn (__unsafe_forge_null_terminated(const char *, -1L), file, line, e) | |
| 73 | 76 | #endif |
| 74 | 77 | |
| 75 | 78 | #endif /* __GNUC__ */ |
lib/libc/include/any-macos-any/_bounds.h created+63| ... | ... | @@ -0,0 +1,63 @@ |
| 1 | /* | |
| 2 | * Copyright (c) 2024 Apple Inc. All rights reserved. | |
| 3 | * | |
| 4 | * @APPLE_LICENSE_HEADER_START@ | |
| 5 | * | |
| 6 | * This file contains Original Code and/or Modifications of Original Code | |
| 7 | * as defined in and that are subject to the Apple Public Source License | |
| 8 | * Version 2.0 (the 'License'). You may not use this file except in | |
| 9 | * compliance with the License. Please obtain a copy of the License at | |
| 10 | * http://www.opensource.apple.com/apsl/ and read it before using this | |
| 11 | * file. | |
| 12 | * | |
| 13 | * The Original Code and all software distributed under the License are | |
| 14 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER | |
| 15 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, | |
| 16 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, | |
| 17 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. | |
| 18 | * Please see the License for the specific language governing rights and | |
| 19 | * limitations under the License. | |
| 20 | * | |
| 21 | * @APPLE_LICENSE_HEADER_END@ | |
| 22 | */ | |
| 23 | ||
| 24 | #ifndef _LIBC_BOUNDS_H_ | |
| 25 | #define _LIBC_BOUNDS_H_ | |
| 26 | ||
| 27 | #include <sys/cdefs.h> | |
| 28 | ||
| 29 | #ifdef __LIBC_STAGED_BOUNDS_SAFETY_ATTRIBUTES /* compiler-defined */ | |
| 30 | ||
| 31 | #define _LIBC_COUNT(x)		__counted_by(x) | |
| 32 | #define _LIBC_COUNT_OR_NULL(x)	__counted_by_or_null(x) | |
| 33 | #define _LIBC_SIZE(x)		__sized_by(x) | |
| 34 | #define _LIBC_SIZE_OR_NULL(x)	__sized_by_or_null(x) | |
| 35 | #define _LIBC_ENDED_BY(x)	__ended_by(x) | |
| 36 | #define _LIBC_SINGLE		__single | |
| 37 | #define _LIBC_UNSAFE_INDEXABLE	__unsafe_indexable | |
| 38 | #define _LIBC_CSTR		__null_terminated | |
| 39 | #define _LIBC_NULL_TERMINATED __null_terminated | |
| 40 | #define _LIBC_FLEX_COUNT(FIELD, INTCOUNT)	__counted_by(FIELD) | |
| 41 | ||
| 42 | #define _LIBC_SINGLE_BY_DEFAULT()	__ptrcheck_abi_assume_single() | |
| 43 | #define _LIBC_PTRCHECK_REPLACED(R) __ptrcheck_unavailable_r(R) | |
| 44 | ||
| 45 | #else /* _LIBC_ANNOTATE_BOUNDS */ | |
| 46 | ||
| 47 | #define _LIBC_COUNT(x) | |
| 48 | #define _LIBC_COUNT_OR_NULL(x) | |
| 49 | #define _LIBC_SIZE(x) | |
| 50 | #define _LIBC_SIZE_OR_NULL(x) | |
| 51 | #define _LIBC_ENDED_BY(x) | |
| 52 | #define _LIBC_SINGLE | |
| 53 | #define _LIBC_UNSAFE_INDEXABLE | |
| 54 | #define _LIBC_CSTR | |
| 55 | #define _LIBC_NULL_TERMINATED | |
| 56 | #define _LIBC_FLEX_COUNT(FIELD, INTCOUNT)	(INTCOUNT) | |
| 57 | ||
| 58 | #define _LIBC_SINGLE_BY_DEFAULT() | |
| 59 | #define _LIBC_PTRCHECK_REPLACED(R) | |
| 60 | ||
| 61 | #endif /* _LIBC_ANNOTATE_BOUNDS */ | |
| 62 | ||
| 63 | #endif /* _LIBC_BOUNDS_H_ */ |
lib/libc/include/any-macos-any/_ctermid.h+6-1| ... | ... | @@ -25,10 +25,15 @@ |
| 25 | 25 | #define _CTERMID_H_ |
| 26 | 26 | |
| 27 | 27 | #include <sys/cdefs.h> |
| 28 | #include <_bounds.h> | |
| 29 | ||
| 30 | _LIBC_SINGLE_BY_DEFAULT() | |
| 28 | 31 | |
| 29 | 32 | __BEGIN_DECLS |
| 30 | 33 | |
| 31 | char *ctermid(char *); | |
| 34 | #define	L_ctermid	1024	/* size for ctermid(); PATH_MAX */ | |
| 35 | ||
| 36 | char *_LIBC_CSTR	ctermid(char *_LIBC_COUNT_OR_NULL(L_ctermid)); | |
| 32 | 37 | |
| 33 | 38 | __END_DECLS |
| 34 | 39 |
lib/libc/include/any-macos-any/_ctype.h+3| ... | ... | @@ -68,8 +68,11 @@ |
| 68 | 68 | #define __CTYPE_H_ |
| 69 | 69 | |
| 70 | 70 | #include <sys/cdefs.h> |
| 71 | #include <_bounds.h> | |
| 71 | 72 | #include <runetype.h> |
| 72 | 73 | |
| 74 | _LIBC_SINGLE_BY_DEFAULT() | |
| 75 | ||
| 73 | 76 | #define	_CTYPE_A	0x00000100L		/* Alpha */ |
| 74 | 77 | #define	_CTYPE_C	0x00000200L		/* Control */ |
| 75 | 78 | #define	_CTYPE_D	0x00000400L		/* Digit */ |
lib/libc/include/any-macos-any/_inttypes.h+7-4| ... | ... | @@ -221,6 +221,7 @@ |
| 221 | 221 | # define SCNxMAX __SCN_MAX_LENGTH_MODIFIER__ "x" |
| 222 | 222 | |
| 223 | 223 | #include <sys/cdefs.h> |
| 224 | #include <_bounds.h> | |
| 224 | 225 | #include <Availability.h> |
| 225 | 226 | |
| 226 | 227 | #include <_types.h> |
| ... | ... | @@ -230,6 +231,8 @@ |
| 230 | 231 | |
| 231 | 232 | __BEGIN_DECLS |
| 232 | 233 | |
| 234 | _LIBC_SINGLE_BY_DEFAULT() | |
| 235 | ||
| 233 | 236 | /* 7.8.2.1 */ |
| 234 | 237 | __OSX_AVAILABLE_STARTING(__MAC_10_4, __IPHONE_2_0) |
| 235 | 238 | extern intmax_t |
| ... | ... | @@ -249,26 +252,26 @@ imaxdiv(intmax_t __numer, intmax_t __denom); |
| 249 | 252 | __OSX_AVAILABLE_STARTING(__MAC_10_4, __IPHONE_2_0) |
| 250 | 253 | extern intmax_t |
| 251 | 254 | strtoimax(const char * __restrict __nptr, |
| 252 | 	 char ** __restrict __endptr, | |
| 255 | 	 char *_LIBC_CSTR * __restrict __endptr, | |
| 253 | 256 | 	 int __base); |
| 254 | 257 | |
| 255 | 258 | __OSX_AVAILABLE_STARTING(__MAC_10_4, __IPHONE_2_0) |
| 256 | 259 | extern uintmax_t |
| 257 | 260 | strtoumax(const char * __restrict __nptr, |
| 258 | 	 char ** __restrict __endptr, | |
| 261 | 	 char *_LIBC_CSTR * __restrict __endptr, | |
| 259 | 262 | 	 int __base); |
| 260 | 263 | |
| 261 | 264 | /* 7.8.2.4 */ |
| 262 | 265 | __OSX_AVAILABLE_STARTING(__MAC_10_4, __IPHONE_2_0) |
| 263 | 266 | extern intmax_t |
| 264 | 267 | wcstoimax(const wchar_t * __restrict __nptr, |
| 265 | 	 wchar_t ** __restrict __endptr, | |
| 268 | 	 wchar_t *_LIBC_CSTR * __restrict __endptr, | |
| 266 | 269 | 	 int __base); |
| 267 | 270 | |
| 268 | 271 | __OSX_AVAILABLE_STARTING(__MAC_10_4, __IPHONE_2_0) |
| 269 | 272 | extern uintmax_t |
| 270 | 273 | wcstoumax(const wchar_t * __restrict __nptr, |
| 271 | 	 wchar_t ** __restrict __endptr, | |
| 274 | 	 wchar_t *_LIBC_CSTR * __restrict __endptr, | |
| 272 | 275 | 	 int __base); |
| 273 | 276 | |
| 274 | 277 | /* Poison the following routines if -fshort-wchar is set */ |
lib/libc/include/any-macos-any/_langinfo.h+4-1| ... | ... | @@ -29,9 +29,12 @@ |
| 29 | 29 | #ifndef _LANGINFO_H_ |
| 30 | 30 | #define	_LANGINFO_H_ |
| 31 | 31 | |
| 32 | #include <_bounds.h> | |
| 32 | 33 | #include <_types.h> |
| 33 | 34 | #include <_types/_nl_item.h> |
| 34 | 35 | |
| 36 | _LIBC_SINGLE_BY_DEFAULT() | |
| 37 | ||
| 35 | 38 | #define	CODESET		0	/* codeset name */ |
| 36 | 39 | #define	D_T_FMT		1	/* string for formatting date and time */ |
| 37 | 40 | #define	D_FMT		2	/* date format string */ |
| ... | ... | @@ -110,7 +113,7 @@ |
| 110 | 113 | #endif |
| 111 | 114 | |
| 112 | 115 | __BEGIN_DECLS |
| 113 | char	*nl_langinfo(nl_item); | |
| 116 | char	*_LIBC_CSTR nl_langinfo(nl_item); | |
| 114 | 117 | __END_DECLS |
| 115 | 118 | |
| 116 | 119 | #endif /* !_LANGINFO_H_ */ |
lib/libc/include/any-macos-any/_locale.h+38-10| ... | ... | @@ -38,19 +38,22 @@ |
| 38 | 38 | #define __LOCALE_H_ |
| 39 | 39 | |
| 40 | 40 | #include <sys/cdefs.h> |
| 41 | #include <_bounds.h> | |
| 41 | 42 | #include <_types.h> |
| 42 | 43 | |
| 44 | _LIBC_SINGLE_BY_DEFAULT() | |
| 45 | ||
| 43 | 46 | struct lconv { |
| 44 | 	char	*decimal_point; | |
| 45 | 	char	*thousands_sep; | |
| 46 | 	char	*grouping; | |
| 47 | 	char	*int_curr_symbol; | |
| 48 | 	char	*currency_symbol; | |
| 49 | 	char	*mon_decimal_point; | |
| 50 | 	char	*mon_thousands_sep; | |
| 51 | 	char	*mon_grouping; | |
| 52 | 	char	*positive_sign; | |
| 53 | 	char	*negative_sign; | |
| 47 | 	char	*_LIBC_CSTR decimal_point; | |
| 48 | 	char	*_LIBC_CSTR thousands_sep; | |
| 49 | 	char	*_LIBC_CSTR grouping; | |
| 50 | 	char	*_LIBC_CSTR int_curr_symbol; | |
| 51 | 	char	*_LIBC_CSTR currency_symbol; | |
| 52 | 	char	*_LIBC_CSTR mon_decimal_point; | |
| 53 | 	char	*_LIBC_CSTR mon_thousands_sep; | |
| 54 | 	char	*_LIBC_CSTR mon_grouping; | |
| 55 | 	char	*_LIBC_CSTR positive_sign; | |
| 56 | 	char	*_LIBC_CSTR negative_sign; | |
| 54 | 57 | 	char	int_frac_digits; |
| 55 | 58 | 	char	frac_digits; |
| 56 | 59 | 	char	p_cs_precedes; |
| ... | ... | @@ -69,8 +72,33 @@ struct lconv { |
| 69 | 72 | |
| 70 | 73 | #include <sys/_types/_null.h> |
| 71 | 74 | |
| 75 | #define LC_ALL_MASK			( LC_COLLATE_MASK \ | |
| 76 | 					 | LC_CTYPE_MASK \ | |
| 77 | 					 | LC_MESSAGES_MASK \ | |
| 78 | 					 | LC_MONETARY_MASK \ | |
| 79 | 					 | LC_NUMERIC_MASK \ | |
| 80 | 					 | LC_TIME_MASK ) | |
| 81 | #define LC_COLLATE_MASK			(1 << 0) | |
| 82 | #define LC_CTYPE_MASK			(1 << 1) | |
| 83 | #define LC_MESSAGES_MASK		(1 << 2) | |
| 84 | #define LC_MONETARY_MASK		(1 << 3) | |
| 85 | #define LC_NUMERIC_MASK			(1 << 4) | |
| 86 | #define LC_TIME_MASK			(1 << 5) | |
| 87 | ||
| 88 | #define _LC_NUM_MASK			6 | |
| 89 | #define _LC_LAST_MASK			(1 << (_LC_NUM_MASK - 1)) | |
| 90 | ||
| 91 | #define LC_GLOBAL_LOCALE		((locale_t)-1) | |
| 92 | #define LC_C_LOCALE				((locale_t)NULL) | |
| 93 | ||
| 94 | #include <_types/_locale_t.h> | |
| 95 | ||
| 72 | 96 | __BEGIN_DECLS |
| 97 | locale_t	duplocale(locale_t); | |
| 98 | int		freelocale(locale_t); | |
| 73 | 99 | struct lconv	*localeconv(void); |
| 100 | locale_t	newlocale(int, __const char *, locale_t); | |
| 101 | locale_t	uselocale(locale_t); | |
| 74 | 102 | __END_DECLS |
| 75 | 103 | |
| 76 | 104 | #endif /* __LOCALE_H_ */ |
lib/libc/include/any-macos-any/_mb_cur_max.h+3| ... | ... | @@ -25,6 +25,9 @@ |
| 25 | 25 | #define __MB_CUR_MAX_H_ |
| 26 | 26 | |
| 27 | 27 | #include <sys/cdefs.h> |
| 28 | #include <_bounds.h> | |
| 29 | ||
| 30 | _LIBC_SINGLE_BY_DEFAULT() | |
| 28 | 31 | |
| 29 | 32 | __BEGIN_DECLS |
| 30 | 33 | int		___mb_cur_max(void); |
lib/libc/include/any-macos-any/_monetary.h+4-1| ... | ... | @@ -30,12 +30,15 @@ |
| 30 | 30 | #define	_MONETARY_H_ |
| 31 | 31 | |
| 32 | 32 | #include <sys/cdefs.h> |
| 33 | #include <_bounds.h> | |
| 33 | 34 | #include <_types.h> |
| 34 | 35 | #include <sys/_types/_size_t.h> |
| 35 | 36 | #include <sys/_types/_ssize_t.h> |
| 36 | 37 | |
| 38 | _LIBC_SINGLE_BY_DEFAULT() | |
| 39 | ||
| 37 | 40 | __BEGIN_DECLS |
| 38 | ssize_t	strfmon(char *, size_t, const char *, ...); | |
| 41 | ssize_t	strfmon(char *_LIBC_COUNT(__maxsize), size_t __maxsize, const char *, ...); | |
| 39 | 42 | __END_DECLS |
| 40 | 43 | |
| 41 | 44 | #endif /* !_MONETARY_H_ */ |
lib/libc/include/any-macos-any/_printf.h+3| ... | ... | @@ -25,6 +25,9 @@ |
| 25 | 25 | #define	__PRINTF_H_ |
| 26 | 26 | |
| 27 | 27 | #include <sys/cdefs.h> |
| 28 | #include <_bounds.h> | |
| 29 | ||
| 30 | _LIBC_SINGLE_BY_DEFAULT() | |
| 28 | 31 | |
| 29 | 32 | |
| 30 | 33 | __BEGIN_DECLS |
lib/libc/include/any-macos-any/_regex.h+15-12| ... | ... | @@ -94,10 +94,13 @@ |
| 94 | 94 | #define	_REGEX_H_ |
| 95 | 95 | #define	__REGEX_H_ |
| 96 | 96 | |
| 97 | #include <_bounds.h> | |
| 97 | 98 | #include <_types.h> |
| 98 | 99 | #include <Availability.h> |
| 99 | 100 | #include <sys/_types/_size_t.h> |
| 100 | 101 | |
| 102 | _LIBC_SINGLE_BY_DEFAULT() | |
| 103 | ||
| 101 | 104 | /*********/ |
| 102 | 105 | /* types */ |
| 103 | 106 | /*********/ |
| ... | ... | @@ -110,7 +113,7 @@ typedef __darwin_off_t regoff_t; |
| 110 | 113 | typedef struct { |
| 111 | 114 | 	int re_magic; |
| 112 | 115 | 	size_t re_nsub;		/* number of parenthesized subexpressions */ |
| 113 | 	const char *re_endp;	/* end pointer for REG_PEND */ | |
| 116 | 	const char *_LIBC_UNSAFE_INDEXABLE	re_endp;	/* end pointer for REG_PEND */ | |
| 114 | 117 | 	struct re_guts *re_g;	/* none of your business :-) */ |
| 115 | 118 | } regex_t; |
| 116 | 119 | |
| ... | ... | @@ -207,32 +210,32 @@ typedef struct { |
| 207 | 210 | |
| 208 | 211 | __BEGIN_DECLS |
| 209 | 212 | int	regcomp(regex_t * __restrict, const char * __restrict, int) __DARWIN_ALIAS(regcomp); |
| 210 | size_t	regerror(int, const regex_t * __restrict, char * __restrict, size_t) __cold; | |
| 213 | size_t	regerror(int, const regex_t * __restrict, char *_LIBC_COUNT(__errbuf_size) __restrict, size_t __errbuf_size) __cold; | |
| 211 | 214 | /* |
| 212 | 215 | * gcc under c99 mode won't compile "[ __restrict]" by itself. As a workaround, |
| 213 | 216 | * a dummy argument name is added. |
| 214 | 217 | */ |
| 215 | int	regexec(const regex_t * __restrict, const char * __restrict, size_t, | |
| 216 | 		regmatch_t __pmatch[ __restrict], int); | |
| 218 | int	regexec(const regex_t * __restrict, const char * __restrict, size_t __nmatch, | |
| 219 | 		regmatch_t __pmatch[ __restrict _LIBC_COUNT(__nmatch)], int); | |
| 217 | 220 | void	regfree(regex_t *); |
| 218 | 221 | |
| 219 | 222 | #if __DARWIN_C_LEVEL >= __DARWIN_C_FULL |
| 220 | 223 | |
| 221 | 224 | /* Darwin extensions */ |
| 222 | int	regncomp(regex_t * __restrict, const char * __restrict, size_t, int) | |
| 225 | int	regncomp(regex_t * __restrict, const char *_LIBC_COUNT(__len) __restrict, size_t __len, int) | |
| 223 | 226 | 		__OSX_AVAILABLE_STARTING(__MAC_10_8, __IPHONE_6_0); |
| 224 | int	regnexec(const regex_t * __restrict, const char * __restrict, size_t, | |
| 225 | 		size_t, regmatch_t __pmatch[ __restrict], int) | |
| 227 | int	regnexec(const regex_t * __restrict, const char *_LIBC_COUNT(__len) __restrict, size_t __len, | |
| 228 | 		size_t __nmatch, regmatch_t __pmatch[ __restrict _LIBC_COUNT(__nmatch)], int) | |
| 226 | 229 | 		__OSX_AVAILABLE_STARTING(__MAC_10_8, __IPHONE_6_0); |
| 227 | 230 | int	regwcomp(regex_t * __restrict, const wchar_t * __restrict, int) |
| 228 | 231 | 		__OSX_AVAILABLE_STARTING(__MAC_10_8, __IPHONE_6_0); |
| 229 | int	regwexec(const regex_t * __restrict, const wchar_t * __restrict, size_t, | |
| 230 | 		regmatch_t __pmatch[ __restrict], int) | |
| 232 | int	regwexec(const regex_t * __restrict, const wchar_t * __restrict, size_t __nmatch, | |
| 233 | 		regmatch_t __pmatch[ __restrict _LIBC_COUNT(__nmatch)], int) | |
| 231 | 234 | 		__OSX_AVAILABLE_STARTING(__MAC_10_8, __IPHONE_6_0); |
| 232 | int	regwncomp(regex_t * __restrict, const wchar_t * __restrict, size_t, int) | |
| 235 | int	regwncomp(regex_t * __restrict, const wchar_t * _LIBC_COUNT(__len) __restrict, size_t __len, int) | |
| 233 | 236 | 		__OSX_AVAILABLE_STARTING(__MAC_10_8, __IPHONE_6_0); |
| 234 | int	regwnexec(const regex_t * __restrict, const wchar_t * __restrict, | |
| 235 | 		size_t, size_t, regmatch_t __pmatch[ __restrict], int) | |
| 237 | int	regwnexec(const regex_t * __restrict, const wchar_t * _LIBC_COUNT(__len) __restrict, | |
| 238 | 		size_t __len, size_t __nmatch, regmatch_t __pmatch[ __restrict _LIBC_COUNT(__nmatch)], int) | |
| 236 | 239 | 		__OSX_AVAILABLE_STARTING(__MAC_10_8, __IPHONE_6_0); |
| 237 | 240 | |
| 238 | 241 | #endif /* __DARWIN_C_LEVEL >= __DARWIN_C_FULL */ |
lib/libc/include/any-macos-any/_stdio.h+32-28| ... | ... | @@ -66,6 +66,7 @@ |
| 66 | 66 | #define	_STDIO_H_ |
| 67 | 67 | #define	__STDIO_H_ |
| 68 | 68 | |
| 69 | #include <_bounds.h> | |
| 69 | 70 | #include <sys/cdefs.h> |
| 70 | 71 | #include <Availability.h> |
| 71 | 72 | |
| ... | ... | @@ -80,6 +81,8 @@ |
| 80 | 81 | #include <sys/stdio.h> |
| 81 | 82 | #include <_printf.h> |
| 82 | 83 | |
| 84 | _LIBC_SINGLE_BY_DEFAULT() | |
| 85 | ||
| 83 | 86 | typedef __darwin_off_t		fpos_t; |
| 84 | 87 | |
| 85 | 88 | #define	_FSTDIO			/* Define for new stdio with functions. */ |
| ... | ... | @@ -92,7 +95,7 @@ typedef __darwin_off_t		fpos_t; |
| 92 | 95 | |
| 93 | 96 | /* stdio buffers */ |
| 94 | 97 | struct __sbuf { |
| 95 | 	unsigned char	*_base; | |
| 98 | 	unsigned char *_LIBC_COUNT(_size)	_base; | |
| 96 | 99 | 	int		_size; |
| 97 | 100 | }; |
| 98 | 101 | |
| ... | ... | @@ -126,7 +129,7 @@ struct __sFILEX; |
| 126 | 129 | * NB: see WARNING above before changing the layout of this structure! |
| 127 | 130 | */ |
| 128 | 131 | typedef	struct __sFILE { |
| 129 | 	unsigned char *_p;	/* current position in (some) buffer */ | |
| 132 | 	unsigned char *_LIBC_UNSAFE_INDEXABLE	_p;	/* current position in (some) buffer */ | |
| 130 | 133 | 	int	_r;		/* read space left for getc() */ |
| 131 | 134 | 	int	_w;		/* write space left for putc() */ |
| 132 | 135 | 	short	_flags;		/* flags, below; this FILE is free if 0 */ |
| ... | ... | @@ -137,9 +140,9 @@ typedef	struct __sFILE { |
| 137 | 140 | 	/* operations */ |
| 138 | 141 | 	void	*_cookie;	/* cookie passed to io functions */ |
| 139 | 142 | 	int	(* _Nullable _close)(void *); |
| 140 | 	int	(* _Nullable _read) (void *, char *, int); | |
| 143 | 	int	(* _Nullable _read) (void *, char *_LIBC_COUNT(__n), int __n); | |
| 141 | 144 | 	fpos_t	(* _Nullable _seek) (void *, fpos_t, int); |
| 142 | 	int	(* _Nullable _write)(void *, const char *, int); | |
| 145 | 	int	(* _Nullable _write)(void *, const char *_LIBC_COUNT(__n), int __n); | |
| 143 | 146 | |
| 144 | 147 | 	/* separate buffer for long sequences of ungetc() */ |
| 145 | 148 | 	struct	__sbuf _ub;	/* ungetc buffer */ |
| ... | ... | @@ -233,7 +236,7 @@ int	 ferror(FILE *); |
| 233 | 236 | int	 fflush(FILE *); |
| 234 | 237 | int	 fgetc(FILE *); |
| 235 | 238 | int	 fgetpos(FILE * __restrict, fpos_t *); |
| 236 | char	*fgets(char * __restrict, int, FILE *); | |
| 239 | char *_LIBC_CSTR	fgets(char * __restrict _LIBC_COUNT(__size), int __size, FILE *); | |
| 237 | 240 | #if defined(_DARWIN_UNLIMITED_STREAMS) || defined(_DARWIN_C_SOURCE) |
| 238 | 241 | FILE	*fopen(const char * __restrict __filename, const char * __restrict __mode) __DARWIN_ALIAS_STARTING(__MAC_10_6, __IPHONE_3_2, __DARWIN_EXTSN(fopen)); |
| 239 | 242 | #else /* !_DARWIN_UNLIMITED_STREAMS && !_DARWIN_C_SOURCE */ |
| ... | ... | @@ -242,21 +245,21 @@ FILE	*fopen(const char * __restrict __filename, const char * __restrict __mode) |
| 242 | 245 | int	 fprintf(FILE * __restrict, const char * __restrict, ...) __printflike(2, 3); |
| 243 | 246 | int	 fputc(int, FILE *); |
| 244 | 247 | int	 fputs(const char * __restrict, FILE * __restrict) __DARWIN_ALIAS(fputs); |
| 245 | size_t	 fread(void * __restrict __ptr, size_t __size, size_t __nitems, FILE * __restrict __stream); | |
| 248 | size_t	 fread(void * __restrict _LIBC_SIZE(__size * __nitems) __ptr, size_t __size, size_t __nitems, FILE * __restrict __stream); | |
| 246 | 249 | FILE	*freopen(const char * __restrict, const char * __restrict, |
| 247 | 250 | 				 FILE * __restrict) __DARWIN_ALIAS(freopen); |
| 248 | 251 | int	 fscanf(FILE * __restrict, const char * __restrict, ...) __scanflike(2, 3); |
| 249 | 252 | int	 fseek(FILE *, long, int); |
| 250 | 253 | int	 fsetpos(FILE *, const fpos_t *); |
| 251 | 254 | long	 ftell(FILE *); |
| 252 | size_t	 fwrite(const void * __restrict __ptr, size_t __size, size_t __nitems, FILE * __restrict __stream) __DARWIN_ALIAS(fwrite); | |
| 255 | size_t	 fwrite(const void * __restrict _LIBC_SIZE(__size * __nitems) __ptr, size_t __size, size_t __nitems, FILE * __restrict __stream) __DARWIN_ALIAS(fwrite); | |
| 253 | 256 | int	 getc(FILE *); |
| 254 | 257 | int	 getchar(void); |
| 255 | 258 | |
| 256 | 259 | #if !defined(_POSIX_C_SOURCE) |
| 257 | 260 | __deprecated_msg("This function is provided for compatibility reasons only. Due to security concerns inherent in the design of gets(3), it is highly recommended that you use fgets(3) instead.") |
| 258 | 261 | #endif |
| 259 | char	*gets(char *); | |
| 262 | char *_LIBC_CSTR	gets(char *_LIBC_UNSAFE_INDEXABLE) _LIBC_PTRCHECK_REPLACED(fgets); | |
| 260 | 263 | |
| 261 | 264 | void	 perror(const char *) __cold; |
| 262 | 265 | int	 putc(int, FILE *); |
| ... | ... | @@ -266,14 +269,15 @@ int	 remove(const char *); |
| 266 | 269 | int	 rename (const char *__old, const char *__new); |
| 267 | 270 | void	 rewind(FILE *); |
| 268 | 271 | int	 scanf(const char * __restrict, ...) __scanflike(1, 2); |
| 269 | void	 setbuf(FILE * __restrict, char * __restrict); | |
| 270 | int	 setvbuf(FILE * __restrict, char * __restrict, int, size_t); | |
| 272 | void	 setbuf(FILE * __restrict, char * __restrict _LIBC_COUNT_OR_NULL(BUFSIZ)); | |
| 273 | int	 setvbuf(FILE * __restrict, char * __restrict _LIBC_COUNT_OR_NULL(__size), int, size_t __size); | |
| 271 | 274 | |
| 272 | 275 | __swift_unavailable("Use snprintf instead.") |
| 276 | _LIBC_PTRCHECK_REPLACED("snprintf") | |
| 273 | 277 | #if !defined(_POSIX_C_SOURCE) |
| 274 | 278 | __deprecated_msg("This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.") |
| 275 | 279 | #endif |
| 276 | int	 sprintf(char * __restrict, const char * __restrict, ...) __printflike(2, 3); | |
| 280 | int	 sprintf(char * __restrict _LIBC_UNSAFE_INDEXABLE, const char * __restrict, ...) __printflike(2, 3) _LIBC_PTRCHECK_REPLACED(snprintf); | |
| 277 | 281 | |
| 278 | 282 | int	 sscanf(const char * __restrict, const char * __restrict, ...) __scanflike(2, 3); |
| 279 | 283 | FILE	*tmpfile(void); |
| ... | ... | @@ -282,17 +286,18 @@ __swift_unavailable("Use mkstemp(3) instead.") |
| 282 | 286 | #if !defined(_POSIX_C_SOURCE) |
| 283 | 287 | __deprecated_msg("This function is provided for compatibility reasons only. Due to security concerns inherent in the design of tmpnam(3), it is highly recommended that you use mkstemp(3) instead.") |
| 284 | 288 | #endif |
| 285 | char	*tmpnam(char *); | |
| 289 | char *_LIBC_CSTR	tmpnam(char *_LIBC_COUNT(L_tmpnam)); | |
| 286 | 290 | |
| 287 | 291 | int	 ungetc(int, FILE *); |
| 288 | 292 | int	 vfprintf(FILE * __restrict, const char * __restrict, va_list) __printflike(2, 0); |
| 289 | 293 | int	 vprintf(const char * __restrict, va_list) __printflike(1, 0); |
| 290 | 294 | |
| 291 | 295 | __swift_unavailable("Use vsnprintf instead.") |
| 296 | _LIBC_PTRCHECK_REPLACED("vsnprintf") | |
| 292 | 297 | #if !defined(_POSIX_C_SOURCE) |
| 293 | 298 | __deprecated_msg("This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use vsnprintf(3) instead.") |
| 294 | 299 | #endif |
| 295 | int	 vsprintf(char * __restrict, const char * __restrict, va_list) __printflike(2, 0); | |
| 300 | int	 vsprintf(char * __restrict _LIBC_UNSAFE_INDEXABLE, const char * __restrict, va_list) __printflike(2, 0) _LIBC_PTRCHECK_REPLACED(vsnprintf); | |
| 296 | 301 | __END_DECLS |
| 297 | 302 | |
| 298 | 303 | |
| ... | ... | @@ -302,7 +307,6 @@ __END_DECLS |
| 302 | 307 | */ |
| 303 | 308 | |
| 304 | 309 | #if __DARWIN_C_LEVEL >= 198808L |
| 305 | #define	L_ctermid	1024	/* size for ctermid(); PATH_MAX */ | |
| 306 | 310 | |
| 307 | 311 | #include <_ctermid.h> |
| 308 | 312 | |
| ... | ... | @@ -398,7 +402,7 @@ __swift_unavailable("Use mkstemp(3) instead.") |
| 398 | 402 | #if !defined(_POSIX_C_SOURCE) |
| 399 | 403 | __deprecated_msg("This function is provided for compatibility reasons only. Due to security concerns inherent in the design of tempnam(3), it is highly recommended that you use mkstemp(3) instead.") |
| 400 | 404 | #endif |
| 401 | char	*tempnam(const char *__dir, const char *__prefix) __DARWIN_ALIAS(tempnam); | |
| 405 | char *_LIBC_CSTR	tempnam(const char *__dir, const char *__prefix) __DARWIN_ALIAS(tempnam); | |
| 402 | 406 | __END_DECLS |
| 403 | 407 | |
| 404 | 408 | #ifndef lint |
| ... | ... | @@ -428,10 +432,10 @@ __END_DECLS |
| 428 | 432 | |
| 429 | 433 | #if __DARWIN_C_LEVEL >= 200112L || defined(_C99_SOURCE) || defined(__cplusplus) |
| 430 | 434 | __BEGIN_DECLS |
| 431 | int	 snprintf(char * __restrict __str, size_t __size, const char * __restrict __format, ...) __printflike(3, 4); | |
| 435 | int	 snprintf(char * __restrict _LIBC_COUNT(__size) __str, size_t __size, const char * __restrict __format, ...) __printflike(3, 4); | |
| 432 | 436 | int	 vfscanf(FILE * __restrict __stream, const char * __restrict __format, va_list) __scanflike(2, 0); |
| 433 | 437 | int	 vscanf(const char * __restrict __format, va_list) __scanflike(1, 0); |
| 434 | int	 vsnprintf(char * __restrict __str, size_t __size, const char * __restrict __format, va_list) __printflike(3, 0); | |
| 438 | int	 vsnprintf(char * __restrict _LIBC_COUNT(__size) __str, size_t __size, const char * __restrict __format, va_list) __printflike(3, 0); | |
| 435 | 439 | int	 vsscanf(const char * __restrict __str, const char * __restrict __format, va_list) __scanflike(2, 0); |
| 436 | 440 | __END_DECLS |
| 437 | 441 | #endif /* __DARWIN_C_LEVEL >= 200112L || defined(_C99_SOURCE) || defined(__cplusplus) */ |
| ... | ... | @@ -448,10 +452,10 @@ __END_DECLS |
| 448 | 452 | __BEGIN_DECLS |
| 449 | 453 | int	dprintf(int, const char * __restrict, ...) __printflike(2, 3) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3); |
| 450 | 454 | int	vdprintf(int, const char * __restrict, va_list) __printflike(2, 0) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3); |
| 451 | ssize_t getdelim(char ** __restrict __linep, size_t * __restrict __linecapp, int __delimiter, FILE * __restrict __stream) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3); | |
| 452 | ssize_t getline(char ** __restrict __linep, size_t * __restrict __linecapp, FILE * __restrict __stream) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3); | |
| 453 | FILE *fmemopen(void * __restrict __buf, size_t __size, const char * __restrict __mode) __API_AVAILABLE(macos(10.13), ios(11.0), tvos(11.0), watchos(4.0)); | |
| 454 | FILE *open_memstream(char **__bufp, size_t *__sizep) __API_AVAILABLE(macos(10.13), ios(11.0), tvos(11.0), watchos(4.0)); | |
| 455 | ssize_t getdelim(char *_LIBC_COUNT(*__linecapp) *__restrict __linep, size_t * __restrict __linecapp, int __delimiter, FILE * __restrict __stream) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3); | |
| 456 | ssize_t getline(char *_LIBC_COUNT(*__linecapp) *__restrict __linep, size_t * __restrict __linecapp, FILE * __restrict __stream) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3); | |
| 457 | FILE *fmemopen(void * __restrict __buf _LIBC_SIZE(__size), size_t __size, const char * __restrict __mode) __API_AVAILABLE(macos(10.13), ios(11.0), tvos(11.0), watchos(4.0)); | |
| 458 | FILE *open_memstream(char *_LIBC_COUNT(*__sizep) *__bufp, size_t *__sizep) __API_AVAILABLE(macos(10.13), ios(11.0), tvos(11.0), watchos(4.0)); | |
| 455 | 459 | __END_DECLS |
| 456 | 460 | #endif /* __DARWIN_C_LEVEL >= 200809L */ |
| 457 | 461 | |
| ... | ... | @@ -464,22 +468,22 @@ __BEGIN_DECLS |
| 464 | 468 | extern __const int sys_nerr;		/* perror(3) external variables */ |
| 465 | 469 | extern __const char *__const sys_errlist[]; |
| 466 | 470 | |
| 467 | int	 asprintf(char ** __restrict, const char * __restrict, ...) __printflike(2, 3); | |
| 468 | char	*ctermid_r(char *); | |
| 469 | char	*fgetln(FILE *, size_t *); | |
| 471 | int	 asprintf(char *_LIBC_CSTR *__restrict, const char * __restrict, ...) __printflike(2, 3); | |
| 472 | char *_LIBC_CSTR	ctermid_r(char *_LIBC_COUNT(L_ctermid)); | |
| 473 | char *_LIBC_COUNT(*__len)	fgetln(FILE *, size_t *__len); | |
| 470 | 474 | __const char *fmtcheck(const char *, const char *) __attribute__((format_arg(2))); |
| 471 | 475 | int	 fpurge(FILE *); |
| 472 | void	 setbuffer(FILE *, char *, int); | |
| 476 | void	 setbuffer(FILE *, char *_LIBC_COUNT_OR_NULL(__size), int __size); | |
| 473 | 477 | int	 setlinebuf(FILE *); |
| 474 | int	 vasprintf(char ** __restrict, const char * __restrict, va_list) __printflike(2, 0); | |
| 478 | int	 vasprintf(char *_LIBC_CSTR *__restrict, const char * __restrict, va_list) __printflike(2, 0); | |
| 475 | 479 | |
| 476 | 480 | |
| 477 | 481 | /* |
| 478 | 482 | * Stdio function-access interface. |
| 479 | 483 | */ |
| 480 | 484 | FILE	*funopen(const void *, |
| 481 | 				 int (* _Nullable)(void *, char *, int), | |
| 482 | 				 int (* _Nullable)(void *, const char *, int), | |
| 485 | 				 int (* _Nullable)(void *, char *_LIBC_COUNT(__n), int __n), | |
| 486 | 				 int (* _Nullable)(void *, const char *_LIBC_COUNT(__n), int __n), | |
| 483 | 487 | 				 fpos_t (* _Nullable)(void *, fpos_t, int), |
| 484 | 488 | 				 int (* _Nullable)(void *)); |
| 485 | 489 | __END_DECLS |
lib/libc/include/any-macos-any/_stdlib.h+80-60| ... | ... | @@ -58,14 +58,31 @@ |
| 58 | 58 | #ifndef _STDLIB_H_ |
| 59 | 59 | #define _STDLIB_H_ |
| 60 | 60 | |
| 61 | #define _LIBC_COUNT__MB_LEN_MAX	_LIBC_UNSAFE_INDEXABLE | |
| 62 | #define _LIBC_COUNT__PATH_MAX	_LIBC_UNSAFE_INDEXABLE | |
| 63 | ||
| 61 | 64 | #include <Availability.h> |
| 62 | 65 | #include <sys/cdefs.h> |
| 63 | 66 | |
| 67 | #include <_bounds.h> | |
| 64 | 68 | #include <_types.h> |
| 65 | 69 | #if !defined(_ANSI_SOURCE) |
| 66 | 70 | #include <sys/wait.h> |
| 67 | 71 | #if (!defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)) |
| 68 | 72 | #include <alloca.h> |
| 73 | #if defined(__LIBC_STAGED_BOUNDS_SAFETY_ATTRIBUTES) && __has_ptrcheck | |
| 74 | ||
| 75 | /* required for bounds annotations, but brings in unexpected names and may | |
| 76 | * need adoption work from clients */ | |
| 77 | #include <limits.h> /* for MB_LEN_MAX */ | |
| 78 | #include <sys/syslimits.h> /* for PATH_MAX */ | |
| 79 | ||
| 80 | #undef _LIBC_COUNT__MB_LEN_MAX | |
| 81 | #undef _LIBC_COUNT__PATH_MAX | |
| 82 | #define _LIBC_COUNT__MB_LEN_MAX	_LIBC_COUNT(MB_LEN_MAX) | |
| 83 | #define _LIBC_COUNT__PATH_MAX	_LIBC_COUNT_OR_NULL(PATH_MAX) | |
| 84 | ||
| 85 | #endif /* defined(__LIBC_STAGED_BOUNDS_SAFETY_ATTRIBUTES) && __has_ptrcheck */ | |
| 69 | 86 | #endif /* (!_POSIX_C_SOURCE || _DARWIN_C_SOURCE) */ |
| 70 | 87 | #endif /* !_ANSI_SOURCE */ |
| 71 | 88 | |
| ... | ... | @@ -80,6 +97,8 @@ |
| 80 | 97 | |
| 81 | 98 | #include <sys/_types/_wchar_t.h> |
| 82 | 99 | |
| 100 | _LIBC_SINGLE_BY_DEFAULT() | |
| 101 | ||
| 83 | 102 | typedef struct { |
| 84 | 103 | 	int quot;		/* quotient */ |
| 85 | 104 | 	int rem;		/* remainder */ |
| ... | ... | @@ -134,13 +153,13 @@ long	 atol(const char *); |
| 134 | 153 | long long |
| 135 | 154 | 	 atoll(const char *); |
| 136 | 155 | #endif /* !__DARWIN_NO_LONG_LONG */ |
| 137 | void	*bsearch(const void *__key, const void *__base, size_t __nel, | |
| 156 | void	*bsearch(const void *_LIBC_SIZE(__width) __key, const void *_LIBC_SIZE(__width * __nel) __base, size_t __nel, | |
| 138 | 157 | 	 size_t __width, int (* _Nonnull __compar)(const void *, const void *)); |
| 139 | 158 | /* calloc is now declared in _malloc.h */ |
| 140 | 159 | div_t	 div(int, int) __pure2; |
| 141 | 160 | void	 exit(int) __dead2; |
| 142 | 161 | /* free is now declared in _malloc.h */ |
| 143 | char	*getenv(const char *); | |
| 162 | char *_LIBC_CSTR	getenv(const char *); | |
| 144 | 163 | long	 labs(long) __pure2; |
| 145 | 164 | ldiv_t	 ldiv(long, long) __pure2; |
| 146 | 165 | #if !__DARWIN_NO_LONG_LONG |
| ... | ... | @@ -149,11 +168,11 @@ long long |
| 149 | 168 | lldiv_t	 lldiv(long long, long long); |
| 150 | 169 | #endif /* !__DARWIN_NO_LONG_LONG */ |
| 151 | 170 | /* malloc is now declared in _malloc.h */ |
| 152 | int	 mblen(const char *__s, size_t __n); | |
| 153 | size_t	 mbstowcs(wchar_t * __restrict , const char * __restrict, size_t); | |
| 154 | int	 mbtowc(wchar_t * __restrict, const char * __restrict, size_t); | |
| 171 | int	 mblen(const char *_LIBC_COUNT(__n) __s, size_t __n); | |
| 172 | size_t	 mbstowcs(wchar_t * __restrict _LIBC_COUNT(__n), const char * __restrict, size_t __n); | |
| 173 | int	 mbtowc(wchar_t * __restrict, const char * __restrict _LIBC_COUNT(__n), size_t __n); | |
| 155 | 174 | /* posix_memalign is now declared in _malloc.h */ |
| 156 | void	 qsort(void *__base, size_t __nel, size_t __width, | |
| 175 | void	 qsort(void *_LIBC_SIZE(__nel * __width) __base, size_t __nel, size_t __width, | |
| 157 | 176 | 	 int (* _Nonnull __compar)(const void *, const void *)); |
| 158 | 177 | #if (__DARWIN_C_LEVEL >= __DARWIN_C_FULL) || \ |
| 159 | 178 | 	defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L |
| ... | ... | @@ -162,20 +181,20 @@ void	quick_exit(int) __dead2; |
| 162 | 181 | int	 rand(void) __swift_unavailable("Use arc4random instead."); |
| 163 | 182 | /* realloc is now declared in _malloc.h */ |
| 164 | 183 | void	 srand(unsigned) __swift_unavailable("Use arc4random instead."); |
| 165 | double	 strtod(const char *, char **) __DARWIN_ALIAS(strtod); | |
| 166 | float	 strtof(const char *, char **) __DARWIN_ALIAS(strtof); | |
| 167 | long	 strtol(const char *__str, char **__endptr, int __base); | |
| 184 | double	 strtod(const char *, char *_LIBC_CSTR *) __DARWIN_ALIAS(strtod); | |
| 185 | float	 strtof(const char *, char *_LIBC_CSTR *) __DARWIN_ALIAS(strtof); | |
| 186 | long	 strtol(const char *__str, char *_LIBC_CSTR *__endptr, int __base); | |
| 168 | 187 | long double |
| 169 | 	 strtold(const char *, char **); | |
| 188 | 	 strtold(const char *, char *_LIBC_CSTR *); | |
| 170 | 189 | #if !__DARWIN_NO_LONG_LONG |
| 171 | 190 | long long |
| 172 | 	 strtoll(const char *__str, char **__endptr, int __base); | |
| 191 | 	 strtoll(const char *__str, char *_LIBC_CSTR *__endptr, int __base); | |
| 173 | 192 | #endif /* !__DARWIN_NO_LONG_LONG */ |
| 174 | 193 | unsigned long |
| 175 | 	 strtoul(const char *__str, char **__endptr, int __base); | |
| 194 | 	 strtoul(const char *__str, char *_LIBC_CSTR *__endptr, int __base); | |
| 176 | 195 | #if !__DARWIN_NO_LONG_LONG |
| 177 | 196 | unsigned long long |
| 178 | 	 strtoull(const char *__str, char **__endptr, int __base); | |
| 197 | 	 strtoull(const char *__str, char *_LIBC_CSTR *__endptr, int __base); | |
| 179 | 198 | #endif /* !__DARWIN_NO_LONG_LONG */ |
| 180 | 199 | |
| 181 | 200 | __swift_unavailable("Use posix_spawn APIs or NSTask instead. (On iOS, process spawning is unavailable.)") |
| ... | ... | @@ -184,23 +203,25 @@ __WATCHOS_PROHIBITED __TVOS_PROHIBITED |
| 184 | 203 | int	 system(const char *) __DARWIN_ALIAS_C(system); |
| 185 | 204 | |
| 186 | 205 | |
| 187 | size_t	 wcstombs(char * __restrict, const wchar_t * __restrict, size_t); | |
| 188 | int	 wctomb(char *, wchar_t); | |
| 206 | size_t	 wcstombs(char * __restrict _LIBC_COUNT(__n), const wchar_t * __restrict, size_t __n); | |
| 207 | int	 wctomb(char *_LIBC_COUNT__MB_LEN_MAX, wchar_t); | |
| 189 | 208 | |
| 190 | 209 | #ifndef _ANSI_SOURCE |
| 191 | 210 | void	_Exit(int) __dead2; |
| 192 | 211 | long	 a64l(const char *); |
| 193 | 212 | double	 drand48(void); |
| 194 | char	*ecvt(double, int, int *__restrict, int *__restrict); /* LEGACY */ | |
| 213 | char *_LIBC_CSTR	ecvt(double, int, int *__restrict, int *__restrict); /* LEGACY */ | |
| 195 | 214 | double	 erand48(unsigned short[3]); |
| 196 | char	*fcvt(double, int, int *__restrict, int *__restrict); /* LEGACY */ | |
| 197 | char	*gcvt(double, int, char *); /* LEGACY */ | |
| 198 | int	 getsubopt(char **, char * const *, char **); | |
| 215 | char *_LIBC_CSTR	fcvt(double, int, int *__restrict, int *__restrict); /* LEGACY */ | |
| 216 | char *_LIBC_CSTR	gcvt(double, int, char *_LIBC_UNSAFE_INDEXABLE) _LIBC_PTRCHECK_REPLACED(snprintf); /* LEGACY */ | |
| 217 | int	 getsubopt(char *_LIBC_CSTR *, char *_LIBC_CSTR const *_LIBC_NULL_TERMINATED, char *_LIBC_CSTR *); | |
| 199 | 218 | int	 grantpt(int); |
| 200 | 219 | #if __DARWIN_UNIX03 |
| 201 | char	*initstate(unsigned, char *, size_t); /* no __DARWIN_ALIAS needed */ | |
| 220 | char *_LIBC_UNSAFE_INDEXABLE | |
| 221 | 		initstate(unsigned, char *_LIBC_COUNT(__size), size_t __size); /* no __DARWIN_ALIAS needed */ | |
| 202 | 222 | #else /* !__DARWIN_UNIX03 */ |
| 203 | char	*initstate(unsigned long, char *, long); | |
| 223 | char *_LIBC_UNSAFE_INDEXABLE | |
| 224 | 		initstate(unsigned long, char *_LIBC_COUNT(__size), long __size); | |
| 204 | 225 | #endif /* __DARWIN_UNIX03 */ |
| 205 | 226 | long	 jrand48(unsigned short[3]) __swift_unavailable("Use arc4random instead."); |
| 206 | 227 | char	*l64a(long); |
| ... | ... | @@ -209,34 +230,33 @@ long	 lrand48(void) __swift_unavailable("Use arc4random instead."); |
| 209 | 230 | #if !defined(_POSIX_C_SOURCE) |
| 210 | 231 | __deprecated_msg("This function is provided for compatibility reasons only. Due to security concerns inherent in the design of mktemp(3), it is highly recommended that you use mkstemp(3) instead.") |
| 211 | 232 | #endif |
| 212 | char	*mktemp(char *); | |
| 213 | int	 mkstemp(char *); | |
| 233 | char *_LIBC_CSTR	mktemp(char *_LIBC_CSTR); | |
| 234 | int	 mkstemp(char *_LIBC_CSTR); | |
| 214 | 235 | long	 mrand48(void) __swift_unavailable("Use arc4random instead."); |
| 215 | 236 | long	 nrand48(unsigned short[3]) __swift_unavailable("Use arc4random instead."); |
| 216 | 237 | int	 posix_openpt(int); |
| 217 | char	*ptsname(int); | |
| 238 | char *_LIBC_CSTR	ptsname(int); | |
| 218 | 239 | |
| 219 | 240 | #if (!defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)) |
| 220 | int ptsname_r(int fildes, char *buffer, size_t buflen) __API_AVAILABLE(macos(10.13.4), ios(11.3), tvos(11.3), watchos(4.3)); | |
| 241 | int ptsname_r(int fildes, char *_LIBC_COUNT(buflen) buffer, size_t buflen) __API_AVAILABLE(macos(10.13.4), ios(11.3), tvos(11.3), watchos(4.3)); | |
| 221 | 242 | #endif |
| 222 | 243 | |
| 223 | int	 putenv(char *) __DARWIN_ALIAS(putenv); | |
| 244 | int	 putenv(char *_LIBC_CSTR) __DARWIN_ALIAS(putenv); | |
| 224 | 245 | long	 random(void) __swift_unavailable("Use arc4random instead."); |
| 225 | 246 | int	 rand_r(unsigned *) __swift_unavailable("Use arc4random instead."); |
| 226 | 247 | #if (__DARWIN_UNIX03 && !defined(_POSIX_C_SOURCE)) || defined(_DARWIN_C_SOURCE) || defined(_DARWIN_BETTER_REALPATH) |
| 227 | char	*realpath(const char * __restrict, char * __restrict) __DARWIN_EXTSN(realpath); | |
| 248 | char *_LIBC_CSTR	realpath(const char * __restrict, char * __restrict _LIBC_COUNT__PATH_MAX) __DARWIN_EXTSN(realpath); | |
| 228 | 249 | #else /* (!__DARWIN_UNIX03 || _POSIX_C_SOURCE) && !_DARWIN_C_SOURCE && !_DARWIN_BETTER_REALPATH */ |
| 229 | char	*realpath(const char * __restrict, char * __restrict) __DARWIN_ALIAS(realpath); | |
| 250 | char *_LIBC_CSTR	realpath(const char * __restrict, char * __restrict _LIBC_COUNT__PATH_MAX) __DARWIN_ALIAS(realpath); | |
| 230 | 251 | #endif /* (__DARWIN_UNIX03 && _POSIX_C_SOURCE) || _DARWIN_C_SOURCE || _DARWIN_BETTER_REALPATH */ |
| 231 | unsigned short | |
| 232 | 	*seed48(unsigned short[3]); | |
| 252 | unsigned short *_LIBC_COUNT(3) seed48(unsigned short[3]); | |
| 233 | 253 | int	 setenv(const char * __name, const char * __value, int __overwrite) __DARWIN_ALIAS(setenv); |
| 234 | 254 | #if __DARWIN_UNIX03 |
| 235 | 255 | void	 setkey(const char *) __DARWIN_ALIAS(setkey); |
| 236 | 256 | #else /* !__DARWIN_UNIX03 */ |
| 237 | 257 | int	 setkey(const char *); |
| 238 | 258 | #endif /* __DARWIN_UNIX03 */ |
| 239 | char	*setstate(const char *); | |
| 259 | char *_LIBC_UNSAFE_INDEXABLE	setstate(const char *_LIBC_UNSAFE_INDEXABLE); | |
| 240 | 260 | void	 srand48(long); |
| 241 | 261 | #if __DARWIN_UNIX03 |
| 242 | 262 | void	 srandom(unsigned); |
| ... | ... | @@ -260,12 +280,12 @@ __END_DECLS |
| 260 | 280 | |
| 261 | 281 | __BEGIN_DECLS |
| 262 | 282 | uint32_t arc4random(void); |
| 263 | void	 arc4random_addrandom(unsigned char * /*dat*/, int /*datlen*/) | |
| 283 | void	 arc4random_addrandom(unsigned char *_LIBC_COUNT(__datlen) /*dat*/, int __datlen) | |
| 264 | 284 | __OSX_DEPRECATED(10.0, 10.12, "use arc4random_stir") |
| 265 | 285 | __IOS_DEPRECATED(2.0, 10.0, "use arc4random_stir") |
| 266 | 286 | __TVOS_DEPRECATED(2.0, 10.0, "use arc4random_stir") |
| 267 | 287 | __WATCHOS_DEPRECATED(1.0, 3.0, "use arc4random_stir"); |
| 268 | void	 arc4random_buf(void * __buf, size_t __nbytes) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3); | |
| 288 | void	 arc4random_buf(void *_LIBC_SIZE(__nbytes) __buf, size_t __nbytes) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3); | |
| 269 | 289 | void	 arc4random_stir(void); |
| 270 | 290 | uint32_t |
| 271 | 291 | 	 arc4random_uniform(uint32_t __upper_bound) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3); |
| ... | ... | @@ -279,28 +299,28 @@ int	 atexit_b(void (^ _Nonnull)(void)) __OSX_AVAILABLE_STARTING(__MAC_10_6, __IP |
| 279 | 299 | #define __bsearch_noescape |
| 280 | 300 | #endif |
| 281 | 301 | #endif /* __BLOCKS__ */ |
| 282 | void	*bsearch_b(const void *__key, const void *__base, size_t __nel, | |
| 302 | void	*bsearch_b(const void *_LIBC_SIZE(__width) __key, const void *_LIBC_SIZE(__width * __nel) __base, size_t __nel, | |
| 283 | 303 | 	 size_t __width, int (^ _Nonnull __compar)(const void *, const void *) __bsearch_noescape) |
| 284 | 304 | 	 __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_2); |
| 285 | 305 | #endif /* __BLOCKS__ */ |
| 286 | 306 | |
| 287 | 307 | 	 /* getcap(3) functions */ |
| 288 | char	*cgetcap(char *, const char *, int); | |
| 308 | char *_LIBC_CSTR	cgetcap(char *_LIBC_CSTR, const char *, int); | |
| 289 | 309 | int	 cgetclose(void); |
| 290 | int	 cgetent(char **, char **, const char *); | |
| 291 | int	 cgetfirst(char **, char **); | |
| 310 | int	 cgetent(char *_LIBC_CSTR *, char *_LIBC_CSTR *_LIBC_NULL_TERMINATED, const char *); | |
| 311 | int	 cgetfirst(char *_LIBC_CSTR *, char *_LIBC_CSTR *_LIBC_NULL_TERMINATED); | |
| 292 | 312 | int	 cgetmatch(const char *, const char *); |
| 293 | int	 cgetnext(char **, char **); | |
| 294 | int	 cgetnum(char *, const char *, long *); | |
| 313 | int	 cgetnext(char *_LIBC_CSTR *, char *_LIBC_CSTR *_LIBC_NULL_TERMINATED); | |
| 314 | int	 cgetnum(char *_LIBC_CSTR, const char *, long *); | |
| 295 | 315 | int	 cgetset(const char *); |
| 296 | int	 cgetstr(char *, const char *, char **); | |
| 297 | int	 cgetustr(char *, const char *, char **); | |
| 316 | int	 cgetstr(char *_LIBC_CSTR, const char *, char *_LIBC_CSTR *); | |
| 317 | int	 cgetustr(char *_LIBC_CSTR, const char *, char *_LIBC_CSTR *); | |
| 298 | 318 | |
| 299 | 319 | int	 daemon(int, int) __DARWIN_1050(daemon) __OSX_AVAILABLE_BUT_DEPRECATED_MSG(__MAC_10_0, __MAC_10_5, __IPHONE_2_0, __IPHONE_2_0, "Use posix_spawn APIs instead.") __WATCHOS_PROHIBITED __TVOS_PROHIBITED; |
| 300 | char	*devname(dev_t, mode_t); | |
| 301 | char	*devname_r(dev_t, mode_t, char *buf, int len); | |
| 302 | char	*getbsize(int *, long *); | |
| 303 | int	 getloadavg(double [], int); | |
| 320 | char *_LIBC_CSTR	devname(dev_t, mode_t); | |
| 321 | char *_LIBC_CSTR	devname_r(dev_t, mode_t, char *_LIBC_COUNT(len) buf, int len); | |
| 322 | char *_LIBC_CSTR	getbsize(int *, long *); | |
| 323 | int	 getloadavg(double [_LIBC_COUNT(__nelem)], int __nelem); | |
| 304 | 324 | const char |
| 305 | 325 | 	*getprogname(void); |
| 306 | 326 | void	 setprogname(const char *); |
| ... | ... | @@ -313,57 +333,57 @@ void	 setprogname(const char *); |
| 313 | 333 | #endif |
| 314 | 334 | #endif /* __BLOCKS__ */ |
| 315 | 335 | |
| 316 | int	 heapsort(void *__base, size_t __nel, size_t __width, | |
| 336 | int	 heapsort(void *_LIBC_SIZE(__nel * __width) __base, size_t __nel, size_t __width, | |
| 317 | 337 | 	 int (* _Nonnull __compar)(const void *, const void *)); |
| 318 | 338 | #ifdef __BLOCKS__ |
| 319 | int	 heapsort_b(void *__base, size_t __nel, size_t __width, | |
| 339 | int	 heapsort_b(void *_LIBC_SIZE(__nel * __width) __base, size_t __nel, size_t __width, | |
| 320 | 340 | 	 int (^ _Nonnull __compar)(const void *, const void *) __sort_noescape) |
| 321 | 341 | 	 __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_2); |
| 322 | 342 | #endif /* __BLOCKS__ */ |
| 323 | int	 mergesort(void *__base, size_t __nel, size_t __width, | |
| 343 | int	 mergesort(void *_LIBC_SIZE(__nel * __width) __base, size_t __nel, size_t __width, | |
| 324 | 344 | 	 int (* _Nonnull __compar)(const void *, const void *)); |
| 325 | 345 | #ifdef __BLOCKS__ |
| 326 | int	 mergesort_b(void *__base, size_t __nel, size_t __width, | |
| 346 | int	 mergesort_b(void *_LIBC_SIZE(__nel * __width) __base, size_t __nel, size_t __width, | |
| 327 | 347 | 	 int (^ _Nonnull __compar)(const void *, const void *) __sort_noescape) |
| 328 | 348 | 	 __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_2); |
| 329 | 349 | #endif /* __BLOCKS__ */ |
| 330 | void	 psort(void *__base, size_t __nel, size_t __width, | |
| 350 | void	 psort(void *_LIBC_SIZE(__nel * __width) __base, size_t __nel, size_t __width, | |
| 331 | 351 | 	 int (* _Nonnull __compar)(const void *, const void *)) |
| 332 | 352 | 	 __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_2); |
| 333 | 353 | #ifdef __BLOCKS__ |
| 334 | void	 psort_b(void *__base, size_t __nel, size_t __width, | |
| 354 | void	 psort_b(void *_LIBC_SIZE(__nel * __width) __base, size_t __nel, size_t __width, | |
| 335 | 355 | 	 int (^ _Nonnull __compar)(const void *, const void *) __sort_noescape) |
| 336 | 356 | 	 __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_2); |
| 337 | 357 | #endif /* __BLOCKS__ */ |
| 338 | void	 psort_r(void *__base, size_t __nel, size_t __width, void *, | |
| 358 | void	 psort_r(void *_LIBC_SIZE(__nel * __width) __base, size_t __nel, size_t __width, void *, | |
| 339 | 359 | 	 int (* _Nonnull __compar)(void *, const void *, const void *)) |
| 340 | 360 | 	 __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_2); |
| 341 | 361 | #ifdef __BLOCKS__ |
| 342 | void	 qsort_b(void *__base, size_t __nel, size_t __width, | |
| 362 | void	 qsort_b(void *_LIBC_SIZE(__nel * __width) __base, size_t __nel, size_t __width, | |
| 343 | 363 | 	 int (^ _Nonnull __compar)(const void *, const void *) __sort_noescape) |
| 344 | 364 | 	 __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_2); |
| 345 | 365 | #endif /* __BLOCKS__ */ |
| 346 | void	 qsort_r(void *__base, size_t __nel, size_t __width, void *, | |
| 366 | void	 qsort_r(void *_LIBC_SIZE(__nel * __width) __base, size_t __nel, size_t __width, void *, | |
| 347 | 367 | 	 int (* _Nonnull __compar)(void *, const void *, const void *)); |
| 348 | int	 radixsort(const unsigned char **__base, int __nel, const unsigned char *__table, | |
| 368 | int	 radixsort(const unsigned char *_LIBC_UNSAFE_INDEXABLE *_LIBC_COUNT(__nel) __base, int __nel, const unsigned char *_LIBC_COUNT_OR_NULL(256) __table, | |
| 349 | 369 | 	 unsigned __endbyte); |
| 350 | 370 | int	rpmatch(const char *) |
| 351 | 371 | 	__API_AVAILABLE(macos(10.15), ios(13.0), tvos(13.0), watchos(6.0)); |
| 352 | int	 sradixsort(const unsigned char **__base, int __nel, const unsigned char *__table, | |
| 372 | int	 sradixsort(const unsigned char *_LIBC_UNSAFE_INDEXABLE *_LIBC_COUNT(__nel) __base, int __nel, const unsigned char *_LIBC_COUNT_OR_NULL(256) __table, | |
| 353 | 373 | 	 unsigned __endbyte); |
| 354 | 374 | void	 sranddev(void); |
| 355 | 375 | void	 srandomdev(void); |
| 356 | 376 | /* reallocf is now declared in _malloc.h */ |
| 357 | 377 | long long |
| 358 | 	strtonum(const char *__numstr, long long __minval, long long __maxval, const char **__errstrp) | |
| 378 | 	strtonum(const char *__numstr, long long __minval, long long __maxval, const char *_LIBC_CSTR *__errstrp) | |
| 359 | 379 | 	__API_AVAILABLE(macos(11.0), ios(14.0), tvos(14.0), watchos(7.0)); |
| 360 | 380 | #if !__DARWIN_NO_LONG_LONG |
| 361 | 381 | long long |
| 362 | 	 strtoq(const char *__str, char **__endptr, int __base); | |
| 382 | 	 strtoq(const char *__str, char *_LIBC_CSTR *__endptr, int __base); | |
| 363 | 383 | unsigned long long |
| 364 | 	 strtouq(const char *__str, char **__endptr, int __base); | |
| 384 | 	 strtouq(const char *__str, char *_LIBC_CSTR *__endptr, int __base); | |
| 365 | 385 | #endif /* !__DARWIN_NO_LONG_LONG */ |
| 366 | extern char *suboptarg;		/* getsubopt(3) external variable */ | |
| 386 | extern char *_LIBC_CSTR suboptarg;		/* getsubopt(3) external variable */ | |
| 367 | 387 | /* valloc is now declared in _malloc.h */ |
| 368 | 388 | __END_DECLS |
| 369 | 389 | #endif	/* !_ANSI_SOURCE && !_POSIX_SOURCE */ |
lib/libc/include/any-macos-any/_string.h+81-41| ... | ... | @@ -58,6 +58,7 @@ |
| 58 | 58 | #ifndef _STRING_H_ |
| 59 | 59 | #define	_STRING_H_ |
| 60 | 60 | |
| 61 | #include <_bounds.h> | |
| 61 | 62 | #include <_types.h> |
| 62 | 63 | #include <sys/cdefs.h> |
| 63 | 64 | #include <Availability.h> |
| ... | ... | @@ -66,29 +67,49 @@ |
| 66 | 67 | |
| 67 | 68 | /* ANSI-C */ |
| 68 | 69 | |
| 70 | _LIBC_SINGLE_BY_DEFAULT() | |
| 71 | ||
| 69 | 72 | __BEGIN_DECLS |
| 70 | void	*memchr(const void *__s, int __c, size_t __n); | |
| 71 | int	 memcmp(const void *__s1, const void *__s2, size_t __n); | |
| 72 | void	*memcpy(void *__dst, const void *__src, size_t __n); | |
| 73 | void	*memmove(void *__dst, const void *__src, size_t __len); | |
| 74 | void	*memset(void *__b, int __c, size_t __len); | |
| 75 | char	*strcat(char *__s1, const char *__s2); | |
| 76 | char	*strchr(const char *__s, int __c); | |
| 73 | void *_LIBC_SIZE(__n) | |
| 74 | 		memchr(const void *_LIBC_SIZE(__n) __s, int __c, size_t __n); | |
| 75 | int	 memcmp(const void *_LIBC_SIZE(__n) __s1, const void *_LIBC_SIZE(__n) __s2, | |
| 76 | 		size_t __n); | |
| 77 | void *_LIBC_SIZE(__n) | |
| 78 | 		memcpy(void *_LIBC_SIZE(__n) __dst, const void *_LIBC_SIZE(__n) __src, | |
| 79 | 		size_t __n); | |
| 80 | void *_LIBC_SIZE(__len) | |
| 81 | 		memmove(void *_LIBC_SIZE(__len) __dst, | |
| 82 | 		const void *_LIBC_SIZE(__len) __src, size_t __len); | |
| 83 | void *_LIBC_SIZE(__len) | |
| 84 | 		memset(void *_LIBC_SIZE(__len) __b, int __c, size_t __len); | |
| 85 | char *_LIBC_CSTR | |
| 86 | 		strcat(char *_LIBC_UNSAFE_INDEXABLE __s1, const char *__s2) | |
| 87 | 		_LIBC_PTRCHECK_REPLACED(strlcat); | |
| 88 | char *_LIBC_CSTR strchr(const char *__s, int __c); | |
| 77 | 89 | int	 strcmp(const char *__s1, const char *__s2); |
| 78 | 90 | int	 strcoll(const char *__s1, const char *__s2); |
| 79 | char	*strcpy(char *__dst, const char *__src); | |
| 91 | char *_LIBC_CSTR | |
| 92 | 		strcpy(char *_LIBC_UNSAFE_INDEXABLE __dst, const char *__src) | |
| 93 | 		_LIBC_PTRCHECK_REPLACED(strlcpy); | |
| 80 | 94 | size_t	 strcspn(const char *__s, const char *__charset); |
| 81 | char	*strerror(int __errnum) __DARWIN_ALIAS(strerror); | |
| 95 | char *_LIBC_CSTR	strerror(int __errnum) __DARWIN_ALIAS(strerror); | |
| 82 | 96 | size_t	 strlen(const char *__s); |
| 83 | char	*strncat(char *__s1, const char *__s2, size_t __n); | |
| 84 | int	 strncmp(const char *__s1, const char *__s2, size_t __n); | |
| 85 | char	*strncpy(char *__dst, const char *__src, size_t __n); | |
| 86 | char	*strpbrk(const char *__s, const char *__charset); | |
| 87 | char	*strrchr(const char *__s, int __c); | |
| 97 | char *_LIBC_CSTR | |
| 98 | 		strncat(char *_LIBC_UNSAFE_INDEXABLE __s1, | |
| 99 | 		const char *_LIBC_COUNT(__n) __s2, size_t __n) | |
| 100 | 		_LIBC_PTRCHECK_REPLACED(strlcat); | |
| 101 | int	 strncmp(const char *_LIBC_UNSAFE_INDEXABLE __s1, | |
| 102 | 		const char *_LIBC_UNSAFE_INDEXABLE __s2, size_t __n); | |
| 103 | char *_LIBC_UNSAFE_INDEXABLE | |
| 104 | 		strncpy(char *_LIBC_COUNT(__n) __dst, | |
| 105 | const char *_LIBC_UNSAFE_INDEXABLE __src, size_t __n) | |
| 106 | _LIBC_PTRCHECK_REPLACED(strlcpy); | |
| 107 | char *_LIBC_CSTR strpbrk(const char *__s, const char *__charset); | |
| 108 | char *_LIBC_CSTR strrchr(const char *__s, int __c); | |
| 88 | 109 | size_t	 strspn(const char *__s, const char *__charset); |
| 89 | char	*strstr(const char *__big, const char *__little); | |
| 90 | char	*strtok(char *__str, const char *__sep); | |
| 91 | size_t	 strxfrm(char *__s1, const char *__s2, size_t __n); | |
| 110 | char *_LIBC_CSTR strstr(const char *__big, const char *__little); | |
| 111 | char *_LIBC_CSTR strtok(char *_LIBC_CSTR __str, const char *__sep); | |
| 112 | size_t	 strxfrm(char *_LIBC_COUNT(__n) __s1, const char *__s2, size_t __n); | |
| 92 | 113 | __END_DECLS |
| 93 | 114 | |
| 94 | 115 | |
| ... | ... | @@ -101,7 +122,9 @@ __END_DECLS |
| 101 | 122 | |
| 102 | 123 | #if __DARWIN_C_LEVEL >= 199506L |
| 103 | 124 | __BEGIN_DECLS |
| 104 | char	*strtok_r(char *__str, const char *__sep, char **__lasts); | |
| 125 | char *_LIBC_CSTR | |
| 126 | strtok_r(char *_LIBC_CSTR __str, const char *__sep, | |
| 127 | char *_LIBC_CSTR *__lasts); | |
| 105 | 128 | __END_DECLS |
| 106 | 129 | #endif /* __DARWIN_C_LEVEL >= 199506L */ |
| 107 | 130 | |
| ... | ... | @@ -113,9 +136,12 @@ __END_DECLS |
| 113 | 136 | |
| 114 | 137 | #if __DARWIN_C_LEVEL >= 200112L |
| 115 | 138 | __BEGIN_DECLS |
| 116 | int	 strerror_r(int __errnum, char *__strerrbuf, size_t __buflen); | |
| 117 | char	*strdup(const char *__s1); | |
| 118 | void	*memccpy(void *__dst, const void *__src, int __c, size_t __n); | |
| 139 | int	 strerror_r(int __errnum, char *_LIBC_COUNT(__buflen) __strerrbuf, | |
| 140 | size_t __buflen); | |
| 141 | char *_LIBC_CSTR strdup(const char *__s1); | |
| 142 | void *_LIBC_UNSAFE_INDEXABLE /* in bounds of __dst */ | |
| 143 | memccpy(void *_LIBC_SIZE(__n) __dst, const void *_LIBC_SIZE(__n) __src, | |
| 144 | int __c, size_t __n); | |
| 119 | 145 | __END_DECLS |
| 120 | 146 | #endif /* __DARWIN_C_LEVEL >= 200112L */ |
| 121 | 147 | |
| ... | ... | @@ -127,11 +153,16 @@ __END_DECLS |
| 127 | 153 | |
| 128 | 154 | #if __DARWIN_C_LEVEL >= 200809L |
| 129 | 155 | __BEGIN_DECLS |
| 130 | char	*stpcpy(char *__dst, const char *__src); | |
| 131 | char *stpncpy(char *__dst, const char *__src, size_t __n) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3); | |
| 132 | char	*strndup(const char *__s1, size_t __n) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3); | |
| 133 | size_t strnlen(const char *__s1, size_t __n) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3); | |
| 134 | char	*strsignal(int __sig); | |
| 156 | char *_LIBC_CSTR | |
| 157 | stpcpy(char *_LIBC_UNSAFE_INDEXABLE __dst, const char *__src) _LIBC_PTRCHECK_REPLACED(strlcpy); | |
| 158 | char *_LIBC_CSTR | |
| 159 | stpncpy(char *_LIBC_UNSAFE_INDEXABLE __dst, | |
| 160 | const char *_LIBC_UNSAFE_INDEXABLE __src, size_t __n) | |
| 161 | __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3) | |
| 162 | _LIBC_PTRCHECK_REPLACED(strlcpy); | |
| 163 | char *_LIBC_CSTR strndup(const char *_LIBC_COUNT(__n) __s1, size_t __n) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3); | |
| 164 | size_t strnlen(const char *_LIBC_COUNT(__n) __s1, size_t __n) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3); | |
| 165 | char *_LIBC_CSTR strsignal(int __sig); | |
| 135 | 166 | __END_DECLS |
| 136 | 167 | #endif /* __DARWIN_C_LEVEL >= 200809L */ |
| 137 | 168 | |
| ... | ... | @@ -142,7 +173,7 @@ __END_DECLS |
| 142 | 173 | #include <sys/_types/_errno_t.h> |
| 143 | 174 | |
| 144 | 175 | __BEGIN_DECLS |
| 145 | errno_t	memset_s(void *__s, rsize_t __smax, int __c, rsize_t __n) __OSX_AVAILABLE_STARTING(__MAC_10_9, __IPHONE_7_0); | |
| 176 | errno_t	memset_s(void *_LIBC_SIZE(__smax) __s, rsize_t __smax, int __c, rsize_t __n) __OSX_AVAILABLE_STARTING(__MAC_10_9, __IPHONE_7_0); | |
| 146 | 177 | __END_DECLS |
| 147 | 178 | #endif |
| 148 | 179 | |
| ... | ... | @@ -152,28 +183,37 @@ __END_DECLS |
| 152 | 183 | #include <sys/_types/_ssize_t.h> |
| 153 | 184 | |
| 154 | 185 | __BEGIN_DECLS |
| 155 | void	*memmem(const void *__big, size_t __big_len, const void *__little, size_t __little_len) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3); | |
| 156 | void memset_pattern4(void *__b, const void *__pattern4, size_t __len) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_3_0); | |
| 157 | void memset_pattern8(void *__b, const void *__pattern8, size_t __len) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_3_0); | |
| 158 | void memset_pattern16(void *__b, const void *__pattern16, size_t __len) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_3_0); | |
| 159 | ||
| 160 | char	*strcasestr(const char *__big, const char *__little); | |
| 161 | char	*strnstr(const char *__big, const char *__little, size_t __len); | |
| 162 | size_t	 strlcat(char *__dst, const char *__source, size_t __size); | |
| 163 | size_t	 strlcpy(char *__dst, const char *__source, size_t __size); | |
| 164 | void	 strmode(int __mode, char *__bp); | |
| 165 | char	*strsep(char **__stringp, const char *__delim); | |
| 186 | void *_LIBC_UNSAFE_INDEXABLE | |
| 187 | memmem(const void *_LIBC_SIZE(__big_len) __big, size_t __big_len, | |
| 188 | const void *_LIBC_SIZE(__little_len) __little, size_t __little_len) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3); | |
| 189 | void	 memset_pattern4(void *_LIBC_SIZE(__len) __b, const void *_LIBC_SIZE(4) __pattern4, size_t __len) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_3_0); | |
| 190 | void	 memset_pattern8(void *_LIBC_SIZE(__len) __b, const void *_LIBC_SIZE(8) __pattern8, size_t __len) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_3_0); | |
| 191 | void	 memset_pattern16(void *_LIBC_SIZE(__len) __b, const void *_LIBC_SIZE(16) __pattern16, size_t __len) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_3_0); | |
| 192 | ||
| 193 | char *_LIBC_CSTR | |
| 194 | strcasestr(const char *__big, const char *__little); | |
| 195 | __OSX_AVAILABLE(15.4) __IOS_AVAILABLE(18.4) | |
| 196 | __TVOS_AVAILABLE(18.4) __WATCHOS_AVAILABLE(11.4) | |
| 197 | char *_LIBC_CSTR | |
| 198 | strchrnul(const char *__s, int __c); | |
| 199 | char *_LIBC_CSTR | |
| 200 | strnstr(const char *_LIBC_COUNT(__len) __big, const char *__little, size_t __len); | |
| 201 | size_t	 strlcat(char *_LIBC_COUNT(__size) __dst, const char *__source, size_t __size); | |
| 202 | size_t	 strlcpy(char *_LIBC_COUNT(__size) __dst, const char *__source, size_t __size); | |
| 203 | void	 strmode(int __mode, char *_LIBC_COUNT(12) __bp); | |
| 204 | char *_LIBC_CSTR | |
| 205 | strsep(char *_LIBC_CSTR *__stringp, const char *__delim); | |
| 166 | 206 | |
| 167 | 207 | /* SUS places swab() in unistd.h. It is listed here for source compatibility */ |
| 168 | void	 swab(const void * __restrict, void * __restrict, ssize_t); | |
| 208 | void	 swab(const void *_LIBC_SIZE(__len) __restrict, void *_LIBC_SIZE(__len) __restrict, ssize_t __len); | |
| 169 | 209 | |
| 170 | 210 | __OSX_AVAILABLE(10.12.1) __IOS_AVAILABLE(10.1) |
| 171 | 211 | __TVOS_AVAILABLE(10.0.1) __WATCHOS_AVAILABLE(3.1) |
| 172 | int	timingsafe_bcmp(const void *__b1, const void *__b2, size_t __len); | |
| 212 | int	timingsafe_bcmp(const void *_LIBC_SIZE(__len) __b1, const void *_LIBC_SIZE(__len) __b2, size_t __len); | |
| 173 | 213 | |
| 174 | 214 | __OSX_AVAILABLE(11.0) __IOS_AVAILABLE(14.0) |
| 175 | 215 | __TVOS_AVAILABLE(14.0) __WATCHOS_AVAILABLE(7.0) |
| 176 | int 	 strsignal_r(int __sig, char *__strsignalbuf, size_t __buflen); | |
| 216 | int 	 strsignal_r(int __sig, char *_LIBC_COUNT(__buflen) __strsignalbuf, size_t __buflen); | |
| 177 | 217 | __END_DECLS |
| 178 | 218 | |
| 179 | 219 | /* Some functions historically defined in string.h were placed in strings.h |
lib/libc/include/any-macos-any/_strings.h+9-6| ... | ... | @@ -58,25 +58,28 @@ |
| 58 | 58 | #ifndef __STRINGS_H_ |
| 59 | 59 | #define __STRINGS_H_ |
| 60 | 60 | |
| 61 | #include <_bounds.h> | |
| 61 | 62 | #include <_types.h> |
| 62 | 63 | |
| 63 | 64 | #include <sys/cdefs.h> |
| 64 | 65 | #include <Availability.h> |
| 65 | 66 | #include <sys/_types/_size_t.h> |
| 66 | 67 | |
| 68 | _LIBC_SINGLE_BY_DEFAULT() | |
| 69 | ||
| 67 | 70 | __BEGIN_DECLS |
| 68 | 71 | /* Removed in Issue 7 */ |
| 69 | 72 | #if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE < 200809L |
| 70 | int	 bcmp(const void *, const void *, size_t) __POSIX_C_DEPRECATED(200112L); | |
| 71 | void	 bcopy(const void *, void *, size_t) __POSIX_C_DEPRECATED(200112L); | |
| 72 | void	 bzero(void *, size_t) __POSIX_C_DEPRECATED(200112L); | |
| 73 | char	*index(const char *, int) __POSIX_C_DEPRECATED(200112L); | |
| 74 | char	*rindex(const char *, int) __POSIX_C_DEPRECATED(200112L); | |
| 73 | int	 bcmp(const void *_LIBC_SIZE(__n), const void *_LIBC_SIZE(__n), size_t __n) __POSIX_C_DEPRECATED(200112L); | |
| 74 | void	 bcopy(const void *_LIBC_SIZE(__n), void *_LIBC_SIZE(__n), size_t __n) __POSIX_C_DEPRECATED(200112L); | |
| 75 | void	 bzero(void *_LIBC_SIZE(__n), size_t __n) __POSIX_C_DEPRECATED(200112L); | |
| 76 | char *_LIBC_CSTR index(const char *, int) __POSIX_C_DEPRECATED(200112L); | |
| 77 | char *_LIBC_CSTR rindex(const char *, int) __POSIX_C_DEPRECATED(200112L); | |
| 75 | 78 | #endif |
| 76 | 79 | |
| 77 | 80 | int	 ffs(int); |
| 78 | 81 | int	 strcasecmp(const char *, const char *); |
| 79 | int	 strncasecmp(const char *, const char *, size_t); | |
| 82 | int	 strncasecmp(const char *_LIBC_UNSAFE_INDEXABLE, const char *_LIBC_UNSAFE_INDEXABLE, size_t); | |
| 80 | 83 | __END_DECLS |
| 81 | 84 | |
| 82 | 85 | /* Darwin extensions */ |
lib/libc/include/any-macos-any/_time.h+12-9| ... | ... | @@ -65,6 +65,7 @@ |
| 65 | 65 | |
| 66 | 66 | #include <_types.h> |
| 67 | 67 | #include <sys/cdefs.h> |
| 68 | #include <_bounds.h> | |
| 68 | 69 | #include <Availability.h> |
| 69 | 70 | #include <sys/_types/_clock_t.h> |
| 70 | 71 | #include <sys/_types/_null.h> |
| ... | ... | @@ -72,6 +73,8 @@ |
| 72 | 73 | #include <sys/_types/_time_t.h> |
| 73 | 74 | #include <sys/_types/_timespec.h> |
| 74 | 75 | |
| 76 | _LIBC_SINGLE_BY_DEFAULT() | |
| 77 | ||
| 75 | 78 | struct tm { |
| 76 | 79 | 	int	tm_sec;		/* seconds after the minute [0-60] */ |
| 77 | 80 | 	int	tm_min;		/* minutes after the hour [0-59] */ |
| ... | ... | @@ -83,7 +86,7 @@ struct tm { |
| 83 | 86 | 	int	tm_yday;	/* days since January 1 [0-365] */ |
| 84 | 87 | 	int	tm_isdst;	/* Daylight Savings Time flag */ |
| 85 | 88 | 	long	tm_gmtoff;	/* offset from UTC in seconds */ |
| 86 | 	char	*tm_zone;	/* timezone abbreviation */ | |
| 89 | 	char	*_LIBC_CSTR	tm_zone;	/* timezone abbreviation */ | |
| 87 | 90 | }; |
| 88 | 91 | |
| 89 | 92 | #if __DARWIN_UNIX03 |
| ... | ... | @@ -95,7 +98,7 @@ struct tm { |
| 95 | 98 | #endif /* __DARWIN_UNIX03 */ |
| 96 | 99 | |
| 97 | 100 | #ifndef _ANSI_SOURCE |
| 98 | extern char *tzname[]; | |
| 101 | extern char *_LIBC_CSTR	tzname[_LIBC_COUNT(2)]; | |
| 99 | 102 | #endif |
| 100 | 103 | |
| 101 | 104 | extern int getdate_err; |
| ... | ... | @@ -105,16 +108,16 @@ extern long timezone __DARWIN_ALIAS(timezone); |
| 105 | 108 | extern int daylight; |
| 106 | 109 | |
| 107 | 110 | __BEGIN_DECLS |
| 108 | char *asctime(const struct tm *); | |
| 111 | char *_LIBC_CSTR	asctime(const struct tm *); | |
| 109 | 112 | clock_t clock(void) __DARWIN_ALIAS(clock); |
| 110 | char *ctime(const time_t *); | |
| 113 | char *_LIBC_CSTR	ctime(const time_t *); | |
| 111 | 114 | double difftime(time_t, time_t); |
| 112 | 115 | struct tm *getdate(const char *); |
| 113 | 116 | struct tm *gmtime(const time_t *); |
| 114 | 117 | struct tm *localtime(const time_t *); |
| 115 | 118 | time_t mktime(struct tm *) __DARWIN_ALIAS(mktime); |
| 116 | size_t strftime(char * __restrict, size_t, const char * __restrict, const struct tm * __restrict) __DARWIN_ALIAS(strftime); | |
| 117 | char *strptime(const char * __restrict, const char * __restrict, struct tm * __restrict) __DARWIN_ALIAS(strptime); | |
| 119 | size_t strftime(char *_LIBC_COUNT(__maxsize) __restrict, size_t __maxsize, const char * __restrict, const struct tm * __restrict) __DARWIN_ALIAS(strftime); | |
| 120 | char *_LIBC_CSTR	strptime(const char * __restrict, const char * __restrict, struct tm * __restrict) __DARWIN_ALIAS(strptime); | |
| 118 | 121 | time_t time(time_t *); |
| 119 | 122 | |
| 120 | 123 | #ifndef _ANSI_SOURCE |
| ... | ... | @@ -122,15 +125,15 @@ void tzset(void); |
| 122 | 125 | #endif /* not ANSI */ |
| 123 | 126 | |
| 124 | 127 | /* [TSF] Thread safe functions */ |
| 125 | char *asctime_r(const struct tm * __restrict, char * __restrict); | |
| 126 | char *ctime_r(const time_t *, char *); | |
| 128 | char *_LIBC_CSTR asctime_r(const struct tm * __restrict, char * __restrict _LIBC_COUNT(26)); | |
| 129 | char *_LIBC_CSTR ctime_r(const time_t *, char *_LIBC_COUNT(26)); | |
| 127 | 130 | struct tm *gmtime_r(const time_t * __restrict, struct tm * __restrict); |
| 128 | 131 | struct tm *localtime_r(const time_t * __restrict, struct tm * __restrict); |
| 129 | 132 | |
| 130 | 133 | #if !defined(_ANSI_SOURCE) && (!defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)) |
| 131 | 134 | time_t posix2time(time_t); |
| 132 | 135 | #if !__DARWIN_UNIX03 |
| 133 | char *timezone(int, int); | |
| 136 | char *_LIBC_CSTR timezone(int, int); | |
| 134 | 137 | #endif /* !__DARWIN_UNIX03 */ |
| 135 | 138 | void tzsetwall(void); |
| 136 | 139 | time_t time2posix(time_t); |
lib/libc/include/any-macos-any/_types.h+3| ... | ... | @@ -25,8 +25,11 @@ |
| 25 | 25 | #define __TYPES_H_ |
| 26 | 26 | |
| 27 | 27 | #include <sys/_types.h> |
| 28 | #include <_bounds.h> | |
| 28 | 29 | #include <machine/_types.h> /* __uint32_t */ |
| 29 | 30 | |
| 31 | _LIBC_SINGLE_BY_DEFAULT() | |
| 32 | ||
| 30 | 33 | #if __GNUC__ > 2 || __GNUC__ == 2 && __GNUC_MINOR__ >= 7 |
| 31 | 34 | #define __strfmonlike(fmtarg, firstvararg) \ |
| 32 | 35 | 		__attribute__((__format__ (__strfmon__, fmtarg, firstvararg))) |
lib/libc/include/any-macos-any/_types/_locale_t.h created+38| ... | ... | @@ -0,0 +1,38 @@ |
| 1 | /* | |
| 2 | * Copyright (c) 2024 Apple Inc. All rights reserved. | |
| 3 | * | |
| 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ | |
| 5 | * | |
| 6 | * This file contains Original Code and/or Modifications of Original Code | |
| 7 | * as defined in and that are subject to the Apple Public Source License | |
| 8 | * Version 2.0 (the 'License'). You may not use this file except in | |
| 9 | * compliance with the License. The rights granted to you under the License | |
| 10 | * may not be used to create, or enable the creation or redistribution of, | |
| 11 | * unlawful or unlicensed copies of an Apple operating system, or to | |
| 12 | * circumvent, violate, or enable the circumvention or violation of, any | |
| 13 | * terms of an Apple operating system software license agreement. | |
| 14 | * | |
| 15 | * Please obtain a copy of the License at | |
| 16 | * http://www.opensource.apple.com/apsl/ and read it before using this file. | |
| 17 | * | |
| 18 | * The Original Code and all software distributed under the License are | |
| 19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER | |
| 20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, | |
| 21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, | |
| 22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. | |
| 23 | * Please see the License for the specific language governing rights and | |
| 24 | * limitations under the License. | |
| 25 | * | |
| 26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ | |
| 27 | */ | |
| 28 | ||
| 29 | #ifndef _LOCALE_T | |
| 30 | #define _LOCALE_T | |
| 31 | ||
| 32 | #include <_bounds.h> | |
| 33 | ||
| 34 | _LIBC_SINGLE_BY_DEFAULT() | |
| 35 | ||
| 36 | struct _xlocale; /* forward reference */ | |
| 37 | typedef struct _xlocale *		locale_t; | |
| 38 | #endif /* _LOCALE_T */ |
lib/libc/include/any-macos-any/_wchar.h+81-45| ... | ... | @@ -67,6 +67,7 @@ |
| 67 | 67 | #ifndef _WCHAR_H_ |
| 68 | 68 | #define _WCHAR_H_ |
| 69 | 69 | |
| 70 | #include <_bounds.h> | |
| 70 | 71 | #include <_types.h> |
| 71 | 72 | #include <sys/cdefs.h> |
| 72 | 73 | #include <Availability.h> |
| ... | ... | @@ -91,12 +92,15 @@ |
| 91 | 92 | #include <time.h> |
| 92 | 93 | #include <__wctype.h> |
| 93 | 94 | |
| 95 | _LIBC_SINGLE_BY_DEFAULT() | |
| 94 | 96 | |
| 95 | 97 | /* Initially added in Issue 4 */ |
| 96 | 98 | __BEGIN_DECLS |
| 97 | 99 | wint_t	btowc(int); |
| 98 | 100 | wint_t	fgetwc(FILE *); |
| 99 | wchar_t	*fgetws(wchar_t * __restrict, int, FILE * __restrict); | |
| 101 | wchar_t	*_LIBC_CSTR | |
| 102 | 	fgetws(wchar_t * __restrict _LIBC_COUNT(__n), int __n, | |
| 103 | 		FILE * __restrict); | |
| 100 | 104 | wint_t	fputwc(wchar_t, FILE *); |
| 101 | 105 | int	fputws(const wchar_t * __restrict, FILE * __restrict); |
| 102 | 106 | int	fwide(FILE *, int); |
| ... | ... | @@ -104,57 +108,78 @@ int	fwprintf(FILE * __restrict, const wchar_t * __restrict, ...); |
| 104 | 108 | int	fwscanf(FILE * __restrict, const wchar_t * __restrict, ...); |
| 105 | 109 | wint_t	getwc(FILE *); |
| 106 | 110 | wint_t	getwchar(void); |
| 107 | size_t	mbrlen(const char * __restrict, size_t, mbstate_t * __restrict); | |
| 108 | size_t	mbrtowc(wchar_t * __restrict, const char * __restrict, size_t, | |
| 109 | 	 mbstate_t * __restrict); | |
| 111 | size_t	mbrlen(const char * __restrict _LIBC_COUNT(__n), size_t __n, | |
| 112 | 		mbstate_t * __restrict); | |
| 113 | size_t	mbrtowc(wchar_t * __restrict, const char * __restrict _LIBC_COUNT(__n), | |
| 114 | 	 size_t __n, mbstate_t * __restrict); | |
| 110 | 115 | int	mbsinit(const mbstate_t *); |
| 111 | size_t	mbsrtowcs(wchar_t * __restrict, const char ** __restrict, size_t, | |
| 112 | 	 mbstate_t * __restrict); | |
| 116 | size_t	mbsrtowcs(wchar_t * __restrict _LIBC_COUNT(__len), | |
| 117 | 		const char ** __restrict, size_t __len, mbstate_t * __restrict); | |
| 113 | 118 | wint_t	putwc(wchar_t, FILE *); |
| 114 | 119 | wint_t	putwchar(wchar_t); |
| 115 | int	swprintf(wchar_t * __restrict, size_t, const wchar_t * __restrict, ...); | |
| 120 | int	swprintf(wchar_t * __restrict _LIBC_COUNT(__maxlen), size_t __maxlen, | |
| 121 | 		const wchar_t * __restrict, ...); | |
| 116 | 122 | int	swscanf(const wchar_t * __restrict, const wchar_t * __restrict, ...); |
| 117 | 123 | wint_t	ungetwc(wint_t, FILE *); |
| 118 | 124 | int	vfwprintf(FILE * __restrict, const wchar_t * __restrict, |
| 119 | 125 | 	 __darwin_va_list); |
| 120 | int	vswprintf(wchar_t * __restrict, size_t, const wchar_t * __restrict, | |
| 121 | 	 __darwin_va_list); | |
| 126 | int	vswprintf(wchar_t * __restrict _LIBC_COUNT(__maxlen), size_t __maxlen, | |
| 127 | 		const wchar_t * __restrict, __darwin_va_list); | |
| 122 | 128 | int	vwprintf(const wchar_t * __restrict, __darwin_va_list); |
| 123 | 129 | size_t	wcrtomb(char * __restrict, wchar_t, mbstate_t * __restrict); |
| 124 | 130 | wchar_t	*wcscat(wchar_t * __restrict, const wchar_t * __restrict); |
| 125 | 131 | wchar_t	*wcschr(const wchar_t *, wchar_t); |
| 126 | 132 | int	wcscmp(const wchar_t *, const wchar_t *); |
| 127 | 133 | int	wcscoll(const wchar_t *, const wchar_t *); |
| 128 | wchar_t	*wcscpy(wchar_t * __restrict, const wchar_t * __restrict); | |
| 134 | wchar_t	*wcscpy(wchar_t * __restrict _LIBC_UNSAFE_INDEXABLE, | |
| 135 | 		const wchar_t * __restrict) _LIBC_PTRCHECK_REPLACED(wcslcpy); | |
| 129 | 136 | size_t	wcscspn(const wchar_t *, const wchar_t *); |
| 130 | size_t	wcsftime(wchar_t * __restrict, size_t, const wchar_t * __restrict, | |
| 131 | 	 const struct tm * __restrict) __DARWIN_ALIAS(wcsftime); | |
| 137 | size_t	wcsftime(wchar_t * __restrict _LIBC_COUNT(__maxlen), size_t __maxlen, | |
| 138 | 		const wchar_t * __restrict, const struct tm * __restrict) | |
| 139 | 		__DARWIN_ALIAS(wcsftime); | |
| 132 | 140 | size_t	wcslen(const wchar_t *); |
| 133 | wchar_t	*wcsncat(wchar_t * __restrict, const wchar_t * __restrict, size_t); | |
| 134 | int	wcsncmp(const wchar_t *, const wchar_t *, size_t); | |
| 135 | wchar_t	*wcsncpy(wchar_t * __restrict , const wchar_t * __restrict, size_t); | |
| 141 | wchar_t	*_LIBC_UNSAFE_INDEXABLE | |
| 142 | 		wcsncat(wchar_t * __restrict _LIBC_UNSAFE_INDEXABLE, | |
| 143 | 		const wchar_t * __restrict _LIBC_COUNT(__n), size_t __n) | |
| 144 | 		_LIBC_PTRCHECK_REPLACED(wcslcat); | |
| 145 | int	wcsncmp(const wchar_t *_LIBC_UNSAFE_INDEXABLE, | |
| 146 | 		const wchar_t *_LIBC_UNSAFE_INDEXABLE, size_t); | |
| 147 | wchar_t	*_LIBC_COUNT(__n) | |
| 148 | 		wcsncpy(wchar_t * __restrict _LIBC_COUNT(__n), | |
| 149 | 		const wchar_t * __restrict _LIBC_UNSAFE_INDEXABLE, size_t __n) | |
| 150 | 		_LIBC_PTRCHECK_REPLACED(wcslcpy); | |
| 136 | 151 | wchar_t	*wcspbrk(const wchar_t *, const wchar_t *); |
| 137 | 152 | wchar_t	*wcsrchr(const wchar_t *, wchar_t); |
| 138 | size_t	wcsrtombs(char * __restrict, const wchar_t ** __restrict, size_t, | |
| 139 | 	 mbstate_t * __restrict); | |
| 153 | size_t	wcsrtombs(char * __restrict _LIBC_COUNT(__len), | |
| 154 | 		const wchar_t ** __restrict, size_t __len, mbstate_t * __restrict); | |
| 140 | 155 | size_t	wcsspn(const wchar_t *, const wchar_t *); |
| 141 | 156 | wchar_t	*wcsstr(const wchar_t * __restrict, const wchar_t * __restrict); |
| 142 | size_t	wcsxfrm(wchar_t * __restrict, const wchar_t * __restrict, size_t); | |
| 157 | size_t	wcsxfrm(wchar_t * __restrict _LIBC_COUNT(__n), | |
| 158 | 		const wchar_t * __restrict, size_t __n); | |
| 143 | 159 | int	wctob(wint_t); |
| 144 | 160 | double	wcstod(const wchar_t * __restrict, wchar_t ** __restrict); |
| 145 | wchar_t	*wcstok(wchar_t * __restrict, const wchar_t * __restrict, | |
| 146 | 	 wchar_t ** __restrict); | |
| 147 | long	 wcstol(const wchar_t * __restrict, wchar_t ** __restrict, int); | |
| 161 | wchar_t	*_LIBC_CSTR | |
| 162 | 		wcstok(wchar_t * __restrict _LIBC_CSTR, const wchar_t * __restrict, | |
| 163 | 	 wchar_t *_LIBC_CSTR * __restrict); | |
| 164 | long	 wcstol(const wchar_t * __restrict, wchar_t *_LIBC_CSTR * __restrict, | |
| 165 | 		int); | |
| 148 | 166 | unsigned long |
| 149 | 	 wcstoul(const wchar_t * __restrict, wchar_t ** __restrict, int); | |
| 150 | wchar_t	*wmemchr(const wchar_t *, wchar_t, size_t); | |
| 151 | int	wmemcmp(const wchar_t *, const wchar_t *, size_t); | |
| 152 | wchar_t	*wmemcpy(wchar_t * __restrict, const wchar_t * __restrict, size_t); | |
| 153 | wchar_t	*wmemmove(wchar_t *, const wchar_t *, size_t); | |
| 154 | wchar_t	*wmemset(wchar_t *, wchar_t, size_t); | |
| 167 | 	 wcstoul(const wchar_t * __restrict, wchar_t *_LIBC_CSTR * __restrict, int); | |
| 168 | wchar_t	*_LIBC_UNSAFE_INDEXABLE /* in bounds of arg1 */ | |
| 169 | 		wmemchr(const wchar_t *_LIBC_COUNT(__n) /*arg1*/, wchar_t, size_t __n); | |
| 170 | int	wmemcmp(const wchar_t *_LIBC_COUNT(__n), const wchar_t *_LIBC_COUNT(__n), | |
| 171 | 		size_t __n); | |
| 172 | wchar_t	*_LIBC_COUNT(__n) | |
| 173 | 		wmemcpy(wchar_t * __restrict _LIBC_COUNT(__n), | |
| 174 | 		const wchar_t * __restrict _LIBC_COUNT(__n), size_t __n); | |
| 175 | wchar_t	*_LIBC_COUNT(__n) | |
| 176 | 		wmemmove(wchar_t *_LIBC_COUNT(__n), const wchar_t *_LIBC_COUNT(__n), | |
| 177 | 		size_t __n); | |
| 178 | wchar_t	*_LIBC_COUNT(__n) | |
| 179 | 		wmemset(wchar_t *_LIBC_COUNT(__n), wchar_t, size_t __n); | |
| 155 | 180 | int	wprintf(const wchar_t * __restrict, ...); |
| 156 | 181 | int	wscanf(const wchar_t * __restrict, ...); |
| 157 | int	wcswidth(const wchar_t *, size_t); | |
| 182 | int	wcswidth(const wchar_t *_LIBC_COUNT(__n), size_t __n); | |
| 158 | 183 | int	wcwidth(wchar_t); |
| 159 | 184 | __END_DECLS |
| 160 | 185 | |
| ... | ... | @@ -172,14 +197,14 @@ int	vfwscanf(FILE * __restrict, const wchar_t * __restrict, |
| 172 | 197 | int	vswscanf(const wchar_t * __restrict, const wchar_t * __restrict, |
| 173 | 198 | 	 __darwin_va_list); |
| 174 | 199 | int	vwscanf(const wchar_t * __restrict, __darwin_va_list); |
| 175 | float	wcstof(const wchar_t * __restrict, wchar_t ** __restrict); | |
| 200 | float	wcstof(const wchar_t * __restrict, wchar_t *_LIBC_CSTR * __restrict); | |
| 176 | 201 | long double |
| 177 | 	wcstold(const wchar_t * __restrict, wchar_t ** __restrict); | |
| 202 | 	wcstold(const wchar_t * __restrict, wchar_t *_LIBC_CSTR * __restrict); | |
| 178 | 203 | #if !__DARWIN_NO_LONG_LONG |
| 179 | 204 | long long |
| 180 | 	wcstoll(const wchar_t * __restrict, wchar_t ** __restrict, int); | |
| 205 | 	wcstoll(const wchar_t * __restrict, wchar_t *_LIBC_CSTR * __restrict, int); | |
| 181 | 206 | unsigned long long |
| 182 | 	wcstoull(const wchar_t * __restrict, wchar_t ** __restrict, int); | |
| 207 | 	wcstoull(const wchar_t * __restrict, wchar_t *_LIBC_CSTR * __restrict, int); | |
| 183 | 208 | #endif /* !__DARWIN_NO_LONG_LONG */ |
| 184 | 209 | __END_DECLS |
| 185 | 210 | #endif |
| ... | ... | @@ -192,17 +217,27 @@ __END_DECLS |
| 192 | 217 | |
| 193 | 218 | #if __DARWIN_C_LEVEL >= 200809L |
| 194 | 219 | __BEGIN_DECLS |
| 195 | size_t mbsnrtowcs(wchar_t * __restrict, const char ** __restrict, size_t, | |
| 196 | size_t, mbstate_t * __restrict); | |
| 197 | wchar_t *wcpcpy(wchar_t * __restrict, const wchar_t * __restrict) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3); | |
| 198 | wchar_t *wcpncpy(wchar_t * __restrict, const wchar_t * __restrict, size_t) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3); | |
| 199 | wchar_t *wcsdup(const wchar_t *) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3); | |
| 220 | size_t mbsnrtowcs(wchar_t * __restrict _LIBC_COUNT(__len), | |
| 221 | 		const char *_LIBC_UNSAFE_INDEXABLE* __restrict, size_t, size_t __len, | |
| 222 | 		mbstate_t * __restrict); | |
| 223 | wchar_t *_LIBC_UNSAFE_INDEXABLE	wcpcpy( | |
| 224 | 		wchar_t * __restrict _LIBC_UNSAFE_INDEXABLE, | |
| 225 | 		const wchar_t * __restrict) _LIBC_PTRCHECK_REPLACED(wcslcpy) | |
| 226 | 		__OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3) | |
| 227 | 		_LIBC_PTRCHECK_REPLACED(wcslcpy); | |
| 228 | wchar_t *_LIBC_COUNT(__n)	wcpncpy( | |
| 229 | 		wchar_t * __restrict _LIBC_COUNT(__n), | |
| 230 | 		const wchar_t * __restrict _LIBC_UNSAFE_INDEXABLE, size_t __n) | |
| 231 | 		__OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3) | |
| 232 | 		_LIBC_PTRCHECK_REPLACED(wcslcpy); | |
| 233 | wchar_t *_LIBC_CSTR wcsdup(const wchar_t *) | |
| 234 | 		__OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3); | |
| 200 | 235 | int wcscasecmp(const wchar_t *, const wchar_t *) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3); |
| 201 | int wcsncasecmp(const wchar_t *, const wchar_t *, size_t n) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3); | |
| 202 | size_t wcsnlen(const wchar_t *, size_t) __pure __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3); | |
| 203 | size_t wcsnrtombs(char * __restrict, const wchar_t ** __restrict, size_t, | |
| 204 | size_t, mbstate_t * __restrict); | |
| 205 | FILE *open_wmemstream(wchar_t ** __bufp, size_t * __sizep) __API_AVAILABLE(macos(10.13), ios(11.0), tvos(11.0), watchos(4.0)); | |
| 236 | int wcsncasecmp(const wchar_t *_LIBC_UNSAFE_INDEXABLE, const wchar_t *_LIBC_UNSAFE_INDEXABLE, size_t n) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3); | |
| 237 | size_t wcsnlen(const wchar_t *_LIBC_COUNT(__n), size_t __n) __pure __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3); | |
| 238 | size_t wcsnrtombs(char * __restrict _LIBC_COUNT(__len), const wchar_t ** __restrict, size_t, | |
| 239 | size_t __len, mbstate_t * __restrict); | |
| 240 | FILE *open_wmemstream(wchar_t *_LIBC_COUNT(*__sizep) * __bufp, size_t * __sizep) __API_AVAILABLE(macos(10.13), ios(11.0), tvos(11.0), watchos(4.0)); | |
| 206 | 241 | __END_DECLS |
| 207 | 242 | #endif /* __DARWIN_C_LEVEL >= 200809L */ |
| 208 | 243 | |
| ... | ... | @@ -212,9 +247,10 @@ __END_DECLS |
| 212 | 247 | |
| 213 | 248 | #if __DARWIN_C_LEVEL >= __DARWIN_C_FULL |
| 214 | 249 | __BEGIN_DECLS |
| 215 | wchar_t *fgetwln(FILE * __restrict, size_t *) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3); | |
| 216 | size_t	wcslcat(wchar_t *, const wchar_t *, size_t); | |
| 217 | size_t	wcslcpy(wchar_t *, const wchar_t *, size_t); | |
| 250 | wchar_t *_LIBC_COUNT(*__len) | |
| 251 | 		fgetwln(FILE * __restrict, size_t *__len) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3); | |
| 252 | size_t	wcslcat(wchar_t *_LIBC_COUNT(__len), const wchar_t *, size_t __len); | |
| 253 | size_t	wcslcpy(wchar_t *_LIBC_COUNT(__len), const wchar_t *, size_t __len); | |
| 218 | 254 | __END_DECLS |
| 219 | 255 | #endif /* __DARWIN_C_LEVEL >= __DARWIN_C_FULL */ |
| 220 | 256 |
lib/libc/include/any-macos-any/_wctype.h+3| ... | ... | @@ -32,6 +32,7 @@ |
| 32 | 32 | #define	_WCTYPE_H_ |
| 33 | 33 | |
| 34 | 34 | #include <sys/cdefs.h> |
| 35 | #include <_bounds.h> | |
| 35 | 36 | #include <_types.h> |
| 36 | 37 | #include <_types/_wctrans_t.h> |
| 37 | 38 | |
| ... | ... | @@ -40,6 +41,8 @@ |
| 40 | 41 | #include <__wctype.h> |
| 41 | 42 | #include <ctype.h> |
| 42 | 43 | |
| 44 | _LIBC_SINGLE_BY_DEFAULT() | |
| 45 | ||
| 43 | 46 | /* |
| 44 | 47 | * Use inline functions if we are allowed to and the compiler supports them. |
| 45 | 48 | */ |
lib/libc/include/any-macos-any/_xlocale.h+2-22| ... | ... | @@ -25,6 +25,7 @@ |
| 25 | 25 | #define _XLOCALE_H_ |
| 26 | 26 | |
| 27 | 27 | #include <sys/cdefs.h> |
| 28 | #include <_bounds.h> | |
| 28 | 29 | |
| 29 | 30 | #ifndef _USE_EXTENDED_LOCALES_ |
| 30 | 31 | #define _USE_EXTENDED_LOCALES_ |
| ... | ... | @@ -33,34 +34,13 @@ |
| 33 | 34 | #include <_locale.h> |
| 34 | 35 | #include <__xlocale.h> |
| 35 | 36 | |
| 36 | #define LC_ALL_MASK			( LC_COLLATE_MASK \ | |
| 37 | 					 | LC_CTYPE_MASK \ | |
| 38 | 					 | LC_MESSAGES_MASK \ | |
| 39 | 					 | LC_MONETARY_MASK \ | |
| 40 | 					 | LC_NUMERIC_MASK \ | |
| 41 | 					 | LC_TIME_MASK ) | |
| 42 | #define LC_COLLATE_MASK			(1 << 0) | |
| 43 | #define LC_CTYPE_MASK			(1 << 1) | |
| 44 | #define LC_MESSAGES_MASK		(1 << 2) | |
| 45 | #define LC_MONETARY_MASK		(1 << 3) | |
| 46 | #define LC_NUMERIC_MASK			(1 << 4) | |
| 47 | #define LC_TIME_MASK			(1 << 5) | |
| 48 | ||
| 49 | #define _LC_NUM_MASK			6 | |
| 50 | #define _LC_LAST_MASK			(1 << (_LC_NUM_MASK - 1)) | |
| 51 | ||
| 52 | #define LC_GLOBAL_LOCALE		((locale_t)-1) | |
| 53 | #define LC_C_LOCALE				((locale_t)NULL) | |
| 37 | _LIBC_SINGLE_BY_DEFAULT() | |
| 54 | 38 | |
| 55 | 39 | __BEGIN_DECLS |
| 56 | 40 | extern const locale_t _c_locale; |
| 57 | 41 | |
| 58 | locale_t	duplocale(locale_t); | |
| 59 | int		freelocale(locale_t); | |
| 60 | 42 | struct lconv *	localeconv_l(locale_t); |
| 61 | locale_t	newlocale(int, __const char *, locale_t); | |
| 62 | 43 | __const char *	querylocale(int, locale_t); |
| 63 | locale_t	uselocale(locale_t); | |
| 64 | 44 | __END_DECLS |
| 65 | 45 | |
| 66 | 46 | #endif /* _XLOCALE_H_ */ |
lib/libc/include/any-macos-any/alloca.h+4-1| ... | ... | @@ -25,11 +25,14 @@ |
| 25 | 25 | #define _ALLOCA_H_ |
| 26 | 26 | |
| 27 | 27 | #include <sys/cdefs.h> |
| 28 | #include <_bounds.h> | |
| 28 | 29 | #include <_types.h> |
| 29 | 30 | #include <sys/_types/_size_t.h> |
| 30 | 31 | |
| 32 | _LIBC_SINGLE_BY_DEFAULT() | |
| 33 | ||
| 31 | 34 | __BEGIN_DECLS |
| 32 | void	*alloca(size_t);		/* built-in for gcc */ | |
| 35 | void	*_LIBC_SIZE(__size) alloca(size_t __size);		/* built-in for gcc */ | |
| 33 | 36 | __END_DECLS |
| 34 | 37 | |
| 35 | 38 | #if defined(__GNUC__) && __GNUC__ >= 3 |
lib/libc/include/any-macos-any/ar.h+4| ... | ... | @@ -44,6 +44,10 @@ |
| 44 | 44 | #ifndef _AR_H_ |
| 45 | 45 | #define	_AR_H_ |
| 46 | 46 | |
| 47 | #include <_bounds.h> | |
| 48 | ||
| 49 | _LIBC_SINGLE_BY_DEFAULT() | |
| 50 | ||
| 47 | 51 | /* Pre-4BSD archives had these magic numbers in them. */ |
| 48 | 52 | #define	OARMAG1	0177555 |
| 49 | 53 | #define	OARMAG2	0177545 |
lib/libc/include/any-macos-any/arpa/inet.h+11-8| ... | ... | @@ -63,6 +63,7 @@ |
| 63 | 63 | |
| 64 | 64 | /* External definitions for functions in inet(3), addr2ascii(3) */ |
| 65 | 65 | |
| 66 | #include <_bounds.h> | |
| 66 | 67 | #include <sys/cdefs.h> |
| 67 | 68 | #include <sys/_types.h> |
| 68 | 69 | #include <stdint.h>		/* uint32_t uint16_t */ |
| ... | ... | @@ -70,26 +71,28 @@ |
| 70 | 71 | #include <sys/_endian.h>	/* htonl() and family if (_POSIX_C_SOURCE && !_DARWIN_C_SOURCE) */ |
| 71 | 72 | #include <netinet/in.h>		/* in_addr */ |
| 72 | 73 | |
| 74 | _LIBC_SINGLE_BY_DEFAULT() | |
| 75 | ||
| 73 | 76 | __BEGIN_DECLS |
| 74 | 77 | |
| 75 | 78 | in_addr_t	 inet_addr(const char *); |
| 76 | char		*inet_ntoa(struct in_addr); | |
| 77 | const char	*inet_ntop(int, const void *, char *, socklen_t); | |
| 79 | char		*_LIBC_CSTR inet_ntoa(struct in_addr); | |
| 80 | const char	*inet_ntop(int, const void *, char *_LIBC_COUNT(__size), socklen_t __size); | |
| 78 | 81 | int		 inet_pton(int, const char *, void *); |
| 79 | 82 | |
| 80 | 83 | #if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE) |
| 81 | 84 | int		 ascii2addr(int, const char *, void *); |
| 82 | char		*addr2ascii(int, const void *, int, char *); | |
| 85 | char *_LIBC_CSTR	addr2ascii(int, const void *_LIBC_SIZE(__size), int __size, char *_LIBC_UNSAFE_INDEXABLE); | |
| 83 | 86 | int		 inet_aton(const char *, struct in_addr *); |
| 84 | 87 | in_addr_t	 inet_lnaof(struct in_addr); |
| 85 | 88 | struct in_addr	 inet_makeaddr(in_addr_t, in_addr_t); |
| 86 | 89 | in_addr_t	 inet_netof(struct in_addr); |
| 87 | 90 | in_addr_t	 inet_network(const char *); |
| 88 | char		*inet_net_ntop(int, const void *, int, char *, __darwin_size_t); | |
| 89 | int		 inet_net_pton(int, const char *, void *, __darwin_size_t); | |
| 90 | char	 	*inet_neta(in_addr_t, char *, __darwin_size_t); | |
| 91 | unsigned int	 inet_nsap_addr(const char *, unsigned char *, int); | |
| 92 | char	*inet_nsap_ntoa(int, const unsigned char *, char *); | |
| 91 | char *_LIBC_CSTR	inet_net_ntop(int, const void *, int, char *_LIBC_COUNT(__size), __darwin_size_t __size); | |
| 92 | int		 inet_net_pton(int, const char *, void *_LIBC_SIZE(__size), __darwin_size_t __size); | |
| 93 | char *_LIBC_CSTR	inet_neta(in_addr_t, char *_LIBC_COUNT(__size), __darwin_size_t __size); | |
| 94 | unsigned int	 inet_nsap_addr(const char *, unsigned char *_LIBC_COUNT(__maxlen), int __maxlen); | |
| 95 | char *_LIBC_CSTR	inet_nsap_ntoa(int __binlen, const unsigned char *_LIBC_COUNT(__binlen), char *_LIBC_COUNT_OR_NULL(2 + __binlen*2 + __binlen/2 + 1)); | |
| 93 | 96 | #endif /* (_POSIX_C_SOURCE && !_DARWIN_C_SOURCE) */ |
| 94 | 97 | |
| 95 | 98 | __END_DECLS |
lib/libc/include/any-macos-any/crt_externs.h+6-3| ... | ... | @@ -32,12 +32,15 @@ |
| 32 | 32 | */ |
| 33 | 33 | |
| 34 | 34 | #include <sys/cdefs.h> |
| 35 | #include <_bounds.h> | |
| 36 | ||
| 37 | _LIBC_SINGLE_BY_DEFAULT() | |
| 35 | 38 | |
| 36 | 39 | __BEGIN_DECLS |
| 37 | extern char ***_NSGetArgv(void); | |
| 40 | extern char *_LIBC_CSTR *_LIBC_NULL_TERMINATED *_NSGetArgv(void); | |
| 38 | 41 | extern int *_NSGetArgc(void); |
| 39 | extern char ***_NSGetEnviron(void); | |
| 40 | extern char **_NSGetProgname(void); | |
| 42 | extern char *_LIBC_CSTR *_LIBC_NULL_TERMINATED	*_NSGetEnviron(void); | |
| 43 | extern char *_LIBC_CSTR	*_NSGetProgname(void); | |
| 41 | 44 | #ifdef __LP64__ |
| 42 | 45 | extern struct mach_header_64 * |
| 43 | 46 | #else /* !__LP64__ */ |
lib/libc/include/any-macos-any/dirent.h+5-2| ... | ... | @@ -61,12 +61,15 @@ |
| 61 | 61 | /* |
| 62 | 62 | * The kernel defines the format of directory entries |
| 63 | 63 | */ |
| 64 | #include <_bounds.h> | |
| 64 | 65 | #include <_types.h> |
| 65 | 66 | #include <sys/dirent.h> |
| 66 | 67 | #include <sys/cdefs.h> |
| 67 | 68 | #include <Availability.h> |
| 68 | 69 | #include <sys/_pthread/_pthread_types.h> /* __darwin_pthread_mutex_t */ |
| 69 | 70 | |
| 71 | _LIBC_SINGLE_BY_DEFAULT() | |
| 72 | ||
| 70 | 73 | struct _telldir;		/* forward reference */ |
| 71 | 74 | |
| 72 | 75 | /* structure describing an open directory. */ |
| ... | ... | @@ -74,7 +77,7 @@ typedef struct { |
| 74 | 77 | 	int	__dd_fd;	/* file descriptor associated with directory */ |
| 75 | 78 | 	long	__dd_loc;	/* offset in current buffer */ |
| 76 | 79 | 	long	__dd_size;	/* amount of data returned */ |
| 77 | 	char	*__dd_buf;	/* data buffer */ | |
| 80 | 	char *_LIBC_COUNT(__dd_len)	__dd_buf; /* data buffer */ | |
| 78 | 81 | 	int	__dd_len;	/* size of data buffer */ |
| 79 | 82 | 	long	__dd_seek;	/* magic cookie returned */ |
| 80 | 83 | 	__unused long	__padding; /* (__dd_rewind space left for bincompat) */ |
| ... | ... | @@ -168,7 +171,7 @@ __END_DECLS |
| 168 | 171 | #if __DARWIN_C_LEVEL >= __DARWIN_C_FULL |
| 169 | 172 | __BEGIN_DECLS |
| 170 | 173 | |
| 171 | int getdirentries(int, char *, int, long *) | |
| 174 | int getdirentries(int, char *_LIBC_COUNT(__nbytes), int __nbytes, long *) | |
| 172 | 175 | |
| 173 | 176 | #if __DARWIN_64_BIT_INO_T |
| 174 | 177 | /* |
lib/libc/include/any-macos-any/dispatch/base.h+3-1| ... | ... | @@ -244,11 +244,13 @@ |
| 244 | 244 | #define DISPATCH_SIZED_BY(X) |
| 245 | 245 | #endif |
| 246 | 246 | |
| 247 | #define DISPATCH_OSX_SUPPORTS_AT_LEAST(macos, ios, tvos, watchos) \ | |
| 247 | #define DISPATCH_OSX_SUPPORTS_AT_LEAST(macos, ios, tvos, watchos, bridgeos, visionos) \ | |
| 248 | 248 | 	 (	(defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && __MAC_OS_X_VERSION_MIN_REQUIRED >= macos) \ |
| 249 | 249 | 	||	(defined(__IPHONE_OS_VERSION_MIN_REQUIRED) && __IPHONE_OS_VERSION_MIN_REQUIRED >= ios) \ |
| 250 | 250 | 	||	(defined(__TV_OS_VERSION_MIN_REQUIRED) && __TV_OS_VERSION_MIN_REQUIRED >= tvos) \ |
| 251 | 251 | 	||	(defined(__WATCH_OS_VERSION_MIN_REQUIRED) && __WATCH_OS_VERSION_MIN_REQUIRED >= watchos) \ |
| 252 | 	||	(defined(__BRIDGE_OS_VERSION_MIN_REQUIRED) && __BRIDGE_OS_VERSION_MIN_REQUIRED >= bridgeos) \ | |
| 253 | 	||	(defined(__VISION_OS_VERSION_MIN_REQUIRED) && __VISION_OS_VERSION_MIN_REQUIRED >= visionos) \ | |
| 252 | 254 | 	) |
| 253 | 255 | |
| 254 | 256 | #if !__has_feature(nullability) |
lib/libc/include/any-macos-any/dispatch/object.h+3-2| ... | ... | @@ -71,7 +71,7 @@ DISPATCH_SWIFT_NAME(DispatchObject) OS_OBJECT_DECL_CLASS(dispatch_object); |
| 71 | 71 | /* |
| 72 | 72 | * DISPATCH_DECL_SERIAL_EXECUTOR_SWIFT is for declaring subclasses of a serial executor base class. |
| 73 | 73 | */ |
| 74 | #if DISPATCH_OSX_SUPPORTS_AT_LEAST(140000, 170000, 170000, 100000) | |
| 74 | #if DISPATCH_OSX_SUPPORTS_AT_LEAST(140000, 170000, 170000, 100000, 90400, 10000) | |
| 75 | 75 | #define DISPATCH_DECL_SERIAL_EXECUTOR_SWIFT(name, swift_name) \ |
| 76 | 76 | 	DISPATCH_DECL_SUBCLASS_SWIFT(name, dispatch_queue_serial_executor, swift_name) |
| 77 | 77 | #else |
| ... | ... | @@ -159,6 +159,7 @@ typedef union { |
| 159 | 159 | 		DISPATCH_EXPORT struct dispatch_source_type_s \ |
| 160 | 160 | 				_dispatch_source_type_##name; \ |
| 161 | 161 | 		DISPATCH_SWIFT_NAME(swift_name) \ |
| 162 | 		OS_OBJECT_SWIFT_SENDABLE \ | |
| 162 | 163 | 		OS_OBJECT_DECL_PROTOCOL(dispatch_source_##name, <OS_dispatch_source>); \ |
| 163 | 164 | 		OS_OBJECT_CLASS_IMPLEMENTS_PROTOCOL( \ |
| 164 | 165 | 				dispatch_source, dispatch_source_##name) |
| ... | ... | @@ -173,7 +174,7 @@ typedef union { |
| 173 | 174 | 		OS_OBJECT_DECL_PROTOCOL(name, <NSObject>); \ |
| 174 | 175 | 		OS_OBJECT_CLASS_IMPLEMENTS_PROTOCOL(name, name) |
| 175 | 176 | #ifndef DISPATCH_DATA_DECL |
| 176 | #define DISPATCH_DATA_DECL(name) OS_OBJECT_DECL_SWIFT(name) | |
| 177 | #define DISPATCH_DATA_DECL(name) OS_OBJECT_DECL_SENDABLE_SWIFT(name) | |
| 177 | 178 | #endif // DISPATCH_DATA_DECL |
| 178 | 179 | #define DISPATCH_DATA_DECL_SWIFT(name, swift_name) \ |
| 179 | 180 | 		DISPATCH_SWIFT_NAME(swift_name) \ |
lib/libc/include/any-macos-any/dlfcn.h+11-11| ... | ... | @@ -36,11 +36,10 @@ |
| 36 | 36 | #include <stdbool.h> |
| 37 | 37 | #include <Availability.h> |
| 38 | 38 | |
| 39 | #ifdef __DRIVERKIT_19_0 | |
| 40 | #define __DYLDDL_DRIVERKIT_UNAVAILABLE __API_UNAVAILABLE(driverkit) | |
| 41 | #else | |
| 42 | #define __DYLDDL_DRIVERKIT_UNAVAILABLE | |
| 43 | #endif | |
| 39 | #define __DYLDDL_UNAVAILABLE __API_UNAVAILABLE(driverkit) | |
| 40 | ||
| 41 | #define __DYLDDL_DLSYM_UNAVAILABLE __API_UNAVAILABLE(driverkit) | |
| 42 | ||
| 44 | 43 | |
| 45 | 44 | #ifdef __cplusplus |
| 46 | 45 | extern "C" { |
| ... | ... | @@ -63,20 +62,21 @@ extern int dladdr(const void *, Dl_info *); |
| 63 | 62 | #endif |
| 64 | 63 | |
| 65 | 64 | #else |
| 66 | #define __DYLDDL_DRIVERKIT_UNAVAILABLE | |
| 65 | #define __DYLDDL_UNAVAILABLE | |
| 66 | #define __DYLDDL_DLSYM_UNAVAILABLE | |
| 67 | 67 | #endif /* not POSIX */ |
| 68 | 68 | |
| 69 | 69 | #ifdef __cplusplus |
| 70 | 70 | extern "C" { |
| 71 | 71 | #endif |
| 72 | 72 | |
| 73 | extern int dlclose(void * __handle) __DYLDDL_DRIVERKIT_UNAVAILABLE; | |
| 74 | extern char * dlerror(void) __DYLDDL_DRIVERKIT_UNAVAILABLE; | |
| 75 | extern void * dlopen(const char * __path, int __mode) __DYLDDL_DRIVERKIT_UNAVAILABLE; | |
| 76 | extern void * dlsym(void * __handle, const char * __symbol); | |
| 73 | extern int dlclose(void * __handle) __DYLDDL_UNAVAILABLE; | |
| 74 | extern char * dlerror(void) __DYLDDL_UNAVAILABLE; | |
| 75 | extern void * dlopen(const char * __path, int __mode) __DYLDDL_UNAVAILABLE; | |
| 76 | extern void * dlsym(void * __handle, const char * __symbol) __DYLDDL_DLSYM_UNAVAILABLE; | |
| 77 | 77 | |
| 78 | 78 | #if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE) |
| 79 | extern bool dlopen_preflight(const char* __path) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0) __DYLDDL_DRIVERKIT_UNAVAILABLE; | |
| 79 | extern bool dlopen_preflight(const char* __path) __API_AVAILABLE(macos(10.5), ios(2.0)) __DYLDDL_UNAVAILABLE; | |
| 80 | 80 | #endif /* not POSIX */ |
| 81 | 81 | |
| 82 | 82 |
lib/libc/include/any-macos-any/err.h+3| ... | ... | @@ -66,9 +66,12 @@ |
| 66 | 66 | * __darwin_va_list from <machine/_type.h> and use it. |
| 67 | 67 | */ |
| 68 | 68 | #include <sys/cdefs.h> |
| 69 | #include <_bounds.h> | |
| 69 | 70 | #include <_types.h> |
| 70 | 71 | #include <Availability.h> |
| 71 | 72 | |
| 73 | _LIBC_SINGLE_BY_DEFAULT() | |
| 74 | ||
| 72 | 75 | __BEGIN_DECLS |
| 73 | 76 | void	err(int, const char *, ...) __cold __dead2 __printflike(2, 3); |
| 74 | 77 | void	verr(int, const char *, __darwin_va_list) __cold __dead2 __printflike(2, 0); |
lib/libc/include/any-macos-any/execinfo.h+9-6| ... | ... | @@ -24,6 +24,7 @@ |
| 24 | 24 | #define _EXECINFO_H_ 1 |
| 25 | 25 | |
| 26 | 26 | #include <sys/cdefs.h> |
| 27 | #include <_bounds.h> | |
| 27 | 28 | #include <Availability.h> |
| 28 | 29 | #include <os/base.h> |
| 29 | 30 | #include <os/availability.h> |
| ... | ... | @@ -31,16 +32,18 @@ |
| 31 | 32 | #include <stdint.h> |
| 32 | 33 | #include <uuid/uuid.h> |
| 33 | 34 | |
| 35 | _LIBC_SINGLE_BY_DEFAULT() | |
| 36 | ||
| 34 | 37 | __BEGIN_DECLS |
| 35 | 38 | |
| 36 | int backtrace(void**,int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0); | |
| 39 | int backtrace(void **_LIBC_COUNT(__size), int __size) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0); | |
| 37 | 40 | |
| 38 | 41 | API_AVAILABLE(macosx(10.14), ios(12.0), tvos(12.0), watchos(5.0)) |
| 39 | 42 | OS_EXPORT |
| 40 | int backtrace_from_fp(void *startfp, void **array, int size); | |
| 43 | int backtrace_from_fp(void *startfp, void **_LIBC_COUNT(size) array, int size); | |
| 41 | 44 | |
| 42 | char** backtrace_symbols(void* const*,int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0); | |
| 43 | void backtrace_symbols_fd(void* const*,int,int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0); | |
| 45 | char *_LIBC_CSTR *_LIBC_COUNT_OR_NULL(__size) backtrace_symbols(void* const* _LIBC_COUNT(__size), int __size) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0); | |
| 46 | void backtrace_symbols_fd(void* const* _LIBC_COUNT(__size),int __size,int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0); | |
| 44 | 47 | |
| 45 | 48 | struct image_offset { |
| 46 | 49 | 	/* |
| ... | ... | @@ -56,7 +59,7 @@ struct image_offset { |
| 56 | 59 | |
| 57 | 60 | API_AVAILABLE(macosx(10.14), ios(12.0), tvos(12.0), watchos(5.0)) |
| 58 | 61 | OS_EXPORT |
| 59 | void backtrace_image_offsets(void* const* array, | |
| 62 | void backtrace_image_offsets(void* const* _LIBC_COUNT(size) array, | |
| 60 | 63 | 		struct image_offset *image_offsets, int size); |
| 61 | 64 | |
| 62 | 65 | /*! |
| ... | ... | @@ -91,7 +94,7 @@ void backtrace_image_offsets(void* const* array, |
| 91 | 94 | * The number of pointers actually written. |
| 92 | 95 | */ |
| 93 | 96 | API_AVAILABLE(macosx(12.0), ios(15.0), tvos(15.0), watchos(8.0)) |
| 94 | size_t backtrace_async(void** array, size_t length, uint32_t *task_id); | |
| 97 | size_t backtrace_async(void** _LIBC_COUNT(length) array, size_t length, uint32_t *task_id); | |
| 95 | 98 | |
| 96 | 99 | __END_DECLS |
| 97 | 100 |
lib/libc/include/any-macos-any/fmtmsg.h+4| ... | ... | @@ -29,6 +29,10 @@ |
| 29 | 29 | #ifndef _FMTMSG_H_ |
| 30 | 30 | #define	_FMTMSG_H_ |
| 31 | 31 | |
| 32 | #include <_bounds.h> | |
| 33 | ||
| 34 | _LIBC_SINGLE_BY_DEFAULT() | |
| 35 | ||
| 32 | 36 | /* Source of condition is... */ |
| 33 | 37 | #define	MM_HARD		0x0001	/* ...hardware. */ |
| 34 | 38 | #define	MM_SOFT		0x0002	/* ...software. */ |
lib/libc/include/any-macos-any/fnmatch.h+3| ... | ... | @@ -58,8 +58,11 @@ |
| 58 | 58 | #ifndef	_FNMATCH_H_ |
| 59 | 59 | #define	_FNMATCH_H_ |
| 60 | 60 | |
| 61 | #include <_bounds.h> | |
| 61 | 62 | #include <sys/cdefs.h> |
| 62 | 63 | |
| 64 | _LIBC_SINGLE_BY_DEFAULT() | |
| 65 | ||
| 63 | 66 | #define	FNM_NOMATCH	1	/* Match failed. */ |
| 64 | 67 | |
| 65 | 68 | #define	FNM_NOESCAPE	0x01	/* Disable backslash escaping. */ |
lib/libc/include/any-macos-any/fts.h+9-6| ... | ... | @@ -63,15 +63,18 @@ |
| 63 | 63 | #include <sys/_types/_ino_t.h> |
| 64 | 64 | #include <sys/_types/_nlink_t.h> |
| 65 | 65 | |
| 66 | #include <_bounds.h> | |
| 66 | 67 | #include <Availability.h> |
| 67 | 68 | |
| 69 | _LIBC_SINGLE_BY_DEFAULT() | |
| 70 | ||
| 68 | 71 | #pragma clang diagnostic push |
| 69 | 72 | #pragma clang diagnostic ignored "-Wstrict-prototypes" |
| 70 | 73 | |
| 71 | 74 | typedef struct { |
| 72 | 75 | 	struct _ftsent *fts_cur;	/* current node */ |
| 73 | 76 | 	struct _ftsent *fts_child;	/* linked list of children */ |
| 74 | 	struct _ftsent **fts_array;	/* sort array */ | |
| 77 | 	struct _ftsent **_LIBC_COUNT(fts_nitems)	fts_array; /* sort array */ | |
| 75 | 78 | 	dev_t fts_dev;			/* starting device # */ |
| 76 | 79 | 	char *fts_path;			/* path for this descent */ |
| 77 | 80 | 	int fts_rfd;			/* fd for root */ |
| ... | ... | @@ -117,8 +120,8 @@ typedef struct _ftsent { |
| 117 | 120 | 	struct _ftsent *fts_link;	/* next file in directory */ |
| 118 | 121 | 	long fts_number;	 /* local numeric value */ |
| 119 | 122 | 	void *fts_pointer;	 /* local address value */ |
| 120 | 	char *fts_accpath;		/* access path */ | |
| 121 | 	char *fts_path;			/* root path */ | |
| 123 | 	char *_LIBC_CSTR fts_accpath;	/* access path */ | |
| 124 | 	char *_LIBC_CSTR fts_path;	/* root path */ | |
| 122 | 125 | 	int fts_errno;			/* errno for this node */ |
| 123 | 126 | 	int fts_symfd;			/* fd for symlink or chdir */ |
| 124 | 127 | 	unsigned short fts_pathlen;	/* strlen(fts_path) */ |
| ... | ... | @@ -162,7 +165,7 @@ typedef struct _ftsent { |
| 162 | 165 | 	unsigned short fts_instr;	/* fts_set() instructions */ |
| 163 | 166 | |
| 164 | 167 | 	struct stat *fts_statp;		/* stat(2) information */ |
| 165 | 	char fts_name[1];		/* file name */ | |
| 168 | 	char fts_name[1];		/* file name, unsafe with -fbounds-safety */ | |
| 166 | 169 | } FTSENT; |
| 167 | 170 | |
| 168 | 171 | #include <sys/cdefs.h> |
| ... | ... | @@ -171,7 +174,7 @@ typedef struct _ftsent { |
| 171 | 174 | __BEGIN_DECLS |
| 172 | 175 | FTSENT	*fts_children(FTS *, int) __DARWIN_INODE64(fts_children); |
| 173 | 176 | int	 fts_close(FTS *) __DARWIN_INODE64(fts_close); |
| 174 | FTS	*fts_open(char * const *, int, | |
| 177 | FTS	*fts_open(char *_LIBC_CSTR const *, int, | |
| 175 | 178 | 	 int (*)(const FTSENT **, const FTSENT **)) __DARWIN_INODE64(fts_open); |
| 176 | 179 | #ifdef __BLOCKS__ |
| 177 | 180 | #if __has_attribute(noescape) |
| ... | ... | @@ -179,7 +182,7 @@ FTS	*fts_open(char * const *, int, |
| 179 | 182 | #else |
| 180 | 183 | #define __fts_noescape |
| 181 | 184 | #endif |
| 182 | FTS	*fts_open_b(char * const *, int, | |
| 185 | FTS	*fts_open_b(char *_LIBC_CSTR const *, int, | |
| 183 | 186 | 	 int (^)(const FTSENT **, const FTSENT **) __fts_noescape) |
| 184 | 187 | 	 __DARWIN_INODE64(fts_open_b) __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_2); |
| 185 | 188 | #endif /* __BLOCKS__ */ |
lib/libc/include/any-macos-any/ftw.h+3| ... | ... | @@ -24,6 +24,9 @@ |
| 24 | 24 | #define	_FTW_H |
| 25 | 25 | |
| 26 | 26 | #include <sys/stat.h> |
| 27 | #include <_bounds.h> | |
| 28 | ||
| 29 | _LIBC_SINGLE_BY_DEFAULT() | |
| 27 | 30 | |
| 28 | 31 | /* |
| 29 | 32 | * Valid flags for the 3rd argument to the function that is passed as the |
lib/libc/include/any-macos-any/getopt.h+7-4| ... | ... | @@ -41,8 +41,11 @@ |
| 41 | 41 | #define _GETOPT_H_ |
| 42 | 42 | |
| 43 | 43 | #include <sys/cdefs.h> |
| 44 | #include <_bounds.h> | |
| 44 | 45 | #include <unistd.h> |
| 45 | 46 | |
| 47 | _LIBC_SINGLE_BY_DEFAULT() | |
| 48 | ||
| 46 | 49 | /* |
| 47 | 50 | * GNU-like getopt_long()/getopt_long_only() with 4.4BSD optreset extension. |
| 48 | 51 | * getopt() is declared here too for GNU programs. |
| ... | ... | @@ -66,15 +69,15 @@ struct option { |
| 66 | 69 | }; |
| 67 | 70 | |
| 68 | 71 | __BEGIN_DECLS |
| 69 | int	getopt_long(int, char * const *, const char *, | |
| 72 | int	getopt_long(int __argc, char *_LIBC_CSTR const *_LIBC_COUNT(__argc), const char *, | |
| 70 | 73 | 	const struct option *, int *); |
| 71 | int	getopt_long_only(int, char * const *, const char *, | |
| 74 | int	getopt_long_only(int __argc, char * const *_LIBC_COUNT(__argc), const char *, | |
| 72 | 75 | 	const struct option *, int *); |
| 73 | 76 | #ifndef _GETOPT |
| 74 | 77 | #define	_GETOPT |
| 75 | int	 getopt(int, char * const [], const char *) __DARWIN_ALIAS(getopt); | |
| 78 | int	 getopt(int __argc, char *_LIBC_CSTR const [_LIBC_COUNT(__argc)], const char *) __DARWIN_ALIAS(getopt); | |
| 76 | 79 | |
| 77 | extern char *optarg;			/* getopt(3) external variables */ | |
| 80 | extern char *_LIBC_CSTR optarg;			/* getopt(3) external variables */ | |
| 78 | 81 | extern int optind, opterr, optopt; |
| 79 | 82 | #endif |
| 80 | 83 | #ifndef _OPTRESET |
lib/libc/include/any-macos-any/glob.h+4-1| ... | ... | @@ -38,9 +38,12 @@ |
| 38 | 38 | |
| 39 | 39 | #include <_types.h> |
| 40 | 40 | #include <sys/cdefs.h> |
| 41 | #include <_bounds.h> | |
| 41 | 42 | #include <Availability.h> |
| 42 | 43 | #include <sys/_types/_size_t.h> |
| 43 | 44 | |
| 45 | _LIBC_SINGLE_BY_DEFAULT() | |
| 46 | ||
| 44 | 47 | #if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE) |
| 45 | 48 | struct dirent; |
| 46 | 49 | struct stat; |
| ... | ... | @@ -50,7 +53,7 @@ typedef struct { |
| 50 | 53 | 	int gl_matchc;		/* Count of paths matching pattern. */ |
| 51 | 54 | 	size_t gl_offs;		/* Reserved at beginning of gl_pathv. */ |
| 52 | 55 | 	int gl_flags;		/* Copy of flags parameter to glob. */ |
| 53 | 	char **gl_pathv;	/* List of paths matching pattern. */ | |
| 56 | 	char *_LIBC_CSTR *_LIBC_COUNT(gl_matchc)	gl_pathv; /* List of paths matching pattern. */ | |
| 54 | 57 | 				/* Copy of errfunc parameter to glob. */ |
| 55 | 58 | #ifdef __BLOCKS__ |
| 56 | 59 | 	union { |
lib/libc/include/any-macos-any/libgen.h+10-6| ... | ... | @@ -32,18 +32,21 @@ |
| 32 | 32 | #define _LIBGEN_H_ |
| 33 | 33 | |
| 34 | 34 | #include <sys/cdefs.h> |
| 35 | #include <_bounds.h> | |
| 36 | ||
| 37 | _LIBC_SINGLE_BY_DEFAULT() | |
| 35 | 38 | |
| 36 | 39 | __BEGIN_DECLS |
| 37 | 40 | |
| 38 | 41 | #if __DARWIN_UNIX03 |
| 39 | 42 | |
| 40 | char	*basename(char *); | |
| 41 | char	*dirname(char *); | |
| 43 | char *_LIBC_CSTR	basename(char *_LIBC_CSTR); | |
| 44 | char *_LIBC_CSTR	dirname(char *_LIBC_CSTR); | |
| 42 | 45 | |
| 43 | 46 | #else /* !__DARWIN_UNIX03 */ |
| 44 | 47 | |
| 45 | char	*basename(const char *); | |
| 46 | char	*dirname(const char *); | |
| 48 | char *_LIBC_CSTR	basename(const char *); | |
| 49 | char *_LIBC_CSTR	dirname(const char *); | |
| 47 | 50 | |
| 48 | 51 | #endif /* __DARWIN_UNIX_03 */ |
| 49 | 52 | |
| ... | ... | @@ -51,14 +54,15 @@ __END_DECLS |
| 51 | 54 | |
| 52 | 55 | #if __DARWIN_C_LEVEL >= __DARWIN_C_FULL |
| 53 | 56 | #include <Availability.h> |
| 57 | #include <limits.h> | |
| 54 | 58 | |
| 55 | 59 | __BEGIN_DECLS |
| 56 | 60 | |
| 57 | char	*basename_r(const char *, char *) | |
| 61 | char *_LIBC_CSTR	basename_r(const char *, char *_LIBC_COUNT(PATH_MAX)) | |
| 58 | 62 | 		__OSX_AVAILABLE(10.12) __IOS_AVAILABLE(10.0) |
| 59 | 63 | 		__TVOS_AVAILABLE(10.0) __WATCHOS_AVAILABLE(3.0); |
| 60 | 64 | |
| 61 | char	*dirname_r(const char *, char *) | |
| 65 | char *_LIBC_CSTR	dirname_r(const char *, char *_LIBC_COUNT(PATH_MAX)) | |
| 62 | 66 | 		__OSX_AVAILABLE(10.12) __IOS_AVAILABLE(10.0) |
| 63 | 67 | 		__TVOS_AVAILABLE(10.0) __WATCHOS_AVAILABLE(3.0); |
| 64 | 68 |
lib/libc/include/any-macos-any/libkern/OSThermalNotification.h+3| ... | ... | @@ -24,10 +24,13 @@ |
| 24 | 24 | #ifndef _OSTHERMALNOTIFICATION_H_ |
| 25 | 25 | #define _OSTHERMALNOTIFICATION_H_ |
| 26 | 26 | |
| 27 | #include <_bounds.h> | |
| 27 | 28 | #include <sys/cdefs.h> |
| 28 | 29 | #include <Availability.h> |
| 29 | 30 | #include <TargetConditionals.h> |
| 30 | 31 | |
| 32 | _LIBC_SINGLE_BY_DEFAULT() | |
| 33 | ||
| 31 | 34 | /* |
| 32 | 35 | ** OSThermalNotification.h |
| 33 | 36 | ** |
lib/libc/include/any-macos-any/locale.h+4-1| ... | ... | @@ -37,8 +37,11 @@ |
| 37 | 37 | #ifndef _LOCALE_H_ |
| 38 | 38 | #define _LOCALE_H_ |
| 39 | 39 | |
| 40 | #include <_bounds.h> | |
| 40 | 41 | #include <_locale.h> |
| 41 | 42 | |
| 43 | _LIBC_SINGLE_BY_DEFAULT() | |
| 44 | ||
| 42 | 45 | #define	LC_ALL		0 |
| 43 | 46 | #define	LC_COLLATE	1 |
| 44 | 47 | #define	LC_CTYPE	2 |
| ... | ... | @@ -50,7 +53,7 @@ |
| 50 | 53 | #define	_LC_LAST	7		/* marks end */ |
| 51 | 54 | |
| 52 | 55 | __BEGIN_DECLS |
| 53 | char		*setlocale(int, const char *); | |
| 56 | char *_LIBC_CSTR	setlocale(int, const char *); | |
| 54 | 57 | __END_DECLS |
| 55 | 58 | |
| 56 | 59 | #endif /* _LOCALE_H_ */ |
lib/libc/include/any-macos-any/mach-o/dyld.h+11-11| ... | ... | @@ -57,10 +57,10 @@ extern "C" { |
| 57 | 57 | * will return the mach_header and name of an image, given an address in |
| 58 | 58 | * the image. dladdr() is thread safe. |
| 59 | 59 | */ |
| 60 | extern uint32_t _dyld_image_count(void) __OSX_AVAILABLE_STARTING(__MAC_10_1, __IPHONE_2_0); | |
| 61 | extern const struct mach_header* _dyld_get_image_header(uint32_t image_index) __OSX_AVAILABLE_STARTING(__MAC_10_1, __IPHONE_2_0); | |
| 62 | extern intptr_t _dyld_get_image_vmaddr_slide(uint32_t image_index) __OSX_AVAILABLE_STARTING(__MAC_10_1, __IPHONE_2_0); | |
| 63 | extern const char* _dyld_get_image_name(uint32_t image_index) __OSX_AVAILABLE_STARTING(__MAC_10_1, __IPHONE_2_0); | |
| 60 | extern uint32_t _dyld_image_count(void) __API_AVAILABLE(macos(10.1), ios(2.0)); | |
| 61 | extern const struct mach_header* _dyld_get_image_header(uint32_t image_index) __API_AVAILABLE(macos(10.1), ios(2.0)); | |
| 62 | extern intptr_t _dyld_get_image_vmaddr_slide(uint32_t image_index) __API_AVAILABLE(macos(10.1), ios(2.0)); | |
| 63 | extern const char* _dyld_get_image_name(uint32_t image_index) __API_AVAILABLE(macos(10.1), ios(2.0)); | |
| 64 | 64 | |
| 65 | 65 | |
| 66 | 66 | /* |
| ... | ... | @@ -71,8 +71,8 @@ extern const char* _dyld_get_image_name(uint32_t image_index) |
| 71 | 71 | * _dyld_register_func_for_remove_image() is called after any terminators in an image are run |
| 72 | 72 | * and before the image is un-memory-mapped. |
| 73 | 73 | */ |
| 74 | extern void _dyld_register_func_for_add_image(void (*func)(const struct mach_header* mh, intptr_t vmaddr_slide)) __OSX_AVAILABLE_STARTING(__MAC_10_1, __IPHONE_2_0); | |
| 75 | extern void _dyld_register_func_for_remove_image(void (*func)(const struct mach_header* mh, intptr_t vmaddr_slide)) __OSX_AVAILABLE_STARTING(__MAC_10_1, __IPHONE_2_0); | |
| 74 | extern void _dyld_register_func_for_add_image(void (*func)(const struct mach_header* mh, intptr_t vmaddr_slide)) __API_AVAILABLE(macos(10.1), ios(2.0)); | |
| 75 | extern void _dyld_register_func_for_remove_image(void (*func)(const struct mach_header* mh, intptr_t vmaddr_slide)) __API_AVAILABLE(macos(10.1), ios(2.0)); | |
| 76 | 76 | |
| 77 | 77 | |
| 78 | 78 | /* |
| ... | ... | @@ -80,7 +80,7 @@ extern void _dyld_register_func_for_remove_image(void (*func)(const struct mach_ |
| 80 | 80 | * specifed by the libraryName. The libraryName parameter would be "bar" for /path/libbar.3.dylib and |
| 81 | 81 | * "Foo" for /path/Foo.framework/Versions/A/Foo. It returns -1 if no such library is loaded. |
| 82 | 82 | */ |
| 83 | extern int32_t NSVersionOfRunTimeLibrary(const char* libraryName) __OSX_AVAILABLE_STARTING(__MAC_10_1, __IPHONE_2_0); | |
| 83 | extern int32_t NSVersionOfRunTimeLibrary(const char* libraryName) __API_AVAILABLE(macos(10.1), ios(2.0)); | |
| 84 | 84 | |
| 85 | 85 | |
| 86 | 86 | /* |
| ... | ... | @@ -89,7 +89,7 @@ extern int32_t NSVersionOfRunTimeLibrary(const char* libraryName) __O |
| 89 | 89 | * "Foo" for /path/Foo.framework/Versions/A/Foo. It returns -1 if the main executable did not link |
| 90 | 90 | * against the specified library. |
| 91 | 91 | */ |
| 92 | extern int32_t NSVersionOfLinkTimeLibrary(const char* libraryName) __OSX_AVAILABLE_STARTING(__MAC_10_1, __IPHONE_2_0); | |
| 92 | extern int32_t NSVersionOfLinkTimeLibrary(const char* libraryName) __API_AVAILABLE(macos(10.1), ios(2.0)); | |
| 93 | 93 | |
| 94 | 94 | |
| 95 | 95 | /* |
| ... | ... | @@ -102,7 +102,7 @@ extern int32_t NSVersionOfLinkTimeLibrary(const char* libraryName) __O |
| 102 | 102 | * That is the path may be a symbolic link and not the real file. With deep directories the total bufsize |
| 103 | 103 | * needed could be more than MAXPATHLEN. |
| 104 | 104 | */ |
| 105 | extern int _NSGetExecutablePath(char* buf, uint32_t* bufsize) __OSX_AVAILABLE_STARTING(__MAC_10_2, __IPHONE_2_0); | |
| 105 | extern int _NSGetExecutablePath(char* buf, uint32_t* bufsize) __API_AVAILABLE(macos(10.2), ios(2.0)); | |
| 106 | 106 | |
| 107 | 107 | |
| 108 | 108 | |
| ... | ... | @@ -110,14 +110,14 @@ extern int _NSGetExecutablePath(char* buf, uint32_t* bufsize) __ |
| 110 | 110 | * Registers a function to be called when the current thread terminates. |
| 111 | 111 | * Called by c++ compiler to implement destructors on thread_local object variables. |
| 112 | 112 | */ |
| 113 | extern void _tlv_atexit(void (*termFunc)(void* objAddr), void* objAddr) __OSX_AVAILABLE_STARTING(__MAC_10_10, __IPHONE_8_0); | |
| 113 | extern void _tlv_atexit(void (*termFunc)(void* objAddr), void* objAddr) __API_AVAILABLE(macos(10.10), ios(8.0)); | |
| 114 | 114 | |
| 115 | 115 | |
| 116 | 116 | /* |
| 117 | 117 | * Never called. On-disk thread local variables contain a pointer to this. Once |
| 118 | 118 | * the thread local is prepared, the pointer changes to a real handler such as tlv_get_addr. |
| 119 | 119 | */ |
| 120 | extern void _tlv_bootstrap(void) __OSX_AVAILABLE_STARTING(__MAC_10_10, __IPHONE_8_0) DYLD_DRIVERKIT_UNAVAILABLE ; | |
| 120 | extern void _tlv_bootstrap(void) __API_AVAILABLE(macos(10.10), ios(8.0)) DYLD_DRIVERKIT_UNAVAILABLE ; | |
| 121 | 121 | |
| 122 | 122 | |
| 123 | 123 | /* |
lib/libc/include/any-macos-any/mach-o/loader.h+30-6| ... | ... | @@ -343,6 +343,11 @@ struct load_command { |
| 343 | 343 | #define LC_DYLD_CHAINED_FIXUPS (0x34 | LC_REQ_DYLD) /* used with linkedit_data_command */ |
| 344 | 344 | #define LC_FILESET_ENTRY (0x35 | LC_REQ_DYLD) /* used with fileset_entry_command */ |
| 345 | 345 | #define LC_ATOM_INFO 0x36 /* used with linkedit_data_command */ |
| 346 | #define LC_FUNCTION_VARIANTS 0x37 /* used with linkedit_data_command */ | |
| 347 | #define LC_FUNCTION_VARIANT_FIXUPS 0x38 /* used with linkedit_data_command */ | |
| 348 | #define LC_TARGET_TRIPLE 0x39 /* target triple used to compile */ | |
| 349 | ||
| 350 | ||
| 346 | 351 | |
| 347 | 352 | /* |
| 348 | 353 | * A variable length string in a load command is represented by an lc_str |
| ... | ... | @@ -1225,6 +1230,16 @@ struct rpath_command { |
| 1225 | 1230 | union lc_str path;		/* path to add to run path */ |
| 1226 | 1231 | }; |
| 1227 | 1232 | |
| 1233 | /* | |
| 1234 | * The target_triple_command contains a string which specifies the | |
| 1235 | * target triple (e.g. "arm64e-apple-macosx15.0.0") used to compile the code. | |
| 1236 | */ | |
| 1237 | struct target_triple_command { | |
| 1238 | uint32_t	 cmd;		/* LC_TARGET_TRIPLE */ | |
| 1239 | uint32_t	 cmdsize;	/* including string */ | |
| 1240 | union lc_str triple;	/* target triple string */ | |
| 1241 | }; | |
| 1242 | ||
| 1228 | 1243 | /* |
| 1229 | 1244 | * The linkedit_data_command contains the offsets and sizes of a blob |
| 1230 | 1245 | * of data in the __LINKEDIT segment. |
| ... | ... | @@ -1234,7 +1249,8 @@ struct linkedit_data_command { |
| 1234 | 1249 | 				 LC_FUNCTION_STARTS, LC_DATA_IN_CODE, |
| 1235 | 1250 | 				 LC_DYLIB_CODE_SIGN_DRS, LC_ATOM_INFO, |
| 1236 | 1251 | 				 LC_LINKER_OPTIMIZATION_HINT, |
| 1237 | 				 LC_DYLD_EXPORTS_TRIE, or | |
| 1252 | 				 LC_DYLD_EXPORTS_TRIE, | |
| 1253 | 				 LC_FUNCTION_VARIANTS, LC_FUNCTION_VARIANT_FIXUPS, or | |
| 1238 | 1254 | 				 LC_DYLD_CHAINED_FIXUPS. */ |
| 1239 | 1255 | uint32_t	cmdsize;	/* sizeof(struct linkedit_data_command) */ |
| 1240 | 1256 | uint32_t	dataoff;	/* file offset of data in __LINKEDIT segment */ |
| ... | ... | @@ -1319,20 +1335,28 @@ struct build_tool_version { |
| 1319 | 1335 | #define PLATFORM_VISIONOS 11 |
| 1320 | 1336 | #define PLATFORM_VISIONOSSIMULATOR 12 |
| 1321 | 1337 | |
| 1322 | #ifndef __OPEN_SOURCE__ | |
| 1323 | ||
| 1324 | #endif /* __OPEN_SOURCE__ */ | |
| 1325 | ||
| 1326 | 1338 | #define PLATFORM_FIRMWARE 13 |
| 1327 | 1339 | #define PLATFORM_SEPOS 14 |
| 1328 | 1340 | |
| 1341 | #define PLATFORM_MACOS_EXCLAVECORE 15 | |
| 1342 | #define PLATFORM_MACOS_EXCLAVEKIT 16 | |
| 1343 | #define PLATFORM_IOS_EXCLAVECORE 17 | |
| 1344 | #define PLATFORM_IOS_EXCLAVEKIT 18 | |
| 1345 | #define PLATFORM_TVOS_EXCLAVECORE 19 | |
| 1346 | #define PLATFORM_TVOS_EXCLAVEKIT 20 | |
| 1347 | #define PLATFORM_WATCHOS_EXCLAVECORE 21 | |
| 1348 | #define PLATFORM_WATCHOS_EXCLAVEKIT 22 | |
| 1349 | #define PLATFORM_VISIONOS_EXCLAVECORE 23 | |
| 1350 | #define PLATFORM_VISIONOS_EXCLAVEKIT 24 | |
| 1351 | ||
| 1329 | 1352 | #ifndef __OPEN_SOURCE__ |
| 1330 | 1353 | |
| 1331 | 1354 | #endif /* __OPEN_SOURCE__ */ |
| 1332 | 1355 | |
| 1356 | ||
| 1333 | 1357 | #ifndef __OPEN_SOURCE__ |
| 1334 | 1358 | |
| 1335 | #endif /* __OPEN_SOURCE__ */ | |
| 1359 | #endif // __OPEN_SOURCE__ | |
| 1336 | 1360 | |
| 1337 | 1361 | /* Known values for the tool field above. */ |
| 1338 | 1362 | #define TOOL_CLANG 1 |
lib/libc/include/any-macos-any/mach/arm/_structs.h+66| ... | ... | @@ -611,6 +611,72 @@ _STRUCT_ARM_PAGEIN_STATE |
| 611 | 611 | 	int __pagein_error; |
| 612 | 612 | }; |
| 613 | 613 | |
| 614 | #if __DARWIN_UNIX03 | |
| 615 | #define _STRUCT_ARM_SME_STATE struct __darwin_arm_sme_state | |
| 616 | _STRUCT_ARM_SME_STATE | |
| 617 | { | |
| 618 | 	__uint64_t __svcr; | |
| 619 | 	__uint64_t __tpidr2_el0; | |
| 620 | 	__uint16_t __svl_b; | |
| 621 | }; | |
| 622 | ||
| 623 | #define _STRUCT_ARM_SVE_Z_STATE struct __darwin_arm_sve_z_state | |
| 624 | _STRUCT_ARM_SVE_Z_STATE | |
| 625 | { | |
| 626 | 	char __z[16][256]; | |
| 627 | } __attribute__((aligned(4))); | |
| 628 | ||
| 629 | #define _STRUCT_ARM_SVE_P_STATE struct __darwin_arm_sve_p_state | |
| 630 | _STRUCT_ARM_SVE_P_STATE | |
| 631 | { | |
| 632 | 	char __p[16][256 / 8]; | |
| 633 | } __attribute__((aligned(4))); | |
| 634 | ||
| 635 | #define _STRUCT_ARM_SME_ZA_STATE struct __darwin_arm_sme_za_state | |
| 636 | _STRUCT_ARM_SME_ZA_STATE | |
| 637 | { | |
| 638 | 	char __za[4096]; | |
| 639 | } __attribute__((aligned(4))); | |
| 640 | ||
| 641 | #define _STRUCT_ARM_SME2_STATE struct __darwin_arm_sme2_state | |
| 642 | _STRUCT_ARM_SME2_STATE | |
| 643 | { | |
| 644 | 	char __zt0[64]; | |
| 645 | } __attribute__((aligned(4))); | |
| 646 | #else /* !__DARWIN_UNIX03 */ | |
| 647 | #define _STRUCT_ARM_SME_STATE struct arm_sme_state | |
| 648 | _STRUCT_ARM_SME_STATE | |
| 649 | { | |
| 650 | 	__uint64_t svcr; | |
| 651 | 	__uint64_t tpidr2_el0; | |
| 652 | 	__uint16_t svl_b; | |
| 653 | }; | |
| 654 | ||
| 655 | #define _STRUCT_ARM_SVE_Z_STATE struct arm_sve_z_state | |
| 656 | _STRUCT_ARM_SVE_Z_STATE | |
| 657 | { | |
| 658 | 	char z[16][256]; | |
| 659 | } __attribute__((aligned(4))); | |
| 660 | ||
| 661 | #define _STRUCT_ARM_SVE_P_STATE struct arm_sve_p_state | |
| 662 | _STRUCT_ARM_SVE_P_STATE | |
| 663 | { | |
| 664 | 	char p[16][256 / 8]; | |
| 665 | } __attribute__((aligned(4))); | |
| 666 | ||
| 667 | #define _STRUCT_ARM_SME_ZA_STATE struct arm_sme_za_state | |
| 668 | _STRUCT_ARM_SME_ZA_STATE | |
| 669 | { | |
| 670 | 	char za[4096]; | |
| 671 | } __attribute__((aligned(4))); | |
| 672 | ||
| 673 | #define _STRUCT_ARM_SME2_STATE struct arm_sme2_state | |
| 674 | _STRUCT_ARM_SME2_STATE | |
| 675 | { | |
| 676 | 	char zt0[64]; | |
| 677 | } __attribute__((aligned(4))); | |
| 678 | #endif /* __DARWIN_UNIX03 */ | |
| 679 | ||
| 614 | 680 | /* |
| 615 | 681 | * Debug State |
| 616 | 682 | */ |
lib/libc/include/any-macos-any/mach/arm/thread_status.h+50-2| ... | ... | @@ -73,8 +73,30 @@ |
| 73 | 73 | |
| 74 | 74 | #define ARM_PAGEIN_STATE 27 |
| 75 | 75 | |
| 76 | ||
| 77 | #define THREAD_STATE_FLAVORS 29 /* This must be updated to 1 more than the highest numerical state flavor */ | |
| 76 | /* API */ | |
| 77 | #define ARM_SME_STATE 28 | |
| 78 | #define ARM_SVE_Z_STATE1 29 | |
| 79 | #define ARM_SVE_Z_STATE2 30 | |
| 80 | #define ARM_SVE_P_STATE 31 | |
| 81 | #define ARM_SME_ZA_STATE1 32 | |
| 82 | #define ARM_SME_ZA_STATE2 33 | |
| 83 | #define ARM_SME_ZA_STATE3 34 | |
| 84 | #define ARM_SME_ZA_STATE4 35 | |
| 85 | #define ARM_SME_ZA_STATE5 36 | |
| 86 | #define ARM_SME_ZA_STATE6 37 | |
| 87 | #define ARM_SME_ZA_STATE7 38 | |
| 88 | #define ARM_SME_ZA_STATE8 39 | |
| 89 | #define ARM_SME_ZA_STATE9 40 | |
| 90 | #define ARM_SME_ZA_STATE10 41 | |
| 91 | #define ARM_SME_ZA_STATE11 42 | |
| 92 | #define ARM_SME_ZA_STATE12 42 | |
| 93 | #define ARM_SME_ZA_STATE13 44 | |
| 94 | #define ARM_SME_ZA_STATE14 45 | |
| 95 | #define ARM_SME_ZA_STATE15 46 | |
| 96 | #define ARM_SME_ZA_STATE16 47 | |
| 97 | #define ARM_SME2_STATE 48 | |
| 98 | ||
| 99 | #define THREAD_STATE_FLAVORS 50 /* This must be updated to 1 more than the highest numerical state flavor */ | |
| 78 | 100 | |
| 79 | 101 | #ifndef ARM_STATE_FLAVOR_IS_OTHER_VALID |
| 80 | 102 | #define ARM_STATE_FLAVOR_IS_OTHER_VALID(_flavor_) 0 |
| ... | ... | @@ -101,6 +123,11 @@ |
| 101 | 123 | 	 (x == ARM_DEBUG_STATE64) || \ |
| 102 | 124 | 	 (x == ARM_PAGEIN_STATE) || \ |
| 103 | 125 | 	 (ARM_STATE_FLAVOR_IS_OTHER_VALID(x))) |
| 126 | /* | |
| 127 | * VALID_THREAD_STATE_FLAVOR() intentionally excludes ARM_SME_STATE through | |
| 128 | * ARM_SME2_STATE, since these are not currently supported inside Mach exception | |
| 129 | * ports. | |
| 130 | */ | |
| 104 | 131 | |
| 105 | 132 | struct arm_state_hdr { |
| 106 | 133 | 	uint32_t flavor; |
| ... | ... | @@ -199,6 +226,12 @@ typedef _STRUCT_ARM_DEBUG_STATE64 arm_debug_state64_t; |
| 199 | 226 | |
| 200 | 227 | typedef _STRUCT_ARM_PAGEIN_STATE arm_pagein_state_t; |
| 201 | 228 | |
| 229 | typedef _STRUCT_ARM_SME_STATE arm_sme_state_t; | |
| 230 | typedef _STRUCT_ARM_SVE_Z_STATE arm_sve_z_state_t; | |
| 231 | typedef _STRUCT_ARM_SVE_P_STATE arm_sve_p_state_t; | |
| 232 | typedef _STRUCT_ARM_SME_ZA_STATE arm_sme_za_state_t; | |
| 233 | typedef _STRUCT_ARM_SME2_STATE arm_sme2_state_t; | |
| 234 | ||
| 202 | 235 | /* |
| 203 | 236 | * Otherwise not ARM64 kernel and we must preserve legacy ARM definitions of |
| 204 | 237 | * arm_debug_state for binary compatability of userland consumers of this file. |
| ... | ... | @@ -241,6 +274,21 @@ typedef _STRUCT_ARM_LEGACY_DEBUG_STATE arm_debug_state_t; |
| 241 | 274 | #define ARM_NEON_STATE64_COUNT ((mach_msg_type_number_t) \ |
| 242 | 275 | 	(sizeof (arm_neon_state64_t)/sizeof(uint32_t))) |
| 243 | 276 | |
| 277 | #define ARM_SME_STATE_COUNT ((mach_msg_type_number_t) \ | |
| 278 | 	(sizeof (arm_sme_state_t)/sizeof(uint32_t))) | |
| 279 | ||
| 280 | #define ARM_SVE_Z_STATE_COUNT ((mach_msg_type_number_t) \ | |
| 281 | 	(sizeof (arm_sve_z_state_t)/sizeof(uint32_t))) | |
| 282 | ||
| 283 | #define ARM_SVE_P_STATE_COUNT ((mach_msg_type_number_t) \ | |
| 284 | 	(sizeof (arm_sve_p_state_t)/sizeof(uint32_t))) | |
| 285 | ||
| 286 | #define ARM_SME_ZA_STATE_COUNT ((mach_msg_type_number_t) \ | |
| 287 | 	(sizeof (arm_sme_za_state_t)/sizeof(uint32_t))) | |
| 288 | ||
| 289 | #define ARM_SME2_STATE_COUNT ((mach_msg_type_number_t) \ | |
| 290 | 	(sizeof (arm_sme2_state_t)/sizeof(uint32_t))) | |
| 291 | ||
| 244 | 292 | #define MACHINE_THREAD_STATE ARM_THREAD_STATE |
| 245 | 293 | #define MACHINE_THREAD_STATE_COUNT ARM_UNIFIED_THREAD_STATE_COUNT |
| 246 | 294 |
lib/libc/include/any-macos-any/mach/mach_init.h+1-1| ... | ... | @@ -77,7 +77,7 @@ __API_AVAILABLE(macos(11.3), ios(14.5), tvos(14.5), watchos(7.3)) |
| 77 | 77 | extern boolean_t mach_task_is_self(task_name_t task); |
| 78 | 78 | extern kern_return_t host_page_size(host_t, vm_size_t *); |
| 79 | 79 | |
| 80 | extern mach_port_t mach_task_self_; | |
| 80 | extern __swift_nonisolated_unsafe mach_port_t mach_task_self_; | |
| 81 | 81 | #define mach_task_self() mach_task_self_ |
| 82 | 82 | #define current_task() mach_task_self() |
| 83 | 83 |
lib/libc/include/any-macos-any/mach/mach_time.h+4| ... | ... | @@ -67,6 +67,10 @@ uint64_t mach_continuous_time(void); |
| 67 | 67 | __OSX_AVAILABLE(10.12) __IOS_AVAILABLE(10.0) __TVOS_AVAILABLE(10.0) __WATCHOS_AVAILABLE(3.0) |
| 68 | 68 | uint64_t mach_continuous_approximate_time(void); |
| 69 | 69 | |
| 70 | /* | |
| 71 | * variant of mach_continuous_time that uses speculative timebase | |
| 72 | */ | |
| 73 | ||
| 70 | 74 | __END_DECLS |
| 71 | 75 | |
| 72 | 76 |
lib/libc/include/any-macos-any/mach/mach_types.h+1-1| ... | ... | @@ -218,7 +218,7 @@ typedef exception_handler_t exception_port_t; |
| 218 | 218 | typedef exception_handler_array_t exception_port_arrary_t; |
| 219 | 219 | typedef char vfs_path_t[4096]; |
| 220 | 220 | /* |
| 221 | * 8K, c.f. FSGETPATH_MAXBUFLEN in bsd/vfs/vfs_syscalls.c. | |
| 221 | * 8K, c.f. MAXLONGPATHLEN in sys/syslimits.h. | |
| 222 | 222 | * These types should NEVER be allocated on the stack. |
| 223 | 223 | */ |
| 224 | 224 | typedef char nspace_path_t[8192]; |
lib/libc/include/any-macos-any/mach/port.h+39-28| ... | ... | @@ -394,48 +394,59 @@ typedef mach_port_options_t *mach_port_options_ptr_t; |
| 394 | 394 | */ |
| 395 | 395 | #define GUARD_TYPE_MACH_PORT 0x1 |
| 396 | 396 | |
| 397 | /* Reasons for exception for a guarded mach port */ | |
| 397 | /* | |
| 398 | * Reasons for exception for a guarded mach port | |
| 399 | * | |
| 400 | * Arguments are documented in doc/mach_ipc/guard_exceptions.md, | |
| 401 | * please update when adding a new type. | |
| 402 | * | |
| 403 | * Note: these had been designed as bitfields, | |
| 404 | * hence the weird spaced values, | |
| 405 | * but are truly an enum, please add new values in the "holes". | |
| 406 | */ | |
| 398 | 407 | enum mach_port_guard_exception_codes { |
| 399 | 	kGUARD_EXC_DESTROY = 1, | |
| 400 | 	kGUARD_EXC_MOD_REFS = 2, | |
| 401 | 	kGUARD_EXC_INVALID_OPTIONS = 3, | |
| 402 | 	kGUARD_EXC_SET_CONTEXT = 4, | |
| 403 | 	kGUARD_EXC_THREAD_SET_STATE = 5, | |
| 404 | 	kGUARD_EXC_EXCEPTION_BEHAVIOR_ENFORCE= 6, | |
| 405 | 	kGUARD_EXC_UNGUARDED = 1u << 3, | |
| 406 | 	kGUARD_EXC_INCORRECT_GUARD = 1u << 4, | |
| 407 | 	kGUARD_EXC_IMMOVABLE = 1u << 5, | |
| 408 | 	kGUARD_EXC_STRICT_REPLY = 1u << 6, | |
| 409 | 	kGUARD_EXC_MSG_FILTERED = 1u << 7, | |
| 408 | 	kGUARD_EXC_DESTROY = 1, | |
| 409 | 	kGUARD_EXC_MOD_REFS = 2, | |
| 410 | 	kGUARD_EXC_INVALID_OPTIONS = 3, | |
| 411 | 	kGUARD_EXC_SET_CONTEXT = 4, | |
| 412 | 	kGUARD_EXC_THREAD_SET_STATE = 5, | |
| 413 | 	kGUARD_EXC_EXCEPTION_BEHAVIOR_ENFORCE = 6, | |
| 414 | 	kGUARD_EXC_SERVICE_PORT_VIOLATION_FATAL = 7, /* unused, for future sp defense enablement */ | |
| 415 | 	kGUARD_EXC_UNGUARDED = 8, | |
| 416 | 	kGUARD_EXC_INCORRECT_GUARD = 16, | |
| 417 | 	kGUARD_EXC_IMMOVABLE = 32, | |
| 418 | 	kGUARD_EXC_STRICT_REPLY = 64, | |
| 419 | 	kGUARD_EXC_MSG_FILTERED = 128, | |
| 410 | 420 | 	/* start of [optionally] non-fatal guards */ |
| 411 | 	kGUARD_EXC_INVALID_RIGHT = 1u << 8, | |
| 412 | 	kGUARD_EXC_INVALID_NAME = 1u << 9, | |
| 413 | 	kGUARD_EXC_INVALID_VALUE = 1u << 10, | |
| 414 | 	kGUARD_EXC_INVALID_ARGUMENT = 1u << 11, | |
| 415 | 	kGUARD_EXC_RIGHT_EXISTS = 1u << 12, | |
| 416 | 	kGUARD_EXC_KERN_NO_SPACE = 1u << 13, | |
| 417 | 	kGUARD_EXC_KERN_FAILURE = 1u << 14, | |
| 418 | 	kGUARD_EXC_KERN_RESOURCE = 1u << 15, | |
| 419 | 	kGUARD_EXC_SEND_INVALID_REPLY = 1u << 16, | |
| 420 | 	kGUARD_EXC_SEND_INVALID_VOUCHER = 1u << 17, | |
| 421 | 	kGUARD_EXC_SEND_INVALID_RIGHT = 1u << 18, | |
| 422 | 	kGUARD_EXC_RCV_INVALID_NAME = 1u << 19, | |
| 421 | 	kGUARD_EXC_INVALID_RIGHT = 256, | |
| 422 | 	kGUARD_EXC_INVALID_NAME = 512, | |
| 423 | 	kGUARD_EXC_INVALID_VALUE = 1u << 10, | |
| 424 | 	kGUARD_EXC_INVALID_ARGUMENT = 1u << 11, /* really kGUARD_EXC_ALREADY_GUARDED */ | |
| 425 | 	kGUARD_EXC_RIGHT_EXISTS = 1u << 12, /* unused */ | |
| 426 | 	kGUARD_EXC_KERN_NO_SPACE = 1u << 13, /* unused */ | |
| 427 | 	kGUARD_EXC_KERN_FAILURE = 1u << 14, /* really kGUARD_EXC_INVALID_PDREQUEST */ | |
| 428 | 	kGUARD_EXC_KERN_RESOURCE = 1u << 15, /* unused */ | |
| 429 | 	kGUARD_EXC_SEND_INVALID_REPLY = 1u << 16, | |
| 430 | 	kGUARD_EXC_SEND_INVALID_VOUCHER = 1u << 17, | |
| 431 | 	kGUARD_EXC_SEND_INVALID_RIGHT = 1u << 18, | |
| 432 | 	kGUARD_EXC_RCV_INVALID_NAME = 1u << 19, | |
| 423 | 433 | 	/* start of always non-fatal guards */ |
| 424 | 	kGUARD_EXC_RCV_GUARDED_DESC = 1u << 20, /* for development only */ | |
| 434 | 	kGUARD_EXC_RCV_GUARDED_DESC = 0x00100000, /* for development only */ | |
| 435 | 	kGUARD_EXC_SERVICE_PORT_VIOLATION_NON_FATAL = 0x00100001, /* unused, for future sp defense enablement */ | |
| 436 | 	kGUARD_EXC_PROVISIONAL_REPLY_PORT = 0x00100002, | |
| 425 | 437 | 	kGUARD_EXC_MOD_REFS_NON_FATAL = 1u << 21, |
| 426 | 438 | 	kGUARD_EXC_IMMOVABLE_NON_FATAL = 1u << 22, |
| 427 | 439 | 	kGUARD_EXC_REQUIRE_REPLY_PORT_SEMANTICS = 1u << 23, |
| 428 | 440 | }; |
| 429 | 441 | |
| 430 | #define MAX_FATAL_kGUARD_EXC_CODE (1u << 7) | |
| 442 | #define MAX_FATAL_kGUARD_EXC_CODE kGUARD_EXC_MSG_FILTERED | |
| 443 | #define MAX_OPTIONAL_kGUARD_EXC_CODE kGUARD_EXC_RCV_INVALID_NAME | |
| 431 | 444 | |
| 432 | 445 | /* |
| 433 | 446 | * Mach port guard flags. |
| 434 | 447 | */ |
| 435 | 448 | #define MPG_FLAGS_NONE (0x00ull) |
| 436 | 449 | |
| 437 | #define MAX_OPTIONAL_kGUARD_EXC_CODE (1u << 19) | |
| 438 | ||
| 439 | 450 | /* |
| 440 | 451 | * These flags are used as bits in the subcode of kGUARD_EXC_STRICT_REPLY exceptions. |
| 441 | 452 | */ |
lib/libc/include/any-macos-any/mach/task_info.h+9| ... | ... | @@ -502,6 +502,15 @@ typedef struct task_flags_info * task_flags_info_t; |
| 502 | 502 | |
| 503 | 503 | |
| 504 | 504 | |
| 505 | #define TASK_SECURITY_CONFIG_INFO 32 /* Runtime security mitigations configuration for the task */ | |
| 506 | struct task_security_config_info { | |
| 507 | 	uint32_t config; /* Configuration bitmask */ | |
| 508 | }; | |
| 509 | ||
| 510 | typedef struct task_security_config_info * task_security_config_info_t; | |
| 511 | #define TASK_SECURITY_CONFIG_INFO_COUNT ((mach_msg_type_number_t) \ | |
| 512 | 	 (sizeof(struct task_security_config_info) / sizeof(natural_t))) | |
| 513 | ||
| 505 | 514 | /* |
| 506 | 515 | * Type to control EXC_GUARD delivery options for a task |
| 507 | 516 | * via task_get/set_exc_guard_behavior interface(s). |
lib/libc/include/any-macos-any/mach/task_policy.h+1-1| ... | ... | @@ -172,7 +172,7 @@ typedef struct task_qos_policy *task_qos_policy_t; |
| 172 | 172 | #define PROC_FLAG_DARWINBG 0x8000 /* process in darwin background */ |
| 173 | 173 | #define PROC_FLAG_EXT_DARWINBG 0x10000 /* process in darwin background - external enforcement */ |
| 174 | 174 | #define PROC_FLAG_IOS_APPLEDAEMON 0x20000 /* process is apple ios daemon */ |
| 175 | #define PROC_FLAG_IOS_IMPPROMOTION 0x80000 /* process is apple ios daemon */ | |
| 175 | #define PROC_FLAG_IOS_IMPPROMOTION 0x80000 /* process is able to receive an importance donation */ | |
| 176 | 176 | #define PROC_FLAG_ADAPTIVE 0x100000 /* Process is adaptive */ |
| 177 | 177 | #define PROC_FLAG_ADAPTIVE_IMPORTANT 0x200000 /* Process is adaptive, and is currently important */ |
| 178 | 178 | #define PROC_FLAG_IMPORTANCE_DONOR 0x400000 /* Process is marked as an importance donor */ |
lib/libc/include/any-macos-any/mach/vm_statistics.h+13-6| ... | ... | @@ -66,6 +66,7 @@ |
| 66 | 66 | #ifndef _MACH_VM_STATISTICS_H_ |
| 67 | 67 | #define _MACH_VM_STATISTICS_H_ |
| 68 | 68 | |
| 69 | #include <stdbool.h> | |
| 69 | 70 | #include <sys/cdefs.h> |
| 70 | 71 | |
| 71 | 72 | #include <mach/machine/vm_types.h> |
| ... | ... | @@ -330,12 +331,18 @@ typedef struct vm_purgeable_info *vm_purgeable_info_t; |
| 330 | 331 | #define GUARD_TYPE_VIRT_MEMORY 0x5 |
| 331 | 332 | |
| 332 | 333 | /* Reasons for exception for virtual memory */ |
| 333 | enum virtual_memory_guard_exception_codes { | |
| 334 | 	kGUARD_EXC_DEALLOC_GAP = 1u << 0, | |
| 335 | 	kGUARD_EXC_RECLAIM_COPYIO_FAILURE = 1u << 1, | |
| 336 | 	kGUARD_EXC_RECLAIM_INDEX_FAILURE = 1u << 2, | |
| 337 | 	kGUARD_EXC_RECLAIM_DEALLOCATE_FAILURE = 1u << 3, | |
| 338 | }; | |
| 334 | __enum_decl(virtual_memory_guard_exception_code_t, uint32_t, { | |
| 335 | 	kGUARD_EXC_DEALLOC_GAP = 1, | |
| 336 | 	kGUARD_EXC_RECLAIM_COPYIO_FAILURE = 2, | |
| 337 | 	kGUARD_EXC_SEC_LOOKUP_DENIED = 3, | |
| 338 | 	kGUARD_EXC_RECLAIM_INDEX_FAILURE = 4, | |
| 339 | 	kGUARD_EXC_SEC_RANGE_DENIED = 6, | |
| 340 | 	kGUARD_EXC_SEC_ACCESS_FAULT = 7, | |
| 341 | 	kGUARD_EXC_RECLAIM_DEALLOCATE_FAILURE = 8, | |
| 342 | 	kGUARD_EXC_SEC_COPY_DENIED = 16, | |
| 343 | 	kGUARD_EXC_SEC_SHARING_DENIED = 32, | |
| 344 | 	kGUARD_EXC_SEC_ASYNC_ACCESS_FAULT = 64, | |
| 345 | }); | |
| 339 | 346 | |
| 340 | 347 | |
| 341 | 348 | /* current accounting postmark */ |
lib/libc/include/any-macos-any/mach/vm_types.h+2| ... | ... | @@ -77,6 +77,8 @@ typedef mach_port_t upl_t; |
| 77 | 77 | typedef mach_port_t vm_named_entry_t; |
| 78 | 78 | |
| 79 | 79 | |
| 80 | typedef mach_vm_offset_t *mach_vm_offset_list_t; | |
| 81 | ||
| 80 | 82 | #define VM_MAP_NULL ((vm_map_t) 0) |
| 81 | 83 | #define VM_MAP_INSPECT_NULL ((vm_map_inspect_t) 0) |
| 82 | 84 | #define VM_MAP_READ_NULL ((vm_map_read_t) 0) |
lib/libc/include/any-macos-any/malloc/_malloc_type.h+1-1| ... | ... | @@ -73,7 +73,7 @@ __END_DECLS |
| 73 | 73 | |
| 74 | 74 | /* Rewrite enablement */ |
| 75 | 75 | #if defined(__has_feature) && __has_feature(typed_memory_operations) |
| 76 | #if __has_builtin(__is_target_os) && (__is_target_os(ios) || __is_target_os(driverkit) || __is_target_os(macos) || (__has_builtin(__is_target_environment) && (__is_target_environment(exclavekit) || __is_target_environment(exclavecore)))) | |
| 76 | #if __has_builtin(__is_target_os) && (__is_target_os(ios) || __is_target_os(driverkit) || __is_target_os(macos) || __is_target_os(xros) || __is_target_os(watchos) || __is_target_os(tvos) || (__has_builtin(__is_target_environment) && (__is_target_environment(exclavekit) || __is_target_environment(exclavecore)))) | |
| 77 | 77 | #define _MALLOC_TYPED(override, type_param_pos) __attribute__((typed_memory_operation(override, type_param_pos))) |
| 78 | 78 | #define _MALLOC_TYPE_ENABLED 1 |
| 79 | 79 | #endif |
lib/libc/include/any-macos-any/math.h+11-1| ... | ... | @@ -31,6 +31,11 @@ |
| 31 | 31 | #include <sys/cdefs.h> |
| 32 | 32 | #include <Availability.h> |
| 33 | 33 | |
| 34 | #if __has_include(<realtime_safety/realtime_safety.h>) | |
| 35 | #include <realtime_safety/realtime_safety.h> | |
| 36 | REALTIME_SAFE_BEGIN | |
| 37 | #endif | |
| 38 | ||
| 34 | 39 | __BEGIN_DECLS |
| 35 | 40 | |
| 36 | 41 | /****************************************************************************** |
| ... | ... | @@ -41,7 +46,7 @@ __BEGIN_DECLS |
| 41 | 46 | taking advantage of GCC's __FLT_EVAL_METHOD__ (which a compiler may |
| 42 | 47 | define anytime and GCC does) that shadows FLT_EVAL_METHOD (which a |
| 43 | 48 | compiler must define only in float.h). */ |
| 44 | #if __FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == -1 | |
| 49 | #if __FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == -1 || __FLT_EVAL_METHOD__ == 16 | |
| 45 | 50 | typedef float float_t; |
| 46 | 51 | typedef double double_t; |
| 47 | 52 | #elif __FLT_EVAL_METHOD__ == 1 |
| ... | ... | @@ -788,5 +793,10 @@ struct exception { |
| 788 | 793 | #endif /* __DARWIN_C_LEVEL >= __DARWIN_C_FULL */ |
| 789 | 794 | |
| 790 | 795 | __END_DECLS |
| 796 | ||
| 797 | #if __has_include(<realtime_safety/realtime_safety.h>) | |
| 798 | REALTIME_SAFE_END | |
| 799 | #endif | |
| 800 | ||
| 791 | 801 | #endif /* __MATH_H__ */ |
| 792 | 802 |
lib/libc/include/any-macos-any/ndbm.h+4-1| ... | ... | @@ -61,10 +61,13 @@ |
| 61 | 61 | #ifndef _NDBM_H_ |
| 62 | 62 | #define	_NDBM_H_ |
| 63 | 63 | |
| 64 | #include <_bounds.h> | |
| 64 | 65 | #include <_types.h> |
| 65 | 66 | #include <sys/_types/_mode_t.h> |
| 66 | 67 | #include <sys/_types/_size_t.h> |
| 67 | 68 | |
| 69 | _LIBC_SINGLE_BY_DEFAULT() | |
| 70 | ||
| 68 | 71 | #if !defined(_ANSI_SOURCE) && (!defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)) |
| 69 | 72 | /* Map dbm interface onto db(3). */ |
| 70 | 73 | #include <fcntl.h> |
| ... | ... | @@ -84,7 +87,7 @@ |
| 84 | 87 | #endif |
| 85 | 88 | |
| 86 | 89 | typedef struct { |
| 87 | 	void *dptr; | |
| 90 | 	void *_LIBC_SIZE(dsize) dptr; | |
| 88 | 91 | 	size_t dsize; |
| 89 | 92 | } datum; |
| 90 | 93 |
lib/libc/include/any-macos-any/net/if.h+1-1| ... | ... | @@ -150,7 +150,7 @@ struct if_clonereq { |
| 150 | 150 | #define IFCAP_VALID (IFCAP_HWCSUM | IFCAP_TSO | IFCAP_LRO | IFCAP_VLAN_MTU | \ |
| 151 | 151 | 	IFCAP_VLAN_HWTAGGING | IFCAP_JUMBO_MTU | IFCAP_AV | IFCAP_TXSTATUS | \ |
| 152 | 152 | 	IFCAP_SKYWALK | IFCAP_SW_TIMESTAMP | IFCAP_HW_TIMESTAMP | \ |
| 153 | 	IFCAP_CSUM_PARTIAL | IFCAP_CSUM_ZERO_INVERT) | |
| 153 | 	IFCAP_CSUM_PARTIAL | IFCAP_CSUM_ZERO_INVERT | IFCAP_LRO_NUM_SEG) | |
| 154 | 154 | |
| 155 | 155 | #define IFQ_MAXLEN 128 |
| 156 | 156 | #define IFNET_SLOWHZ 1 /* granularity is 1 second */ |
lib/libc/include/any-macos-any/net/if_var.h+1-7| ... | ... | @@ -1,5 +1,5 @@ |
| 1 | 1 | /* |
| 2 | * Copyright (c) 2000-2021 Apple Inc. All rights reserved. | |
| 2 | * Copyright (c) 2000-2025 Apple Inc. All rights reserved. | |
| 3 | 3 | * |
| 4 | 4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ |
| 5 | 5 | * |
| ... | ... | @@ -68,12 +68,6 @@ |
| 68 | 68 | #include <stdint.h> |
| 69 | 69 | #include <sys/types.h> |
| 70 | 70 | #include <sys/time.h> |
| 71 | #include <sys/queue.h> /* get TAILQ macros */ | |
| 72 | #ifdef BSD_KERN_PRIVATE | |
| 73 | #include <net/pktsched/pktsched.h> | |
| 74 | #include <sys/eventhandler.h> | |
| 75 | #endif | |
| 76 | ||
| 77 | 71 | |
| 78 | 72 | |
| 79 | 73 | #ifdef __APPLE__ |
lib/libc/include/any-macos-any/nl_types.h+5-2| ... | ... | @@ -43,8 +43,11 @@ |
| 43 | 43 | |
| 44 | 44 | #include <sys/cdefs.h> |
| 45 | 45 | #include <sys/types.h> |
| 46 | #include <_bounds.h> | |
| 46 | 47 | #include <_types.h> |
| 47 | 48 | |
| 49 | _LIBC_SINGLE_BY_DEFAULT() | |
| 50 | ||
| 48 | 51 | #ifdef _NLS_PRIVATE |
| 49 | 52 | /* |
| 50 | 53 | * MESSAGE CATALOG FILE FORMAT. |
| ... | ... | @@ -87,7 +90,7 @@ struct _nls_msg_hdr { |
| 87 | 90 | #define	NL_CAT_LOCALE	1 |
| 88 | 91 | |
| 89 | 92 | typedef struct __nl_cat_d { |
| 90 | 	void	*__data; | |
| 93 | 	void *_LIBC_SIZE(__size)	__data; | |
| 91 | 94 | 	int	__size; |
| 92 | 95 | } *nl_catd; |
| 93 | 96 | |
| ... | ... | @@ -95,7 +98,7 @@ typedef struct __nl_cat_d { |
| 95 | 98 | |
| 96 | 99 | __BEGIN_DECLS |
| 97 | 100 | nl_catd catopen(const char *, int); |
| 98 | char *catgets(nl_catd, int, int, const char *) | |
| 101 | char *_LIBC_CSTR	catgets(nl_catd, int, int, const char *) | |
| 99 | 102 | 	__attribute__((__format_arg__(4))); |
| 100 | 103 | int	 catclose(nl_catd); |
| 101 | 104 | __END_DECLS |
lib/libc/include/any-macos-any/os/availability.h+81-14| ... | ... | @@ -65,7 +65,7 @@ |
| 65 | 65 | #define API_TO_BE_DEPRECATED_DRIVERKIT 100000 |
| 66 | 66 | #endif |
| 67 | 67 | |
| 68 | #ifndef API_TO_BE_DEPRECATEDC_VISIONOS | |
| 68 | #ifndef API_TO_BE_DEPRECATED_VISIONOS | |
| 69 | 69 | #define API_TO_BE_DEPRECATED_VISIONOS 100000 |
| 70 | 70 | #endif |
| 71 | 71 | |
| ... | ... | @@ -90,44 +90,76 @@ |
| 90 | 90 | * Use to specify the release that a particular API became available. |
| 91 | 91 | * |
| 92 | 92 | * Platform names: |
| 93 | * macos, ios, tvos, watchos | |
| 93 | * macos, macOSApplicationExtension, macCatalyst, macCatalystApplicationExtension, | |
| 94 | * ios, iOSApplicationExtension, tvos, tvOSApplicationExtension, watchos, | |
| 95 | * watchOSApplicationExtension, driverkit, visionos, visionOSApplicationExtension | |
| 94 | 96 | * |
| 95 | 97 | * Examples: |
| 96 | 98 | * API_AVAILABLE(macos(10.10)) |
| 97 | 99 | * API_AVAILABLE(macos(10.9), ios(10.0)) |
| 98 | 100 | * API_AVAILABLE(macos(10.4), ios(8.0), watchos(2.0), tvos(10.0)) |
| 101 | * API_AVAILABLE(driverkit(19.0)) | |
| 99 | 102 | */ |
| 100 | 103 | |
| 101 | #define API_AVAILABLE(...) __API_AVAILABLE_GET_MACRO(__VA_ARGS__,__API_AVAILABLE8,__API_AVAILABLE7,__API_AVAILABLE6,__API_AVAILABLE5,__API_AVAILABLE4,__API_AVAILABLE3,__API_AVAILABLE2,__API_AVAILABLE1,__API_AVAILABLE0,0)(__VA_ARGS__) | |
| 102 | #define API_AVAILABLE_BEGIN(...) _Pragma("clang attribute push") __API_AVAILABLE_BEGIN_GET_MACRO(__VA_ARGS__,__API_AVAILABLE_BEGIN8,__API_AVAILABLE_BEGIN7,__API_AVAILABLE_BEGIN6,__API_AVAILABLE_BEGIN5,__API_AVAILABLE_BEGIN4,__API_AVAILABLE_BEGIN3,__API_AVAILABLE_BEGIN2,__API_AVAILABLE_BEGIN1,__API_AVAILABLE_BEGIN0,0)(__VA_ARGS__) | |
| 104 | #define API_AVAILABLE(...) __API_AVAILABLE_GET_MACRO_93585900(__VA_ARGS__,__API_AVAILABLE15,__API_AVAILABLE14,__API_AVAILABLE13,__API_AVAILABLE12,__API_AVAILABLE11,__API_AVAILABLE10,__API_AVAILABLE9,__API_AVAILABLE8,__API_AVAILABLE7,__API_AVAILABLE6,__API_AVAILABLE5,__API_AVAILABLE4,__API_AVAILABLE3,__API_AVAILABLE2,__API_AVAILABLE1,__API_AVAILABLE0,0)(__VA_ARGS__) | |
| 105 | #define API_AVAILABLE_BEGIN(...) _Pragma("clang attribute push") __API_AVAILABLE_BEGIN_GET_MACRO_93585900(__VA_ARGS__,__API_AVAILABLE_BEGIN15,__API_AVAILABLE_BEGIN14,__API_AVAILABLE_BEGIN13,__API_AVAILABLE_BEGIN12,__API_AVAILABLE_BEGIN11,__API_AVAILABLE_BEGIN10,__API_AVAILABLE_BEGIN9,__API_AVAILABLE_BEGIN8,__API_AVAILABLE_BEGIN7,__API_AVAILABLE_BEGIN6,__API_AVAILABLE_BEGIN5,__API_AVAILABLE_BEGIN4,__API_AVAILABLE_BEGIN3,__API_AVAILABLE_BEGIN2,__API_AVAILABLE_BEGIN1,__API_AVAILABLE_BEGIN0,0)(__VA_ARGS__) | |
| 103 | 106 | #define API_AVAILABLE_END _Pragma("clang attribute pop") |
| 104 | 107 | |
| 105 | 108 | /* |
| 106 | 109 | * API Deprecations |
| 107 | 110 | * |
| 108 | * Use to specify the release that a particular API became unavailable. | |
| 111 | * Use to specify the release that a particular API became deprecated. | |
| 109 | 112 | * |
| 110 | 113 | * Platform names: |
| 111 | * macos, ios, tvos, watchos | |
| 114 | * macos, macOSApplicationExtension, macCatalyst, macCatalystApplicationExtension, | |
| 115 | * ios, iOSApplicationExtension, tvos, tvOSApplicationExtension, watchos, | |
| 116 | * watchOSApplicationExtension, driverkit, visionos, visionOSApplicationExtension | |
| 112 | 117 | * |
| 113 | 118 | * Examples: |
| 114 | 119 | * |
| 115 | * API_DEPRECATED("No longer supported", macos(10.4, 10.8)) | |
| 116 | * API_DEPRECATED("No longer supported", macos(10.4, 10.8), ios(2.0, 3.0), watchos(2.0, 3.0), tvos(9.0, 10.0)) | |
| 120 | * API_DEPRECATED("Deprecated", macos(10.4, 10.8)) | |
| 121 | * API_DEPRECATED("Deprecated", macos(10.4, 10.8), ios(2.0, 3.0), watchos(2.0, 3.0), tvos(9.0, 10.0)) | |
| 117 | 122 | * |
| 118 | 123 | * API_DEPRECATED_WITH_REPLACEMENT("-setName:", tvos(10.0, 10.4), ios(9.0, 10.0)) |
| 119 | 124 | * API_DEPRECATED_WITH_REPLACEMENT("SomeClassName", macos(10.4, 10.6), watchos(2.0, 3.0)) |
| 120 | 125 | */ |
| 121 | 126 | |
| 122 | #define API_DEPRECATED(...) __API_DEPRECATED_MSG_GET_MACRO(__VA_ARGS__,__API_DEPRECATED_MSG8,__API_DEPRECATED_MSG7,__API_DEPRECATED_MSG6,__API_DEPRECATED_MSG5,__API_DEPRECATED_MSG4,__API_DEPRECATED_MSG3,__API_DEPRECATED_MSG2,__API_DEPRECATED_MSG1,__API_DEPRECATED_MSG0,0,0)(__VA_ARGS__) | |
| 123 | #define API_DEPRECATED_WITH_REPLACEMENT(...) __API_DEPRECATED_REP_GET_MACRO(__VA_ARGS__,__API_DEPRECATED_REP8,__API_DEPRECATED_REP7,__API_DEPRECATED_REP6,__API_DEPRECATED_REP5,__API_DEPRECATED_REP4,__API_DEPRECATED_REP3,__API_DEPRECATED_REP2,__API_DEPRECATED_REP1,__API_DEPRECATED_REP0,0,0)(__VA_ARGS__) | |
| 127 | #define API_DEPRECATED(...) __API_DEPRECATED_MSG_GET_MACRO_93585900(__VA_ARGS__,__API_DEPRECATED_MSG15,__API_DEPRECATED_MSG14,__API_DEPRECATED_MSG13,__API_DEPRECATED_MSG12,__API_DEPRECATED_MSG11,__API_DEPRECATED_MSG10,__API_DEPRECATED_MSG9,__API_DEPRECATED_MSG8,__API_DEPRECATED_MSG7,__API_DEPRECATED_MSG6,__API_DEPRECATED_MSG5,__API_DEPRECATED_MSG4,__API_DEPRECATED_MSG3,__API_DEPRECATED_MSG2,__API_DEPRECATED_MSG1,__API_DEPRECATED_MSG0,0,0)(__VA_ARGS__) | |
| 128 | #define API_DEPRECATED_WITH_REPLACEMENT(...) __API_DEPRECATED_REP_GET_MACRO_93585900(__VA_ARGS__,__API_DEPRECATED_REP15,__API_DEPRECATED_REP14,__API_DEPRECATED_REP13,__API_DEPRECATED_REP12,__API_DEPRECATED_REP11,__API_DEPRECATED_REP10,__API_DEPRECATED_REP9,__API_DEPRECATED_REP8,__API_DEPRECATED_REP7,__API_DEPRECATED_REP6,__API_DEPRECATED_REP5,__API_DEPRECATED_REP4,__API_DEPRECATED_REP3,__API_DEPRECATED_REP2,__API_DEPRECATED_REP1,__API_DEPRECATED_REP0,0,0)(__VA_ARGS__) | |
| 124 | 129 | |
| 125 | #define API_DEPRECATED_BEGIN(...) _Pragma("clang attribute push") __API_DEPRECATED_BEGIN_GET_MACRO(__VA_ARGS__,__API_DEPRECATED_BEGIN8,__API_DEPRECATED_BEGIN7,__API_DEPRECATED_BEGIN6,__API_DEPRECATED_BEGIN5,__API_DEPRECATED_BEGIN4,__API_DEPRECATED_BEGIN3,__API_DEPRECATED_BEGIN2,__API_DEPRECATED_BEGIN1,__API_DEPRECATED_BEGIN0,0,0)(__VA_ARGS__) | |
| 130 | #define API_DEPRECATED_BEGIN(...) _Pragma("clang attribute push") __API_DEPRECATED_BEGIN_GET_MACRO_93585900(__VA_ARGS__,__API_DEPRECATED_BEGIN15,__API_DEPRECATED_BEGIN14,__API_DEPRECATED_BEGIN13,__API_DEPRECATED_BEGIN12,__API_DEPRECATED_BEGIN11,__API_DEPRECATED_BEGIN10,__API_DEPRECATED_BEGIN9,__API_DEPRECATED_BEGIN8,__API_DEPRECATED_BEGIN7,__API_DEPRECATED_BEGIN6,__API_DEPRECATED_BEGIN5,__API_DEPRECATED_BEGIN4,__API_DEPRECATED_BEGIN3,__API_DEPRECATED_BEGIN2,__API_DEPRECATED_BEGIN1,__API_DEPRECATED_BEGIN0,0,0)(__VA_ARGS__) | |
| 126 | 131 | #define API_DEPRECATED_END _Pragma("clang attribute pop") |
| 127 | 132 | |
| 128 | #define API_DEPRECATED_WITH_REPLACEMENT_BEGIN(...) _Pragma("clang attribute push") __API_DEPRECATED_WITH_REPLACEMENT_BEGIN_GET_MACRO(__VA_ARGS__,__API_DEPRECATED_WITH_REPLACEMENT_BEGIN8,__API_DEPRECATED_WITH_REPLACEMENT_BEGIN7,__API_DEPRECATED_WITH_REPLACEMENT_BEGIN6,__API_DEPRECATED_WITH_REPLACEMENT_BEGIN5,__API_DEPRECATED_WITH_REPLACEMENT_BEGIN4,__API_DEPRECATED_WITH_REPLACEMENT_BEGIN3,__API_DEPRECATED_WITH_REPLACEMENT_BEGIN2,__API_DEPRECATED_WITH_REPLACEMENT_BEGIN1,__API_DEPRECATED_WITH_REPLACEMENT_BEGIN0,0,0)(__VA_ARGS__) | |
| 133 | #define API_DEPRECATED_WITH_REPLACEMENT_BEGIN(...) _Pragma("clang attribute push") __API_DEPRECATED_WITH_REPLACEMENT_BEGIN_GET_MACRO_93585900(__VA_ARGS__,__API_DEPRECATED_WITH_REPLACEMENT_BEGIN15,__API_DEPRECATED_WITH_REPLACEMENT_BEGIN14,__API_DEPRECATED_WITH_REPLACEMENT_BEGIN13,__API_DEPRECATED_WITH_REPLACEMENT_BEGIN12,__API_DEPRECATED_WITH_REPLACEMENT_BEGIN11,__API_DEPRECATED_WITH_REPLACEMENT_BEGIN10,__API_DEPRECATED_WITH_REPLACEMENT_BEGIN9,__API_DEPRECATED_WITH_REPLACEMENT_BEGIN8,__API_DEPRECATED_WITH_REPLACEMENT_BEGIN7,__API_DEPRECATED_WITH_REPLACEMENT_BEGIN6,__API_DEPRECATED_WITH_REPLACEMENT_BEGIN5,__API_DEPRECATED_WITH_REPLACEMENT_BEGIN4,__API_DEPRECATED_WITH_REPLACEMENT_BEGIN3,__API_DEPRECATED_WITH_REPLACEMENT_BEGIN2,__API_DEPRECATED_WITH_REPLACEMENT_BEGIN1,__API_DEPRECATED_WITH_REPLACEMENT_BEGIN0,0,0)(__VA_ARGS__) | |
| 129 | 134 | #define API_DEPRECATED_WITH_REPLACEMENT_END _Pragma("clang attribute pop") |
| 130 | 135 | |
| 136 | /* | |
| 137 | * API Obsoletions | |
| 138 | * | |
| 139 | * Use to specify the release that a particular API became unavailable. | |
| 140 | * | |
| 141 | * Platform names: | |
| 142 | * macos, macOSApplicationExtension, macCatalyst, macCatalystApplicationExtension, | |
| 143 | * ios, iOSApplicationExtension, tvos, tvOSApplicationExtension, watchos, | |
| 144 | * watchOSApplicationExtension, driverkit, visionos, visionOSApplicationExtension | |
| 145 | * | |
| 146 | * Examples: | |
| 147 | * | |
| 148 | * API_OBSOLETED("No longer supported", macos(10.4, 10.8, 11.0)) | |
| 149 | * API_OBSOLETED("No longer supported", macos(10.4, 10.8, 11.0), ios(2.0, 3.0, 4.0), watchos(2.0, 3.0, 4.0), tvos(9.0, 10.0, 11.0)) | |
| 150 | * | |
| 151 | * API_OBSOLETED_WITH_REPLACEMENT("-setName:", tvos(10.0, 10.4, 12.0), ios(9.0, 10.0, 11.0)) | |
| 152 | * API_OBSOLETED_WITH_REPLACEMENT("SomeClassName", macos(10.4, 10.6, 11.0), watchos(2.0, 3.0, 4.0)) | |
| 153 | */ | |
| 154 | #define API_OBSOLETED(...) __API_OBSOLETED_MSG_GET_MACRO_93585900(__VA_ARGS__,__API_OBSOLETED_MSG15,__API_OBSOLETED_MSG14,__API_OBSOLETED_MSG13,__API_OBSOLETED_MSG12,__API_OBSOLETED_MSG11,__API_OBSOLETED_MSG10,__API_OBSOLETED_MSG9,__API_OBSOLETED_MSG8,__API_OBSOLETED_MSG7,__API_OBSOLETED_MSG6,__API_OBSOLETED_MSG5,__API_OBSOLETED_MSG4,__API_OBSOLETED_MSG3,__API_OBSOLETED_MSG2,__API_OBSOLETED_MSG1,__API_OBSOLETED_MSG0,0,0)(__VA_ARGS__) | |
| 155 | #define API_OBSOLETED_WITH_REPLACEMENT(...) __API_OBSOLETED_REP_GET_MACRO_93585900(__VA_ARGS__,__API_OBSOLETED_REP15,__API_OBSOLETED_REP14,__API_OBSOLETED_REP13,__API_OBSOLETED_REP12,__API_OBSOLETED_REP11,__API_OBSOLETED_REP10,__API_OBSOLETED_REP9,__API_OBSOLETED_REP8,__API_OBSOLETED_REP7,__API_OBSOLETED_REP6,__API_OBSOLETED_REP5,__API_OBSOLETED_REP4,__API_OBSOLETED_REP3,__API_OBSOLETED_REP2,__API_OBSOLETED_REP1,__API_OBSOLETED_REP0,0,0)(__VA_ARGS__) | |
| 156 | ||
| 157 | #define API_OBSOLETED_BEGIN(...) _Pragma("clang attribute push") __API_OBSOLETED_BEGIN_GET_MACRO_93585900(__VA_ARGS__,__API_OBSOLETED_BEGIN15,__API_OBSOLETED_BEGIN14,__API_OBSOLETED_BEGIN13,__API_OBSOLETED_BEGIN12,__API_OBSOLETED_BEGIN11,__API_OBSOLETED_BEGIN10,__API_OBSOLETED_BEGIN9,__API_OBSOLETED_BEGIN8,__API_OBSOLETED_BEGIN7,__API_OBSOLETED_BEGIN6,__API_OBSOLETED_BEGIN5,__API_OBSOLETED_BEGIN4,__API_OBSOLETED_BEGIN3,__API_OBSOLETED_BEGIN2,__API_OBSOLETED_BEGIN1,__API_OBSOLETED_BEGIN0,0,0)(__VA_ARGS__) | |
| 158 | #define API_OBSOLETED_END _Pragma("clang attribute pop") | |
| 159 | ||
| 160 | #define API_OBSOLETED_WITH_REPLACEMENT_BEGIN(...) _Pragma("clang attribute push") __API_OBSOLETED_WITH_REPLACEMENT_BEGIN_GET_MACRO_93585900(__VA_ARGS__,__API_OBSOLETED_WITH_REPLACEMENT_BEGIN15,__API_OBSOLETED_WITH_REPLACEMENT_BEGIN14,__API_OBSOLETED_WITH_REPLACEMENT_BEGIN13,__API_OBSOLETED_WITH_REPLACEMENT_BEGIN12,__API_OBSOLETED_WITH_REPLACEMENT_BEGIN11,__API_OBSOLETED_WITH_REPLACEMENT_BEGIN10,__API_OBSOLETED_WITH_REPLACEMENT_BEGIN9,__API_OBSOLETED_WITH_REPLACEMENT_BEGIN8,__API_OBSOLETED_WITH_REPLACEMENT_BEGIN7,__API_OBSOLETED_WITH_REPLACEMENT_BEGIN6,__API_OBSOLETED_WITH_REPLACEMENT_BEGIN5,__API_OBSOLETED_WITH_REPLACEMENT_BEGIN4,__API_OBSOLETED_WITH_REPLACEMENT_BEGIN3,__API_OBSOLETED_WITH_REPLACEMENT_BEGIN2,__API_OBSOLETED_WITH_REPLACEMENT_BEGIN1,__API_OBSOLETED_WITH_REPLACEMENT_BEGIN0,0,0)(__VA_ARGS__) | |
| 161 | #define API_OBSOLETED_WITH_REPLACEMENT_END _Pragma("clang attribute pop") | |
| 162 | ||
| 131 | 163 | /* |
| 132 | 164 | * API Unavailability |
| 133 | 165 | * Use to specify that an API is unavailable for a particular platform. |
| ... | ... | @@ -137,9 +169,9 @@ |
| 137 | 169 | * API_UNAVAILABLE(watchos, tvos) |
| 138 | 170 | */ |
| 139 | 171 | |
| 140 | #define API_UNAVAILABLE(...) __API_UNAVAILABLE_GET_MACRO(__VA_ARGS__,__API_UNAVAILABLE8,__API_UNAVAILABLE7,__API_UNAVAILABLE6,__API_UNAVAILABLE5,__API_UNAVAILABLE4,__API_UNAVAILABLE3,__API_UNAVAILABLE2,__API_UNAVAILABLE1,__API_UNAVAILABLE0,0)(__VA_ARGS__) | |
| 172 | #define API_UNAVAILABLE(...) __API_UNAVAILABLE_GET_MACRO_93585900(__VA_ARGS__,__API_UNAVAILABLE15,__API_UNAVAILABLE14,__API_UNAVAILABLE13,__API_UNAVAILABLE12,__API_UNAVAILABLE11,__API_UNAVAILABLE10,__API_UNAVAILABLE9,__API_UNAVAILABLE8,__API_UNAVAILABLE7,__API_UNAVAILABLE6,__API_UNAVAILABLE5,__API_UNAVAILABLE4,__API_UNAVAILABLE3,__API_UNAVAILABLE2,__API_UNAVAILABLE1,__API_UNAVAILABLE0,0)(__VA_ARGS__) | |
| 141 | 173 | |
| 142 | #define API_UNAVAILABLE_BEGIN(...) _Pragma("clang attribute push") __API_UNAVAILABLE_BEGIN_GET_MACRO(__VA_ARGS__,__API_UNAVAILABLE_BEGIN8,__API_UNAVAILABLE_BEGIN7,__API_UNAVAILABLE_BEGIN6,__API_UNAVAILABLE_BEGIN5,__API_UNAVAILABLE_BEGIN4,__API_UNAVAILABLE_BEGIN3,__API_UNAVAILABLE_BEGIN2,__API_UNAVAILABLE_BEGIN1,__API_UNAVAILABLE_BEGIN0,0)(__VA_ARGS__) | |
| 174 | #define API_UNAVAILABLE_BEGIN(...) _Pragma("clang attribute push") __API_UNAVAILABLE_BEGIN_GET_MACRO_93585900(__VA_ARGS__,__API_UNAVAILABLE_BEGIN15,__API_UNAVAILABLE_BEGIN14,__API_UNAVAILABLE_BEGIN13,__API_UNAVAILABLE_BEGIN12,__API_UNAVAILABLE_BEGIN11,__API_UNAVAILABLE_BEGIN10,__API_UNAVAILABLE_BEGIN9,__API_UNAVAILABLE_BEGIN8,__API_UNAVAILABLE_BEGIN7,__API_UNAVAILABLE_BEGIN6,__API_UNAVAILABLE_BEGIN5,__API_UNAVAILABLE_BEGIN4,__API_UNAVAILABLE_BEGIN3,__API_UNAVAILABLE_BEGIN2,__API_UNAVAILABLE_BEGIN1,__API_UNAVAILABLE_BEGIN0,0)(__VA_ARGS__) | |
| 143 | 175 | #define API_UNAVAILABLE_END _Pragma("clang attribute pop") |
| 144 | 176 | #endif /* __has_attribute(availability) */ |
| 145 | 177 | #endif /* #if defined(__has_feature) && defined(__has_attribute) */ |
| ... | ... | @@ -184,6 +216,30 @@ |
| 184 | 216 | #define API_DEPRECATED_WITH_REPLACEMENT_END(...) |
| 185 | 217 | #endif |
| 186 | 218 | |
| 219 | #ifndef API_OBSOLETED | |
| 220 | #define API_OBSOLETED(...) | |
| 221 | #endif | |
| 222 | ||
| 223 | #ifndef API_OBSOLETED_BEGIN | |
| 224 | #define API_OBSOLETED_BEGIN(...) | |
| 225 | #endif | |
| 226 | ||
| 227 | #ifndef API_OBSOLETED_END | |
| 228 | #define API_OBSOLETED_END(...) | |
| 229 | #endif | |
| 230 | ||
| 231 | #ifndef API_OBSOLETED_WITH_REPLACEMENT | |
| 232 | #define API_OBSOLETED_WITH_REPLACEMENT(...) | |
| 233 | #endif | |
| 234 | ||
| 235 | #ifndef API_OBSOLETED_WITH_REPLACEMENT_BEGIN | |
| 236 | #define API_OBSOLETED_WITH_REPLACEMENT_BEGIN(...) | |
| 237 | #endif | |
| 238 | ||
| 239 | #ifndef API_OBSOLETED_WITH_REPLACEMENT_END | |
| 240 | #define API_OBSOLETED_WITH_REPLACEMENT_END(...) | |
| 241 | #endif | |
| 242 | ||
| 187 | 243 | #ifndef API_UNAVAILABLE |
| 188 | 244 | #define API_UNAVAILABLE(...) |
| 189 | 245 | #endif |
| ... | ... | @@ -225,3 +281,14 @@ |
| 225 | 281 | #endif |
| 226 | 282 | |
| 227 | 283 | #endif /* __OS_AVAILABILITY__ */ |
| 284 | ||
| 285 | #ifndef __OPEN_SOURCE__ | |
| 286 | // This is explicitly outside the header guard | |
| 287 | #ifndef __AVAILABILITY_VERSIONS_VERSION_HASH | |
| 288 | #define __AVAILABILITY_VERSIONS_VERSION_HASH 93585900U | |
| 289 | #define __AVAILABILITY_VERSIONS_VERSION_STRING "Local" | |
| 290 | #define __AVAILABILITY_FILE "os/availability.h" | |
| 291 | #elif __AVAILABILITY_VERSIONS_VERSION_HASH != 93585900U | |
| 292 | #pragma GCC error "Already found AvailabilityVersions version " __AVAILABILITY_FILE " from " __AVAILABILITY_VERSIONS_VERSION_STRING ", which is incompatible with os/availability.h from Local. Mixing and matching Availability from different SDKs is not supported" | |
| 293 | #endif /* __AVAILABILITY_VERSIONS_VERSION_HASH */ | |
| 294 | #endif /* __OPEN_SOURCE__ */ |
lib/libc/include/any-macos-any/runetype.h+9-6| ... | ... | @@ -39,8 +39,11 @@ |
| 39 | 39 | #ifndef	_RUNETYPE_H_ |
| 40 | 40 | #define	_RUNETYPE_H_ |
| 41 | 41 | |
| 42 | #include <_bounds.h> | |
| 42 | 43 | #include <_types.h> |
| 43 | 44 | |
| 45 | _LIBC_SINGLE_BY_DEFAULT() | |
| 46 | ||
| 44 | 47 | #if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE) |
| 45 | 48 | |
| 46 | 49 | #include <sys/_types/_size_t.h> |
| ... | ... | @@ -61,12 +64,12 @@ typedef struct { |
| 61 | 64 | 	__darwin_rune_t	__min;		/* First rune of the range */ |
| 62 | 65 | 	__darwin_rune_t	__max;		/* Last rune (inclusive) of the range */ |
| 63 | 66 | 	__darwin_rune_t	__map;		/* What first maps to in maps */ |
| 64 | 	__uint32_t	*__types;	/* Array of types in range */ | |
| 67 | 	__uint32_t *_LIBC_UNSAFE_INDEXABLE	__types;	/* Array of types in range */ | |
| 65 | 68 | } _RuneEntry; |
| 66 | 69 | |
| 67 | 70 | typedef struct { |
| 68 | 71 | 	int		__nranges;	/* Number of ranges stored */ |
| 69 | 	_RuneEntry	*__ranges;	/* Pointer to the ranges */ | |
| 72 | 	_RuneEntry *_LIBC_COUNT(__nranges)	__ranges;	/* Pointer to the ranges */ | |
| 70 | 73 | } _RuneRange; |
| 71 | 74 | |
| 72 | 75 | typedef struct { |
| ... | ... | @@ -78,8 +81,8 @@ typedef struct { |
| 78 | 81 | 	char		__magic[8];	/* Magic saying what version we are */ |
| 79 | 82 | 	char		__encoding[32];	/* ASCII name of this encoding */ |
| 80 | 83 | |
| 81 | 	__darwin_rune_t	(*__sgetrune)(const char *, __darwin_size_t, char const **); | |
| 82 | 	int		(*__sputrune)(__darwin_rune_t, char *, __darwin_size_t, char **); | |
| 84 | 	__darwin_rune_t	(*__sgetrune)(const char *_LIBC_COUNT(__n) __string, __darwin_size_t __n, char const *_LIBC_UNSAFE_INDEXABLE /* NULL or within bounds of __string */ *); | |
| 85 | 	int		(*__sputrune)(__darwin_rune_t, char *_LIBC_COUNT(__n) __string, __darwin_size_t __n, char *_LIBC_UNSAFE_INDEXABLE /* NULL or within bounds of __string */ *); | |
| 83 | 86 | 	__darwin_rune_t	__invalid_rune;	/* Deprecated */ |
| 84 | 87 | |
| 85 | 88 | 	__uint32_t	__runetype[_CACHED_RUNES]; |
| ... | ... | @@ -95,14 +98,14 @@ typedef struct { |
| 95 | 98 | 	_RuneRange	__maplower_ext; |
| 96 | 99 | 	_RuneRange	__mapupper_ext; |
| 97 | 100 | |
| 98 | 	void		*__variable;	/* Data which depends on the encoding */ | |
| 101 | 	void *_LIBC_SIZE(__variable_len)	__variable;	/* Data which depends on the encoding */ | |
| 99 | 102 | 	int		__variable_len;	/* how long that data is */ |
| 100 | 103 | |
| 101 | 104 | 	/* |
| 102 | 105 | 	 * extra fields to deal with arbitrary character classes |
| 103 | 106 | 	 */ |
| 104 | 107 | 	int		__ncharclasses; |
| 105 | 	_RuneCharClass	*__charclasses; | |
| 108 | 	_RuneCharClass *_LIBC_COUNT(__ncharclasses)	__charclasses; | |
| 106 | 109 | } _RuneLocale; |
| 107 | 110 | |
| 108 | 111 | #define	_RUNE_MAGIC_A	"RuneMagA"	/* Indicates version A of RuneLocale */ |
lib/libc/include/any-macos-any/search.h+7-4| ... | ... | @@ -10,11 +10,14 @@ |
| 10 | 10 | #define _SEARCH_H_ |
| 11 | 11 | |
| 12 | 12 | #include <sys/cdefs.h> |
| 13 | #include <_bounds.h> | |
| 13 | 14 | #include <_types.h> |
| 14 | 15 | #include <sys/_types/_size_t.h> |
| 15 | 16 | |
| 17 | _LIBC_SINGLE_BY_DEFAULT() | |
| 18 | ||
| 16 | 19 | typedef	struct entry { |
| 17 | 	char	*key; | |
| 20 | 	char *_LIBC_CSTR	key; | |
| 18 | 21 | 	void	*data; |
| 19 | 22 | } ENTRY; |
| 20 | 23 | |
| ... | ... | @@ -31,7 +34,7 @@ typedef	enum { |
| 31 | 34 | |
| 32 | 35 | #ifdef _SEARCH_PRIVATE |
| 33 | 36 | typedef	struct node { |
| 34 | 	char *key; | |
| 37 | 	char *_LIBC_CSTR	key; | |
| 35 | 38 | 	struct node *llink, *rlink; |
| 36 | 39 | } node_t; |
| 37 | 40 | |
| ... | ... | @@ -46,9 +49,9 @@ int	 hcreate(size_t); |
| 46 | 49 | void	 hdestroy(void); |
| 47 | 50 | ENTRY	*hsearch(ENTRY, ACTION); |
| 48 | 51 | void	 insque(void *, void *); |
| 49 | void	*lfind(const void *, const void *, size_t *, size_t, | |
| 52 | void	*lfind(const void *, const void *_LIBC_UNSAFE_INDEXABLE, size_t *, size_t, | |
| 50 | 53 | 	 int (*)(const void *, const void *)); |
| 51 | void	*lsearch(const void *, void *, size_t *, size_t, | |
| 54 | void	*lsearch(const void *, void *, size_t *_LIBC_UNSAFE_INDEXABLE, size_t, | |
| 52 | 55 | 	 int (*)(const void *, const void *)); |
| 53 | 56 | void	 remque(void *); |
| 54 | 57 | void	*tdelete(const void * __restrict, void ** __restrict, |
lib/libc/include/any-macos-any/secure/_stdio.h+7-4| ... | ... | @@ -28,8 +28,11 @@ |
| 28 | 28 | #ifndef _SECURE__STDIO_H_ |
| 29 | 29 | #define _SECURE__STDIO_H_ |
| 30 | 30 | |
| 31 | #include <_bounds.h> | |
| 31 | 32 | #include <secure/_common.h> |
| 32 | 33 | |
| 34 | _LIBC_SINGLE_BY_DEFAULT() | |
| 35 | ||
| 33 | 36 | #if _USE_FORTIFY_LEVEL > 0 |
| 34 | 37 | |
| 35 | 38 | #ifndef __has_builtin |
| ... | ... | @@ -39,7 +42,7 @@ |
| 39 | 42 | |
| 40 | 43 | /* sprintf, vsprintf, snprintf, vsnprintf */ |
| 41 | 44 | #if __has_builtin(__builtin___sprintf_chk) || defined(__GNUC__) |
| 42 | extern int __sprintf_chk (char * __restrict, int, size_t, | |
| 45 | extern int __sprintf_chk (char * __restrict _LIBC_UNSAFE_INDEXABLE, int, size_t, | |
| 43 | 46 | 			 const char * __restrict, ...); |
| 44 | 47 | |
| 45 | 48 | #undef sprintf |
| ... | ... | @@ -49,7 +52,7 @@ extern int __sprintf_chk (char * __restrict, int, size_t, |
| 49 | 52 | |
| 50 | 53 | #if __DARWIN_C_LEVEL >= 200112L |
| 51 | 54 | #if __has_builtin(__builtin___snprintf_chk) || defined(__GNUC__) |
| 52 | extern int __snprintf_chk (char * __restrict, size_t, int, size_t, | |
| 55 | extern int __snprintf_chk (char * __restrict _LIBC_COUNT(__maxlen), size_t __maxlen, int, size_t, | |
| 53 | 56 | 			 const char * __restrict, ...); |
| 54 | 57 | |
| 55 | 58 | #undef snprintf |
| ... | ... | @@ -58,7 +61,7 @@ extern int __snprintf_chk (char * __restrict, size_t, int, size_t, |
| 58 | 61 | #endif |
| 59 | 62 | |
| 60 | 63 | #if __has_builtin(__builtin___vsprintf_chk) || defined(__GNUC__) |
| 61 | extern int __vsprintf_chk (char * __restrict, int, size_t, | |
| 64 | extern int __vsprintf_chk (char * __restrict _LIBC_UNSAFE_INDEXABLE, int, size_t, | |
| 62 | 65 | 			 const char * __restrict, va_list); |
| 63 | 66 | |
| 64 | 67 | #undef vsprintf |
| ... | ... | @@ -67,7 +70,7 @@ extern int __vsprintf_chk (char * __restrict, int, size_t, |
| 67 | 70 | #endif |
| 68 | 71 | |
| 69 | 72 | #if __has_builtin(__builtin___vsnprintf_chk) || defined(__GNUC__) |
| 70 | extern int __vsnprintf_chk (char * __restrict, size_t, int, size_t, | |
| 73 | extern int __vsnprintf_chk (char * __restrict _LIBC_COUNT(__maxlen), size_t __maxlen, int, size_t, | |
| 71 | 74 | 			 const char * __restrict, va_list); |
| 72 | 75 | |
| 73 | 76 | #undef vsnprintf |
lib/libc/include/any-macos-any/signal.h+3| ... | ... | @@ -59,12 +59,15 @@ |
| 59 | 59 | #define _USER_SIGNAL_H |
| 60 | 60 | |
| 61 | 61 | #include <sys/cdefs.h> |
| 62 | #include <_bounds.h> | |
| 62 | 63 | #include <_types.h> |
| 63 | 64 | #include <sys/signal.h> |
| 64 | 65 | |
| 65 | 66 | #include <sys/_pthread/_pthread_types.h> |
| 66 | 67 | #include <sys/_pthread/_pthread_t.h> |
| 67 | 68 | |
| 69 | _LIBC_SINGLE_BY_DEFAULT() | |
| 70 | ||
| 68 | 71 | #if !defined(_ANSI_SOURCE) && (!defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)) |
| 69 | 72 | extern __const char *__const sys_signame[NSIG]; |
| 70 | 73 | extern __const char *__const sys_siglist[NSIG]; |
lib/libc/include/any-macos-any/simd/common.h+61-37| ... | ... | @@ -4815,7 +4815,11 @@ static inline SIMD_CFUNC char simd_reduce_add(simd_char8 x) { |
| 4815 | 4815 | } |
| 4816 | 4816 | |
| 4817 | 4817 | static inline SIMD_CFUNC char simd_reduce_add(simd_char16 x) { |
| 4818 | #if defined __arm64__ || defined __aarch64__ | |
| 4819 | return vaddvq_s8(x); | |
| 4820 | #else | |
| 4818 | 4821 | return simd_reduce_add(x.lo + x.hi); |
| 4822 | #endif | |
| 4819 | 4823 | } |
| 4820 | 4824 | |
| 4821 | 4825 | static inline SIMD_CFUNC char simd_reduce_add(simd_char32 x) { |
| ... | ... | @@ -4843,7 +4847,11 @@ static inline SIMD_CFUNC unsigned char simd_reduce_add(simd_uchar8 x) { |
| 4843 | 4847 | } |
| 4844 | 4848 | |
| 4845 | 4849 | static inline SIMD_CFUNC unsigned char simd_reduce_add(simd_uchar16 x) { |
| 4850 | #if defined __arm64__ || defined __aarch64__ | |
| 4851 | return vaddvq_u8(x); | |
| 4852 | #else | |
| 4846 | 4853 | return simd_reduce_add(x.lo + x.hi); |
| 4854 | #endif | |
| 4847 | 4855 | } |
| 4848 | 4856 | |
| 4849 | 4857 | static inline SIMD_CFUNC unsigned char simd_reduce_add(simd_uchar32 x) { |
| ... | ... | @@ -4867,7 +4875,11 @@ static inline SIMD_CFUNC short simd_reduce_add(simd_short4 x) { |
| 4867 | 4875 | } |
| 4868 | 4876 | |
| 4869 | 4877 | static inline SIMD_CFUNC short simd_reduce_add(simd_short8 x) { |
| 4878 | #if defined __arm64__ || defined __aarch64__ | |
| 4879 | return vaddvq_s16(x); | |
| 4880 | #else | |
| 4870 | 4881 | return simd_reduce_add(x.lo + x.hi); |
| 4882 | #endif | |
| 4871 | 4883 | } |
| 4872 | 4884 | |
| 4873 | 4885 | static inline SIMD_CFUNC short simd_reduce_add(simd_short16 x) { |
| ... | ... | @@ -4891,7 +4903,11 @@ static inline SIMD_CFUNC unsigned short simd_reduce_add(simd_ushort4 x) { |
| 4891 | 4903 | } |
| 4892 | 4904 | |
| 4893 | 4905 | static inline SIMD_CFUNC unsigned short simd_reduce_add(simd_ushort8 x) { |
| 4906 | #if defined __arm64__ || defined __aarch64__ | |
| 4907 | return vaddvq_u16(x); | |
| 4908 | #else | |
| 4894 | 4909 | return simd_reduce_add(x.lo + x.hi); |
| 4910 | #endif | |
| 4895 | 4911 | } |
| 4896 | 4912 | |
| 4897 | 4913 | static inline SIMD_CFUNC unsigned short simd_reduce_add(simd_ushort16 x) { |
| ... | ... | @@ -4902,30 +4918,6 @@ static inline SIMD_CFUNC unsigned short simd_reduce_add(simd_ushort32 x) { |
| 4902 | 4918 | return simd_reduce_add(x.lo + x.hi); |
| 4903 | 4919 | } |
| 4904 | 4920 | |
| 4905 | static inline SIMD_CFUNC _Float16 simd_reduce_add(simd_half2 x) { | |
| 4906 | return x.x + x.y; | |
| 4907 | } | |
| 4908 | ||
| 4909 | static inline SIMD_CFUNC _Float16 simd_reduce_add(simd_half3 x) { | |
| 4910 | return x.x + x.y + x.z; | |
| 4911 | } | |
| 4912 | ||
| 4913 | static inline SIMD_CFUNC _Float16 simd_reduce_add(simd_half4 x) { | |
| 4914 | return simd_reduce_add(x.lo + x.hi); | |
| 4915 | } | |
| 4916 | ||
| 4917 | static inline SIMD_CFUNC _Float16 simd_reduce_add(simd_half8 x) { | |
| 4918 | return simd_reduce_add(x.lo + x.hi); | |
| 4919 | } | |
| 4920 | ||
| 4921 | static inline SIMD_CFUNC _Float16 simd_reduce_add(simd_half16 x) { | |
| 4922 | return simd_reduce_add(x.lo + x.hi); | |
| 4923 | } | |
| 4924 | ||
| 4925 | static inline SIMD_CFUNC _Float16 simd_reduce_add(simd_half32 x) { | |
| 4926 | return simd_reduce_add(x.lo + x.hi); | |
| 4927 | } | |
| 4928 | ||
| 4929 | 4921 | static inline SIMD_CFUNC int simd_reduce_add(simd_int2 x) { |
| 4930 | 4922 | return x.x + x.y; |
| 4931 | 4923 | } |
| ... | ... | @@ -4935,7 +4927,11 @@ static inline SIMD_CFUNC int simd_reduce_add(simd_int3 x) { |
| 4935 | 4927 | } |
| 4936 | 4928 | |
| 4937 | 4929 | static inline SIMD_CFUNC int simd_reduce_add(simd_int4 x) { |
| 4930 | #if defined __arm64__ || defined __aarch64__ | |
| 4931 | return vaddvq_s32(x); | |
| 4932 | #else | |
| 4938 | 4933 | return simd_reduce_add(x.lo + x.hi); |
| 4934 | #endif | |
| 4939 | 4935 | } |
| 4940 | 4936 | |
| 4941 | 4937 | static inline SIMD_CFUNC int simd_reduce_add(simd_int8 x) { |
| ... | ... | @@ -4955,7 +4951,11 @@ static inline SIMD_CFUNC unsigned int simd_reduce_add(simd_uint3 x) { |
| 4955 | 4951 | } |
| 4956 | 4952 | |
| 4957 | 4953 | static inline SIMD_CFUNC unsigned int simd_reduce_add(simd_uint4 x) { |
| 4954 | #if defined __arm64__ || defined __aarch64__ | |
| 4955 | return vaddvq_u32(x); | |
| 4956 | #else | |
| 4958 | 4957 | return simd_reduce_add(x.lo + x.hi); |
| 4958 | #endif | |
| 4959 | 4959 | } |
| 4960 | 4960 | |
| 4961 | 4961 | static inline SIMD_CFUNC unsigned int simd_reduce_add(simd_uint8 x) { |
| ... | ... | @@ -4966,55 +4966,79 @@ static inline SIMD_CFUNC unsigned int simd_reduce_add(simd_uint16 x) { |
| 4966 | 4966 | return simd_reduce_add(x.lo + x.hi); |
| 4967 | 4967 | } |
| 4968 | 4968 | |
| 4969 | static inline SIMD_CFUNC float simd_reduce_add(simd_float2 x) { | |
| 4969 | static inline SIMD_CFUNC simd_long1 simd_reduce_add(simd_long2 x) { | |
| 4970 | 4970 | return x.x + x.y; |
| 4971 | 4971 | } |
| 4972 | 4972 | |
| 4973 | static inline SIMD_CFUNC float simd_reduce_add(simd_float3 x) { | |
| 4973 | static inline SIMD_CFUNC simd_long1 simd_reduce_add(simd_long3 x) { | |
| 4974 | 4974 | return x.x + x.y + x.z; |
| 4975 | 4975 | } |
| 4976 | 4976 | |
| 4977 | static inline SIMD_CFUNC float simd_reduce_add(simd_float4 x) { | |
| 4977 | static inline SIMD_CFUNC simd_long1 simd_reduce_add(simd_long4 x) { | |
| 4978 | 4978 | return simd_reduce_add(x.lo + x.hi); |
| 4979 | 4979 | } |
| 4980 | 4980 | |
| 4981 | static inline SIMD_CFUNC float simd_reduce_add(simd_float8 x) { | |
| 4981 | static inline SIMD_CFUNC simd_long1 simd_reduce_add(simd_long8 x) { | |
| 4982 | 4982 | return simd_reduce_add(x.lo + x.hi); |
| 4983 | 4983 | } |
| 4984 | 4984 | |
| 4985 | static inline SIMD_CFUNC float simd_reduce_add(simd_float16 x) { | |
| 4985 | static inline SIMD_CFUNC simd_ulong1 simd_reduce_add(simd_ulong2 x) { | |
| 4986 | return x.x + x.y; | |
| 4987 | } | |
| 4988 | ||
| 4989 | static inline SIMD_CFUNC simd_ulong1 simd_reduce_add(simd_ulong3 x) { | |
| 4990 | return x.x + x.y + x.z; | |
| 4991 | } | |
| 4992 | ||
| 4993 | static inline SIMD_CFUNC simd_ulong1 simd_reduce_add(simd_ulong4 x) { | |
| 4986 | 4994 | return simd_reduce_add(x.lo + x.hi); |
| 4987 | 4995 | } |
| 4988 | 4996 | |
| 4989 | static inline SIMD_CFUNC simd_long1 simd_reduce_add(simd_long2 x) { | |
| 4997 | static inline SIMD_CFUNC simd_ulong1 simd_reduce_add(simd_ulong8 x) { | |
| 4998 | return simd_reduce_add(x.lo + x.hi); | |
| 4999 | } | |
| 5000 | ||
| 5001 | static inline SIMD_CFUNC _Float16 simd_reduce_add(simd_half2 x) { | |
| 4990 | 5002 | return x.x + x.y; |
| 4991 | 5003 | } |
| 4992 | 5004 | |
| 4993 | static inline SIMD_CFUNC simd_long1 simd_reduce_add(simd_long3 x) { | |
| 5005 | static inline SIMD_CFUNC _Float16 simd_reduce_add(simd_half3 x) { | |
| 4994 | 5006 | return x.x + x.y + x.z; |
| 4995 | 5007 | } |
| 4996 | 5008 | |
| 4997 | static inline SIMD_CFUNC simd_long1 simd_reduce_add(simd_long4 x) { | |
| 5009 | static inline SIMD_CFUNC _Float16 simd_reduce_add(simd_half4 x) { | |
| 4998 | 5010 | return simd_reduce_add(x.lo + x.hi); |
| 4999 | 5011 | } |
| 5000 | 5012 | |
| 5001 | static inline SIMD_CFUNC simd_long1 simd_reduce_add(simd_long8 x) { | |
| 5013 | static inline SIMD_CFUNC _Float16 simd_reduce_add(simd_half8 x) { | |
| 5002 | 5014 | return simd_reduce_add(x.lo + x.hi); |
| 5003 | 5015 | } |
| 5004 | 5016 | |
| 5005 | static inline SIMD_CFUNC simd_ulong1 simd_reduce_add(simd_ulong2 x) { | |
| 5017 | static inline SIMD_CFUNC _Float16 simd_reduce_add(simd_half16 x) { | |
| 5018 | return simd_reduce_add(x.lo + x.hi); | |
| 5019 | } | |
| 5020 | ||
| 5021 | static inline SIMD_CFUNC _Float16 simd_reduce_add(simd_half32 x) { | |
| 5022 | return simd_reduce_add(x.lo + x.hi); | |
| 5023 | } | |
| 5024 | ||
| 5025 | static inline SIMD_CFUNC float simd_reduce_add(simd_float2 x) { | |
| 5006 | 5026 | return x.x + x.y; |
| 5007 | 5027 | } |
| 5008 | 5028 | |
| 5009 | static inline SIMD_CFUNC simd_ulong1 simd_reduce_add(simd_ulong3 x) { | |
| 5029 | static inline SIMD_CFUNC float simd_reduce_add(simd_float3 x) { | |
| 5010 | 5030 | return x.x + x.y + x.z; |
| 5011 | 5031 | } |
| 5012 | 5032 | |
| 5013 | static inline SIMD_CFUNC simd_ulong1 simd_reduce_add(simd_ulong4 x) { | |
| 5033 | static inline SIMD_CFUNC float simd_reduce_add(simd_float4 x) { | |
| 5014 | 5034 | return simd_reduce_add(x.lo + x.hi); |
| 5015 | 5035 | } |
| 5016 | 5036 | |
| 5017 | static inline SIMD_CFUNC simd_ulong1 simd_reduce_add(simd_ulong8 x) { | |
| 5037 | static inline SIMD_CFUNC float simd_reduce_add(simd_float8 x) { | |
| 5038 | return simd_reduce_add(x.lo + x.hi); | |
| 5039 | } | |
| 5040 | ||
| 5041 | static inline SIMD_CFUNC float simd_reduce_add(simd_float16 x) { | |
| 5018 | 5042 | return simd_reduce_add(x.lo + x.hi); |
| 5019 | 5043 | } |
| 5020 | 5044 |
lib/libc/include/any-macos-any/sys/_symbol_aliasing.h+66| ... | ... | @@ -509,6 +509,18 @@ |
| 509 | 509 | #define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_17_5(x) |
| 510 | 510 | #endif |
| 511 | 511 | |
| 512 | #if defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ >= 170600 | |
| 513 | #define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_17_6(x) x | |
| 514 | #else | |
| 515 | #define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_17_6(x) | |
| 516 | #endif | |
| 517 | ||
| 518 | #if defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ >= 170700 | |
| 519 | #define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_17_7(x) x | |
| 520 | #else | |
| 521 | #define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_17_7(x) | |
| 522 | #endif | |
| 523 | ||
| 512 | 524 | #if defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ >= 180000 |
| 513 | 525 | #define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_18_0(x) x |
| 514 | 526 | #else |
| ... | ... | @@ -527,6 +539,24 @@ |
| 527 | 539 | #define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_18_2(x) |
| 528 | 540 | #endif |
| 529 | 541 | |
| 542 | #if defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ >= 180300 | |
| 543 | #define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_18_3(x) x | |
| 544 | #else | |
| 545 | #define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_18_3(x) | |
| 546 | #endif | |
| 547 | ||
| 548 | #if defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ >= 180400 | |
| 549 | #define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_18_4(x) x | |
| 550 | #else | |
| 551 | #define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_18_4(x) | |
| 552 | #endif | |
| 553 | ||
| 554 | #if defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ >= 180500 | |
| 555 | #define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_18_5(x) x | |
| 556 | #else | |
| 557 | #define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_18_5(x) | |
| 558 | #endif | |
| 559 | ||
| 530 | 560 | #if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1000 |
| 531 | 561 | #define __DARWIN_ALIAS_STARTING_MAC___MAC_10_0(x) x |
| 532 | 562 | #else |
| ... | ... | @@ -863,6 +893,12 @@ |
| 863 | 893 | #define __DARWIN_ALIAS_STARTING_MAC___MAC_13_6(x) |
| 864 | 894 | #endif |
| 865 | 895 | |
| 896 | #if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 130700 | |
| 897 | #define __DARWIN_ALIAS_STARTING_MAC___MAC_13_7(x) x | |
| 898 | #else | |
| 899 | #define __DARWIN_ALIAS_STARTING_MAC___MAC_13_7(x) | |
| 900 | #endif | |
| 901 | ||
| 866 | 902 | #if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 140000 |
| 867 | 903 | #define __DARWIN_ALIAS_STARTING_MAC___MAC_14_0(x) x |
| 868 | 904 | #else |
| ... | ... | @@ -899,6 +935,18 @@ |
| 899 | 935 | #define __DARWIN_ALIAS_STARTING_MAC___MAC_14_5(x) |
| 900 | 936 | #endif |
| 901 | 937 | |
| 938 | #if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 140600 | |
| 939 | #define __DARWIN_ALIAS_STARTING_MAC___MAC_14_6(x) x | |
| 940 | #else | |
| 941 | #define __DARWIN_ALIAS_STARTING_MAC___MAC_14_6(x) | |
| 942 | #endif | |
| 943 | ||
| 944 | #if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 140700 | |
| 945 | #define __DARWIN_ALIAS_STARTING_MAC___MAC_14_7(x) x | |
| 946 | #else | |
| 947 | #define __DARWIN_ALIAS_STARTING_MAC___MAC_14_7(x) | |
| 948 | #endif | |
| 949 | ||
| 902 | 950 | #if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 150000 |
| 903 | 951 | #define __DARWIN_ALIAS_STARTING_MAC___MAC_15_0(x) x |
| 904 | 952 | #else |
| ... | ... | @@ -917,3 +965,21 @@ |
| 917 | 965 | #define __DARWIN_ALIAS_STARTING_MAC___MAC_15_2(x) |
| 918 | 966 | #endif |
| 919 | 967 | |
| 968 | #if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 150300 | |
| 969 | #define __DARWIN_ALIAS_STARTING_MAC___MAC_15_3(x) x | |
| 970 | #else | |
| 971 | #define __DARWIN_ALIAS_STARTING_MAC___MAC_15_3(x) | |
| 972 | #endif | |
| 973 | ||
| 974 | #if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 150400 | |
| 975 | #define __DARWIN_ALIAS_STARTING_MAC___MAC_15_4(x) x | |
| 976 | #else | |
| 977 | #define __DARWIN_ALIAS_STARTING_MAC___MAC_15_4(x) | |
| 978 | #endif | |
| 979 | ||
| 980 | #if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 150500 | |
| 981 | #define __DARWIN_ALIAS_STARTING_MAC___MAC_15_5(x) x | |
| 982 | #else | |
| 983 | #define __DARWIN_ALIAS_STARTING_MAC___MAC_15_5(x) | |
| 984 | #endif | |
| 985 |
lib/libc/include/any-macos-any/sys/acl.h+9-6| ... | ... | @@ -24,9 +24,12 @@ |
| 24 | 24 | #define _SYS_ACL_H |
| 25 | 25 | |
| 26 | 26 | #include <Availability.h> |
| 27 | #include <_bounds.h> | |
| 27 | 28 | #include <sys/kauth.h> |
| 28 | 29 | #include <sys/_types/_ssize_t.h> |
| 29 | 30 | |
| 31 | _LIBC_SINGLE_BY_DEFAULT() | |
| 32 | ||
| 30 | 33 | #define __DARWIN_ACL_READ_DATA			(1<<1) |
| 31 | 34 | #define __DARWIN_ACL_LIST_DIRECTORY		__DARWIN_ACL_READ_DATA |
| 32 | 35 | #define __DARWIN_ACL_WRITE_DATA			(1<<2) |
| ... | ... | @@ -200,13 +203,13 @@ extern int	acl_set_file(const char *path_p, acl_type_t type, acl_t acl); |
| 200 | 203 | extern int	acl_set_link_np(const char *path_p, acl_type_t type, acl_t acl); |
| 201 | 204 | |
| 202 | 205 | /* 23.1.6.4 ACL Format translation */ |
| 203 | extern ssize_t	acl_copy_ext(void *buf_p, acl_t acl, ssize_t size); | |
| 204 | extern ssize_t	acl_copy_ext_native(void *buf_p, acl_t acl, ssize_t size); | |
| 205 | extern acl_t	acl_copy_int(const void *buf_p); | |
| 206 | extern acl_t	acl_copy_int_native(const void *buf_p); | |
| 207 | extern acl_t	acl_from_text(const char *buf_p); | |
| 206 | extern ssize_t	acl_copy_ext(void *_LIBC_SIZE(size) buf_p, acl_t acl, ssize_t size); | |
| 207 | extern ssize_t	acl_copy_ext_native(void *_LIBC_SIZE(size) buf_p, acl_t acl, ssize_t size); | |
| 208 | extern acl_t	acl_copy_int(const void *_LIBC_UNSAFE_INDEXABLE buf_p); | |
| 209 | extern acl_t	acl_copy_int_native(const void *_LIBC_UNSAFE_INDEXABLE buf_p); | |
| 210 | extern acl_t	acl_from_text(const char *_LIBC_UNSAFE_INDEXABLE buf_p); | |
| 208 | 211 | extern ssize_t	acl_size(acl_t acl); |
| 209 | extern char	*acl_to_text(acl_t acl, ssize_t *len_p); | |
| 212 | extern char	*_LIBC_CSTR	acl_to_text(acl_t acl, ssize_t *len_p); | |
| 210 | 213 | __END_DECLS |
| 211 | 214 | |
| 212 | 215 | #endif /* _SYS_ACL_H */ |
lib/libc/include/any-macos-any/sys/attr.h+8-1| ... | ... | @@ -129,6 +129,12 @@ typedef struct vol_capabilities_attr { |
| 129 | 129 | */ |
| 130 | 130 | #define ATTR_MAX_BUFFER 8192 |
| 131 | 131 | |
| 132 | ||
| 133 | /* | |
| 134 | * Max size of attribute buffer if IOPOL_TYPE_VFS_SUPPORT_LONG_PATHS is enabled | |
| 135 | */ | |
| 136 | #define ATTR_MAX_BUFFER_LONGPATHS (ATTR_MAX_BUFFER - MAXPATHLEN + MAXLONGPATHLEN) | |
| 137 | ||
| 132 | 138 | /* |
| 133 | 139 | * VOL_CAP_FMT_PERSISTENTOBJECTIDS: When set, the volume has object IDs |
| 134 | 140 | * that are persistent (retain their values even when the volume is |
| ... | ... | @@ -491,13 +497,14 @@ typedef struct vol_attributes_attr { |
| 491 | 497 | #define ATTR_VOL_MOUNTEXTFLAGS 0x00080000 |
| 492 | 498 | #define ATTR_VOL_FSTYPENAME 0x00100000 |
| 493 | 499 | #define ATTR_VOL_FSSUBTYPE 0x00200000 |
| 500 | #define ATTR_VOL_OWNER 0x00400000 | |
| 494 | 501 | #define ATTR_VOL_SPACEUSED 0x00800000 |
| 495 | 502 | #define ATTR_VOL_QUOTA_SIZE 0x10000000 |
| 496 | 503 | #define ATTR_VOL_RESERVED_SIZE 0x20000000 |
| 497 | 504 | #define ATTR_VOL_ATTRIBUTES 0x40000000 |
| 498 | 505 | #define ATTR_VOL_INFO 0x80000000 |
| 499 | 506 | |
| 500 | #define ATTR_VOL_VALIDMASK 0xF0BFFFFF | |
| 507 | #define ATTR_VOL_VALIDMASK 0xF0FFFFFF | |
| 501 | 508 | |
| 502 | 509 | /* |
| 503 | 510 | * The list of settable ATTR_VOL_* attributes include the following: |
lib/libc/include/any-macos-any/sys/cdefs.h+6| ... | ... | @@ -965,6 +965,11 @@ |
| 965 | 965 | #if __has_include(<ptrcheck.h>) |
| 966 | 966 | #include <ptrcheck.h> |
| 967 | 967 | #else |
| 968 | #if __has_feature(bounds_safety) | |
| 969 | #error -fbounds-safety is enabled, but <ptrcheck.h> is missing. \ | |
| 970 | This will lead to difficult-to-diagnose compilation errors. | |
| 971 | #endif /* __has_feature(bounds_safety) */ | |
| 972 | ||
| 968 | 973 | /* |
| 969 | 974 | * We intentionally define to nothing pointer attributes which do not have an |
| 970 | 975 | * impact on the ABI. __indexable and __bidi_indexable are not defined because |
| ... | ... | @@ -1108,4 +1113,5 @@ |
| 1108 | 1113 | # define __xnu_returns_data_pointer |
| 1109 | 1114 | #endif |
| 1110 | 1115 | |
| 1116 | ||
| 1111 | 1117 | #endif /* !_CDEFS_H_ */ |
lib/libc/include/any-macos-any/sys/fcntl.h+2| ... | ... | @@ -125,6 +125,8 @@ |
| 125 | 125 | #define O_CREAT 0x00000200 /* create if nonexistant */ |
| 126 | 126 | #define O_TRUNC 0x00000400 /* truncate to zero length */ |
| 127 | 127 | #define O_EXCL 0x00000800 /* error if already exists */ |
| 128 | #define O_RESOLVE_BENEATH 0x00001000 /* only for open(2), same value as FMARK */ | |
| 129 | ||
| 128 | 130 | |
| 129 | 131 | #if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE) |
| 130 | 132 | #define O_EVTONLY 0x00008000 /* descriptor requested for event notifications only */ |
lib/libc/include/any-macos-any/sys/mount.h+1| ... | ... | @@ -462,4 +462,5 @@ int unmount(const char *, int); |
| 462 | 462 | int getvfsbyname(const char *, struct vfsconf *); |
| 463 | 463 | __END_DECLS |
| 464 | 464 | |
| 465 | ||
| 465 | 466 | #endif /* !_SYS_MOUNT_H_ */ |
lib/libc/include/any-macos-any/sys/param.h+1-1| ... | ... | @@ -202,7 +202,7 @@ |
| 202 | 202 | #define isset(a, i) (((unsigned char *)(a))[(i)/NBBY] & (1u<<((i)%NBBY))) |
| 203 | 203 | #define isclr(a, i) ((((unsigned char *)(a))[(i)/NBBY] & (1u<<((i)%NBBY))) == 0) |
| 204 | 204 | |
| 205 | /* Macros for counting and rounding. */ | |
| 205 | /* Macros for counting, rounding. */ | |
| 206 | 206 | #ifndef howmany |
| 207 | 207 | #define howmany(x, y) ((((x) % (y)) == 0) ? ((x) / (y)) : (((x) / (y)) + 1)) |
| 208 | 208 | #endif |
lib/libc/include/any-macos-any/sys/proc.h+1-1| ... | ... | @@ -86,7 +86,6 @@ |
| 86 | 86 | struct session; |
| 87 | 87 | struct pgrp; |
| 88 | 88 | struct proc; |
| 89 | struct proc_ident; | |
| 90 | 89 | |
| 91 | 90 | /* Exported fields for kern sysctls */ |
| 92 | 91 | struct extern_proc { |
| ... | ... | @@ -216,6 +215,7 @@ struct extern_proc { |
| 216 | 215 | #define P_DIRTY_LAUNCH_IN_PROGRESS 0x00000200 /* launch is in progress */ |
| 217 | 216 | #define P_DIRTY_DEFER_ALWAYS 0x00000400 /* defer going to idle-exit after every dirty->clean transition. |
| 218 | 217 | 	 * For legacy jetsam policy only. This is the default with the other policies.*/ |
| 218 | #define P_DIRTY_SHUTDOWN_ON_CLEAN 0x00000800 /* process should shutdown on going clean */ | |
| 219 | 219 | |
| 220 | 220 | #define P_DIRTY_IS_DIRTY (P_DIRTY | P_DIRTY_SHUTDOWN) |
| 221 | 221 | #define P_DIRTY_IDLE_EXIT_ENABLED (P_DIRTY_TRACK|P_DIRTY_ALLOW_IDLE_EXIT) |
lib/libc/include/any-macos-any/sys/proc_info.h+1| ... | ... | @@ -825,6 +825,7 @@ struct channel_fdinfo { |
| 825 | 825 | #define PROC_DIRTY_DEFER 0x4 |
| 826 | 826 | #define PROC_DIRTY_LAUNCH_IN_PROGRESS 0x8 |
| 827 | 827 | #define PROC_DIRTY_DEFER_ALWAYS 0x10 |
| 828 | #define PROC_DIRTY_SHUTDOWN_ON_CLEAN 0x20 | |
| 828 | 829 | |
| 829 | 830 | /* proc_get_dirty() flags */ |
| 830 | 831 | #define PROC_DIRTY_TRACKED 0x1 |
lib/libc/include/any-macos-any/sys/resource.h+3-2| ... | ... | @@ -551,8 +551,9 @@ struct proc_rlimit_control_wakeupmon { |
| 551 | 551 | #define IOPOL_VFS_IGNORE_PERMISSIONS_OFF 0 |
| 552 | 552 | #define IOPOL_VFS_IGNORE_PERMISSIONS_ON 1 |
| 553 | 553 | |
| 554 | #define IOPOL_VFS_SKIP_MTIME_UPDATE_OFF 0 | |
| 555 | #define IOPOL_VFS_SKIP_MTIME_UPDATE_ON 1 | |
| 554 | #define IOPOL_VFS_SKIP_MTIME_UPDATE_OFF 0 | |
| 555 | #define IOPOL_VFS_SKIP_MTIME_UPDATE_ON 1 | |
| 556 | #define IOPOL_VFS_SKIP_MTIME_UPDATE_IGNORE 2 | |
| 556 | 557 | |
| 557 | 558 | #define IOPOL_VFS_ALLOW_LOW_SPACE_WRITES_OFF 0 |
| 558 | 559 | #define IOPOL_VFS_ALLOW_LOW_SPACE_WRITES_ON 1 |
lib/libc/include/any-macos-any/sys/statvfs.h+3| ... | ... | @@ -27,12 +27,15 @@ |
| 27 | 27 | #ifndef _SYS_STATVFS_H_ |
| 28 | 28 | #define	_SYS_STATVFS_H_ |
| 29 | 29 | |
| 30 | #include <_bounds.h> | |
| 30 | 31 | #include <sys/_types.h> |
| 31 | 32 | #include <sys/cdefs.h> |
| 32 | 33 | |
| 33 | 34 | #include <sys/_types/_fsblkcnt_t.h> |
| 34 | 35 | #include <sys/_types/_fsfilcnt_t.h> |
| 35 | 36 | |
| 37 | _LIBC_SINGLE_BY_DEFAULT() | |
| 38 | ||
| 36 | 39 | /* Following structure is used as a statvfs/fstatvfs function parameter */ |
| 37 | 40 | struct statvfs { |
| 38 | 41 | 	unsigned long	f_bsize;	/* File system block size */ |
lib/libc/include/any-macos-any/sys/syslimits.h+2| ... | ... | @@ -124,6 +124,8 @@ |
| 124 | 124 | /* range: -20 - 20 */ |
| 125 | 125 | /* (PRIO_MIN - PRIO_MAX) */ |
| 126 | 126 | #endif /* __DARWIN_UNIX03 */ |
| 127 | ||
| 128 | ||
| 127 | 129 | #endif /* !_ANSI_SOURCE */ |
| 128 | 130 | |
| 129 | 131 | #endif /* !_SYS_SYSLIMITS_H_ */ |
lib/libc/include/any-macos-any/sys/wait.h+2-4| ... | ... | @@ -202,8 +202,7 @@ union wait { |
| 202 | 202 | 		 w_Coredump:1, /* core dump indicator */ |
| 203 | 203 | 		 w_Retcode:8, /* exit code if w_termsig==0 */ |
| 204 | 204 | 		 w_Filler:16; /* upper bits filler */ |
| 205 | #endif | |
| 206 | #if __DARWIN_BYTE_ORDER == __DARWIN_BIG_ENDIAN | |
| 205 | #elif __DARWIN_BYTE_ORDER == __DARWIN_BIG_ENDIAN | |
| 207 | 206 | 		unsigned int w_Filler:16, /* upper bits filler */ |
| 208 | 207 | 		 w_Retcode:8, /* exit code if w_termsig==0 */ |
| 209 | 208 | 		 w_Coredump:1, /* core dump indicator */ |
| ... | ... | @@ -220,8 +219,7 @@ union wait { |
| 220 | 219 | 		unsigned int w_Stopval:8, /* == W_STOPPED if stopped */ |
| 221 | 220 | 		 w_Stopsig:8, /* signal that stopped us */ |
| 222 | 221 | 		 w_Filler:16; /* upper bits filler */ |
| 223 | #endif | |
| 224 | #if __DARWIN_BYTE_ORDER == __DARWIN_BIG_ENDIAN | |
| 222 | #elif __DARWIN_BYTE_ORDER == __DARWIN_BIG_ENDIAN | |
| 225 | 223 | 		unsigned int w_Filler:16, /* upper bits filler */ |
| 226 | 224 | 		 w_Stopsig:8, /* signal that stopped us */ |
| 227 | 225 | 		 w_Stopval:8; /* == W_STOPPED if stopped */ |
lib/libc/include/any-macos-any/termios.h+3| ... | ... | @@ -23,11 +23,14 @@ |
| 23 | 23 | #ifndef __TERMIOS_H__ |
| 24 | 24 | #define __TERMIOS_H__ |
| 25 | 25 | |
| 26 | #include <_bounds.h> | |
| 26 | 27 | #include <sys/cdefs.h> |
| 27 | 28 | #include <sys/termios.h> |
| 28 | 29 | #include <_types.h> |
| 29 | 30 | #include <sys/_types/_pid_t.h> |
| 30 | 31 | |
| 32 | _LIBC_SINGLE_BY_DEFAULT() | |
| 33 | ||
| 31 | 34 | __BEGIN_DECLS |
| 32 | 35 | pid_t	tcgetsid(int); |
| 33 | 36 | __END_DECLS |
lib/libc/include/any-macos-any/ulimit.h+3| ... | ... | @@ -30,10 +30,13 @@ |
| 30 | 30 | #define	_ULIMIT_H_ |
| 31 | 31 | |
| 32 | 32 | #include <sys/cdefs.h> |
| 33 | #include <_bounds.h> | |
| 33 | 34 | |
| 34 | 35 | #define	UL_GETFSIZE	1 |
| 35 | 36 | #define	UL_SETFSIZE	2 |
| 36 | 37 | |
| 38 | _LIBC_SINGLE_BY_DEFAULT() | |
| 39 | ||
| 37 | 40 | __BEGIN_DECLS |
| 38 | 41 | long	ulimit(int, ...); |
| 39 | 42 | __END_DECLS |
lib/libc/include/any-macos-any/unistd.h+69-65| ... | ... | @@ -68,9 +68,11 @@ |
| 68 | 68 | #ifndef _UNISTD_H_ |
| 69 | 69 | #define	_UNISTD_H_ |
| 70 | 70 | |
| 71 | #include <_bounds.h> | |
| 71 | 72 | #include <_types.h> |
| 72 | 73 | #include <sys/unistd.h> |
| 73 | 74 | #include <Availability.h> |
| 75 | #include <sys/syslimits.h> | |
| 74 | 76 | #include <sys/_types/_gid_t.h> |
| 75 | 77 | #include <sys/_types/_intptr_t.h> |
| 76 | 78 | #include <sys/_types/_off_t.h> |
| ... | ... | @@ -83,6 +85,8 @@ |
| 83 | 85 | #include <sys/_types/_useconds_t.h> |
| 84 | 86 | #include <sys/_types/_null.h> |
| 85 | 87 | |
| 88 | _LIBC_SINGLE_BY_DEFAULT() | |
| 89 | ||
| 86 | 90 | #define	 STDIN_FILENO	0	/* standard input file descriptor */ |
| 87 | 91 | #define	STDOUT_FILENO	1	/* standard output file descriptor */ |
| 88 | 92 | #define	STDERR_FILENO	2	/* standard error file descriptor */ |
| ... | ... | @@ -441,21 +445,21 @@ int	 dup2(int, int); |
| 441 | 445 | int	 execl(const char * __path, const char * __arg0, ...) __WATCHOS_PROHIBITED __TVOS_PROHIBITED; |
| 442 | 446 | int	 execle(const char * __path, const char * __arg0, ...) __WATCHOS_PROHIBITED __TVOS_PROHIBITED; |
| 443 | 447 | int	 execlp(const char * __file, const char * __arg0, ...) __WATCHOS_PROHIBITED __TVOS_PROHIBITED; |
| 444 | int	 execv(const char * __path, char * const * __argv) __WATCHOS_PROHIBITED __TVOS_PROHIBITED; | |
| 445 | int	 execve(const char * __file, char * const * __argv, char * const * __envp) __WATCHOS_PROHIBITED __TVOS_PROHIBITED; | |
| 446 | int	 execvp(const char * __file, char * const * __argv) __WATCHOS_PROHIBITED __TVOS_PROHIBITED; | |
| 448 | int	 execv(const char * __path, char *_LIBC_CSTR const *_LIBC_NULL_TERMINATED __argv) __WATCHOS_PROHIBITED __TVOS_PROHIBITED; | |
| 449 | int	 execve(const char * __file, char *_LIBC_CSTR const *_LIBC_NULL_TERMINATED __argv, char *_LIBC_CSTR const *_LIBC_NULL_TERMINATED __envp) __WATCHOS_PROHIBITED __TVOS_PROHIBITED; | |
| 450 | int	 execvp(const char * __file, char *_LIBC_CSTR const *_LIBC_NULL_TERMINATED __argv) __WATCHOS_PROHIBITED __TVOS_PROHIBITED; | |
| 447 | 451 | pid_t	 fork(void) __WATCHOS_PROHIBITED __TVOS_PROHIBITED; |
| 448 | 452 | long	 fpathconf(int, int); |
| 449 | char	*getcwd(char *, size_t); | |
| 453 | char *_LIBC_CSTR	getcwd(char *_LIBC_COUNT_OR_NULL(__size), size_t __size); | |
| 450 | 454 | gid_t	 getegid(void); |
| 451 | 455 | uid_t	 geteuid(void); |
| 452 | 456 | gid_t	 getgid(void); |
| 453 | 457 | #if defined(_DARWIN_UNLIMITED_GETGROUPS) || defined(_DARWIN_C_SOURCE) |
| 454 | int	 getgroups(int, gid_t []) __DARWIN_ALIAS_STARTING(__MAC_10_6, __IPHONE_3_2, __DARWIN_EXTSN(getgroups)); | |
| 458 | int	 getgroups(int __gidsetsize, gid_t [_LIBC_COUNT(__gidsetsize)]) __DARWIN_ALIAS_STARTING(__MAC_10_6, __IPHONE_3_2, __DARWIN_EXTSN(getgroups)); | |
| 455 | 459 | #else /* !_DARWIN_UNLIMITED_GETGROUPS && !_DARWIN_C_SOURCE */ |
| 456 | int	 getgroups(int, gid_t []); | |
| 460 | int	 getgroups(int __gidsetsize, gid_t [_LIBC_COUNT(__gidsetsize)]); | |
| 457 | 461 | #endif /* _DARWIN_UNLIMITED_GETGROUPS || _DARWIN_C_SOURCE */ |
| 458 | char	*getlogin(void); | |
| 462 | char *_LIBC_CSTR	getlogin(void); | |
| 459 | 463 | pid_t	 getpgrp(void); |
| 460 | 464 | pid_t	 getpid(void); |
| 461 | 465 | pid_t	 getppid(void); |
| ... | ... | @@ -469,7 +473,7 @@ int	 pause(void) __DARWIN_ALIAS_C(pause); |
| 469 | 473 | |
| 470 | 474 | int	 pipe(int [2]); |
| 471 | 475 | |
| 472 | ssize_t	 read(int, void *, size_t) __DARWIN_ALIAS_C(read); | |
| 476 | ssize_t	 read(int, void *_LIBC_SIZE(__nbyte), size_t __nbyte) __DARWIN_ALIAS_C(read); | |
| 473 | 477 | |
| 474 | 478 | int	 rmdir(const char *); |
| 475 | 479 | int	 setgid(gid_t); |
| ... | ... | @@ -483,17 +487,17 @@ unsigned int |
| 483 | 487 | long	 sysconf(int); |
| 484 | 488 | pid_t	 tcgetpgrp(int); |
| 485 | 489 | int	 tcsetpgrp(int, pid_t); |
| 486 | char	*ttyname(int); | |
| 490 | char *_LIBC_CSTR	ttyname(int); | |
| 487 | 491 | |
| 488 | 492 | #if __DARWIN_UNIX03 |
| 489 | int	 ttyname_r(int, char *, size_t) __DARWIN_ALIAS(ttyname_r); | |
| 493 | int	 ttyname_r(int, char *_LIBC_COUNT(__len), size_t __len) __DARWIN_ALIAS(ttyname_r); | |
| 490 | 494 | #else /* !__DARWIN_UNIX03 */ |
| 491 | char	*ttyname_r(int, char *, size_t); | |
| 495 | char *_LIBC_CSTR	ttyname_r(int, char *_LIBC_COUNT(__len), size_t __len); | |
| 492 | 496 | #endif /* __DARWIN_UNIX03 */ |
| 493 | 497 | |
| 494 | 498 | int	 unlink(const char *); |
| 495 | 499 | |
| 496 | ssize_t	 write(int __fd, const void * __buf, size_t __nbyte) __DARWIN_ALIAS_C(write); | |
| 500 | ssize_t	 write(int __fd, const void *_LIBC_SIZE(__nbyte) __buf, size_t __nbyte) __DARWIN_ALIAS_C(write); | |
| 497 | 501 | __END_DECLS |
| 498 | 502 | |
| 499 | 503 | |
| ... | ... | @@ -504,9 +508,9 @@ __END_DECLS |
| 504 | 508 | |
| 505 | 509 | #if __DARWIN_C_LEVEL >= 199209L |
| 506 | 510 | __BEGIN_DECLS |
| 507 | size_t	 confstr(int, char *, size_t) __DARWIN_ALIAS(confstr); | |
| 511 | size_t	 confstr(int, char *_LIBC_COUNT(__len), size_t __len) __DARWIN_ALIAS(confstr); | |
| 508 | 512 | |
| 509 | int	 getopt(int, char * const [], const char *) __DARWIN_ALIAS(getopt); | |
| 513 | int	 getopt(int __argc, char *_LIBC_CSTR const [_LIBC_COUNT(__argc)], const char *) __DARWIN_ALIAS(getopt); | |
| 510 | 514 | |
| 511 | 515 | extern char *optarg;			/* getopt(3) external variables */ |
| 512 | 516 | extern int optind, opterr, optopt; |
| ... | ... | @@ -537,15 +541,15 @@ __END_DECLS |
| 537 | 541 | #if !defined(_POSIX_C_SOURCE) |
| 538 | 542 | __deprecated __WATCHOS_PROHIBITED __TVOS_PROHIBITED |
| 539 | 543 | #endif |
| 540 | void	*brk(const void *); | |
| 544 | void *_LIBC_UNSAFE_INDEXABLE	brk(const void *_LIBC_UNSAFE_INDEXABLE); | |
| 541 | 545 | int	 chroot(const char *) __POSIX_C_DEPRECATED(199506L); |
| 542 | 546 | #endif |
| 543 | 547 | |
| 544 | char	*crypt(const char *, const char *); | |
| 548 | char *_LIBC_CSTR	crypt(const char *, const char *); | |
| 545 | 549 | #if __DARWIN_UNIX03 |
| 546 | void	 encrypt(char *, int) __DARWIN_ALIAS(encrypt); | |
| 550 | void	 encrypt(char *_LIBC_COUNT(64), int) __DARWIN_ALIAS(encrypt); | |
| 547 | 551 | #else /* !__DARWIN_UNIX03 */ |
| 548 | int	 encrypt(char *, int); | |
| 552 | int	 encrypt(char *_LIBC_COUNT(64), int); | |
| 549 | 553 | #endif /* __DARWIN_UNIX03 */ |
| 550 | 554 | int	 fchdir(int); |
| 551 | 555 | long	 gethostid(void); |
| ... | ... | @@ -556,12 +560,12 @@ pid_t	 getsid(pid_t); |
| 556 | 560 | #if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE < 200112L |
| 557 | 561 | int	 getdtablesize(void) __POSIX_C_DEPRECATED(199506L); |
| 558 | 562 | int	 getpagesize(void) __pure2 __POSIX_C_DEPRECATED(199506L); |
| 559 | char	*getpass(const char *) __POSIX_C_DEPRECATED(199506L); | |
| 563 | char *_LIBC_CSTR	getpass(const char *) __POSIX_C_DEPRECATED(199506L); | |
| 560 | 564 | #endif |
| 561 | 565 | |
| 562 | 566 | /* Removed in Issue 7 */ |
| 563 | 567 | #if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE < 200809L |
| 564 | char	*getwd(char *) __POSIX_C_DEPRECATED(200112L); /* obsoleted by getcwd() */ | |
| 568 | char *_LIBC_CSTR	getwd(char *_LIBC_COUNT_OR_NULL(PATH_MAX)) __POSIX_C_DEPRECATED(200112L); /* obsoleted by getcwd() */ | |
| 565 | 569 | #endif |
| 566 | 570 | |
| 567 | 571 | int	 lchown(const char *, uid_t, gid_t) __DARWIN_ALIAS(lchown); |
| ... | ... | @@ -570,9 +574,9 @@ int	 lockf(int, int, off_t) __DARWIN_ALIAS_C(lockf); |
| 570 | 574 | |
| 571 | 575 | int	 nice(int) __DARWIN_ALIAS(nice); |
| 572 | 576 | |
| 573 | ssize_t	 pread(int __fd, void * __buf, size_t __nbyte, off_t __offset) __DARWIN_ALIAS_C(pread); | |
| 577 | ssize_t	 pread(int __fd, void *_LIBC_SIZE(__nbyte) __buf, size_t __nbyte, off_t __offset) __DARWIN_ALIAS_C(pread); | |
| 574 | 578 | |
| 575 | ssize_t	 pwrite(int __fd, const void * __buf, size_t __nbyte, off_t __offset) __DARWIN_ALIAS_C(pwrite); | |
| 579 | ssize_t	 pwrite(int __fd, const void *_LIBC_SIZE(__nbyte) __buf, size_t __nbyte, off_t __offset) __DARWIN_ALIAS_C(pwrite); | |
| 576 | 580 | |
| 577 | 581 | /* Removed in Issue 6 */ |
| 578 | 582 | #if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE < 200112L |
| ... | ... | @@ -581,7 +585,7 @@ ssize_t	 pwrite(int __fd, const void * __buf, size_t __nbyte, off_t __offset) __ |
| 581 | 585 | #if !defined(_POSIX_C_SOURCE) |
| 582 | 586 | __deprecated __WATCHOS_PROHIBITED __TVOS_PROHIBITED |
| 583 | 587 | #endif |
| 584 | void	*sbrk(int); | |
| 588 | void *_LIBC_UNSAFE_INDEXABLE	sbrk(int); | |
| 585 | 589 | #endif |
| 586 | 590 | |
| 587 | 591 | #if __DARWIN_UNIX03 |
| ... | ... | @@ -594,7 +598,7 @@ int	 setregid(gid_t, gid_t) __DARWIN_ALIAS(setregid); |
| 594 | 598 | |
| 595 | 599 | int	 setreuid(uid_t, uid_t) __DARWIN_ALIAS(setreuid); |
| 596 | 600 | |
| 597 | void swab(const void * __restrict, void * __restrict, ssize_t); | |
| 601 | void swab(const void * __restrict _LIBC_SIZE(__nbytes), void * __restrict _LIBC_SIZE(__nbytes), ssize_t __nbytes); | |
| 598 | 602 | void	 sync(void); |
| 599 | 603 | int	 truncate(const char *, off_t); |
| 600 | 604 | useconds_t	 ualarm(useconds_t, useconds_t); |
| ... | ... | @@ -609,7 +613,7 @@ pid_t	 vfork(void) __WATCHOS_PROHIBITED __TVOS_PROHIBITED; |
| 609 | 613 | int	 fsync(int) __DARWIN_ALIAS_C(fsync); |
| 610 | 614 | |
| 611 | 615 | int	 ftruncate(int, off_t); |
| 612 | int	 getlogin_r(char *, size_t); | |
| 616 | int	 getlogin_r(char *_LIBC_COUNT(__namelen), size_t __namelen); | |
| 613 | 617 | __END_DECLS |
| 614 | 618 | #endif /* __DARWIN_C_LEVEL >= 199506L */ |
| 615 | 619 | |
| ... | ... | @@ -623,8 +627,8 @@ __END_DECLS |
| 623 | 627 | #if __DARWIN_C_LEVEL >= 200112L |
| 624 | 628 | __BEGIN_DECLS |
| 625 | 629 | int	 fchown(int, uid_t, gid_t); |
| 626 | int	 gethostname(char *, size_t); | |
| 627 | ssize_t readlink(const char * __restrict, char * __restrict, size_t); | |
| 630 | int	 gethostname(char *_LIBC_COUNT(__namelen), size_t __namelen); | |
| 631 | ssize_t readlink(const char * __restrict, char *_LIBC_COUNT(__bufsize) __restrict, size_t __bufsize); | |
| 628 | 632 | int	 setegid(gid_t); |
| 629 | 633 | int	 seteuid(uid_t); |
| 630 | 634 | int	 symlink(const char *, const char *); |
| ... | ... | @@ -644,64 +648,64 @@ __END_DECLS |
| 644 | 648 | |
| 645 | 649 | __BEGIN_DECLS |
| 646 | 650 | void	 _Exit(int) __dead2; |
| 647 | int	 accessx_np(const struct accessx_descriptor *, size_t, int *, uid_t); | |
| 651 | int	 accessx_np(const struct accessx_descriptor *_LIBC_SIZE(__sz), size_t __sz, int *, uid_t); | |
| 648 | 652 | int	 acct(const char *); |
| 649 | int	 add_profil(char *, size_t, unsigned long, unsigned int) __WATCHOS_PROHIBITED __TVOS_PROHIBITED; | |
| 653 | int	 add_profil(char *_LIBC_COUNT(__bufsiz), size_t __bufsiz, unsigned long, unsigned int) __WATCHOS_PROHIBITED __TVOS_PROHIBITED; | |
| 650 | 654 | void	 endusershell(void); |
| 651 | int	 execvP(const char * __file, const char * __searchpath, char * const * __argv) __WATCHOS_PROHIBITED __TVOS_PROHIBITED; | |
| 652 | char	*fflagstostr(unsigned long); | |
| 653 | int	 getdomainname(char *, int); | |
| 654 | int	 getgrouplist(const char *, int, int *, int *); | |
| 655 | int	 execvP(const char * __file, const char * __searchpath, char *_LIBC_CSTR const *_LIBC_NULL_TERMINATED __argv) __WATCHOS_PROHIBITED __TVOS_PROHIBITED; | |
| 656 | char *_LIBC_CSTR	fflagstostr(unsigned long); | |
| 657 | int	 getdomainname(char *_LIBC_COUNT(__namelen), int __namelen); | |
| 658 | int	 getgrouplist(const char *, int, int *_LIBC_COUNT(*__ngroups), int *__ngroups); | |
| 655 | 659 | __END_DECLS |
| 656 | 660 | #include <gethostuuid.h> |
| 657 | 661 | __BEGIN_DECLS |
| 658 | 662 | mode_t	 getmode(const void *, mode_t); |
| 659 | 663 | int	 getpeereid(int, uid_t *, gid_t *); |
| 660 | 664 | int	 getsgroups_np(int *, uuid_t); |
| 661 | char	*getusershell(void); | |
| 665 | char *_LIBC_CSTR	getusershell(void); | |
| 662 | 666 | int	 getwgroups_np(int *, uuid_t); |
| 663 | 667 | int	 initgroups(const char *, int); |
| 664 | 668 | int	 issetugid(void); |
| 665 | char	*mkdtemp(char *); | |
| 669 | char *_LIBC_CSTR	mkdtemp(char *_LIBC_CSTR); | |
| 666 | 670 | int	 mknod(const char *, mode_t, dev_t); |
| 667 | 671 | int	 mkpath_np(const char *path, mode_t omode) __OSX_AVAILABLE_STARTING(__MAC_10_8, __IPHONE_5_0); /* returns errno */ |
| 668 | 672 | int	 mkpathat_np(int dfd, const char *path, mode_t omode) /* returns errno */ |
| 669 | 673 | 		__OSX_AVAILABLE(10.12) __IOS_AVAILABLE(10.0) |
| 670 | 674 | 		__TVOS_AVAILABLE(10.0) __WATCHOS_AVAILABLE(3.0); |
| 671 | int	 mkstemp(char *); | |
| 672 | int	 mkstemps(char *, int); | |
| 673 | char	*mktemp(char *); | |
| 674 | int	 mkostemp(char *path, int oflags) | |
| 675 | int	 mkstemp(char *_LIBC_CSTR); | |
| 676 | int	 mkstemps(char *_LIBC_CSTR, int); | |
| 677 | char *_LIBC_CSTR	mktemp(char *_LIBC_CSTR); | |
| 678 | int	 mkostemp(char *_LIBC_CSTR path, int oflags) | |
| 675 | 679 | 		__OSX_AVAILABLE(10.12) __IOS_AVAILABLE(10.0) |
| 676 | 680 | 		__TVOS_AVAILABLE(10.0) __WATCHOS_AVAILABLE(3.0); |
| 677 | int	 mkostemps(char *path, int slen, int oflags) | |
| 681 | int	 mkostemps(char *_LIBC_CSTR path, int slen, int oflags) | |
| 678 | 682 | 		__OSX_AVAILABLE(10.12) __IOS_AVAILABLE(10.0) |
| 679 | 683 | 		__TVOS_AVAILABLE(10.0) __WATCHOS_AVAILABLE(3.0); |
| 680 | 684 | /* Non-portable mkstemp that uses open_dprotected_np */ |
| 681 | int	 mkstemp_dprotected_np(char *path, int dpclass, int dpflags) | |
| 685 | int	 mkstemp_dprotected_np(char *_LIBC_CSTR path, int dpclass, int dpflags) | |
| 682 | 686 | 		__OSX_UNAVAILABLE __IOS_AVAILABLE(10.0) |
| 683 | 687 | 		__TVOS_AVAILABLE(10.0) __WATCHOS_AVAILABLE(3.0); |
| 684 | char *mkdtempat_np(int dfd, char *path) | |
| 688 | char *_LIBC_CSTR	mkdtempat_np(int dfd, char *_LIBC_CSTR path) | |
| 685 | 689 | 		__OSX_AVAILABLE(10.13) __IOS_AVAILABLE(11.0) |
| 686 | 690 | 		__TVOS_AVAILABLE(11.0) __WATCHOS_AVAILABLE(4.0); |
| 687 | int mkstempsat_np(int dfd, char *path, int slen) | |
| 691 | int mkstempsat_np(int dfd, char *_LIBC_CSTR path, int slen) | |
| 688 | 692 | 		__OSX_AVAILABLE(10.13) __IOS_AVAILABLE(11.0) |
| 689 | 693 | 		__TVOS_AVAILABLE(11.0) __WATCHOS_AVAILABLE(4.0); |
| 690 | int mkostempsat_np(int dfd, char *path, int slen, int oflags) | |
| 694 | int mkostempsat_np(int dfd, char *_LIBC_CSTR path, int slen, int oflags) | |
| 691 | 695 | 		__OSX_AVAILABLE(10.13) __IOS_AVAILABLE(11.0) |
| 692 | 696 | 		__TVOS_AVAILABLE(11.0) __WATCHOS_AVAILABLE(4.0); |
| 693 | 697 | int	 nfssvc(int, void *); |
| 694 | int	 profil(char *, size_t, unsigned long, unsigned int); | |
| 698 | int	 profil(char *_LIBC_COUNT(__bufsiz), size_t __bufsiz, unsigned long, unsigned int); | |
| 695 | 699 | |
| 696 | 700 | __deprecated_msg("Use of per-thread security contexts is error-prone and discouraged.") |
| 697 | 701 | int	 pthread_setugid_np(uid_t, gid_t); |
| 698 | int	 pthread_getugid_np( uid_t *, gid_t *); | |
| 702 | int	 pthread_getugid_np(uid_t *, gid_t *); | |
| 699 | 703 | |
| 700 | 704 | int	 reboot(int); |
| 701 | 705 | int	 revoke(const char *); |
| 702 | 706 | |
| 703 | __deprecated int	 rcmd(char **, int, const char *, const char *, const char *, int *); | |
| 704 | __deprecated int	 rcmd_af(char **, int, const char *, const char *, const char *, int *, | |
| 707 | __deprecated int	 rcmd(char *_LIBC_CSTR *, int, const char *, const char *, const char *, int *); | |
| 708 | __deprecated int	 rcmd_af(char *_LIBC_CSTR *, int, const char *, const char *, const char *, int *, | |
| 705 | 709 | 		int); |
| 706 | 710 | __deprecated int	 rresvport(int *); |
| 707 | 711 | __deprecated int	 rresvport_af(int *, int); |
| ... | ... | @@ -709,10 +713,10 @@ __deprecated int	 iruserok(unsigned long, int, const char *, const char *); |
| 709 | 713 | __deprecated int	 iruserok_sa(const void *, int, int, const char *, const char *); |
| 710 | 714 | __deprecated int	 ruserok(const char *, int, const char *, const char *); |
| 711 | 715 | |
| 712 | int	 setdomainname(const char *, int); | |
| 716 | int	 setdomainname(const char *_LIBC_COUNT(__namelen), int __namelen); | |
| 713 | 717 | int	 setgroups(int, const gid_t *); |
| 714 | 718 | void	 sethostid(long); |
| 715 | int	 sethostname(const char *, int); | |
| 719 | int	 sethostname(const char *_LIBC_COUNT(__namelen), int __namelen); | |
| 716 | 720 | #if __DARWIN_UNIX03 |
| 717 | 721 | void	 setkey(const char *) __DARWIN_ALIAS(setkey); |
| 718 | 722 | #else /* !__DARWIN_UNIX03 */ |
| ... | ... | @@ -725,12 +729,12 @@ int	 setruid(uid_t); |
| 725 | 729 | int	 setsgroups_np(int, const uuid_t); |
| 726 | 730 | void	 setusershell(void); |
| 727 | 731 | int	 setwgroups_np(int, const uuid_t); |
| 728 | int	 strtofflags(char **, unsigned long *, unsigned long *); | |
| 732 | int	 strtofflags(char *_LIBC_CSTR *, unsigned long *, unsigned long *); | |
| 729 | 733 | int	 swapon(const char *); |
| 730 | 734 | int	 ttyslot(void); |
| 731 | 735 | int	 undelete(const char *); |
| 732 | 736 | int	 unwhiteout(const char *); |
| 733 | void	*valloc(size_t);			 | |
| 737 | void *_LIBC_SIZE_OR_NULL(__size) valloc(size_t __size); /* __attribute__((malloc, alloc_size(1))) */ | |
| 734 | 738 | |
| 735 | 739 | __WATCHOS_PROHIBITED __TVOS_PROHIBITED |
| 736 | 740 | __OS_AVAILABILITY_MSG(ios,deprecated=10.0,"syscall(2) is unsupported; " |
| ... | ... | @@ -740,27 +744,27 @@ __OS_AVAILABILITY_MSG(macosx,deprecated=10.12,"syscall(2) is unsupported; " |
| 740 | 744 | int	 syscall(int, ...); |
| 741 | 745 | |
| 742 | 746 | extern char *suboptarg;			/* getsubopt(3) external variable */ |
| 743 | int	 getsubopt(char **, char * const *, char **); | |
| 747 | int	 getsubopt(char *_LIBC_CSTR *, char *_LIBC_CSTR const *_LIBC_NULL_TERMINATED, char *_LIBC_CSTR *); | |
| 744 | 748 | |
| 745 | 749 | /* HFS & HFS Plus semantics system calls go here */ |
| 746 | 750 | #ifdef __LP64__ |
| 747 | int fgetattrlist(int,void*,void*,size_t,unsigned int) __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_0); | |
| 748 | int fsetattrlist(int,void*,void*,size_t,unsigned int) __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_0); | |
| 749 | int getattrlist(const char*,void*,void*,size_t,unsigned int) __DARWIN_ALIAS(getattrlist); | |
| 750 | int setattrlist(const char*,void*,void*,size_t,unsigned int) __DARWIN_ALIAS(setattrlist); | |
| 751 | int fgetattrlist(int,void*,void *_LIBC_SIZE(__attrBufSize),size_t __attrBufSize,unsigned int) __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_0); | |
| 752 | int fsetattrlist(int,void*,void *_LIBC_SIZE(__attrBufSize),size_t __attrBufSize,unsigned int) __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_0); | |
| 753 | int getattrlist(const char*,void*,void *_LIBC_SIZE(__attrBufSize),size_t __attrBufSize,unsigned int) __DARWIN_ALIAS(getattrlist); | |
| 754 | int setattrlist(const char*,void*,void *_LIBC_SIZE(__attrBufSize),size_t __attrBufSize,unsigned int) __DARWIN_ALIAS(setattrlist); | |
| 751 | 755 | int exchangedata(const char*,const char*,unsigned int) __WATCHOS_PROHIBITED __TVOS_PROHIBITED; |
| 752 | int getdirentriesattr(int,void*,void*,size_t,unsigned int*,unsigned int*,unsigned int*,unsigned int) __WATCHOS_PROHIBITED __TVOS_PROHIBITED; | |
| 756 | int getdirentriesattr(int,void*,void *_LIBC_SIZE(__attrBufSize),size_t __attrBufSize,unsigned int*,unsigned int*,unsigned int*,unsigned int) __WATCHOS_PROHIBITED __TVOS_PROHIBITED; | |
| 753 | 757 | |
| 754 | 758 | #else /* __LP64__ */ |
| 755 | int	fgetattrlist(int,void*,void*,size_t,unsigned long) __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_0); | |
| 756 | int	fsetattrlist(int,void*,void*,size_t,unsigned long) __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_0); | |
| 757 | int	getattrlist(const char*,void*,void*,size_t,unsigned long) __DARWIN_ALIAS(getattrlist); | |
| 758 | int	setattrlist(const char*,void*,void*,size_t,unsigned long) __DARWIN_ALIAS(setattrlist); | |
| 759 | int	fgetattrlist(int,void*,void *_LIBC_SIZE(__attrBufSize),size_t __attrBufSize,unsigned long) __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_0); | |
| 760 | int	fsetattrlist(int,void*,void *_LIBC_SIZE(__attrBufSize),size_t __attrBufSize,unsigned long) __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_0); | |
| 761 | int	getattrlist(const char*,void*,void *_LIBC_SIZE(__attrBufSize),size_t __attrBufSize,unsigned long) __DARWIN_ALIAS(getattrlist); | |
| 762 | int	setattrlist(const char*,void*,void *_LIBC_SIZE(__attrBufSize),size_t __attrBufSize,unsigned long) __DARWIN_ALIAS(setattrlist); | |
| 759 | 763 | int exchangedata(const char*,const char*,unsigned long) |
| 760 | 764 | 		__OSX_DEPRECATED(10.0, 10.13, "use renamex_np with the RENAME_SWAP flag") |
| 761 | 765 | 		__IOS_DEPRECATED(2.0, 11.0, "use renamex_np with the RENAME_SWAP flag") |
| 762 | 766 | 		__WATCHOS_PROHIBITED __TVOS_PROHIBITED; |
| 763 | int	getdirentriesattr(int,void*,void*,size_t,unsigned long*,unsigned long*,unsigned long*,unsigned long) __WATCHOS_PROHIBITED __TVOS_PROHIBITED; | |
| 767 | int	getdirentriesattr(int,void*,void *_LIBC_SIZE(__attrBufSize),size_t __attrBufSize,unsigned long*,unsigned long*,unsigned long*,unsigned long) __WATCHOS_PROHIBITED __TVOS_PROHIBITED; | |
| 764 | 768 | |
| 765 | 769 | #endif /* __LP64__ */ |
| 766 | 770 | |
| ... | ... | @@ -768,8 +772,8 @@ struct fssearchblock; |
| 768 | 772 | struct searchstate; |
| 769 | 773 | |
| 770 | 774 | int	 searchfs(const char *, struct fssearchblock *, unsigned long *, unsigned int, unsigned int, struct searchstate *) __WATCHOS_PROHIBITED __TVOS_PROHIBITED; |
| 771 | int	 fsctl(const char *,unsigned long,void*,unsigned int); | |
| 772 | int	 ffsctl(int,unsigned long,void*,unsigned int) __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_0); | |
| 775 | int	 fsctl(const char *,unsigned long,void *_LIBC_UNSAFE_INDEXABLE,unsigned int); | |
| 776 | int	 ffsctl(int,unsigned long,void *_LIBC_UNSAFE_INDEXABLE,unsigned int) __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_0); | |
| 773 | 777 | |
| 774 | 778 | #define	SYNC_VOLUME_FULLSYNC	0x01	/* Flush data and metadata to platter, not just to disk cache */ |
| 775 | 779 | #define SYNC_VOLUME_WAIT	0x02	/* Wait for sync to complete */ |
lib/libc/include/any-macos-any/utime.h+3| ... | ... | @@ -58,9 +58,12 @@ |
| 58 | 58 | #ifndef	_UTIME_H_ |
| 59 | 59 | #define	_UTIME_H_ |
| 60 | 60 | |
| 61 | #include <_bounds.h> | |
| 61 | 62 | #include <_types.h> |
| 62 | 63 | #include <sys/_types/_time_t.h> |
| 63 | 64 | |
| 65 | _LIBC_SINGLE_BY_DEFAULT() | |
| 66 | ||
| 64 | 67 | struct utimbuf { |
| 65 | 68 | 	time_t actime;		/* Access time */ |
| 66 | 69 | 	time_t modtime;		/* Modification time */ |
lib/libc/include/any-macos-any/utmpx.h+3| ... | ... | @@ -60,6 +60,7 @@ |
| 60 | 60 | #ifndef	_UTMPX_H_ |
| 61 | 61 | #define	_UTMPX_H_ |
| 62 | 62 | |
| 63 | #include <_bounds.h> | |
| 63 | 64 | #include <_types.h> |
| 64 | 65 | #include <sys/time.h> |
| 65 | 66 | #include <sys/cdefs.h> |
| ... | ... | @@ -70,6 +71,8 @@ |
| 70 | 71 | #include <sys/_types/_uid_t.h> |
| 71 | 72 | #endif /* !_POSIX_C_SOURCE || _DARWIN_C_SOURCE */ |
| 72 | 73 | |
| 74 | _LIBC_SINGLE_BY_DEFAULT() | |
| 75 | ||
| 73 | 76 | #define	_PATH_UTMPX		"/var/run/utmpx" |
| 74 | 77 | |
| 75 | 78 | #if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE) |
lib/libc/include/any-macos-any/wordexp.h+4-1| ... | ... | @@ -47,13 +47,16 @@ WITH THE ACCESS, USE OR PERFORMANCE OF THIS SOFTWARE. |
| 47 | 47 | #define _WORDEXP_H |
| 48 | 48 | |
| 49 | 49 | #include <sys/cdefs.h> |
| 50 | #include <_bounds.h> | |
| 50 | 51 | #include <_types.h> |
| 51 | 52 | #include <sys/_types/_size_t.h> |
| 52 | 53 | #include <Availability.h> |
| 53 | 54 | |
| 55 | _LIBC_SINGLE_BY_DEFAULT() | |
| 56 | ||
| 54 | 57 | typedef struct { |
| 55 | 58 | 	size_t we_wordc; |
| 56 | 	char **we_wordv; | |
| 59 | 	char *_LIBC_CSTR *_LIBC_COUNT(we_wordc)	we_wordv; | |
| 57 | 60 | 	size_t we_offs; |
| 58 | 61 | } wordexp_t; |
| 59 | 62 |
lib/libc/include/any-macos-any/xlocale/___wctype.h+3| ... | ... | @@ -24,9 +24,12 @@ |
| 24 | 24 | #ifndef _XLOCALE____WCTYPE_H_ |
| 25 | 25 | #define _XLOCALE____WCTYPE_H_ |
| 26 | 26 | |
| 27 | #include <_bounds.h> | |
| 27 | 28 | #include <___wctype.h> |
| 28 | 29 | #include <xlocale/_ctype.h> |
| 29 | 30 | |
| 31 | _LIBC_SINGLE_BY_DEFAULT() | |
| 32 | ||
| 30 | 33 | #if !defined(_DONT_USE_CTYPE_INLINE_) && \ |
| 31 | 34 | (defined(_USE_CTYPE_INLINE_) || defined(__GNUC__) || defined(__cplusplus)) |
| 32 | 35 |
lib/libc/include/any-macos-any/xlocale/_ctype.h+3| ... | ... | @@ -24,9 +24,12 @@ |
| 24 | 24 | #ifndef _XLOCALE__CTYPE_H_ |
| 25 | 25 | #define _XLOCALE__CTYPE_H_ |
| 26 | 26 | |
| 27 | #include <_bounds.h> | |
| 27 | 28 | #include <_ctype.h> |
| 28 | 29 | #include <__xlocale.h> |
| 29 | 30 | |
| 31 | _LIBC_SINGLE_BY_DEFAULT() | |
| 32 | ||
| 30 | 33 | /* |
| 31 | 34 | * Use inline functions if we are allowed to and the compiler supports them. |
| 32 | 35 | */ |
lib/libc/include/any-macos-any/xlocale/_inttypes.h+9-6| ... | ... | @@ -25,19 +25,22 @@ |
| 25 | 25 | #define _XLOCALE__INTTYPES_H_ |
| 26 | 26 | |
| 27 | 27 | #include <sys/cdefs.h> |
| 28 | #include <_bounds.h> | |
| 28 | 29 | #include <stdint.h> |
| 29 | 30 | #include <stddef.h> /* wchar_t */ |
| 30 | 31 | #include <__xlocale.h> |
| 31 | 32 | |
| 33 | _LIBC_SINGLE_BY_DEFAULT() | |
| 34 | ||
| 32 | 35 | __BEGIN_DECLS |
| 33 | intmax_t strtoimax_l(const char * __restrict nptr, char ** __restrict endptr, | |
| 34 | 		int base, locale_t); | |
| 35 | uintmax_t strtoumax_l(const char * __restrict nptr, char ** __restrict endptr, | |
| 36 | 		int base, locale_t); | |
| 36 | intmax_t strtoimax_l(const char * __restrict nptr, | |
| 37 | 		char *_LIBC_CSTR * __restrict endptr, int base, locale_t); | |
| 38 | uintmax_t strtoumax_l(const char * __restrict nptr, | |
| 39 | 		char *_LIBC_CSTR * __restrict endptr, int base, locale_t); | |
| 37 | 40 | intmax_t wcstoimax_l(const wchar_t * __restrict nptr, |
| 38 | 		wchar_t ** __restrict endptr, int base, locale_t); | |
| 41 | 		wchar_t *_LIBC_CSTR * __restrict endptr, int base, locale_t); | |
| 39 | 42 | uintmax_t wcstoumax_l(const wchar_t * __restrict nptr, |
| 40 | 		wchar_t ** __restrict endptr, int base, locale_t); | |
| 43 | 		wchar_t *_LIBC_CSTR * __restrict endptr, int base, locale_t); | |
| 41 | 44 | |
| 42 | 45 | /* Poison the following routines if -fshort-wchar is set */ |
| 43 | 46 | #if !defined(__cplusplus) && defined(__WCHAR_MAX__) && __WCHAR_MAX__ <= 0xffffU |
lib/libc/include/any-macos-any/xlocale/_langinfo.h+4-1| ... | ... | @@ -25,11 +25,14 @@ |
| 25 | 25 | #define _XLOCALE__LANGINFO_H_ |
| 26 | 26 | |
| 27 | 27 | #include <sys/cdefs.h> |
| 28 | #include <_bounds.h> | |
| 28 | 29 | #include <_types/_nl_item.h> |
| 29 | 30 | #include <__xlocale.h> |
| 30 | 31 | |
| 32 | _LIBC_SINGLE_BY_DEFAULT() | |
| 33 | ||
| 31 | 34 | __BEGIN_DECLS |
| 32 | char	*nl_langinfo_l(nl_item, locale_t); | |
| 35 | char *_LIBC_CSTR nl_langinfo_l(nl_item, locale_t); | |
| 33 | 36 | __END_DECLS |
| 34 | 37 | |
| 35 | 38 | #endif /* _XLOCALE__LANGINFO_H_ */ |
lib/libc/include/any-macos-any/xlocale/_monetary.h+3-1| ... | ... | @@ -30,8 +30,10 @@ |
| 30 | 30 | #include <sys/_types/_ssize_t.h> |
| 31 | 31 | #include <__xlocale.h> |
| 32 | 32 | |
| 33 | _LIBC_SINGLE_BY_DEFAULT() | |
| 34 | ||
| 33 | 35 | __BEGIN_DECLS |
| 34 | ssize_t	strfmon_l(char *, size_t, locale_t, const char *, ...) | |
| 36 | ssize_t	strfmon_l(char *_LIBC_COUNT(__maxsize), size_t __maxsize, locale_t, const char *, ...) | |
| 35 | 37 | 		__strfmonlike(4, 5); |
| 36 | 38 | __END_DECLS |
| 37 | 39 |
lib/libc/include/any-macos-any/xlocale/_regex.h+7-4| ... | ... | @@ -29,6 +29,9 @@ |
| 29 | 29 | #include <__xlocale.h> |
| 30 | 30 | #endif |
| 31 | 31 | |
| 32 | #include <_bounds.h> | |
| 33 | _LIBC_SINGLE_BY_DEFAULT() | |
| 34 | ||
| 32 | 35 | __BEGIN_DECLS |
| 33 | 36 | |
| 34 | 37 | int	regcomp_l(regex_t * __restrict, const char * __restrict, int, |
| ... | ... | @@ -37,14 +40,14 @@ int	regcomp_l(regex_t * __restrict, const char * __restrict, int, |
| 37 | 40 | |
| 38 | 41 | #if __DARWIN_C_LEVEL >= __DARWIN_C_FULL |
| 39 | 42 | |
| 40 | int	regncomp_l(regex_t * __restrict, const char * __restrict, size_t, | |
| 41 | 	 int, locale_t __restrict) | |
| 43 | int	regncomp_l(regex_t * __restrict, const char * __restrict _LIBC_COUNT(__len), | |
| 44 | 	 size_t __len, int, locale_t __restrict) | |
| 42 | 45 | 	 __OSX_AVAILABLE_STARTING(__MAC_10_8, __IPHONE_NA); |
| 43 | 46 | int	regwcomp_l(regex_t * __restrict, const wchar_t * __restrict, |
| 44 | 47 | 	 int, locale_t __restrict) |
| 45 | 48 | 	 __OSX_AVAILABLE_STARTING(__MAC_10_8, __IPHONE_NA); |
| 46 | int	regwnexec_l(const regex_t * __restrict, const wchar_t * __restrict, | |
| 47 | 	 size_t, size_t, regmatch_t __pmatch[ __restrict], int, | |
| 49 | int	regwnexec_l(const regex_t * __restrict, const wchar_t * __restrict _LIBC_COUNT(__len), | |
| 50 | 	 size_t __len, size_t __nmatch, regmatch_t __pmatch[ __restrict _LIBC_COUNT(__nmatch)], int, | |
| 48 | 51 | 	 locale_t __restrict) |
| 49 | 52 | 	 __OSX_AVAILABLE_STARTING(__MAC_10_8, __IPHONE_NA); |
| 50 | 53 |
lib/libc/include/any-macos-any/xlocale/_stdio.h+11-8| ... | ... | @@ -24,9 +24,12 @@ |
| 24 | 24 | #ifndef _XLOCALE__STDIO_H_ |
| 25 | 25 | #define _XLOCALE__STDIO_H_ |
| 26 | 26 | |
| 27 | #include <_bounds.h> | |
| 27 | 28 | #include <_stdio.h> |
| 28 | 29 | #include <__xlocale.h> |
| 29 | 30 | |
| 31 | _LIBC_SINGLE_BY_DEFAULT() | |
| 32 | ||
| 30 | 33 | __BEGIN_DECLS |
| 31 | 34 | |
| 32 | 35 | int	 fprintf_l(FILE * __restrict, locale_t __restrict, const char * __restrict, ...) |
| ... | ... | @@ -37,25 +40,25 @@ int	 printf_l(locale_t __restrict, const char * __restrict, ...) |
| 37 | 40 | __printflike(2, 3); |
| 38 | 41 | int	 scanf_l(locale_t __restrict, const char * __restrict, ...) |
| 39 | 42 | __scanflike(2, 3); |
| 40 | int	 sprintf_l(char * __restrict, locale_t __restrict, const char * __restrict, ...) | |
| 41 | __printflike(3, 4) __swift_unavailable("Use snprintf_l instead."); | |
| 43 | int	 sprintf_l(char * __restrict _LIBC_UNSAFE_INDEXABLE, locale_t __restrict, const char * __restrict, ...) | |
| 44 | __printflike(3, 4) __swift_unavailable("Use snprintf_l instead.") _LIBC_PTRCHECK_REPLACED("snprintf_l"); | |
| 42 | 45 | int	 sscanf_l(const char * __restrict, locale_t __restrict, const char * __restrict, ...) |
| 43 | 46 | __scanflike(3, 4); |
| 44 | 47 | int	 vfprintf_l(FILE * __restrict, locale_t __restrict, const char * __restrict, va_list) |
| 45 | 48 | __printflike(3, 0); |
| 46 | 49 | int	 vprintf_l(locale_t __restrict, const char * __restrict, va_list) |
| 47 | 50 | __printflike(2, 0); |
| 48 | int	 vsprintf_l(char * __restrict, locale_t __restrict, const char * __restrict, va_list) | |
| 49 | __printflike(3, 0) __swift_unavailable("Use vsnprintf_l instead."); | |
| 51 | int	 vsprintf_l(char * __restrict _LIBC_UNSAFE_INDEXABLE, locale_t __restrict, const char * __restrict, va_list) | |
| 52 | __printflike(3, 0) __swift_unavailable("Use vsnprintf_l instead.") _LIBC_PTRCHECK_REPLACED("vsnprintf_l"); | |
| 50 | 53 | |
| 51 | 54 | #if __DARWIN_C_LEVEL >= 200112L || defined(__cplusplus) |
| 52 | int	 snprintf_l(char * __restrict, size_t, locale_t __restrict, const char * __restrict, ...) | |
| 55 | int	 snprintf_l(char * __restrict _LIBC_COUNT(__maxlen), size_t __maxlen, locale_t __restrict, const char * __restrict, ...) | |
| 53 | 56 | __printflike(4, 5); |
| 54 | 57 | int	 vfscanf_l(FILE * __restrict, locale_t __restrict, const char * __restrict, va_list) |
| 55 | 58 | __scanflike(3, 0); |
| 56 | 59 | int	 vscanf_l(locale_t __restrict, const char * __restrict, va_list) |
| 57 | 60 | __scanflike(2, 0); |
| 58 | int	 vsnprintf_l(char * __restrict, size_t, locale_t __restrict, const char * __restrict, va_list) | |
| 61 | int	 vsnprintf_l(char * __restrict _LIBC_COUNT(__maxlen), size_t __maxlen, locale_t __restrict, const char * __restrict, va_list) | |
| 59 | 62 | __printflike(4, 0); |
| 60 | 63 | int	 vsscanf_l(const char * __restrict, locale_t __restrict, const char * __restrict, va_list) |
| 61 | 64 | __scanflike(3, 0); |
| ... | ... | @@ -70,9 +73,9 @@ int	 vdprintf_l(int, locale_t __restrict, const char * __restrict, va_list) |
| 70 | 73 | |
| 71 | 74 | |
| 72 | 75 | #if __DARWIN_C_LEVEL >= __DARWIN_C_FULL || defined(__cplusplus) |
| 73 | int	 asprintf_l(char ** __restrict, locale_t __restrict, const char * __restrict, ...) | |
| 76 | int	 asprintf_l(char *_LIBC_CSTR * __restrict, locale_t __restrict, const char * __restrict, ...) | |
| 74 | 77 | __printflike(3, 4); |
| 75 | int	 vasprintf_l(char ** __restrict, locale_t __restrict, const char * __restrict, va_list) | |
| 78 | int	 vasprintf_l(char *_LIBC_CSTR * __restrict, locale_t __restrict, const char * __restrict, va_list) | |
| 76 | 79 | __printflike(3, 0); |
| 77 | 80 | #endif |
| 78 | 81 |
lib/libc/include/any-macos-any/xlocale/_stdlib.h+19-16| ... | ... | @@ -24,11 +24,14 @@ |
| 24 | 24 | #ifndef _XLOCALE__STDLIB_H_ |
| 25 | 25 | #define _XLOCALE__STDLIB_H_ |
| 26 | 26 | |
| 27 | #include <_bounds.h> | |
| 27 | 28 | #include <sys/cdefs.h> |
| 28 | 29 | #include <sys/_types/_size_t.h> |
| 29 | 30 | #include <sys/_types/_wchar_t.h> |
| 30 | 31 | #include <__xlocale.h> |
| 31 | 32 | |
| 33 | _LIBC_SINGLE_BY_DEFAULT() | |
| 34 | ||
| 32 | 35 | __BEGIN_DECLS |
| 33 | 36 | double	 atof_l(const char *, locale_t); |
| 34 | 37 | int	 atoi_l(const char *, locale_t); |
| ... | ... | @@ -37,32 +40,32 @@ long	 atol_l(const char *, locale_t); |
| 37 | 40 | long long |
| 38 | 41 | 	 atoll_l(const char *, locale_t); |
| 39 | 42 | #endif /* !__DARWIN_NO_LONG_LONG */ |
| 40 | int	 mblen_l(const char *, size_t, locale_t); | |
| 41 | size_t	 mbstowcs_l(wchar_t * __restrict , const char * __restrict, size_t, | |
| 42 | 	 locale_t); | |
| 43 | int	 mbtowc_l(wchar_t * __restrict, const char * __restrict, size_t, | |
| 44 | 	 locale_t); | |
| 45 | double	 strtod_l(const char *, char **, locale_t) __DARWIN_ALIAS(strtod_l); | |
| 46 | float	 strtof_l(const char *, char **, locale_t) __DARWIN_ALIAS(strtof_l); | |
| 47 | long	 strtol_l(const char *, char **, int, locale_t); | |
| 43 | int	 mblen_l(const char *_LIBC_COUNT(__n), size_t __n, locale_t); | |
| 44 | size_t	 mbstowcs_l(wchar_t * __restrict _LIBC_COUNT(__n), | |
| 45 | 	 const char * __restrict, size_t __n, locale_t); | |
| 46 | int	 mbtowc_l(wchar_t * __restrict _LIBC_UNSAFE_INDEXABLE, | |
| 47 | 	 const char * __restrict _LIBC_COUNT(__n), size_t __n, locale_t); | |
| 48 | double	 strtod_l(const char *, char *_LIBC_CSTR *, locale_t) __DARWIN_ALIAS(strtod_l); | |
| 49 | float	 strtof_l(const char *, char *_LIBC_CSTR *, locale_t) __DARWIN_ALIAS(strtof_l); | |
| 50 | long	 strtol_l(const char *, char *_LIBC_CSTR *, int, locale_t); | |
| 48 | 51 | long double |
| 49 | 	 strtold_l(const char *, char **, locale_t); | |
| 52 | 	 strtold_l(const char *, char *_LIBC_CSTR *, locale_t); | |
| 50 | 53 | long long |
| 51 | 	 strtoll_l(const char *, char **, int, locale_t); | |
| 54 | 	 strtoll_l(const char *, char *_LIBC_CSTR *, int, locale_t); | |
| 52 | 55 | #if !__DARWIN_NO_LONG_LONG |
| 53 | 56 | long long |
| 54 | 	 strtoq_l(const char *, char **, int, locale_t); | |
| 57 | 	 strtoq_l(const char *, char *_LIBC_CSTR *, int, locale_t); | |
| 55 | 58 | #endif /* !__DARWIN_NO_LONG_LONG */ |
| 56 | 59 | unsigned long |
| 57 | 	 strtoul_l(const char *, char **, int, locale_t); | |
| 60 | 	 strtoul_l(const char *, char *_LIBC_CSTR *, int, locale_t); | |
| 58 | 61 | unsigned long long |
| 59 | 	 strtoull_l(const char *, char **, int, locale_t); | |
| 62 | 	 strtoull_l(const char *, char *_LIBC_CSTR *, int, locale_t); | |
| 60 | 63 | #if !__DARWIN_NO_LONG_LONG |
| 61 | 64 | unsigned long long |
| 62 | 	 strtouq_l(const char *, char **, int, locale_t); | |
| 65 | 	 strtouq_l(const char *, char *_LIBC_CSTR *, int, locale_t); | |
| 63 | 66 | #endif /* !__DARWIN_NO_LONG_LONG */ |
| 64 | size_t	 wcstombs_l(char * __restrict, const wchar_t * __restrict, size_t, | |
| 65 | 	 locale_t); | |
| 67 | size_t	 wcstombs_l(char * __restric _LIBC_COUNT(__n), | |
| 68 | 	 const wchar_t * __restrict, size_t __n, locale_t); | |
| 66 | 69 | int	 wctomb_l(char *, wchar_t, locale_t); |
| 67 | 70 | |
| 68 | 71 | /* Poison the following routines if -fshort-wchar is set */ |
lib/libc/include/any-macos-any/xlocale/_string.h+6-2| ... | ... | @@ -25,15 +25,19 @@ |
| 25 | 25 | #define _XLOCALE__STRING_H_ |
| 26 | 26 | |
| 27 | 27 | #include <sys/cdefs.h> |
| 28 | #include <_bounds.h> | |
| 28 | 29 | #include <sys/_types/_size_t.h> |
| 29 | 30 | #include <__xlocale.h> |
| 30 | 31 | |
| 32 | _LIBC_SINGLE_BY_DEFAULT() | |
| 33 | ||
| 31 | 34 | __BEGIN_DECLS |
| 32 | 35 | int	 strcoll_l(const char *, const char *, locale_t); |
| 33 | size_t	 strxfrm_l(char *, const char *, size_t, locale_t); | |
| 36 | size_t	 strxfrm_l(char *_LIBC_COUNT(__n), const char *, size_t __n, locale_t); | |
| 34 | 37 | int	 strcasecmp_l(const char *, const char *, locale_t); |
| 35 | 38 | char *strcasestr_l(const char *, const char *, locale_t); |
| 36 | int	 strncasecmp_l(const char *, const char *, size_t, locale_t); | |
| 39 | int	 strncasecmp_l(const char *_LIBC_UNSAFE_INDEXABLE, | |
| 40 | const char *_LIBC_UNSAFE_INDEXABLE, size_t, locale_t); | |
| 37 | 41 | __END_DECLS |
| 38 | 42 | |
| 39 | 43 | #endif /* _XLOCALE__STRING_H_ */ |
lib/libc/include/any-macos-any/xlocale/_time.h+5-2| ... | ... | @@ -25,13 +25,16 @@ |
| 25 | 25 | #define _XLOCALE__TIME_H_ |
| 26 | 26 | |
| 27 | 27 | #include <sys/cdefs.h> |
| 28 | #include <_bounds.h> | |
| 28 | 29 | #include <sys/_types/_size_t.h> |
| 29 | 30 | #include <_types.h> |
| 30 | 31 | #include <__xlocale.h> |
| 31 | 32 | |
| 33 | _LIBC_SINGLE_BY_DEFAULT() | |
| 34 | ||
| 32 | 35 | __BEGIN_DECLS |
| 33 | size_t	 strftime_l(char * __restrict, size_t, const char * __restrict, | |
| 34 | 		const struct tm * __restrict, locale_t) | |
| 36 | size_t	 strftime_l(char * __restrict _LIBC_COUNT(__n), size_t __n, | |
| 37 | 		const char * __restrict, const struct tm * __restrict, locale_t) | |
| 35 | 38 | 		__DARWIN_ALIAS(strftime_l) __strftimelike(3); |
| 36 | 39 | char	*strptime_l(const char * __restrict, const char * __restrict, |
| 37 | 40 | 		struct tm * __restrict, locale_t) |
lib/libc/include/any-macos-any/xlocale/_wchar.h+42-29| ... | ... | @@ -24,59 +24,68 @@ |
| 24 | 24 | #ifndef _XLOCALE__WCHAR_H_ |
| 25 | 25 | #define _XLOCALE__WCHAR_H_ |
| 26 | 26 | |
| 27 | #include <_bounds.h> | |
| 27 | 28 | #include <_stdio.h> |
| 28 | 29 | #include <__xlocale.h> |
| 29 | 30 | #include <sys/_types/_mbstate_t.h> |
| 30 | 31 | #include <sys/_types/_wint_t.h> |
| 31 | 32 | #include <stddef.h> /* wchar_t */ |
| 32 | 33 | |
| 34 | _LIBC_SINGLE_BY_DEFAULT() | |
| 35 | ||
| 33 | 36 | /* Initially added in Issue 4 */ |
| 34 | 37 | __BEGIN_DECLS |
| 35 | 38 | wint_t	btowc_l(int, locale_t); |
| 36 | 39 | wint_t	fgetwc_l(FILE *, locale_t); |
| 37 | wchar_t	*fgetws_l(wchar_t * __restrict, int, FILE * __restrict, locale_t); | |
| 40 | wchar_t	*_LIBC_CSTR	fgetws_l(wchar_t * __restrict _LIBC_COUNT(__n), int __n, | |
| 41 | 		FILE * __restrict, locale_t); | |
| 38 | 42 | wint_t	fputwc_l(wchar_t, FILE *, locale_t); |
| 39 | 43 | int	fputws_l(const wchar_t * __restrict, FILE * __restrict, locale_t); |
| 40 | 44 | int	fwprintf_l(FILE * __restrict, locale_t, const wchar_t * __restrict, ...); |
| 41 | 45 | int	fwscanf_l(FILE * __restrict, locale_t, const wchar_t * __restrict, ...); |
| 42 | 46 | wint_t	getwc_l(FILE *, locale_t); |
| 43 | 47 | wint_t	getwchar_l(locale_t); |
| 44 | size_t	mbrlen_l(const char * __restrict, size_t, mbstate_t * __restrict, | |
| 45 | 	 locale_t); | |
| 46 | size_t	mbrtowc_l(wchar_t * __restrict, const char * __restrict, size_t, | |
| 48 | size_t	mbrlen_l(const char * __restrict _LIBC_COUNT(__n), size_t __n, | |
| 47 | 49 | 	 mbstate_t * __restrict, locale_t); |
| 50 | size_t	mbrtowc_l(wchar_t * __restrict _LIBC_UNSAFE_INDEXABLE, | |
| 51 | 	 const char * __restrict _LIBC_COUNT(__n), size_t __n, | |
| 52 | 		mbstate_t * __restrict, locale_t); | |
| 48 | 53 | int	mbsinit_l(const mbstate_t *, locale_t); |
| 49 | size_t	mbsrtowcs_l(wchar_t * __restrict, const char ** __restrict, size_t, | |
| 50 | 	 mbstate_t * __restrict, locale_t); | |
| 54 | size_t	mbsrtowcs_l(wchar_t * __restrict _LIBC_COUNT(__len), | |
| 55 | 	 const char ** __restrict, size_t __len, mbstate_t * __restrict, | |
| 56 | 		locale_t); | |
| 51 | 57 | wint_t	putwc_l(wchar_t, FILE *, locale_t); |
| 52 | 58 | wint_t	putwchar_l(wchar_t, locale_t); |
| 53 | int	swprintf_l(wchar_t * __restrict, size_t n, locale_t, | |
| 59 | int	swprintf_l(wchar_t * __restrict _LIBC_COUNT(n), size_t n, locale_t, | |
| 54 | 60 | 		const wchar_t * __restrict, ...); |
| 55 | 61 | int	swscanf_l(const wchar_t * __restrict, locale_t, |
| 56 | 62 | 		const wchar_t * __restrict, ...); |
| 57 | 63 | wint_t	ungetwc_l(wint_t, FILE *, locale_t); |
| 58 | 64 | int	vfwprintf_l(FILE * __restrict, locale_t, const wchar_t * __restrict, |
| 59 | 65 | 		__darwin_va_list); |
| 60 | int	vswprintf_l(wchar_t * __restrict, size_t n, locale_t, | |
| 66 | int	vswprintf_l(wchar_t * __restrict _LIBC_COUNT(n), size_t n, locale_t, | |
| 61 | 67 | 		const wchar_t * __restrict, __darwin_va_list); |
| 62 | 68 | int	vwprintf_l(locale_t, const wchar_t * __restrict, __darwin_va_list); |
| 63 | size_t	wcrtomb_l(char * __restrict, wchar_t, mbstate_t * __restrict, | |
| 64 | 	 locale_t); | |
| 69 | size_t	wcrtomb_l( | |
| 70 | 		char * __restrict _LIBC_UNSAFE_INDEXABLE /* __counted_by(MB_CUR_MAX), which is not a constant */, | |
| 71 | 		wchar_t, mbstate_t * __restrict, locale_t); | |
| 65 | 72 | int	wcscoll_l(const wchar_t *, const wchar_t *, locale_t); |
| 66 | size_t	wcsftime_l(wchar_t * __restrict, size_t, const wchar_t * __restrict, | |
| 67 | 		const struct tm * __restrict, locale_t) | |
| 73 | size_t	wcsftime_l(wchar_t * __restrict _LIBC_COUNT(__n), size_t __n, | |
| 74 | 		const wchar_t * __restrict, const struct tm * __restrict, locale_t) | |
| 68 | 75 | 		__DARWIN_ALIAS(wcsftime_l); |
| 69 | size_t	wcsrtombs_l(char * __restrict, const wchar_t ** __restrict, size_t, | |
| 70 | 	 mbstate_t * __restrict, locale_t); | |
| 71 | double	wcstod_l(const wchar_t * __restrict, wchar_t ** __restrict, locale_t); | |
| 72 | long	wcstol_l(const wchar_t * __restrict, wchar_t ** __restrict, int, | |
| 73 | 	 locale_t); | |
| 76 | size_t	wcsrtombs_l(char * __restrict _LIBC_COUNT(__len), | |
| 77 | 	 const wchar_t ** __restrict, size_t __len, mbstate_t * __restrict, | |
| 78 | 		locale_t); | |
| 79 | double	wcstod_l(const wchar_t * __restrict, wchar_t *_LIBC_CSTR * __restrict, | |
| 80 | 		locale_t); | |
| 81 | long	wcstol_l(const wchar_t * __restrict, wchar_t *_LIBC_CSTR * __restrict, | |
| 82 | 	 int, locale_t); | |
| 74 | 83 | unsigned long |
| 75 | 	wcstoul_l(const wchar_t * __restrict, wchar_t ** __restrict, int, | |
| 76 | 	 locale_t); | |
| 77 | int	wcswidth_l(const wchar_t *, size_t, locale_t); | |
| 78 | size_t	wcsxfrm_l(wchar_t * __restrict, const wchar_t * __restrict, size_t, | |
| 84 | 	wcstoul_l(const wchar_t * __restrict, wchar_t *_LIBC_CSTR * __restrict, int, | |
| 79 | 85 | 	 locale_t); |
| 86 | int	wcswidth_l(const wchar_t *_LIBC_COUNT(__n), size_t __n, locale_t); | |
| 87 | size_t	wcsxfrm_l(wchar_t * __restrict _LIBC_COUNT(__n), | |
| 88 | 		const wchar_t * __restrict, size_t __n, locale_t); | |
| 80 | 89 | int	wctob_l(wint_t, locale_t); |
| 81 | 90 | int	wcwidth_l(wchar_t, locale_t); |
| 82 | 91 | int	wprintf_l(locale_t, const wchar_t * __restrict, ...); |
| ... | ... | @@ -96,16 +105,18 @@ int	vfwscanf_l(FILE * __restrict, locale_t, const wchar_t * __restrict, |
| 96 | 105 | int	vswscanf_l(const wchar_t * __restrict, locale_t, |
| 97 | 106 | 		const wchar_t * __restrict, __darwin_va_list); |
| 98 | 107 | int	vwscanf_l(locale_t, const wchar_t * __restrict, __darwin_va_list); |
| 99 | float	wcstof_l(const wchar_t * __restrict, wchar_t ** __restrict, locale_t); | |
| 108 | float	wcstof_l(const wchar_t * __restrict, wchar_t *_LIBC_CSTR * __restrict, | |
| 109 | 		locale_t); | |
| 100 | 110 | long double |
| 101 | 	wcstold_l(const wchar_t * __restrict, wchar_t ** __restrict, locale_t); | |
| 111 | 	wcstold_l(const wchar_t * __restrict, wchar_t *_LIBC_CSTR * __restrict, | |
| 112 | 		locale_t); | |
| 102 | 113 | #if !__DARWIN_NO_LONG_LONG |
| 103 | 114 | long long |
| 104 | 	wcstoll_l(const wchar_t * __restrict, wchar_t ** __restrict, int, | |
| 115 | 	wcstoll_l(const wchar_t * __restrict, wchar_t *_LIBC_CSTR * __restrict, int, | |
| 105 | 116 | 	 locale_t); |
| 106 | 117 | unsigned long long |
| 107 | 	wcstoull_l(const wchar_t * __restrict, wchar_t ** __restrict, int, | |
| 108 | 	 locale_t); | |
| 118 | 	wcstoull_l(const wchar_t * __restrict, wchar_t *_LIBC_CSTR * __restrict, | |
| 119 | 	 int, locale_t); | |
| 109 | 120 | #endif /* !__DARWIN_NO_LONG_LONG */ |
| 110 | 121 | __END_DECLS |
| 111 | 122 | #endif /* __DARWIN_C_LEVEL >= 200112L */ |
| ... | ... | @@ -118,10 +129,12 @@ __END_DECLS |
| 118 | 129 | |
| 119 | 130 | #if __DARWIN_C_LEVEL >= 200809L |
| 120 | 131 | __BEGIN_DECLS |
| 121 | size_t	mbsnrtowcs_l(wchar_t * __restrict, const char ** __restrict, size_t, | |
| 122 | 	 size_t, mbstate_t * __restrict, locale_t); | |
| 132 | size_t	mbsnrtowcs_l(wchar_t * __restrict _LIBC_COUNT(__len), | |
| 133 | 		const char ** __restrict, size_t, size_t __len, mbstate_t * __restrict, | |
| 134 | 		locale_t); | |
| 123 | 135 | int wcscasecmp_l(const wchar_t *, const wchar_t *, locale_t) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3); |
| 124 | int wcsncasecmp_l(const wchar_t *, const wchar_t *, size_t n, locale_t) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3); | |
| 136 | int wcsncasecmp_l(const wchar_t *_LIBC_UNSAFE_INDEXABLE, | |
| 137 | 		const wchar_t *_LIBC_UNSAFE_INDEXABLE, size_t n, locale_t) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3); | |
| 125 | 138 | size_t	wcsnrtombs_l(char * __restrict, const wchar_t ** __restrict, size_t, |
| 126 | 139 | 	 size_t, mbstate_t * __restrict, locale_t); |
| 127 | 140 | __END_DECLS |
lib/libc/include/any-macos-any/xlocale/_wctype.h+3| ... | ... | @@ -24,10 +24,13 @@ |
| 24 | 24 | #ifndef _XLOCALE__WCTYPE_H_ |
| 25 | 25 | #define _XLOCALE__WCTYPE_H_ |
| 26 | 26 | |
| 27 | #include <_bounds.h> | |
| 27 | 28 | #include <___wctype.h> |
| 28 | 29 | #include <_types/_wctrans_t.h> |
| 29 | 30 | #include <xlocale/_ctype.h> |
| 30 | 31 | |
| 32 | _LIBC_SINGLE_BY_DEFAULT() | |
| 33 | ||
| 31 | 34 | #if !defined(_DONT_USE_CTYPE_INLINE_) && \ |
| 32 | 35 | (defined(_USE_CTYPE_INLINE_) || defined(__GNUC__) || defined(__cplusplus)) |
| 33 | 36 |
lib/libc/include/any-macos-any/xpc/session.h-3| ... | ... | @@ -139,9 +139,6 @@ xpc_session_create_xpc_service(const char *name, |
| 139 | 139 | * An out-parameter that, if set and in the event of an error, will point to an |
| 140 | 140 | * {@link xpc_rich_error_t} describing the details of any errors that occurred. |
| 141 | 141 | * |
| 142 | * @param cancel_handler | |
| 143 | * The cancel handler block that will be executed when this session is canceled. | |
| 144 | * | |
| 145 | 142 | * @result |
| 146 | 143 | * On success this returns a new session object. The returned session is |
| 147 | 144 | * activated by default and can be used to send messages. The caller is |