#syscalls #abi #kernel #system #cross-platform

no-std tinysyscall

a (no depend std) tiny syscall abstract layer

2 releases

0.1.1 May 11, 2023
0.1.0 May 11, 2023

#489 in Operating systems

29 downloads per month

Apache-2.0

28KB
641 lines

tiny syscall

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

Usage

Add the following to your Cargo.toml:

[dependencies]
tinysyscall = "0.1.0"

Examples

use tinysyscall;

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

Pub API

系统调用 接口

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

OS & Arch Support

系统 架构 备注
linux x8_64
riscv64
windows
mac
freertos

Other

Dependencies

~120KB