We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
CPU_SETSIZE
1 parent 29c5b94 commit 5e125a1Copy full SHA for 5e125a1
src/unix/linux_like/linux/musl/mod.rs
@@ -584,11 +584,8 @@ pub const __SIZEOF_PTHREAD_MUTEXATTR_T: usize = 4;
584
pub const __SIZEOF_PTHREAD_RWLOCKATTR_T: usize = 8;
585
pub const __SIZEOF_PTHREAD_BARRIERATTR_T: usize = 4;
586
587
-// FIXME(musl): Value is 1024 for all architectures since 1.2.4
588
-#[cfg(not(target_arch = "loongarch64"))]
589
-pub const CPU_SETSIZE: c_int = 128;
590
-#[cfg(target_arch = "loongarch64")]
591
-pub const CPU_SETSIZE: c_int = 1024;
+// Value was changed in 1.2.4
+pub const CPU_SETSIZE: c_int = if cfg!(musl_v1_2_3) { 1024 } else { 128 };
592
593
pub const PTRACE_TRACEME: c_int = 0;
594
pub const PTRACE_PEEKTEXT: c_int = 1;
0 commit comments