| Crates.io | tinysyscall |
| lib.rs | tinysyscall |
| version | 0.1.1 |
| created_at | 2023-05-11 14:44:40.399101+00 |
| updated_at | 2023-05-11 14:53:16.84498+00 |
| description | a (no depend std) tiny syscall abstract layer... |
| homepage | |
| repository | https://github.com/Sunrisepeak/tinysyscall |
| max_upload_size | |
| id | 862186 |
| size | 46,553 |
a (no depend std) tiny syscall abstract layer...
Add the following to your Cargo.toml:
[dependencies]
tinysyscall = "0.1.0"
use tinysyscall;
fn main() {
let hw = "Hello, World!\n";
tinysyscall::file::write(tinysyscall::file::STDOUT, hw.as_bytes());
}
系统调用 接口
| 模块 | 接口 | 备注 |
|---|---|---|
file |
open |
:white_check_mark: |
read |
:white_check_mark: | |
write |
:white_check_mark: | |
ioctl |
:white_check_mark: | |
stat |
:white_check_mark: | |
close |
:white_check_mark: | |
mem |
mmap |
:white_check_mark: |
unmmap |
:white_check_mark: | |
time |
sleep |
|
process |
exit |
:white_check_mark: |
task |
thread/task 暂不支持 | |
| 系统 | 架构 | 备注 |
|---|---|---|
linux |
x8_64 |
:white_check_mark: |
riscv64 |
:white_check_mark: | |
windows |
||
mac |
||
freertos |
||