proc-syscall 0.1.0

A procedural macro for creating linux syscall functions from function pointer types
Documentation
1
2
3
4
5
6
7
8
9
10
use proc_syscall::syscall;

#[cfg(target_arch = "x86_64")]
pub const SYS_EXIT: usize = 1;

#[test]
fn test_sys_exit() {
    #[syscall(SYS_EXIT)]
    pub type SysExit = fn(code: i32) -> !;
}