rust-lang / rust-lang/libc

sighandler_t has an incorrect type on most unix targets

Open
#1,359 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.