Skip to content

Commit 20cc693

Browse files
devnexenVexu
authored andcommitted
std.c: darwin adding more host_info api data
1 parent 2d2d79a commit 20cc693

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

lib/std/c/darwin.zig

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3969,6 +3969,23 @@ pub const host_cpu_load_info = extern struct {
39693969
pub const host_cpu_load_info_data_t = host_cpu_load_info;
39703970
pub const host_cpu_load_info_t = *host_cpu_load_info;
39713971

3972+
pub const host_load_info = extern struct {
3973+
avenrun: [3]integer_t,
3974+
mach_factor: [3]integer_t,
3975+
};
3976+
3977+
3978+
pub const host_load_info_data_t = host_load_info;
3979+
pub const host_load_info_t = *host_load_info;
3980+
3981+
pub const host_preferred_user_arch = extern struct {
3982+
cpu_type: cpu_type_t,
3983+
cpu_subtype: cpu_subtype_t,
3984+
};
3985+
3986+
pub const host_preferred_user_arch_data_t = host_preferred_user_arch;
3987+
pub const host_preferred_user_arch_t = *host_preferred_user_arch;
3988+
39723989
pub const HOST = struct {
39733990
pub const BASIC_INFO = 1;
39743991
pub const SCHED_INFO = 3;
@@ -3985,6 +4002,8 @@ pub const HOST = struct {
39854002
pub const RESOURCES_SIZES_COUNT = @intCast(mach_msg_type_number_t, @sizeOf(kernel_resource_sizes_data_t) / @sizeOf(integer_t));
39864003
pub const PRIORITY_INFO_COUNT = @intCast(mach_msg_type_number_t, @sizeOf(host_priority_info_data_t) / @sizeOf(integer_t));
39874004
pub const CPU_LOAD_INFO_COUNT = @intCast(mach_msg_type_number_t, @sizeOf(host_cpu_load_info_data_t) / @sizeOf(integer_t));
4005+
pub const LOAD_INFO_COUNT = @intCast(mach_msg_type_number_t, @sizeOf(host_load_info_data_t) / @sizeOf(integer_t));
4006+
pub const PREFERRED_USER_ARCH_COUNT = @intCast(mach_msg_type_number_t, @sizeOf(host_preferred_user_arch_data_t) / @sizeOf(integer_t));
39884007
};
39894008

39904009
pub const host_basic_info = packed struct(u32) {

0 commit comments

Comments
 (0)