@@ -3733,7 +3733,11 @@ pub const MNT_NOWAIT: c_int = 2;
37333733
37343734// <mach/thread_policy.h>
37353735pub const THREAD_STANDARD_POLICY : c_int = 1 ;
3736- pub const THREAD_STANDARD_POLICY_COUNT : c_int = 0 ;
3736+
3737+ ct ! {
3738+ pub const THREAD_STANDARD_POLICY_COUNT : c_int = 0 ;
3739+ }
3740+
37373741pub const THREAD_EXTENDED_POLICY : c_int = 1 ;
37383742pub const THREAD_TIME_CONSTRAINT_POLICY : c_int = 2 ;
37393743pub const THREAD_PRECEDENCE_POLICY : c_int = 3 ;
@@ -3795,7 +3799,11 @@ pub const VM_PAGE_QUERY_PAGE_CS_NX: i32 = 0x400;
37953799
37963800// mach/task_info.h
37973801pub const TASK_THREAD_TIMES_INFO : u32 = 3 ;
3798- pub const HOST_CPU_LOAD_INFO_COUNT : u32 = 4 ;
3802+
3803+ ct ! {
3804+ pub const HOST_CPU_LOAD_INFO_COUNT : u32 = 4 ;
3805+ }
3806+
37993807pub const MACH_TASK_BASIC_INFO : u32 = 20 ;
38003808
38013809pub const MACH_PORT_NULL : i32 = 0 ;
@@ -3858,7 +3866,10 @@ pub const COPYFILE_STATE_DST_BSIZE: c_int = 12;
38583866pub const COPYFILE_STATE_BSIZE : c_int = 13 ;
38593867
38603868// <sys/attr.h>
3861- pub const ATTR_BIT_MAP_COUNT : c_ushort = 5 ;
3869+ ct ! {
3870+ pub const ATTR_BIT_MAP_COUNT : c_ushort = 5 ;
3871+ }
3872+
38623873pub const FSOPT_NOFOLLOW : u32 = 0x1 ;
38633874pub const FSOPT_NOFOLLOW_ANY : u32 = 0x800 ;
38643875pub const FSOPT_REPORT_FULLSIZE : u32 = 0x4 ;
@@ -4029,38 +4040,40 @@ const fn __DARWIN_ALIGN32(p: usize) -> usize {
40294040 ( p + __DARWIN_ALIGNBYTES32) & !__DARWIN_ALIGNBYTES32
40304041}
40314042
4032- pub const THREAD_EXTENDED_POLICY_COUNT : mach_msg_type_number_t =
4033- ( size_of :: < thread_extended_policy_data_t > ( ) / size_of :: < integer_t > ( ) ) as mach_msg_type_number_t ;
4034- pub const THREAD_TIME_CONSTRAINT_POLICY_COUNT : mach_msg_type_number_t =
4035- ( size_of :: < thread_time_constraint_policy_data_t > ( ) / size_of :: < integer_t > ( ) )
4036- as mach_msg_type_number_t ;
4037- pub const THREAD_PRECEDENCE_POLICY_COUNT : mach_msg_type_number_t =
4038- ( size_of :: < thread_precedence_policy_data_t > ( ) / size_of :: < integer_t > ( ) )
4039- as mach_msg_type_number_t ;
4040- pub const THREAD_AFFINITY_POLICY_COUNT : mach_msg_type_number_t =
4041- ( size_of :: < thread_affinity_policy_data_t > ( ) / size_of :: < integer_t > ( ) ) as mach_msg_type_number_t ;
4042- pub const THREAD_BACKGROUND_POLICY_COUNT : mach_msg_type_number_t =
4043- ( size_of :: < thread_background_policy_data_t > ( ) / size_of :: < integer_t > ( ) )
4044- as mach_msg_type_number_t ;
4045- pub const THREAD_LATENCY_QOS_POLICY_COUNT : mach_msg_type_number_t =
4046- ( size_of :: < thread_latency_qos_policy_data_t > ( ) / size_of :: < integer_t > ( ) )
4047- as mach_msg_type_number_t ;
4048- pub const THREAD_THROUGHPUT_QOS_POLICY_COUNT : mach_msg_type_number_t =
4049- ( size_of :: < thread_throughput_qos_policy_data_t > ( ) / size_of :: < integer_t > ( ) )
4050- as mach_msg_type_number_t ;
4051- pub const THREAD_BASIC_INFO_COUNT : mach_msg_type_number_t =
4052- ( size_of :: < thread_basic_info_data_t > ( ) / size_of :: < integer_t > ( ) ) as mach_msg_type_number_t ;
4053- pub const THREAD_IDENTIFIER_INFO_COUNT : mach_msg_type_number_t =
4054- ( size_of :: < thread_identifier_info_data_t > ( ) / size_of :: < integer_t > ( ) ) as mach_msg_type_number_t ;
4055- pub const THREAD_EXTENDED_INFO_COUNT : mach_msg_type_number_t =
4056- ( size_of :: < thread_extended_info_data_t > ( ) / size_of :: < integer_t > ( ) ) as mach_msg_type_number_t ;
4057-
4058- pub const TASK_THREAD_TIMES_INFO_COUNT : u32 =
4059- ( size_of :: < task_thread_times_info_data_t > ( ) / size_of :: < natural_t > ( ) ) as u32 ;
4060- pub const MACH_TASK_BASIC_INFO_COUNT : u32 =
4061- ( size_of :: < mach_task_basic_info_data_t > ( ) / size_of :: < natural_t > ( ) ) as u32 ;
4062- pub const HOST_VM_INFO64_COUNT : mach_msg_type_number_t =
4063- ( size_of :: < vm_statistics64_data_t > ( ) / size_of :: < integer_t > ( ) ) as mach_msg_type_number_t ;
4043+ ct ! {
4044+ pub const THREAD_EXTENDED_POLICY_COUNT : mach_msg_type_number_t =
4045+ ( size_of:: <thread_extended_policy_data_t>( ) / size_of:: <integer_t>( ) ) as mach_msg_type_number_t;
4046+ pub const THREAD_TIME_CONSTRAINT_POLICY_COUNT : mach_msg_type_number_t =
4047+ ( size_of:: <thread_time_constraint_policy_data_t>( ) / size_of:: <integer_t>( ) )
4048+ as mach_msg_type_number_t;
4049+ pub const THREAD_PRECEDENCE_POLICY_COUNT : mach_msg_type_number_t =
4050+ ( size_of:: <thread_precedence_policy_data_t>( ) / size_of:: <integer_t>( ) )
4051+ as mach_msg_type_number_t;
4052+ pub const THREAD_AFFINITY_POLICY_COUNT : mach_msg_type_number_t =
4053+ ( size_of:: <thread_affinity_policy_data_t>( ) / size_of:: <integer_t>( ) ) as mach_msg_type_number_t;
4054+ pub const THREAD_BACKGROUND_POLICY_COUNT : mach_msg_type_number_t =
4055+ ( size_of:: <thread_background_policy_data_t>( ) / size_of:: <integer_t>( ) )
4056+ as mach_msg_type_number_t;
4057+ pub const THREAD_LATENCY_QOS_POLICY_COUNT : mach_msg_type_number_t =
4058+ ( size_of:: <thread_latency_qos_policy_data_t>( ) / size_of:: <integer_t>( ) )
4059+ as mach_msg_type_number_t;
4060+ pub const THREAD_THROUGHPUT_QOS_POLICY_COUNT : mach_msg_type_number_t =
4061+ ( size_of:: <thread_throughput_qos_policy_data_t>( ) / size_of:: <integer_t>( ) )
4062+ as mach_msg_type_number_t;
4063+ pub const THREAD_BASIC_INFO_COUNT : mach_msg_type_number_t =
4064+ ( size_of:: <thread_basic_info_data_t>( ) / size_of:: <integer_t>( ) ) as mach_msg_type_number_t;
4065+ pub const THREAD_IDENTIFIER_INFO_COUNT : mach_msg_type_number_t =
4066+ ( size_of:: <thread_identifier_info_data_t>( ) / size_of:: <integer_t>( ) ) as mach_msg_type_number_t;
4067+ pub const THREAD_EXTENDED_INFO_COUNT : mach_msg_type_number_t =
4068+ ( size_of:: <thread_extended_info_data_t>( ) / size_of:: <integer_t>( ) ) as mach_msg_type_number_t;
4069+
4070+ pub const TASK_THREAD_TIMES_INFO_COUNT : u32 =
4071+ ( size_of:: <task_thread_times_info_data_t>( ) / size_of:: <natural_t>( ) ) as u32 ;
4072+ pub const MACH_TASK_BASIC_INFO_COUNT : u32 =
4073+ ( size_of:: <mach_task_basic_info_data_t>( ) / size_of:: <natural_t>( ) ) as u32 ;
4074+ pub const HOST_VM_INFO64_COUNT : mach_msg_type_number_t =
4075+ ( size_of:: <vm_statistics64_data_t>( ) / size_of:: <integer_t>( ) ) as mach_msg_type_number_t;
4076+ }
40644077
40654078// bsd/net/if_mib.h
40664079/// Non-interface-specific
0 commit comments