| 1 | # Raw system calls for Rust |
| 2 | |
| 3 | This library allows Rust code to invoke system calls directly. |
| 4 | |
| 5 | ⚠️ NOTE: Only these architectures have been ported to the stable (as of 1.59) `asm!` macro |
| 6 | |
| 7 | - aarch64 |
| 8 | - riscv64 |
| 9 | - x86_64 |
| 10 | |
| 11 | All the other architectures use the deprecated `llvm_asm!` macro which has already been removed. |
| 12 | To use this crate with those architectures you'll need to use an older nightly like |
| 13 | `nightly-2022-01-14` |
| 14 | |
| 15 | See the [list of supported platforms](https://github.com/japaric/syscall.rs/tree/master/src/platform). Additions are very welcome! |
| 16 | |
| 17 | We do not intend to provide wrapper functions like `read(2)` etc. because there are many subtly different ways to define them in Rust. |