jasonwhite / jasonwhite/syscalls
[Emulator] Not able to create SysnoMap for Multi Arch using Syscalls::arch::Sysno
- Dominant language
- Rust
- Stars
- 141
- Forks
- 23
- PR merge metrics
- No merged PRs in 30d
Description
Sample Code
```
let mut map = SysnoMap:: i32>::new();
let sys_no = syscalls::x86::Sysno::from(0x10);
map.insert(sys_no, || 1);
```
Error: ```expected enum `syscalls::Sysno`, found enum `syscalls::x86::Sysno```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reading the SysnoMap API and the arch-specific Sysno definitions referenced in the sample. Reproduce the type mismatch with the multi-architecture example, then determine the intended way for SysnoMap to accept architecture-specific syscall numbers. Done means the sample can create and populate a multi-architecture map without the enum mismatch.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100