tiny syscall

a (no depend std) tiny syscall abstract layer...

Usage

Add the following to your Cargo.toml:

rust [dependencies] tinysyscall = "0.1.0"

Examples

```rust use tinysyscall;

fn main() { let hw = "Hello, World!\n"; tinysyscall::file::write(tinysyscall::file::STDOUT, hw.as_bytes()); } ```

Pub API

系统调用 接口

| 模块 | 接口 | 备注 | | ------- | ---------- | -------------------- | | file | open | :whitecheckmark: | | | read | :whitecheckmark: | | | write | :whitecheckmark: | | | ioctl | :whitecheckmark: | | | stat | :whitecheckmark: | | | close | :whitecheckmark: | | | | | | mem | mmap | :whitecheckmark: | | | unmmap | :whitecheckmark: | | | | | | time | sleep | | | | | | | process | exit | :whitecheckmark: | | | | | | task | | thread/task 暂不支持 | | | | |

OS & Arch Support

| 系统 | 架构 | 备注 | | ---------- | --------- | ------------------ | | linux | x8_64 | :whitecheckmark: | | | riscv64 | :whitecheckmark: | | | | | | windows | | | | | | | | mac | | | | | | | | freertos | | | | | | |

Other