rpsutil 0.0.3

System monitoring
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
pub(crate) fn sysconf(name: libc::c_int) -> i64 {
    unsafe { libc::sysconf(name) }
}

#[cfg(test)]
mod tests {
    use super::*;

    #[test]
    fn test_sysconf() {
        let val = sysconf(libc::_SC_CHAR_MIN);
        assert_eq!(val, std::i8::MIN as i64);
    }
}