errno-codes 0.1.0

errno codes with messages from various OSes and architectures
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
extern crate errno_codes;

use errno_codes::unix::linux::powerpc as linux_ppc;

fn main() {
    println!(
        "Errno with number 58 from Linux on PowerPC: {}",
        linux_ppc::info_by_num(58).unwrap()
    );
    println!(
        "Errno with identifier ENOSYS from Linux on PowerPC: {}",
        linux_ppc::info_by_id("ENOSYS").unwrap()
    );
    println!(
        "Errno message with number 32 from Linux on PowerPC: {}",
        linux_ppc::strerror(32).unwrap()
    );
}