| Crates.io | linux-errnos |
| lib.rs | linux-errnos |
| version | 0.4.0 |
| created_at | 2023-06-02 18:24:02.456656+00 |
| updated_at | 2024-07-04 03:59:19.686819+00 |
| description | A list of error numbers |
| homepage | https://github.com/shurizzle/linux-errnos |
| repository | https://github.com/shurizzle/linux-errnos |
| max_upload_size | |
| id | 881121 |
| size | 175,003 |
Cross-arch enumeration of Linux error numbers that may vary across archs.
If target_arch is supported a module's top-level Errno and ErrnoIter (if
iter feature flag is present) are re-exported.
std: enable std support (dealing with std::io::Error).iter: enable Errno::iter() function.libc-compat: enable libc compatibility (global errno).no_std_io-compat: enable no_std_io crate compatibility.all: enable all the architectures.There is a feature flag for each of the "linux/arch/*" directories indicating the architecture family name. For example there is a linux/arch/x86 that contains x86/x86_64/x32 implementations and that shares the same errnos.
alphaarcarmarm64cskyhexagonia64loongarchm68kmicroblazemipsnios2openriscpariscpowerpcriscvs390shsparcumx86xtensaThere is a feature flag for each of the supported target_arch too:
x86x86_64armaarch64hexagons390xpowerpcpowerpc64mipsmips64m68kriscv32riscv64sparcsparc64loongarch64Enable #![no_std] support by disabling the default std feature:
[dependencies]
linux-errnos = { version = "*", default-features = false }
All the code is generated by the an inner crate in the errno-gen directory
except for the src/macros.rs file, so don't touch auto generated files please.
1.38.0