sighandler_t has an incorrect type on most unix targets
Open
Nobody has claimed this yet.
C-bug-outdated-type
E-easy
I-needs-decision
O-unix
- Dominant language
- Rust
- Stars
- 2.6k
- Forks
- 1.3k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 69
Description
For example, it is always defined as size_t, but on Android it should be of type Option<extern "C" unsafe fn(c_int, *mut siginfo, *mut c_void)>.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the Rust libc definitions and platform bindings for sighandler_t, then compare the current size_t definition with the Android function-pointer type shown in the issue. The work is done when the type matches the relevant Unix targets, including Android, and the affected bindings build successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, rust
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100