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.
1 parent 41e6b23 commit 23f9314Copy full SHA for 23f9314
src/test/ui/command/command-setgroups.rs
@@ -11,6 +11,12 @@ use std::process::Command;
11
use std::os::unix::process::CommandExt;
12
13
fn main() {
14
+ #[cfg(unix)]
15
+ run()
16
+}
17
+
18
+#[cfg(unix)]
19
+fn run() {
20
let max_ngroups = unsafe { libc::sysconf(libc::_SC_NGROUPS_MAX) };
21
let max_ngroups = max_ngroups as u32 + 1;
22
let vec: Vec<u32> = (0..max_ngroups).collect();
0 commit comments