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 522497a commit d6e534fCopy full SHA for d6e534f
src/libproc/proc_pid.rs
@@ -552,6 +552,7 @@ pub fn am_root() -> bool {
552
unsafe { libc::getuid() == 0 }
553
}
554
555
+/// Linux doc page
556
#[cfg(target_os = "linux")]
557
pub fn am_root() -> bool {
558
// when this becomes stable in rust libc then we can remove this function or combine for mac and linux
0 commit comments