File tree Expand file tree Collapse file tree 7 files changed +36
-2
lines changed Expand file tree Collapse file tree 7 files changed +36
-2
lines changed Original file line number Diff line number Diff line change @@ -107,7 +107,6 @@ targets = [
107107 " thumbv7neon-unknown-linux-gnueabihf" ,
108108 " wasm32-unknown-emscripten" ,
109109 " wasm32-unknown-unknown" ,
110- " wasm32-wasi" ,
111110 " x86_64-apple-darwin" ,
112111 " x86_64-apple-ios" ,
113112 " x86_64-fortanix-unknown-sgx" ,
Original file line number Diff line number Diff line change @@ -136,7 +136,6 @@ armv5te-unknown-linux-gnueabi \
136136armv5te-unknown-linux-musleabi \
137137i686-pc-windows-gnu \
138138riscv64gc-unknown-linux-gnu \
139- wasm32-wasi \
140139x86_64-fortanix-unknown-sgx \
141140x86_64-unknown-fuchsia \
142141x86_64-pc-solaris \
Original file line number Diff line number Diff line change @@ -3864,6 +3864,9 @@ fn test_linux(target: &str) {
38643864 // kernel so we can drop this and test the type once this new version is used in CI.
38653865 "sched_attr" => true ,
38663866
3867+ // FIXME: Requires >= 6.9 kernel headers.
3868+ "epoll_params" => true ,
3869+
38673870 _ => false ,
38683871 }
38693872 } ) ;
@@ -4306,6 +4309,10 @@ fn test_linux(target: &str) {
43064309 | "SCHED_FLAG_UTIL_CLAMP"
43074310 | "SCHED_FLAG_ALL" if musl => true , // Needs more recent linux headers.
43084311
4312+ // FIXME: Requires >= 6.9 kernel headers.
4313+ "EPIOCSPARAMS"
4314+ | "EPIOCGPARAMS" => true ,
4315+
43094316 _ => false ,
43104317 }
43114318 } ) ;
Original file line number Diff line number Diff line change @@ -1983,6 +1983,9 @@ getxattr
19831983glob
19841984glob_t
19851985globfree
1986+ host_cpu_load_info
1987+ host_cpu_load_info_data_t
1988+ host_cpu_load_info_t
19861989iconv
19871990iconv_close
19881991iconv_open
Original file line number Diff line number Diff line change @@ -550,6 +550,8 @@ ENOTSUP
550550ENOTUNIQ
551551EOF
552552EOWNERDEAD
553+ EPIOCGPARAMS
554+ EPIOCSPARAMS
553555EPOLLERR
554556EPOLLET
555557EPOLLEXCLUSIVE
@@ -3489,6 +3491,7 @@ epoll_create
34893491epoll_create1
34903492epoll_ctl
34913493epoll_event
3494+ epoll_params
34923495epoll_pwait
34933496epoll_wait
34943497erand48
Original file line number Diff line number Diff line change @@ -72,6 +72,11 @@ pub type ledger_array_t = *mut ::ledger_t;
7272
7373pub type iconv_t = * mut :: c_void ;
7474
75+ // mach/host_info.h
76+ pub type host_cpu_load_info_t = * mut host_cpu_load_info ;
77+ pub type host_cpu_load_info_data_t = host_cpu_load_info ;
78+
79+ // mach/processor_info.h
7580pub type processor_cpu_load_info_t = * mut processor_cpu_load_info ;
7681pub type processor_cpu_load_info_data_t = processor_cpu_load_info ;
7782pub type processor_basic_info_t = * mut processor_basic_info ;
@@ -1189,6 +1194,11 @@ s! {
11891194 pub tcpi_rxoutoforderbytes: u64 ,
11901195 pub tcpi_rxretransmitpackets: u64 ,
11911196 }
1197+
1198+ // mach/host_info.h
1199+ pub struct host_cpu_load_info {
1200+ pub cpu_ticks: [ :: natural_t; CPU_STATE_MAX as usize ] ,
1201+ }
11921202}
11931203
11941204s_no_extra_traits ! {
Original file line number Diff line number Diff line change @@ -880,6 +880,15 @@ s! {
880880 pub salt: [ :: c_uchar; TLS_CIPHER_CHACHA20_POLY1305_SALT_SIZE ] ,
881881 pub rec_seq: [ :: c_uchar; TLS_CIPHER_CHACHA20_POLY1305_REC_SEQ_SIZE ] ,
882882 }
883+
884+ // #include <linux/eventpoll.h>
885+
886+ pub struct epoll_params {
887+ pub busy_poll_usecs: u32 ,
888+ pub busy_poll_budget: u16 ,
889+ pub prefer_busy_poll: u8 ,
890+ pub __pad: u8 , // Must be zero
891+ }
883892}
884893
885894s_no_extra_traits ! {
@@ -4936,6 +4945,10 @@ pub const SCHED_FLAG_ALL: ::c_int = SCHED_FLAG_RESET_ON_FORK
49364945 | SCHED_FLAG_KEEP_ALL
49374946 | SCHED_FLAG_UTIL_CLAMP ;
49384947
4948+ // ioctl_eventpoll: added in Linux 6.9
4949+ pub const EPIOCSPARAMS : :: Ioctl = 0x40088a01 ;
4950+ pub const EPIOCGPARAMS : :: Ioctl = 0x80088a02 ;
4951+
49394952f ! {
49404953 pub fn NLA_ALIGN ( len: :: c_int) -> :: c_int {
49414954 return ( ( len) + NLA_ALIGNTO - 1 ) & !( NLA_ALIGNTO - 1 )
You can’t perform that action at this time.
0 commit comments