Auto merge of #288 - lemonrock:sysinfo, r=alexcrichton
Adding sysinfo() and sysinfo struct for Linux and Android. Sadly, the sysinfo struct varies slightly between Musl and Glibc / Bionic. This means that users need to be careful when using the uptime, and should always cast it to a signed value. Why uptime can be signed is beyond me...
Showing
- libc-test/build.rs 1 addition, 0 deletionslibc-test/build.rs
- src/unix/notbsd/android/b32.rs 17 additions, 0 deletionssrc/unix/notbsd/android/b32.rs
- src/unix/notbsd/android/b64.rs 17 additions, 0 deletionssrc/unix/notbsd/android/b64.rs
- src/unix/notbsd/linux/mips.rs 17 additions, 0 deletionssrc/unix/notbsd/linux/mips.rs
- src/unix/notbsd/linux/musl/mod.rs 17 additions, 0 deletionssrc/unix/notbsd/linux/musl/mod.rs
- src/unix/notbsd/linux/other/b32/mod.rs 17 additions, 0 deletionssrc/unix/notbsd/linux/other/b32/mod.rs
- src/unix/notbsd/linux/other/b64/mod.rs 17 additions, 0 deletionssrc/unix/notbsd/linux/other/b64/mod.rs
- src/unix/notbsd/mod.rs 3 additions, 0 deletionssrc/unix/notbsd/mod.rs
Loading
Please register or sign in to comment