#bsd #error #errno #syscalls #no-std

no-std bsd-errnos

A list of error numbers for BSDs

1 unstable release

0.0.1 Jul 23, 2023

#14 in #errno

MIT license

84KB
1.5K SLoC

bsd-errnos

Crates.io docs.rs Crates.io

Cross-arch enumeration of BSDs error numbers that may vary across archs.

Feature flags

  • std: enable std support (dealing with std::io::Error).
  • iter: enable Errno::iter() function.

#![no_std]

Enable #![no_std] support by disabling the default std feature:

[dependencies]
bsd-errnos = { version = "*", default-features = false }

Code generation

All the code is generated by the an inner crate in the errno-gen directory except for the src/lib.rs file, so don't touch auto generated files please.

MSRV

1.32.0


lib.rs:

Error numbers for BSDs.

No runtime deps

Features